[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Matching two attribute values
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 19 Jun 2008 16:49:33 +0200
Pankaj Chaturvedi wrote:

I am trying to match values of id  of <author> and affilref of <contactinfo>
and do the transformation as the out shown above.

<xsl:template match="author"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> <xsl:copy-of select="../contactinfo[@affilref = current()/@id"/> <xsl:copy> </xsl:template>

--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member