You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/19 21:33:20 UTC

DO NOT REPLY [Bug 4905] - xsltc: xpath parameters with non-leaf decendant-predicates yield empty nodesets

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4905>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4905

xsltc: xpath parameters with non-leaf decendant-predicates yield empty nodesets





------- Additional Comments From johnh@schemasoft.com  2001-11-19 12:33 -------
Here's a simplified stylsheet that has the same problem (it demonstrates 
behaviour differences between the use of xsl:param and xsl:variable):

XSLT
----

<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="text" indent="no"/>

<xsl:template match="/">
	<xsl:param name="par" select="dataset/lump[1]/point"/>
par<xsl:value-of select="$par/@x"/>par
	<xsl:variable name="var" select="dataset/lump[1]/point"/>
var<xsl:value-of select="$var/@x"/>var
</xsl:template>
</xsl:stylesheet>

XT
--

par60par

var60var

XSLTC
-----

parpar

var60var