[xml] Re: Numeric Entities

Date view Thread view Subject view Author view

From: richard@brainstorm.co.uk
Date: Mon Sep 25 2000 - 08:56:22 EDT


On Mon, 25 Sep 2000 14:30:19 +0200, helge.hess@skyrix.com wrote:
> Hi,
>
> is it correct behaviour that
>
> <string>&#7;</string>
>
> doesn't work (CharRef: invalid xmlChar value 1) ? I would expect that I
> can encode/escape any unichar that way ?
>

As far as I can see, the spec says that libxml is correct - and you can't
encode/escape all characters that way - it seems a very odd restriction to me
though.

>4.1 Character and Entity References
>
>[Definition:] A character reference refers to a specific character in
>the ISO/IEC 10646 character set, for example one not directly accessible
>from available input devices.)
>
>Well-Formedness Constraint: Legal Character
>Characters referred to using character references must match the
>production for Char.

And the production for char is -

> Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]
> | [#x10000-#x10FFFF]

Which would seem to exclude almost all ascii control characters.

I'd welcome an opinion from experts though.

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Sep 25 2000 - 09:43:59 EDT