Re: [xsl] collecting ALL nodes with a specific attribute on all levels

Subject: Re: [xsl] collecting ALL nodes with a specific attribute on all levels
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Wed, 25 Jan 2006 13:48:38 +0100
Make sure that all templates of elements with this attribute contain a <xsl:apply-templates select="@*" /> or a <xsl:apply-templates select="@property" />

And write a template for the property attribute itself..

Cheers,
Geert

Alexander Stippler wrote:

Hi,

I have several XML documents where some tags on different levels and with different structure share
some attribute, let's say 'property'. How do I apply templates to all these nodes. There are different
templates for a match to e.g. 'XXX/@property' or 'YYY/ZZZ/WWW/ @property'. So how can I process all tags in all XML-documents having the property attribute regardless the level the 'live'.
Sorry for the unprecise use of terms, but I'm quite a newbie to XSLT.


regards,
Alex

Current Thread