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

Re: An unclear point with W3C XML 1.0 Specification


w3c xml escape
Hi Collin,

If you are talking about the traditional xml spec I may
not be the best person to explain it.

However what we do with our string literals is "properly"
escape them. That is, have a scheme to embed double quotations
and other noxious characters in a way that doesn't cause a
problem to the parser.

It happens all the time, especially with power tools. eg:

 <product_item>
   part_description&="3 1/2^" Spanner"
 </product_item>

What we do, is use the ^ character to escape. But there
may be other preferences.

So after reading out the value, what is returned is:

 3 1/2" Spanner

It's pretty simple but works without hiccups.

Best Regards

David
Sydney, Australia

Quoting Collin Hsu <collin@w...>:

> {{ //2.3 Common Syntactic Constructs, XML 1.0 Third Edition
> //http://www.w3.org/TR/2004/REC-xml-20040204/#sec-common-syn
>
> Literal data is any quoted string not containing the quotation mark used as
> a delimiter for that string. Literals are used for specifying the content of
> internal entities (EntityValue), the values of attributes (AttValue), and
> external identifiers (SystemLiteral). ___Note that a SystemLiteral can be
> parsed without scanning for markup.___
>
> }}
>
>
> I wonder what the last sentence really wants to say.
>
> I think I must have missed certain backgroud knowledge about it.
>
> Could you give me some explanation ?
>
> Thank you!
>
>
> Collin
>




----------------------------------------------------------------

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-2007 All Rights Reserved.