|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xpath problem
<a>
<b id="new">
<f>new</f>
<c id="new">
<d id="old">hi</d>
</c>
</b>
<b id="new">
<f>new</f>
<c id="old">
<d id="new">hi</d>
</c>
</b>
<b id="old">
<f>new</f>
<c id="old">
<d >new</d>
</c>
</b>
<b id="old">
<f>old</f>
<c id="old">
<d >new</d>
</c></b> </a> for this file i used an expression this way <xsl:for-each select="a"> <xsl:variable name="mcid"><xsl:value-of select="@mcID"/></xsl:variable> <xsl:value-of select="count(b[contains(new,text())])"/> this gives me a correct value where as the below one does not give the correct value <xsl:value-of select="count(c[contains(new,d)])"/> what is wrong in my statement sorry for the ignorance cause i am new to xslt stuff Thanks Spencer
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








