xsl-list
[Top] [All Lists]

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

2004-10-31 05:24:59
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[(_at_)label='test']"/>

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

Grtz,
Geert

--
Geert(_dot_)Josten(_at_)Daidalos(_dot_)nl
IT-consultant at Daidalos BV, Zoetermeer (NL)

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

GPG: 1024D/12DEBB50


<Prev in Thread] Current Thread [Next in Thread>