RE: [xsl] 3 XSLT2 quickies

Subject: RE: [xsl] 3 XSLT2 quickies
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 17 Mar 2006 16:11:26 -0000
> Stand by; can a document node ever, every contain text nodes?
> 
> Aren't the specified in XDM or even Infoset, to only have element 
> (exactly one), child or processing-instruction children?


Whenever you write

<xsl:variable name="x">banana</xsl:variable>

you are creating a document node that is the parent of a single text node.

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

Current Thread