[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Template matching similiar names
Hello All, 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. What I get back is this: <class element="root"> <doc>Docs for root</doc> </class> <class element="roothome"> <doc>Docs for root</doc> </class> No matter what I've done, I get the same thing, in general my tries have looked like this: <xsl:template match="xsd:class..."> <xsl:copy> <xsl:copy-of select="@*"/> <doc>Docs for root</doc> .... Is there a way to make a very exact match with an attribute? Thanks, Cody Holbrook (and many variations, including two starts-with template matches that worked, but not well) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|