xsl-list
[Top] [All Lists]

RE: [xsl] Matching two attribute values

2008-06-19 08:12:28
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[(_at_)affilref = current()/@id"/>
     <xsl:copy>
   </xsl:template>

-- 

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)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."

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>