[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl: descendent count?

Subject: Re: xsl: descendent count?
From: smoghe@xxxxxxxxxxxx
Date: Thu, 16 Sep 1999 17:15:19 +0530
xsl descendent

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.