[Bug 29482] [xslt30ts] si-group-031

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29482

Abel Braaksma <abel.braaksma@xs4all.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |abel.braaksma@xs4all.nl

--- Comment #1 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
I agree. Martin Honnen created a similar bug report against Exselt (we have
different results and consider it streamable, but output is empty for the
copied streamed nodes).

An alternative way of writing this, considering only copies of nodes are
created, is the following, which I believe should be streamable (not pretty,
but works):

<xsl:for-each-group select="product" 
      group-adjacent="(position() - 1) idiv $block-size">
   <xsl:result-document href="product{current-grouping-key()}.xml">
       <xsl:variable name="copy" select="current-group()/copy-of()" />
       <xsl:copy select="$root">
           <xsl:copy-of select="$copy"/>
       </xsl:copy>
   </xsl:result-document>
</xsl:for-each-group>

Note the necessity for adding the copy-of function to the variable @select
expression.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 20 February 2016 14:47:17 UTC