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

Re: outputting escaped characters without converting

Subject: Re: outputting escaped characters without converting
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 1 Jun 2001 10:21:33 -0600 (MDT)
.net converting escaped characters
Heather Lindsay wrote:
> hi everyone,
> 	I have an XML document with HTML impedded in it. 
> Relevant XML segment:
> <InboxHeader>
> 	<self type="RevX/Inbox/InboxHeader">
> 		<host>NODEA.RevX.Inbox</host>
> 		<instance>101001000000001049</instance>
> 	</self>
> 	<description>Test Process 111 - Step1 - Product Line : &lt;img
> src=&quot;C:\Program Files\Microsoft
> Office\Office\Bitmaps\Styles\STONE.BMP&quot;&gt;</description>
> </InboxHeader>
> 
> I want <xsl:value-of select="description"/> to output as:
> Test Process 111 - Step1 - Product Line : &lt;img src=&quot;C:\Program
> Files\Microsoft Office\Office\Bitmaps\Styles\STONE.BMP&quot;&gt;
> Instead of:
> Test Process 111 - Step1 - Product Line : <img src="C:\Program
> Files\Microsoft Office\Office\Bitmaps\Styles\STONE.BMP">

I would think that you would normally get it exactly the way you want it,
unless your output method is "text". Does your stylesheet set the output
method to be "html" or "xml"?

The text node child of the 'description' element contains the unescaped
text. Usually, the output method determines how it is serialized and the
characters are re-escaped if the desired output format is HTML or XML. Or
are you using some other serialization mechanism? Producing a DOM, maybe, 
and serializing specific nodes improperly?

   - Mike
_____________________________________________________________________________
mike j. brown, software engineer at  |  xml/xslt: http://skew.org/xml/
webb.net in denver, colorado, USA    |  personal: http://hyperreal.org/~mike/

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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