Re: [xsl] possible to call apply-templates only for a specific attribute

Subject: Re: [xsl] possible to call apply-templates only for a specific attribute
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Sun, 31 Oct 2004 13:24:59 +0100
Andreas Schlegel wrote:

Hi,

is it possible to select all elements which have a specific attribute value by calling apply-templates?

For example: can I modify this statement <xsl:apply-templates select="/PD/CHECKPOINTS/CHECKPOINT"/> to select only such elements that have an attribute @label='test'?

Easy: <xsl:apply-templates select="/PD/CHECKPOINTS/CHECKPOINT[@label='test']"/>

And now I am going to enjoy my weekend.. ;>

Grtz,
Geert

--
Geert.Josten@xxxxxxxxxxx
IT-consultant at Daidalos BV, Zoetermeer (NL)

http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464

GPG: 1024D/12DEBB50

Current Thread