Re: How to add a "less than" or "greater than" sign?
Im trying to create this as the output
The reason it doesn't work is that the rules of XML itself forbid this kind of thing -- nothing really to do with XSLT. Since your stylesheet is itself an XML document, you can't double-up on the < and > characters within the stylesheet's tags any more than you can in any other XML document.
If, as I suspect, you're trying to create an element whose name depends on the value of an attribute, you might want to take a look at using xsl:element. This works something like the following (don't have an XSLT processor handy to test it):
<xsl:element name="@Type"> myvalue </xsl:element>
which places into the result tree an element named ATAG (*if* the value of the Type attribute is "ATAG"), which contains the string " myvalue ".
================================================================ John E. Simpson | "After they make styrofoam, what do http://www.flixml.org | they ship it in?" (Steven Wright) simpson@xxxxxxxxxxx |
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