[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: 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
|
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
|