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