This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: apolying xsl:key to similar looking node names
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 01 May 2002 21:58:35 +0200
- Subject: Re: [xsl] apolying xsl:key to similar looking node names
- References: <sccfffbb.035@deltafunding.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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