[Bug 2613] namespace-alias and #default


------- Additional Comments From mike@saxonica.com  2006-01-27 19:49 -------
I was actioned to provide an example of a stylesheet that demonstrates this
incompatibility. An example is attached (it can be used with any source document).

Note that it's unclear in the XSLT 1.0 spec whether this should work or not, but
it does work in Saxon and may well work in other processors. Under Saxon 6.5.5
it produces the result:

<?xml version="1.0" encoding="utf-8"?>
<out xmlns="ns://www.error.com/" xmlns:err="ns://www.error.com/">
   <banana xmlns="">
      <yyy xmlns="ns://www.error.com/"/>

(Other processors are likely to use "err" as the namespace prefix)

Under Saxon 8.6.1 it produces:

Error at xsl:namespace-alias on line 11 of
  XTSE0815: #default cannot be used: there is no default namespace
Failed to compile stylesheet. 1 error detected.

Received on Friday, 27 January 2006 19:49:15 UTC