ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] The XML 1.1 Candidate Recommendation is published
by Karl Waclawek other posts by this author
Oct 16 2002 1:26PM messages near this date
Re: [xml-dev] Separation of Concerns (was Re: [xml-dev] The XML 1.1 Candidate Recommendation is published) | Re: [xml-dev] The XML 1.1 Candidate Recommendation is published
>  No, not at all!  XML 1.1 says that parsers should *check* normalization,
>  not that they should *perform* it.  So a parser that sees an e followed
>  by a combining acute should report the lack of normalization to the
>  calling application.
> 
>  This is a most important distinction.  XML *generators* should generate
>  normalized output; XML *accepters* should check normalization.

I don't understand the need for normalization checking.
The spec says this:

<quote> 
The purpose of this section is to strongly encourage XML processors to ensure that the creat
ors of
XML documents have properly normalized them, so that XML applications can make tests such as
identity comparisons of strings without having to worry about the different possible "spelli
ngs" of
strings which Unicode allows.
</quote> 

If Unicode allows strings to have different spellings, than this is a generic
problem for all applications processing Unicode strings. So why add the extra
complexity to an XML processor to check for normalization, so that an application
that would normally treat Unicode strings in a standard way suddenly can do it
differently, because the XML processor already takes care of part of it?

I am sure there will be (or are) generic libraries for that kind of
Unicode processing. To me this looks as if there is no proper
"separation of concerns", i.e. an XML processor should not concern
itself with the issue of normalization.

It may, however, make sense for generating canonical XML.

Karl



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
John Cowan
John Cowan
Rick Jelliffe
John Cowan
Rick Jelliffe
Rick Jelliffe
Rick Jelliffe
Rick Jelliffe
Richard Tobin
Tim Bray
Richard Tobin
Tim Bray
Richard Tobin
John Cowan
G. Ken Holman
John Cowan
Elliotte Rusty Harold
Amelia A Lewis
John Cowan
Richard Tobin
John Cowan
Amelia A Lewis
John Cowan
John Cowan
Rick Jelliffe
Karl Waclawek
Karl Waclawek
Karl Waclawek
Elliotte Rusty Harold
John Cowan
Jeni Tennison
John Cowan
Karl Waclawek
Elliotte Rusty Harold
Elliotte Rusty Harold
Elliotte Rusty Harold
Daniel Veillard
Elliotte Rusty Harold
John Cowan
David Carlisle
John Cowan
David Megginson
Tim Bray
John Cowan
Daniel Veillard
Elliotte Rusty Harold
Elliotte Rusty Harold
Elliotte Rusty Harold
Elliotte Rusty Harold

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved