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 John Cowan other posts by this author
Oct 16 2002 1:23PM messages near this date
Re: [xml-dev] The XML 1.1 Candidate Recommendation is published | Re: [xml-dev] The XML 1.1 Candidate Recommendation is published
Amelia A Lewis scripsit:

>  Why this is I don't understand.  If you're allowing all sorts of control
>  characters, forced encoded, what difference would it make to allow a
>  null?  Either the things stay safely encoded, in which case null is no
>  different than the other controls, or they don't, in which case null is
>  no different than the other controls.

On the document side, that's true, but on the API side, nulls cause
problems because of interoperation with C.  All APIs known to me expand
character references.

>  Here, I get confused.  I went and looked at the 1.1 spec.  There's a
>  change to the discussion of line endings, which suggests that #xD #x85
>  and #x85 and #x2028 get normalized to #xA.  Like #xD #xA or #xD followed
>  by anything else.

Quite right.

>  However, the production for S is not changed, so although these things
>  participate in line endings, they aren't space characters.  Is that
>  correct?

Yes.

>  If the answer is "it doesn't matter, line end processing happens before
>  checking for space," then the S production still ought to be changed
>  (for clarity), to remove #xD, which is as can't-appear in that situation
>  as any of the new bits.  But it makes more sense to me that anything
>  considered to be part of a line ending ought to be listed in S, which
>  would become: #x9 #xA #xD #x20 #x85 #x2028.  I don't understand the
>  inconsistency.

Line-end processing does happen before the S production comes into play;
however, it is possible to "break" the rules and get a #xD matching S
by very convoluted tricks with parameter entities.  We left #xD in S
for backward-compatibility reasons, but decided not to add any of the
new line terminators to it.

(Richard Tobin, can you give an example of the trick in question?)

>  But the whole thing seems to be nearly as weird as the Namespaces 1.1
>  rec, which seems to think that because the only way to have no namespace
>  is to allow undeclaration of the default namespace, then named prefixes
>  also ought to be undeclared.  Pure hobgoblin: foolish consistency.

Not foolish, not hobgoblin.  It's about not carrying around useless namespace
declarations when you use XInclude to embed part of a document in another
document and then reserialize the result as XML.

-- 
John Cowan  jcowan@[...].com  www.ccil.org/~cowan  www.reutershealth.com
"If I have not seen as far as others, it is because giants were standing
on my shoulders."
        --Hal Abelson

-----------------------------------------------------------------
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