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

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