This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



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@imag.fr
      http://www-clips.imag.fr/geta/mathieu.mangeot

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]