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

RE: Accessing the Nth Occurrence of an Element

Subject: RE: Accessing the Nth Occurrence of an Element
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 16 Sep 2008 09:42:30 +0100
RE:  Accessing the Nth Occurrence of an Element
> I want to get the name of the fifth monkey (Phil). I thought 
> this would do it:
> 
> ----------------------------------
> <xsl:template match="forest">
> <xsl:text>The fifth monkey's name is: 
> </xsl:text><xsl:value-of select="//monkey[5]/@name"/> </xsl:template>
> ----------------------------------
> 
> But this doesn't seem to work.

This question was last asked (and answered) just 9 hours before your post,
and before that about a week ago.

Hope you'll stick around on the list for a bit now. Read what comes, you can
learn a lot from it, and avoid the embarrassment of asking questions that
have been answered so recently.

Michael Kay
http://www.saxonica.com/

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.