|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl: descendent count?
Hi there,
My <xsl:if> condition is working.
I tried hard and now I got success.
Refer to following mail and you understand the following code.
Source XML:-
<CHAPTER>
<PARA/>
<PARA/>
<PARA/>
</CHAPTER>
XSL FILE:-
<xsl:variable name="CHILD">
<xsl:value-of select="count(para)"/>
</xsl:variable>
<xsl:if test="['$CHILD>0']">
<xsl:if>
Thanx, everybody who helped me.
****************************
Surendra Moghe
surendra_moghe@xxxxxxxxxxxx
****************************
smoghe@xxxxxxxxxxxx@m... on 09/16/99 04:28:24 PM
Please respond to xsl-list@xxxxxxxxxxxxxxxx
Sent by: owner-xsl-list@xxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxx
cc:
Subject: Re: xsl: descendent count?
> How can I get CHILDREN count of an element.
<xsl:value-of select="count(*)"/>
for all children, or
<xsl:value-of select="count(PARA)"/>
to tell you how many PARA children the current node has.
David
------------------
Thanx David,
But still, I'm not able to compare the condition, I tried a lot.
e.g.
<xsl:if test='["cout(*)>5"]'>
<xsl:if>
The above condition is not working, can you help me out.
Thanx, in advance.
****************************
Surendra Moghe
surendra_moghe@xxxxxxxxxxxx
****************************
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
|

Cart








