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

RE: Template matching similiar names

Subject: RE: Template matching similiar names
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Mon, 7 Apr 2003 11:33:41 -0600
similia products
> From: Holbrook, R Cody (Cody) [mailto:rch7@xxxxxxxxx]
> Sent: Monday, April 07, 2003 11:05 AM
> Subject:  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[@element='root']">
  <!-- do stuff -->
</xsl:template>

hth,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| 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


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.