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

RE: Number of records...

Subject: RE: Number of records...
From: "Tengshe, Ashish" <Tengshe.Ashish@xxxxxxxxxxxxx>
Date: Thu, 17 Jul 2003 11:59:24 -0500
xsl count number of records
Try

count function

as in

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="count(Tables/Table)"/>
</xsl:template>
</xsl:stylesheet>

Thanks,
Ashish

-----Original Message-----
From: jan.soer@xxxxxxxxx [mailto:jan.soer@xxxxxxxxx]
Sent: Thursday, July 17, 2003 11:36 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Number of records...


I have the next xml, and I want to know how many tables there are ? How can 
I do this ? (I do not want to loop with a for each if it's possible...)

So in this case the answer I need should be 3..
- <Tables>
  - <Table>
       <Name>TableName1</Name> 
    </Table>
  - <Table>
       <Name>TableName2</Name> 
    </Table>
  - <Table>
       <Name>TableName3</Name> 
    </Table>
- </Tables>

Regards 
Jan Soer

-- 
_____________________________________________________________________
2x sneller ADSL met Zon Breedband Family. In combinatie met ZonTel
nu voor maar 29 euro per maand. Bestel nu op www.zonnet.nl/breedband
Bovendien met gratis modem en geen aansluitkosten!


 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
  • Number of records...
    • jan . soer - Thu, 17 Jul 2003 12:36:13 -0400 (EDT)
      • <Possible follow-ups>
      • Tengshe, Ashish - Thu, 17 Jul 2003 13:00:02 -0400 (EDT) <=

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.