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

RE: XSL transform escape question

Subject: RE: XSL transform escape question
From: "Martinez, Brian" <brian.martinez@xxxxxxxx>
Date: Mon, 9 Sep 2002 11:20:34 -0600
xsl disable escape
> From: Holmberg Rick-ra0119 [mailto:Rick.Holmberg@xxxxxxxxxxxx]
> Sent: Monday, September 09, 2002 9:35 AM
> Subject:  XSL transform escape question
> I am processing an xml file with html tags in it. When I do 
> the transform (using the transform method with the SAX 
> parser) it is translating the < to &lt and > to &gt. I just 
> want the < to remain as a < and not have the conversion take 
> place. I tried doing the following but it is not working 
> either...within the "answer" tags in the xml file there are 
> tags which make up a table in html ( ie: <TR><TD> </TD></TR> etc)
> <xsl:value-of select="answer" disable-output-escaping="yes"/> 
> Any ideas on how to do this?

You may not have your output method set to HTML.  In the absence of an
explicit <xsl:output/> element (or <html> tags in your template), the parser
will default to XML output, which ignores the disable-output-escaping
attribute if you're writing out a result tree fragment.  Use <xsl:output
method="html"/> or add <html> to your template.

See http://www.zvon.org/xxl/XSLTutorial/Output/example61_ch14.html.


| brian martinez                              brian.martinez@xxxxxxxx |
| senior gui programmer                                  303.708.7248 |
| trip network, inc.                                 fax 303.790.9350 |
| 6436 s. racine cir.                             englewood, co 80111 |
| http://www.cheaptickets.com/                   http://www.trip.com/ |

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.