[xsl] why this expression: match="@foo='bar'" does not work with XT ?

Subject: [xsl] why this expression: match="@foo='bar'" does not work with XT ?
From: Mathieu Mangeot Lerebours <Mathieu.Mangeot@xxxxxxx>
Date: Sat, 6 Jan 2001 17:03:57 +0100
Hello everybody and best whishes for 2001 !

I read all the documents about XSLT I could find (XSLTand XPATH recommendations, various FAQs)
but I was unable to solve my problem.

Could you help me please ?

I'm currently using XT from James Clark.

I want to create a template for an attribute whose name foo is equal to a particular
string bar.

I wrote the following template:

<xsl:template match="@foo='bar'">
...
</xsl:template>

But this generates the following error: unexpected token.

For the moment, I'm using this template: 

<xsl:template match="@foo">
...
</xsl:template>

But it is not what I want because it applies on too much attributes.

Does anyone have an idea of what's wrong or a solution ?

Thanks a lot.
-- 
Mathieu MANGEOT-LEREBOURS |  Phone : +33 4 76 51 43 80
GETA-CLIPS-IMAG  BP 53    |  Fax     : +33 4 76 51 44 05
F-38041 Grenoble cedex 9  |  E-mail: Mathieu.Mangeot@xxxxxxx
      http://www-clips.imag.fr/geta/mathieu.mangeot

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread