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?


Michael Kay

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">
              <xsl:copy-of select="name()" />

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().

This SF.net email is sponsored by Windows:

Build for Windows Store.

saxon-help mailing list archived at http://saxon.markmail.org/