Subject: RE: [xsl] XSL transform escape question From: "Martinez, Brian" <brian.martinez@xxxxxxxx> Date: Mon, 9 Sep 2002 11:20:34 -0600 |
> From: Holmberg Rick-ra0119 [mailto:Rick.Holmberg@xxxxxxxxxxxx] > Sent: Monday, September 09, 2002 9:35 AM > Subject: [xsl] 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 < and > to >. 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. cheers, b. | 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL transform escape ques, Mike Brown | Thread | Re: [xsl] XSL transform escape ques, David Carlisle |
RE: [xsl] i dont understand this zv, Stuart Brown | Date | [xsl] loop problem (NEWBIE), thomas |
Month |