[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: number of particular sub elements
> so if the context node was 'x' I want to the number of 'y' > sub elements: > > <x> > <z /> > <y /> > <z /> > <y /> > <z /> > </x> > > So want to get the number of 'y' elements which in this case is 2. <xsl:variable name="count-of-y" select="count(y)"/> Michael Kay http://www.saxonica.com/
|
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
|