[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: 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
expression match
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.