Skip to content

Commit

Permalink
Allow xsl:result-document/@select
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhkay committed Nov 10, 2024
1 parent 5f488b2 commit 71238cf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
3 changes: 3 additions & 0 deletions specifications/xslt-40/src/element-catalog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1779,6 +1779,9 @@
<e:data-type name="uri"/>
</e:attribute-value-template>
</e:attribute>
<e:attribute name="select">
<e:data-type name="expression"/>
</e:attribute>
<e:attribute name="validation">
<e:constant value="strict"/>
<e:constant value="lax"/>
Expand Down
2 changes: 2 additions & 0 deletions specifications/xslt-40/src/schema-for-xslt40.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,7 @@ of problems processing the schema using various tools
<xs:complexContent mixed="true">
<xs:extension base="xsl:sequence-constructor">
<xs:attribute name="format" type="xsl:avt"/>
<xs:attribute name="select" type="xsl:expression"/>
<xs:attribute name="href" type="xsl:avt"/>
<xs:attribute name="type" type="xsl:EQName"/>
<xs:attribute name="validation" type="xsl:validation-type"/>
Expand Down Expand Up @@ -1661,6 +1662,7 @@ of problems processing the schema using various tools
<xs:attribute name="use-character-maps" type="xsl:EQNames"/>
<xs:attribute name="output-version" type="xsl:avt"/>
<xs:attribute name="_format" type="xs:string"/>
<xs:attribute name="_select" type="xs:string"/>
<xs:attribute name="_href" type="xs:string"/>
<xs:attribute name="_type" type="xs:string"/>
<xs:attribute name="_validation" type="xs:string"/>
Expand Down
23 changes: 16 additions & 7 deletions specifications/xslt-40/src/xslt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21915,7 +21915,7 @@ and <code>version="1.0"</code> otherwise.</p>
<elcode>xsl:on-non-empty</elcode>, <elcode>xsl:when</elcode>,
<elcode>xsl:otherwise</elcode>, <elcode>xsl:matching-substring</elcode>,
<elcode>xsl:non-matching-substring</elcode>, <elcode>xsl:array</elcode>,
and <elcode>xsl:array-member</elcode>,
<elcode>xsl:array-member</elcode>, and <elcode>xsl:result-document</elcode>,
it is a <termref def="dt-static-error">static error</termref> if the
<code>select</code> attribute is present
and the instruction has children other than <elcode>xsl:fallback</elcode>.</p>
Expand Down Expand Up @@ -37088,16 +37088,25 @@ return ($m?price - $m?discount)</eg>
whether the character <code>/</code> is escaped as <code>\/</code> by the
JSON serialization method.
</change>
<change issue="1534">
The input to the serializer can be defined using the <code>select</code> attribute
of <elcode>xsl:result-document</elcode> as an alternative to using a sequence constructor.
</change>
</changes>

<?element xsl:result-document?>
<p>The <elcode>xsl:result-document</elcode> instruction is
used to create a <termref def="dt-secondary-result"/>. The content of the
<elcode>xsl:result-document</elcode> element is a <termref def="dt-sequence-constructor">sequence constructor</termref>,
and the value of the
<termref def="dt-secondary-result"/> (known as the <termref def="dt-raw-result"/>)
is the <termref def="dt-immediate-result"/> of this
sequence constructor. </p>
used to create a <termref def="dt-secondary-result"/>.</p>

<p>The <code>select</code> attribute and the contained <termref def="dt-sequence-constructor"/> are
mutually exclusive; if the <code>select</code> attribute is present then the
sequence constructor must be empty, and if the sequence constructor is non-empty
then the <code>select</code> attribute must be absent <errorref spec="XT" class="SE" code="3185"/>.
The value of the <code>select</code> attribute or the <termref def="dt-immediate-result"/>
of the contained <termref def="dt-sequence-constructor"/>
is referred to as the <termref def="dt-raw-result"/>.</p>



<p>As with the <termref def="dt-principal-result"/> of the
transformation, a <termref def="dt-secondary-result"/> may be delivered to the calling
Expand Down

0 comments on commit 71238cf

Please sign in to comment.