This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Variable with node list...
- From: "Beck, Brad" <Brad dot Beck at westgroup dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 16 Nov 2001 14:59:01 -0600
- Subject: [xsl] Variable with node list...
- Reply-to: xsl-list at lists dot mulberrytech dot com
I get the following error from Microsoft's parser when processing the
included document and stylesheet.
Reference to variable or parameter 'properties' must evaluate to a node
list.
Has anyone else run across this? (MSXML3, IE6, Windows 2000 Server)
vartree.xml
-----------
<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="vartree.xsl"?>
<root></root>
vartree.xsl
-----------
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="root">
<xsl:variable name="properties">
<property>one</property>
<property>two</property>
<property>three</property>
</xsl:variable>
<foo>
<xsl:for-each select="$properties/property">
<bar>
<xsl:value-of select="."/>
</bar>
</xsl:for-each>
</foo>
</xsl:template>
</xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list