This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
select attribute in apply-templates
- To: <xsl-list at mulberrytech dot com>
- Subject: select attribute in apply-templates
- From: "Carlos Sanchez" <carlos at ktsi dot com>
- Date: Fri, 5 May 2000 12:43:11 -0500
- Reply-To: xsl-list at mulberrytech dot com
Hi,
I've seen some examples in this mailing list such as
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="root">
<xsl:variable name="y">
<xsl:for-each select="*">
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:variable>
<xsl:apply-templates select="$y/*"/>
</xsl:template>
....
however, whenever I run this in XALAN it throws a SAX exception saying that
"cannot convert #UNKNOWN to a node list". Do this kind of style sheets work
with XT or SAXON only? can any anybody tell me what's happening?
Thanks a lot,
Carlos Sanchez
http://www.riskmetrics.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list