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

Re: Retrieving @Name attribute of following Item.

Subject: Re: Retrieving @Name attribute of following Item.
From: "Christopher R. Maden" <crism@xxxxxxxxx>
Date: Wed, 14 Nov 2001 02:50:27 -0800
item name
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 02:24 14-11-2001, Ian Blizard wrote:
>After I caused somewhat of a ruck mentioning flowers and chocolates, I
>now offer a small invisible prize to the solver of my next question.

We claim what it has in its pocketses, we does.

>XML:
>
><some-other-node>
>   <Data>
>     <Item Name="bob">val1</Item>
>     <Item Name="gary">val2</Item>
>   </Data>
></some-other-node>
>
>I simply want to get the @Name attribute from the following Item node,
>in the current node.
>
>I'm thinking I may need to use the position() XPATH function?
>
>e.g.
>
><xsl:value-of select="../Item[position()=position() + 2]"/>
>
>Or am I barking up the wrong tree?

Yep.  You don't say what the current node is, though it sounds like an 
Item.  Try this:

following-sibling::Item[1]

or

following-sibling::*[1]

~Chris
- -- 
Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc.
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://www.hmmci.com/ > <URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBO/JMcqxS+CWv7FjaEQLTJwCePedSi5/kOGQa3v3QiIvLLhnDM3oAn24v
lcbR5xSnq6gLK9kcX/7VTy0p
=2RzK
-----END PGP SIGNATURE-----


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.