Re: [xsl] using step or following-sibling?

Subject: Re: [xsl] using step or following-sibling?
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Fri, 03 Dec 2004 23:21:12 +0100
<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