- From: Tom Hillman <tom@expertml.com>
 - Date: Tue, 13 Apr 2021 11:17:08 +0100
 - To: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>
 - Cc: Steven Pemberton <Steven.Pemberton@cwi.nl>, public-ixml@w3.org
 
Received on Tuesday, 13 April 2021 10:17:31 UTC
I was thinking about how namespaces were presented as pseudo-attributes to allow for DTD support.
Something like adding/editing the following lines of the grammar:
        ixml: S, (nsdeclare;rule)+.
   nsdeclare: "@xmlns", (":",namestart, namefollower*)?, S, ["=:"], S, string.
      prefix: namestart, namefollower*, ":".
        rule: (mark, S)?, name, S, ["=:"], S, -alts, ".", S.
       @name: prefix?, namestart, namefollower*.
It would remain the responsibility of the providers of the grammars to ensure that namespaces and prefixes match up and result in a valid document.
_________________
Tomos Hillman
eXpertML Ltd
+44 7793 242058
On 13 Apr 2021, 02:54 +0100, C. M. Sperberg-McQueen <cmsmcq@blackmesatech.com>, wrote:
>
> I wonder whether namespace support is a potential use case for some kind of generic annotation syntax that will be processed by processors that understand the annotations and ignored by others. XQuery has a reasonably well developed escape hatch of this kind, though I don’t understand its details. I spent some time thinking about it last fall, but all the details have seeped away again.
Received on Tuesday, 13 April 2021 10:17:31 UTC