I haven't been able to reproduce this problem. Can you supply more information - a full stylesheet, and details of how you were running it?

Thanks.

Michael Kay
Saxonica


On 14 Jun 2013, at 01:01, Abel Braaksma wrote:

Hi Michael,

I noticed that the following doesn't seem to work, it raises SXST0063. I originally just wanted to copy the current node multiple times and I wanted to do that using a snapshot, but whichever consuming or motionless expression I used, even when it didn't return nodes at all, I kept receiving the same error "Template body is an expression that returns nodes from the streamed input document".

    <xsl:mode streamable="yes"  />
   
    <xsl:template match="site">
        <xsl:result-document href="large-test2.xml">
          <root>
              <xsl:copy-of select="name()" />
          </root>
        </xsl:result-document>
    </xsl:template>


It didn't mattter whether I uses value-of, copy-of, copy, or a function like snapshot(), copy-of(), or like above, a motionless function like name().

Regards,
Abel
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help