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

Subsume err:XD0026 by err:XD0001 #844

Merged
merged 1 commit into from Jul 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 20 additions & 22 deletions xproc/src/main/xml/specification.xml
Expand Up @@ -3743,11 +3743,11 @@ The context item is specified as a <glossterm>connection</glossterm>
in the <tag>p:with-input</tag>. If no explicit connection is provided,
the <glossterm>default readable port</glossterm> is used. If the
context item is connected to <tag>p:empty</tag>, or is connected to
more than one document, or is unconnected and
the <glossterm>default readable port</glossterm> is undefined, the
context item is undefined. <error code="D0001">It is a <glossterm>dynamic error</glossterm>
if the XPath expression makes use of the context item, but the context item is
undefined.</error>
more than one document, or is unconnected and the <glossterm>default
readable port</glossterm> is undefined, the context item is undefined.
<error code="D0001">It is a <glossterm>dynamic error</glossterm> if an
XPath expression makes reference to the context item, size, or position when
the context item is undefined.</error>
</para>

<para>Each conditional <glossterm>subpipeline</glossterm> is
Expand Down Expand Up @@ -3795,9 +3795,9 @@ for the <tag>p:with-input</tag>. If no context is specified on the
<tag>p:when</tag>, the context of the <tag>p:choose</tag> is
used. The context item is undefined if the connection or
the context of the <tag>p:choose</tag> provides no or more than one document.
<error code="D0001">It is a <glossterm>dynamic error</glossterm>
if the XPath expression makes use of the context item, but the context item is
undefined.</error></para>
<error code="D0001">It is a <glossterm>dynamic error</glossterm> if an
XPath expression makes reference to the context item, size, or position when
the context item is undefined.</error></para>
<para>If the <tag class="attribute">collection</tag> attribute has the value true,
then the default collection will contain all of the documents that appeared
on that input and the context item will be undefined.
Expand Down Expand Up @@ -3841,9 +3841,9 @@ for the <tag>p:with-input</tag>. If no context is specified on the
<glossterm>default readable port</glossterm>. If no context is specified and
there is no default readable port, the context item is undefined. The context
item is also undefined, if no or more than one document is provided.
<error code="D0001">It is a <glossterm>dynamic error</glossterm>
if the XPath expression makes use of the context item, but the context item is
undefined.</error></para>
<error code="D0001">It is a <glossterm>dynamic error</glossterm> if an
XPath expression makes reference to the context item, size, or position when
the context item is undefined.</error></para>

<para>If the <tag class="attribute">collection</tag> attribute has the value true,
then the default collection will contain all of the documents that appeared
Expand Down Expand Up @@ -5216,10 +5216,9 @@ specified. If they are not specified, the context item comes from the
readable port</glossterm> exists, the context item is
undefined.</para>

<para><error code="D0026">It is a <glossterm>dynamic error</glossterm> if
the <tag class="attribute">select</tag> expression makes reference to
the context node, size, or position when the context item is
undefined.</error>
<para><error code="D0001">It is a <glossterm>dynamic error</glossterm> if an
XPath expression makes reference to the context item, size, or position when
the context item is undefined.</error>
<error code="D0065">It is a <glossterm>dynamic error</glossterm>
to refer to the context item, size, or position if a sequence of documents
appears on the connection that provides the context.</error>
Expand Down Expand Up @@ -5331,9 +5330,9 @@ expression on the <tag>p:declare-step</tag> that defines the step
signature. It must be a statically valid expression at that point.
Consequently, if it contains variable references, they can only be
references to preceding options on the step.
<error code="D0026">It is a <glossterm>dynamic error</glossterm> if
the <tag class="attribute">select</tag> expression makes reference to
the context node, size, or position.</error></para>
<error code="D0001">It is a <glossterm>dynamic error</glossterm> if an
XPath expression makes reference to the context item, size, or position when
the context item is undefined.</error></para>

<para><impl>The precise details about what XPath expressions are allowed
(for example, can the expression declare a function) is
Expand Down Expand Up @@ -5477,10 +5476,9 @@ If no <glossterm>default
readable port</glossterm> exists, the context item is
undefined.</para>

<para><error code="D0026">It is a <glossterm>dynamic error</glossterm> if
the <tag class="attribute">select</tag> expression makes reference to
the context node, size, or position when the context item is
undefined.</error>
<para><error code="D0001">It is a <glossterm>dynamic error</glossterm> if an
XPath expression makes reference to the context item, size, or position when
the context item is undefined.</error>
<error code="D0065">It is a <glossterm>dynamic error</glossterm>
to refer to the context item, size, or position if a sequence of documents
appears on the connection that provides the context.</error>
Expand Down