Re: more examples of namespaces needed in output (was: Re: call a week from today, right?)

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