Re: [ssax-sxml] Serialization of SXML, Interpreting Namespaces
Brought to you by:
oleg
From: Kirill L. <lis...@ac...> - 2002-08-05 20:17:49
|
Hello! On Thu, 1 Aug 2002 Ben...@ao... wrote: > Below I describe how I plan to handle namespaces. But one preliminary: > while in the SXML specification (2.1), one can write > (html:a (@ (html:href "url")) > (*namespaces* (html "http://w3c/schemas/html")) > "a link") > it seems in the latest version of SXML tools that the preferred way now > is to embed the *namespaces* node in an auxillary node. Am I correct to > assume that the SXML spec is evolving in this direction? > Yes, you are right. And even more: prefered location for *namespaces* nodes in SXML tree is aux-list of *TOP* node. > 1. Where a *namespaces* node is attached to a *top* node, these > namespace-prefix declarations are serialized as part of the single > XML element which is a child of *top*. cur-ns-env is updated with these > bindings. If a document has no XML prefix re-definitions, then all *namespaces* nodes may be listed in *TOP*'s aux-list. Thus, most of real life (S)XML documents may be represented this way. Best regards, Kirill. |