Skip to content

Commit

Permalink
Improve the wording about matching document nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed May 28, 2024
1 parent 289696b commit a655b4f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
org.gradle.jvmargs=-Xmx4096M

docbookXsltBaseUri=https://cdn.docbook.org
docbookXsltVersion=2.5.0
xprocTocUri=https://spec.xproc.org/master/head/etc/xproc/toc.xml
Expand Down
4 changes: 2 additions & 2 deletions step-validation/src/main/xml/specification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ No document properties on the <port>schemas</port> port are preserved.</para>
</p:declare-step>

<para>The option <option>default-version</option> can be used to
control the schema's version in case it does not specify one itself. If
control the schema's version in case it does not specify one itself.<impl>If
the schema does not specify a version and option <option>default-version</option>
is empty, the version used is <glossterm>implementation-defined</glossterm>.</para>
is empty, the version used is <glossterm>implementation-defined</glossterm>.</impl></para>

<para><error code="C0163">It is a <glossterm>dynamic error</glossterm>
if the selected version is not supported.</error></para>
Expand Down
5 changes: 2 additions & 3 deletions steps/src/main/xml/steps/hash.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ value of the attribute in the output.
If the attribute is named “<tag class="attribute">xml:base</tag>”, the base URI
of the element <rfc2119>must</rfc2119> also be amended accordingly.</para>

<para>If the document node is matched, the entire document is replaced by a text node
with the hash. What appears on port <port>result</port> is a text document with the
text node wrapped in a document node.</para>
<para>If the document node is matched, the result is a document node
containing a single text node.</para>

<para>If the expression matches any
other kind of node, the entire node (and <emphasis>not</emphasis> just
Expand Down
7 changes: 3 additions & 4 deletions steps/src/main/xml/steps/replace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ pattern is replaced in the output by the top-level node(s)
of the <port>replacement</port> document. Only non-nested matches are
replaced. That is, once a node is replaced, its descendants cannot
be matched.</para>

<para>If the document node is matched and port <port>replacement</port> contains
a text document, the entire document is replaced by the text node. What appears on port
<port>result</port> is a text document with the text node wrapped in a document node.</para>

<para>If the document node is matched, the result is a document node
containing the replacement.</para>

<simplesect>
<title>Document properties</title>
Expand Down
5 changes: 2 additions & 3 deletions steps/src/main/xml/steps/string-replace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ expression is used as the new value of the attribute in the output.
If the attribute is named “<tag class="attribute">xml:base</tag>”, the base URI
of the element <rfc2119>must</rfc2119> also be amended accordingly.</para>

<para>If the document node is matched, the entire document is replaced by the string
value of the <option>replace</option> expression. What appears on port <port>result</port>
is a text document with the text node wrapped in a document node.</para>
<para>If the document node is matched, the result is a document node
containing a single text node.</para>

<para>If the expression matches any other kind of node, the entire
node (and <emphasis>not</emphasis> just its contents) is replaced by
Expand Down
5 changes: 2 additions & 3 deletions steps/src/main/xml/steps/uuid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ matches an <emphasis>attribute</emphasis>, the UUID is used as the new
value of the attribute in the output. If the attribute is named “<tag class="attribute">xml:base</tag>”, the base URI of the element
<rfc2119>must</rfc2119> also be amended accordingly.</para>

<para>If the document node is matched, the entire document is replaced by a text node
with the UUID. What appears on port <port>result</port> is a text document with the
text node wrapped in a document node.</para>
<para>If the document node is matched, the result is a document node
containing a single text node.</para>

<para>If the expression matches any
other kind of node, the entire node (and <emphasis>not</emphasis> just
Expand Down

0 comments on commit a655b4f

Please sign in to comment.