xsl-list
[Top] [All Lists]

RE: [xsl] Filter by a parameter

2006-10-24 05:10:19
can you explain your problem better please?
Make sure when ever you post a problem, you give..

1. Snip of your XML
2. The output You want to acheive
3. The Code you have done.

It doesnt tell anything as to what is not working for you with your mail

Vasu


From: "Giancarlo Rossi" <giancarlo_rossi(_at_)tiscali(_dot_)it>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] Filter by a parameter
Date: Tue, 24 Oct 2006 13:57:44 +0200

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>
--~--


_________________________________________________________________
Windows Live? Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb


--~------------------------------------------------------------------
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>