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

Re: Re: Where does the "nothing left but toolkits" mythcome fr


david uche
Kurt Cagle wrote:


> used for denoting that section.  I should also point out that CDATA
> sections become almost necessary when dealing with "unsafe" content -
> XML wrappers holding blog feedbacks written by people who don't have
> the first clue about why ampersands in text are bad for your
> application

I would say rather that CDATA sections are dangerously close to solving 
the problem of wrapping unsafe content; close enough that they convince 
people to use them without actually solving the problem. Three issues:

1. They cannot contain ]]>. Therefore the text must be scanned anyway to 
be safe.

2. They cannot contain characters from outside the current character set 
(though this is not really a problem if the document is written in UTF-8 
or another Unicode encoding).

3. They cannot contain most C0 control characters.

Consequently, you can't just take a random chunk of text and throw it in 
a CDATA section. You might as well as use numeric character references 
for this use case, and you'd be less likely to have problems if you did.

-- 
Elliotte Rusty Harold  elharo@m...
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.