Re: non-XML characters (e.g. #1)

On Monday 03 January 2022 17:09:27 (+01:00), Steven Pemberton wrote:

> On Monday 03 January 2022 16:57:07 (+01:00), C. M. Sperberg-McQueen wrote:
>
> > There may be other ways to write the grammar so as to ensure that
> > a U+0001 in the input does not end up making it impossible for the
> > processor to produce XML output, although I cannot think of any off hand.
> > (If we had a way to replace a character with its hex code, I could
> > write a grammar to write out a U+0001 character as \u0001 or
> > &my-ncr-0001; or <?hex 0001?> or something similar, using a non-standard
> > method of escaping that character in an XML context (because there
> > is no standard way). But we don’t have that in ixml now and no one
> > has suggested it.)
>
> Actually, in the queue is the +"string" proposal:
>
> illegal: -#1, +"<?hex 0001?>";
> -#2, +"<?hex 0001?>";
should be 0002 of course
> {etc}
>
> Steven

Received on Monday, 3 January 2022 16:13:34 UTC