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

Re: using step or following-sibling?

Subject: Re: using step or following-sibling?
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Fri, 03 Dec 2004 23:21:12 +0100
xsl following sibling
<xsl:value-of select="following-sibling::row[1]/emp_nm" />

Cheers,
Geert

Keller, Matt wrote:
Let's say I have the following XML:


<top> <results> <row> <emp_nm>Bill Smith</emp_nm> </row> <row> <emp_nm>Sue Johnson</emp_nm> </row> <row> <emp_nm>Matt Keller</emp_nm> </row> </results> </top>


And in my xsl I have a template like this:


<xsl:template match="/top/results/row">
	<p>I like <xsl:value-of select="emp_nm"/> and I also like his or her follower, MY TROUBLE ZONE</p>
</xsl:template>

------------------

How in the world do I replace MY TROUBLE ZONE with the value of "emp_nm" in the following row? Not all following roles, just the very next row. And how can I do it w/out using position()?

Thanks,

Matt



-----Message Disclaimer-----

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to Connect@xxxxxxxxxxxxx and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act ("E-Sign")
unless a specific statement to the contrary is included in this message.




-- Geert.Josten@xxxxxxxxxxx IT-consultant at Daidalos BV, Zoetermeer (NL)

http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464

GPG: 1024D/12DEBB50

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.