You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Da...@lotus.com on 2000/11/24 22:05:15 UTC
Re: Problem of handling top-level variables in Xalan-C
This is a known problem and will be fixed in the next release. The code
should be available in CVS early next week if you want to build from the
sources.
Dave
Mingfei Peng
<mfpeng@excit To: xalan-dev@xml.apache.org
e.com> cc: (bcc: David N Bertoni/CAM/Lotus)
Subject: Problem of handling top-level variables in Xalan-C
11/23/2000
10:23 PM
Please
respond to
xalan-dev
Both Xalan-j 1.2.1 and Saxon 6.0 can handle the following XSL file, but
Xalan-C 1.0 report a parse error:
XSL Error: Could not get variable named part
But it is obvious that $part has been defined, so I think there is an bug
in
Xalan-C. When Xalan-C evaluates $seg1, it doesn't use the value of $part,
although $part is already resolved.
The stylesheet can be tested with any xml file.
----------------------------
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:param name="part" select="'xyz'"/>
<xsl:param name="seg1">
<xsl:call-template name="evaluate"/>
</xsl:param>
<xsl:template name="evaluate">
<xsl:element name="{$part}"/>
</xsl:template>
</xsl:stylesheet>
_______________________________________________________
Tired of slow Internet? Get @Home Broadband Internet
http://www.home.com/xinbox/signup.html