Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xslt problem

Status
Not open for further replies.

gareth7

Programmer
Oct 11, 2002
35
GB
I've a problem with trying to output special characters with cold fusion and xsl.

All the xsl forums I've seen say to use the following code to output the "<" character:
<xsl:text disable-output-escaping="yes">&lt;</xsl:text>

But cold fusion is giving me the following error:javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The content beginning "<<" is not legal markup. Perhaps the "<" (&#3c;) character should be a letter.

Does anyone have any suggestions?
Does the cold fusion xsl transformer not support the full specification?

Thanks
 
have you tried surrounding it with spaces?
<xsl:text disable-output-escaping="yes"> &lt; </xsl:text>

just to see what happens?

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
I tried adding spaces and get the following error message:

A [Transformer] object cannot be created that satisfies the configuration requested. This could be due to a failure in compiling the [XSL] text. javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The content beginning "< " is not legal markup. Perhaps the " " () character should be a letter.

I was short on time, so just re-wrote the whole thing using cold fusion. This was the first time I've tried using xslt - I haven't been that impressed with it. I don't know if I'll use xslt again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top