xsl-list
[Top] [All Lists]

[xsl] Filter by a parameter

2006-10-24 04:57:54
I'm using xslt 1.0

<xsl:param name="supplier_param"  />

<xsl:variable name="test">
<xsl:choose>
<xsl:when test="$supplier_param">
<xsl:value-of select="$supplier_param"/>
</xsl:when>
<xsl:otherwise>
*
</xsl:otherwise>
</xsl:choose>
</xsl:variable>


<xsl:for-each select="/Root/Mynode[Complete='true' and
Supplier=$test]/price">

</xsl:for-each>

But it doesnt works...





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>