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: "Andreas Schlegel" <schlegelaw@xxxxxx>
Date: Sun, 31 Oct 2004 16:59:11 +0100 (MET)
Well, that's easy ... and it works :-)

Enjoy your weekend,
Andreas


> 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