This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Compare attribute values (fwd)


You should be able to do it like this: 

<xsl:value-of select="//nameloc[@id = current()/@linkend]"/>

Or if you've declared the ID attribute on nameloc as of type ID in a DTD,
you can do 

<xsl:value-of select="//nameloc[id(current()/@linkend)]"/>

Linda

> -----Original Message-----
> From: Jany Quintard [mailto:quintard.j@cgi.fr]
> Sent: Wednesday, February 16, 2000 11:44 AM
> To: xsl digest
> Subject: Compare attribute values (fwd)
> 
> 
> It seems that my question with same subject was
> - unclear
> - stupid
> - nonsensical
> - other possibilites...
> 
> In the hope that the first guess is the good, I will try to 
> reformulate it
> :
> When encountering an l element, I want to select an element nameloc
> somewhere in the tree, whose ID has the same value as 
> attribute linkend of
> the current one (l).
> So, the tries I made failed and I don't see how to express 
> the selection
> condition. 
> 
> Any clue.
> TIA. Jany.
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]