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

Re: Disable Output Escaping - really useful

Subject: Re: Disable Output Escaping - really useful
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Wed, 22 Mar 2000 08:33:42 -0800
disable oracle xsl server
| I wrote> Any use of disable-output-encoding is _always_ a hack.
| 
| Steve Muench writes.
| > The disable-output-escaping="yes"
| > is the supported way to "pass through" these chunks of 
| > markup on the way to building a web page to deliver to
| > the browser.
| 
| Will this still work once XSL engines get embedded at the client side?
| My understanding of the process is that it shouldn't (but I suppose if
| enough people do this then the browsers will have to make it work, somehow.)
| 
| It seems to me that whatever the value of disable-output-escaping the
| result tree just contains a text node, so if you are stuffing the output
| straight into a browser, then it will not work, unless you write out the
| entire result to a file (or in memory string) and re-parse.

When the server delivers XML to the browser, it does so
(at least in the typical web server over HTTP scenario)
as a text document of MIME type "text/xml". This means
that the browser has to in any event parse what the
server is sending it if it is to make sense of the structure.
The XML isn't sent as a pre-parsed DOM tree over the "wire".

I agree that in many cases where people are thinking in terms of
"just-burp-out-an-open-tag-here-and-that'll-get-the-job-done",
rather than thinking of outputing balanced trees, then it could
be deemed a hack. However, since oftentimes what's contained
in the database columns are balanced trees of XML serialized
as text, then:

  <xsl:value-of disable-output-escaping="yes" select="DOC_FRAG"/>

is, from the point of view of what the final document being
delivered over the web, kind of like including an external
entity reference that happens to be stored in a column in the
database. Not exactly, but conceptually similar...

______________________________________________________________
Steve Muench, Lead XML Evangelist & Consulting Product Manager
Business Components for Java Dev't Team, Oracle Corporation



 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.