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

RE: disable-output-escaping

Subject: RE: disable-output-escaping
From: Benjamin Franz <snowhare@xxxxxxxxxxx>
Date: Mon, 1 Jul 2002 08:42:59 -0700 (PDT)
disable output escaping default
On Mon, 1 Jul 2002, CROFT, MICHAEL wrote:

> The & is a character that could be entered by the user, I have no control
> over what they enter.  It is a dynamic process.  I need to tell the XML
> parser to treat any text entered by the user as text.

Ok. Then what you have is a _data entry_ issue, not an _output_ issue.  

There are a largish number of character 'values' that could be entered by
a user that will render your XML _syntactically_ invalid. So, you _MUST_
have a 'prefilter' on your storage system to escape all characters that
must be escaped (&, ', " and < would be good candidates) and _removes_ all
characters that are flat illegal. You will need to consult the XML spec at
W3C for particulars. And don't forget character encoding issues - XML by
default uses UTF-8 - while many clients use either ISO8859-1 or whatever
their desktop default is under windows. Mixing encodings is a Bad Thing 
(tm).

Otherwise, your best bet is to Base64 encode _all_ data entered by the 
user for storage and post-process the base64 data back into the raw 
output you want.

-- 
Benjamin Franz

The only way of discovering the limits of the possible is 
to venture a little way past them into the impossible.

                              ---Arthur C. Clarke


 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.