Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Search XML Node

From: David Carlisle <davidc@---.--.-->
To: NULL
Date: 5/3/2005 3:38:00 PM
You could change
 <xsl:if test="./artist = $text1">

to

 <xsl:if test="contains(artist ,$text1)">

Note you never need to start an XPath with ./ also you don't really need
an xsl:if here 

 <xsl:for-each select="cat/links">
 <xsl:if test="./artist = $text1">

can be written


 <xsl:for-each select="cat/links[artist = $text1]">

which is often preferable as it means for example that position() just
numbers the nodes that you actually want to output, useful for
numbering, or making alternating couloured rows in tables etc.


David


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent