[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: descendent count?
Example: <xsl:template match="CHAPTER> <xsl:number value="count(para)"/> </xsl:template> This outputs the number of para's in a chapter -----Original Message----- From: smoghe@xxxxxxxxxxxx [mailto:smoghe@xxxxxxxxxxxx] Sent: Thursday, September 16, 1999 10:15 AM To: XSL-List@xxxxxxxxxxxxxxxx Subject: xsl: descendent count? Hi, Can anybody tell me; How can I get CHILDREN count of an element. e.g. Source Tree <CHAPTER> <PARA> <PARA> <PARA> </CHAPTER> <xsl:template match="CHAPTER> </xsl:template> In above situation, how can I write XSL such that, when I'm in CHAPTER element, I'm able to find out, How many child elements are there? Thanx, in advance. ######################################## Surendra Moghe Ditools Software (India) Pvt. Ltd. smoghe@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
|