Skip to content

Commit

Permalink
Add error conditions, revise streaming rules
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhkay committed Sep 29, 2023
1 parent 35a08e0 commit f6de0c1
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions specifications/xslt-40/src/xslt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26530,6 +26530,20 @@ the same group, and the-->


</example>

<p diff="add" at="issue731">
<error spec="XT" type="static" class="SE" code="3355">
<p>It is a <termref def="dt-static-error">static error</termref> for a
an <elcode>xsl:accumulator-rule</elcode> element to specify
<code>capture="yes"</code> unless it also specifies <code>phase="end"</code>.</p>
</error>
</p>

<note diff="add" at="issue731">
<p>Since <code>capture="yes"</code> causes the subtree of the relevant element node
to be built in memory, using this option on an element that has a large subtree is best
avoided, because it can defeat the purpose of streaming.</p>
</note>



Expand Down Expand Up @@ -26576,10 +26590,7 @@ the same group, and the-->
the <termref def="dt-expression">expression</termref> in the <code>select</code> attribute or the contained
<termref def="dt-sequence-constructor"/>, with respect to the declared type of the accumulator,
is <termref def="dt-grounded"/> and <termref def="dt-motionless"/>.</p></item>
<item><p>The rule has <code>capture="yes"</code> and the <termref def="dt-sweep"/> of
the <termref def="dt-expression">expression</termref> in the <code>select</code> attribute or the contained
<termref def="dt-sequence-constructor"/>
is <termref def="dt-consuming"/> or <termref def="dt-motionless"/>.</p></item>
<item><p diff="chg" at="issue731">The rule has <code>capture="yes"</code>.</p></item>
</olist>
</item>

Expand Down

0 comments on commit f6de0c1

Please sign in to comment.