From: Holbrook, R Cody (Cody) [mailto:rch7(_at_)avaya(_dot_)com]
Sent: Monday, April 07, 2003 11:05 AM
Subject: [xsl] Template matching similiar names
I'm having difficulty distinguishing between classes with
similiar names.
I start with the following XML
<class element="root">
</class>
<class element="roothome">
</class>
The template match I'm using is incorrect as I only want to
have the doc tags added to the class with the element attribute root.
Try using a predicate in the match attribute:
<xsl:template match="xsd:class[(_at_)element='root']">
<!-- do stuff -->
</xsl:template>
hth,
b.
| brian martinez
brian(_dot_)martinez(_at_)cendant(_dot_)com |
| lead gui programmer 303.708.7248 |
| cheap tickets, part of trip network fax 303.790.9350 |
| 6436 s. racine cir. englewood, co 80111 |
| cendant travel distribution services http://www.cheaptickets.com/ |
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list