[Home] [By Thread] [By Date] [Recent Entries]

Subject: xpath problem
From: "Earl Spencer" <eapencer74@xxxxxxxxxxx>
Date: Mon, 06 Aug 2001 19:16:37 +0000
<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


_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread
  • xpath problem
    • Earl Spencer - Mon, 6 Aug 2001 15:20:54 -0400 (EDT) <=
      • <Possible follow-ups>
      • Oliver Becker - Tue, 7 Aug 2001 04:53:13 -0400 (EDT)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member