At 2007-11-20 09:52 +0100, Keld Jørn Simonsen wrote:
>The problem is that the registries relevant, that I know of, that is the
>IANA registry and the ISO 15897 registry, both have C0 and C1 in most of
>their definitions of charsets.
>
>And anyway I don't see any harm in allowing such characters in markup,
>as long as we don't try to parse them.
Keld, XML 1.0 doesn't even allow them to be
present either as C0 characters or escaped as numeric character references.
XML 1.1 doesn't allow them to be present but does
allow all but NUL to be escaped as numeric character references.
From day 1 of DSDL we've stated that DSDL must conform to XML.
>Anyway, what would you do if a control character beyond the whitespaces
>shows up in the markup? Treat the whole markup as invalid?
XML 1.0 section 2.2 enumerates the allowed characters.
XML 1.1 section 2.2 also does so, indicating which ones must be escaped.
>For C1, a number of coded character sets use this range, including many
>Microsoft charsets, and ISO 10646.
>
> > Furthermore, allowing control characters reduces spare code-point
> > redundancy which is useful for wrong encoding detection. XML 1.1 adopted
> > this approach when, even though it allows NCRs from C1 range, it does
> > not allow C1 characters directly expressed.
>
>What about CP1252 etc?
Irrelevant.
XML is based solely on Unicode. If an XML
processor deigns to support the encoding=
declaration in the XML declaration it is still
obligated to deliver Unicode characters to its invoking application.
. . . . . . . . . . Ken
-- Comprehensive in-depth XSLT2/XSL-FO1.1 classes: Austin TX,Jan-2008 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/d/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/d/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal -- DSDL members discussion list To unsubscribe, please send a message with the command "unsubscribe" to dsdl-discuss-request@dsdl.org (mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)Received on Tue Nov 20 23:49:02 2007
This archive was generated by hypermail 2.1.8 : Sat Nov 24 2007 - 10:23:08 UTC