Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify the description of the scope of step names #1105

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions xproc/src/main/xml/specification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3497,14 +3497,16 @@ an error.</para>

<section>
<title>Scoping of step names</title>
<para>The scope of the names of the steps (the values of the step’s <code>name</code> attributes) is determined by
the <glossterm>environment</glossterm> of each step. In general, the
name of a step, the names of its sibling steps, the names of any steps
that it contains directly, the names of its ancestors, and the names
of the siblings of its ancestors are all in a common scope. <error
code="S0002">All steps in the same scope <rfc2119>must</rfc2119> have
unique names: it is a <glossterm>static error</glossterm> if two steps
with the same name appear in the same scope.</error></para>

<para>The scope of the names of the steps (the values of the step’s
<code>name</code> attributes) is the step on which the name appears, the names
of its sibling steps, the names of any steps that it contains directly, the
names of its ancestors, and the names of the siblings of its ancestors.
<error code="S0002">All steps in the same
scope <rfc2119>must</rfc2119> have unique names: it is a <glossterm>static
error</glossterm> if two steps with the same name appear in the same
scope.</error></para>

</section>
<section>
<title>Scoping of port names</title>
Expand Down