Re: [xsl] XPath attribute expression

Subject: Re: [xsl] XPath attribute expression
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Tue, 19 Dec 2006 00:56:49 +0100 (CET)
"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[@name eq current()/@name]/value

  Regards,

--drkm

























	

	
		
___________________________________________________________________________ 
Yahoo! Mail riinvente le mail ! Dicouvrez le nouveau Yahoo! Mail et son interface rivolutionnaire.
http://fr.mail.yahoo.com

Current Thread