streaming
Added by Mike Banks over 8 years ago
Hi, I am trying to replace this non streaming code with a streamed version
I wrote this which doesn't work
Any pointers in the right direction appreciated.
Replies (2)
RE: streaming - Added by Michael Kay over 8 years ago
The most obvious thing that's wrong is that @<xsl:value-of select="fn:copy-of(.)"/>@ should probably be @<xsl:sequence select="fn:copy-of(.)"/>@ or more simply @<xsl:copy-of select="."/>@.
But if you're streaming you don't really want the variable holding all the Qualifiers elements, given that you only want to process a selected subset. Without testing it, I would think the logic should be simply:
RE: streaming - Added by Mike Banks over 8 years ago
Thanks Michael, I will give that a go. The reason I am having to use streaming is that the whole xml file is at least 1GB. Hopefully the Qualifiers node will be small enough and I need to use this as a lookup for other data (bad data design outside my control).
Please register to reply