Subject: Re: [xsl] using step or following-sibling? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 03 Dec 2004 17:17:41 -0500 |
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()?
I hope this helps, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] using step or following-sibli, Keller, Matt | Thread | Re: [xsl] using step or following-s, Geert Josten |
[xsl] using step or following-sibli, Keller, Matt | Date | Re: [xsl] using step or following-s, Geert Josten |
Month |