OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Impact of xml:space="preserve" on line break normalizing?

[ Lists Home | Date Index | Thread Index ]

David Carlisle wrote:

>   Here's a twist on this issue.  Suppose that an element has an
>   xml:space="preserve" attribute.  Do the line breaks in its content get
>   normalized?
>
> yes logically the normali{s|z}ation happens before parsing, so isn't
> affected by XML syntax.

Thanks David.  Okay, then here's a real brain teaser:

In the XML Schema specification, Section F.1.1 Character Class Escapes, it
includes regular expressions for
\n the newline character line-feed (#xA), and \r the return character (#xD),
as well as the Unicode separator Category Escape (Z, Zs, Zl, Zp).

Why even have these if the end-of-line handling in XML 1.0 or 1.1 always
normalizes these to line-feed (#xA)?

/Roger






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS