Subject: [xsl] using step or following-sibling? From: "Keller, Matt" <Keller.Matt@xxxxxxxxxxxxx> Date: Fri, 3 Dec 2004 15:00:44 -0600 |
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] including external XML fi, JBryant | Thread | Re: [xsl] using step or following-s, Wendell Piez |
Re: [xsl] XML Data Islands, XML Men, xptm | Date | Re: [xsl] using step or following-s, Wendell Piez |
Month |