This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: why this expression: match="@foo='bar'" does not work with XT ?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] why this expression: match="@foo='bar'" does not work with XT ?
- From: "G. Ken Holman" <gkholman at CraneSoftwrights dot com>
- Date: Sat, 06 Jan 2001 11:16:57 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
A template match attribute must be a pattern expression and you have used a
boolean expression.
At 01/01/06 17:03 +0100, Mathieu Mangeot Lerebours wrote:
>I want to create a template for an attribute whose name foo is equal to a
>particular
>string bar.
<xsl:template match="@foo[.='bar']">
The above matches all attributes named 'foo' whose value is equal to 'bar'.
I hope this helps.
............... Ken
--
G. Ken Holman mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
Web site: XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book: Practical Transformation Using XSLT and XPath ISBN1-894049-05-5
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training: 2001-01-27,2001-02-21,
- 2001-02-27/03-01,2001-03-05/07,2001-03-21,
- 2001-04-06/07,2001-05-01,2001-09-19
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list