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 |
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']"/>
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] possible to call apply-templa, Andreas Schlegel | Thread | Re: [xsl] possible to call apply-te, Andreas Schlegel |
Re: [xsl] XPath Error, Geert Josten | Date | Re: [xsl] XPath Error, Dharm Baval |
Month |