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]
Other format: [Raw text]

Re: apolying xsl:key to similar looking node names


KUMAR NINGASHETTY wrote:
> Thankx for the reply .
> 
> But i have to use xsl:key in the ffollowing ormat 
> <xsl:key name="..."  match="..." use="..."/> 
> 
> And that will  look for matching text() in the node but not for matching nodes that can have any text ...
> I am looking for matching nodes across xml that can have text ...

Perhaps you want
   <xsl:key name="elements" match="*" use="name()"/>

Then
   select="key('elements',name())"
will match all elements with the same name as the
context element.


J.Pietschmann


 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]