[dsdl-discuss] Re: Namespace renaming

From: Martin Bryan <martin@is-thought.co.uk>
Date: Fri Dec 09 2005 - 18:48:01 UTC

Jirka

>The real problem are QNames in attribute values like:

<foo:bar atr="foo:baz"/>

>Does the value "foo:baz" menas "foo:baz" or "baz" in the namespace
bounded to the prefix "foo". There is no general way ho to recognize
this situation and thus it is safe to not change prefixes. The same
approach is used in Canonical XML:

http://www.w3.org/TR/xml-c14n.html#NoNSPrefixRewriting

>I think that Ken was also afraid exactly about this issue.

As far as I am concerned what is in the attribute value is a name token. It
is only when it is used in another context, e.g. as the value of a match or
select pattern, that it becomes a qualified name. At this point you need to
be able to "expand" the prefix into a URI. My problem is that I need a way
of passing both the URI and the prefix to the transformed file, and I don't
want users to have to repeat the prefix n-hundred times.

Martin

--
DSDL members discussion list
To unsubscribe, please send a message with the
command  "unsubscribe" to dsdl-discuss-request@dsdl.org
(mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)
Received on Fri Dec 9 19:48:24 2005

This archive was generated by hypermail 2.1.8 : Sun Dec 11 2005 - 19:43:01 UTC