[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] 3 XSLT2 quickies


Subject: Re: [xsl] 3 XSLT2 quickies
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 17 Mar 2006 16:20:18 GMT

> Aren't the specified in XDM or even Infoset, to only have element 
> (exactly one), child or processing-instruction children?

no, like root nodes in Xpath1 they model external parsed entities rather
than (just) well formed document, so can have text or multiple element
nodes at top level. this is extremely common in xslt temporary trees,
consider

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

that (in xslt2) makes $x a document node with child a text node with
value "hello".

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


Current Thread
Keywords