[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Count() nodes ??
did u try count(//Root/FixedNodes/Node[@name=1])
--Rao
On Tuesday, September 16, 2003, at 11:24 AM,
xsl-list@xxxxxxxxxxxxxxxxxxxxxx wrote:
Hi,
I am having the following xml document.
<Root>
<FixedNodes>
<Node name="1">
<Subnode myAtt="itsValue"/>
<Subnode myAtt="itsValue"/>
<Subnode myAtt="itsValue"/>
</Node>
<Node name="2">
<Subnode myAtt="itsValue">
<Subnode myAtt="itsValue">
<Subnode myAtt="itsValue">
<Subnode myAtt="itsValue">
</Node>
</FixedNodes>
<VaryingNodes>
<Node name="3">
<Subnode myAtt="itsValue">
<Subnode myAtt="itsValue">
</Node>
</VaryingNodes>
</Root>
How do i count number of Subnode within FixedNodes.
I tried using
"count(//Root/FixedNodes/Node/Subnode)
But i got count as zero. Is this because there is attribute associated
with
each of the Node element ?
Can someone please tell me how do i count it ?
Thanks in the anticipation that I will get some reply.
Regards,
Dipesh
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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
RSS 2.0 |
|
Atom 0.3 |
|
|