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

> 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....

The problem of writing QName-valued attributes to the result tree is
probably the major thing that's been holding this up. There are significant
problems here that we still have to solve. In general, the model for result
tree construction in XQuery is [now]that values are serialized by converting
them to strings, and the resulting serialized XML is then passed through a
schema processor to attach type annotations. The model in XSLT is very
similar. This model doesn't yet work properly for QName-valued attributes
(let alone other attributes containing namespace prefixes, such as XPath
expressions). There is "work in progress" in this area.

Michael Kay
Software AG

Received on Monday, 26 August 2002 10:19:58 UTC