Re: Must variables that contain maps be typed?

Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]>
Newsgroups gmane.text.xml.saxon.help
Message-ID <[email protected]>
> 
> i thought the general rule was that it was never mandatory to specify a type. 
> 

Specifying a type on a variable that contains a sequence constructor suppresses the default action of constructing a document node.

If the xsl:variable contains a sequence constructor that delivers a map, it is never appropriate to wrap this in a document node, so the "as" attribute is effectively mandatory.

Michael Kay
Saxonica

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.