|
Subject: Re: xsl: descendent count? From: smoghe@xxxxxxxxxxxx Date: Thu, 16 Sep 1999 17:15:19 +0530 |
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@mulberrytech.com 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: xsl: descendent count?, David Carlisle | Thread | Re: xsl: descendent count?, David Carlisle |
| RE: What will be the future improve, DPawson | Date | RE: XML serialization..., Sebastian Rahtz |
| Month |