xsl-list
[Top] [All Lists]

Re: [xsl] XPath attribute expression

2006-12-18 16:59:16
"Hintz, David L" wrote:

  Hi

<topLevel>
   <ents>
      <ent name="abc"><value>test1</value></ent>
      <ent name="def"><value>test2</value></ent>
   </ents>
.
.
.
<para>This is a <entRef name="def"/>.</para>

What XPath expression can I use in context of this <entRef>
element to reference the content of the <value> element that
matches the <ent> name attribute

  You must test that ent/@name is equal to the @name of the XSLT
context node (the entRef):

    /topLevel/ents/ent[(_at_)name eq current()/@name]/value

  Regards,

--drkm

























        

        
                
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.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>
--~--

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