Closed GoogleCodeExporter closed 9 years ago
Will be fixed soon. Btw. if you want the variable to be global, you should
define
them at the top level (i.e. below xsl:stylesheet), and not below the
xsl:template
that matches the root node.
Original comment by steffen....@gmail.com
on 16 Dec 2006 at 1:32
Here's a patch (against svn revision 7) that AFAICS solves the issue. I've
tested
some of the different xsl:variable usage possibilities, and they all seem to
work.
Original comment by bjpbak...@gmail.com
on 18 Dec 2006 at 4:47
Attachments:
That's an appropriate fix.
It turned out that the nodes in the nodeset value of the variable could be
created
from any of the three DOMs of input, template, and output, and it seems that my
choice to use the input document is conceptually the least appropriate, although
practically I can't think of any difference it would make.
In my upcoming fix I chose to create the nodes in the variable value from the
template document instead, and the template node at this poitn is guranteed to
be an
element (the xsl:variable element in fact) and hence have an ownerDocument.
Either way is fine, as far as I can see.
Original comment by steffen....@gmail.com
on 18 Dec 2006 at 6:49
Fixed in release-0-7.
Original comment by steffen....@gmail.com
on 29 Dec 2006 at 2:20
Original issue reported on code.google.com by
lea...@gmail.com
on 8 Dec 2006 at 7:49