RE: default namespace in constructed element

"Michael Kay" <[email protected]> Tue, 21 Dec 2004 11:03:08 -0000
Newsgroups gmane.comp.web.query-languages
Message-ID <[email protected]>
No, it shouldn't change the namespace URI of element <a>. The element
selected within the {} is copied unchanged - that means it retains its
original name (both the local name and the namespace URI). In order to
achieve this, the system will probably need to generate an xmlns=""
namespace undeclaration when the result tree is serialized.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of Leonid Novak
> Sent: 21 December 2004 09:06
> To: [email protected]
> Subject: default namespace in constructed element
> 
> 
> Consider, we have the document a.xml: <?xml version="1.0"?><a/>
> 
> and the following expression:
> 
> <b xmlns="www.xyz.com">{doc("a.xml")//a}</b>
> 
> I'm puzzled about the result of the expression: i.e should the default
> namespace declaration change the URI of  the insereted 
> element from document
> "a.xml" or not?
> 
> Regards, Leonid Novak
> www.modis.ispras.ru
> 
> 
> 
>