[Bug 1250] [XQuery] the typed value of a document node

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1250





------- Additional Comments From henryluo@vibrasoft.net  2005-04-14 19:55 -------
However, your answer has lead to another issue: 
 
Does the two XQuery expressions
 
fn:doc($uri as xs:string?) as document-node()?
document { expr }
 
return the same type of document node? 
If yes, then they should have same typed-value. 
If fn:doc returns a node tree, then should document { expr } also be typed as 
node tree?
 
And keeping document { expr } as node tree instead of string, 
has the benefit to enable the result document to be assigned to an variable,
and further processed by XQuery expressions like fn:doc.

Received on Thursday, 14 April 2005 19:55:40 UTC