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

Re: SGML query: SHUNCHAR


shunchar


John Cowan <jcowan@r...> wrote:

| Am I right in thinking that a SHUNCHAR should not appear as-is in an 
| entity,

ISO 8879 says

4.297 shunned character (number): A character number
...that should be avoided by documents...because some systems
might erroneously treat it as a control character.

Note the "should" there, and that "there is no statement of what an SGML system
should do if it does find such characters"[2]   "Shunned does not mean prohibited"[3]
but rather "ignored"[4]

So it is not an error for an (external) entity to contain a shunned character (number). Whether a processor strips out a shunned character, or labels it in the infoset, or 
treats the shunning as a matter of human documentation is not mandated by  
ISO 8879 AFAICS.

If the file is coming in from the outside world, it is clearly a mistake if 
there is a control character in the data, and an entity manager which uses
the "shunned characters" to strip out the control char is not doing the wrong thing.
(I would say that for internal entities, it is a different matter.) The right
thing to do does not come from ISO 8879": it just provides a way
to label characters with their class.

Ultimately, boils down to whatever SP does.

Cheers
Rick Jelliffe

[1] http://lists.w3.org/Archives/Public/w3c-sgml-wg/1997Jan/0174.html 
[2] http://lists.w3.org/Archives/Public/w3c-sgml-wg/1997Jan/0177.html
[3] http://www.webreference.com/dlab/books/html/3-4.html
[4] http://www.sgml.u-net.com/book/sgml-4.htm

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.