[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Matching two attribute values


Subject: RE: [xsl] Matching two attribute values
From: "Pankaj Chaturvedi" <pankaj.chaturvedi@xxxxxxxxx>
Date: Thu, 19 Jun 2008 20:43:11 +0530

Thanks Martin!!! That's does the trick. With few modification in below code
it will meet requirements.

Thanks again. 


Best,

Pankaj Chaturvedi

============================================================================
================


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/


Confidentiality Notice:" This message and any attachment(s)
contained here are information that is confidential, proprietary to
IDS Infotech Ltd. and its customers.
Contents may be privileged or otherwise protected by law. The
information is solely intended for the individual or the entity it
is addressed to. If you are not the intended recipient of this
message, you are not authorized to read, forward, print, retain,
copy or disseminate this message or any part of it. If you have
received this e-mail in error, please notify the sender immediately
by return e-mail and delete it from your computer."


Current Thread