This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
param-value in Expression
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] param-value in Expression
- From: UweLoydl at gmx dot de
- Date: Wed, 23 May 2001 19:17:18 +0200 (MEST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
I wonder why my for-each select=... doesn't work. Wenn I use
$root[@name='blabla'] it works fine.
<xsl:param name="root" expr="teams/team"/>
<xsl:param name="rootstring" expr="'teams/team'"/>
<xsl:param name="filterattr" expr="@name"/>
<xsl:param name="filter" expr="'blabla'"/>
<xsl:template match="/">
<html>
<head></head>
<body>
<form>
<table border="1">
<xsl:for-each select="$root[$filterattr=$filter]/*">
<xsl:call-template name="children">
<xsl:with-param name="list" select="."/>
<xsl:with-param name="tree" select="$rootstring"/>
</xsl:call-template>
</xsl:for-each>
</table>
</form>
</body>
</html>
</xsl:template>
<xsl:template name="children">
.
.
.
</xsl:template>
--
Uwe
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list