Lists Home |
Date Index |
- From: John Cowan <firstname.lastname@example.org>
- To: email@example.com
- Date: Sun, 28 Mar 1999 01:16:48 -0500 (EST)
David Megginson scripsit:
> At least when I was maintaining it, AElfred didn't perform all of the
> required well-formedness checks for different ranges of Unicode
> characters allowed and not allowed in names, attribute values,
> character data, etc. I tried adding it, but it bloated the code by
> about 7-8K (much more than parsing the prolog and DTD).
According to the corrigenda, attribute values and character data
can now contain anything except (hex) 0000-0008, 000B-000C, 000E-001F,
(ASCII controls), D800-DFFF (surrogates), and FFFE-FFFF (non-characters).
Everything else should be allowed.
There are some rules in Appendix B of XML that allow you to leverage
the methods in Character. When I get a chance, i"ll write some Java
code that correctly recognizes XML name and name-start characters.
The big tables are already in the java.lang.Character class.
John Cowan firstname.lastname@example.org
e'osai ko sarji la lojban.
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)