I think this probably suggests that you haven't activated Saxon-SA. If run under Saxon-B, the first construct will run successfully, in non-streaming mode, while the second will fail at compile time.
 
Michael Kay
http://www.saxonica.com/


From: James King [mailto:james.king@m35.net]
Sent: 16 October 2008 14:31
To: James King; Michael Kay; Mailing list for the SAXON XSLT and XQuery processor
Subject: RE: [saxon] XSLT Compile error using saxon:stream()

Also, this works:

 

<xsl:copy-of select="doc('C:\Projects\InnovationChallenge\SaxonXSLT\bin\Debug\input2.xml')/data/row[1]" saxon:read-once="yes"/>

 

But this doesn’t:

 

<xsl:for-each select="saxon:stream(doc('C:\Projects\InnovationChallenge\SaxonXSLT\bin\Debug\input2.xml')/data/row)">

<xsl:text>test</xsl:text>

</xsl:for-each>

 

From: James King
Sent: 16 October 2008 14:05
To: Michael Kay; 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: RE: [saxon] XSLT Compile error using saxon:stream()