I've got this code:
<xsl:with-param name="arg" select="$tree"/>
Now, if instead of the above, I do the call-template and the copy-of $var individually, I get the correct output (basically, both return a tree). However, in the above, doing <xsl:copy-of select="$var"/> returns a tree, with the $var contents before the call-template, no matter which way around I put the copy-of and the call-template. I am using SAXON 8.1.1 from Saxonica and Java 1.5.0 (the latest). Any ideas? Or is it a bug?
Could you please put together a complete example - as simple as possible - that illustrates the problem (i.e. a source document and stylesheet)? Without that, it's very difficult to investigate.
sorry, I meant that doing copy-of $temp returns the misordered contents. Also, $var is also the result of a template call which I did earlier, if that helps.
Hi, Michael, thanks for replying. You won't need to worry about this issue any longer, I found the problem and it was nothing to do with your parser, another template I wrote was misbehaving doing to a rogue data node in my XML tree and it was causing it to traverse down the wrong side of the tree first.
No problem. I thought it was probably a user error.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.