Subject:Bug in Xalan ? (xsl:element inside xsl:variable) Author:(Deleted User) Date:21 Jan 2003 12:27 PM
Hello everyone !
I am doing the following code:
As you all can see, variable "v" is holding two elements. Using Excelon's parser, it works fine, however, when using Xalan, the following error occurs when the for-each tag is executed:
Subject:Re: Bug in Xalan ? (xsl:element inside xsl:variable) Author:Minollo I. Date:21 Jan 2003 12:43 PM
The problem is that the Stylus Studio internal processor is able to
interpret a Result Tree Fragment (RTF, like the one you are associating to
the $v variable) as a Nodeset, which is the type required by the XPath
expression you are using in the select attribute of the for-each statement.
In order to make Xalan work on this example, you have to declare the
following namespace:
xmlns:xalan="http://xml.apache.org/xalan"
....and change the XPath expression into:
select="xalan:nodeset($v)/child::*"
Unfortunately the internal processor won't understand the xalan:nodeset
extension. I'm filing a request to get this properly handled in a future
update.