W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2002

Data Model WD: [Issue-0062: Namespace fixups required]

From: Jeni Tennison <jeni@jenitennison.com>
Date: Mon, 19 Aug 2002 18:52:14 +0100
Message-ID: <109620561500.20020819185214@jenitennison.com>
To: public-qt-comments@w3.org

Hi,

First, I absolutely agree that namespace fixup (as described in
Section 4.5 of the XSLT 2.0 WD) should be specified as part of the
Data Model, within the definition of element construction.

Second, when this gets done, remember that as well as the attributes
of the element having their own namespace, the values of those
attributes and possibly the element itself might be QNames and
therefore require namespace nodes to be added to the element. For
example:

  <foo>
    <xsl:attribute name="ns1:bar"
      namespace="http://www.example.com/ns1"
      type-annotation="xs:QName"
      xmlns:ns2="http://www.example.com/ns2">ns2:baz</xsl:attribute>
  </foo>

should generate a foo element with (among others) the namespace nodes
{ns1, 'http://www.example.com/ns1'} and {ns2,
'http://www.example.com/ns2'} so that the resulting XML is:

  <foo xmlns:ns1="http://www.example.com/ns1"
       xmlns:ns2="http://www.example.com/ns2"
       ns1:bar="ns2:baz" />

Cheers,

Jeni
---
Jeni Tennison
http://www.jenitennison.com/
Received on Monday, 19 August 2002 13:52:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:43 UTC