[dsdl-discuss] Re: Namespace renaming

From: Jirka Kosek <jirka@kosek.cz>
Date: Fri Dec 09 2005 - 10:01:06 UTC

Martin Bryan wrote:

> Yes, the attribute problem scares me silly, especially when it comes to
> elements with a mix of namespaed and non-namespaved attributes such as (not
> that this is a valid example)
>
> <dsrl:my-element id="abc" dsrl:attribute="true">
>
> where the unqualified attribute is associated (indirectly) with the
> namespace of the parent element.

This is not problem at all. Attribute "id" in this example is in no
namespace, so it will remain untouched by namespace rewriting.

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.

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
                    Nejbližší termíny školení:
      ** XSLT 13.-16.3.2006 ** XML schémata 24.-26.4.2006 **
        ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 **
------------------------------------------------------------------

--
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 11:01:33 2005

This archive was generated by hypermail 2.1.8 : Fri Dec 09 2005 - 18:53:02 UTC