What about
<xsl:for-each select="/Root/Mynode[Complete='true' and
(Supplier=$supplier_param or '*'=$supplier_param)]/price">
?
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Giancarlo Rossi wrote:
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>
--~--
--~------------------------------------------------------------------
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>
--~--