|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Rookie XQuery Question: Nested For LoopsMichael Kay mike at saxonica.comFri Apr 27 17:37:34 PDT 2007
> And a good quiz question for the experts is, can the curlies
> affect the semantics?
>
> That is, is there any difference between:
>
> <a><b/></a>
>
> and
>
> <a>{<b/>}</a>
>
What, no takers? To let you out of your misery, given the following query
declare copy-namespaces no-preserve, inherit;
<doc>
<a>{<b xmlns:p="q"/>}</a>
<a><b xmlns:p="q"/></a>
</doc>
The correct output, I believe, is:
<doc>
<a>
<b/>
</a>
<a>
<b xmlns:p="q"/>
</a>
</doc>
Michael Kay
http://www.saxonica.com/
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






