W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2002

RE: section 14.1

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 3 Apr 2002 19:32:25 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679D09@daemsg02.software-ag.de>
To: "'Zbyszynski, Marc'" <mzbyszynski@doubleclick.net>, "Kay, Michael" <Michael.Kay@softwareag.com>, "'xsl-editors@w3.org'" <xsl-editors@w3.org>
> Thanks a lot for your response! I am a little confused about 
> the global
> variable solution that you describe though. It seems like it 
> would work
> great with XSLT 2.0, but is not that useful for XSLT 1.0 
> because the root
> node '/' would be stored in the variable as a "result tree 
> fragment",
> 

Not so. A result tree fragment is created only by an <xsl:variable> element
with non-empty content. Writing

<xsl:variable name="root" select="/"/>

does not create a result tree fragment, it creates a node-set containing a
single node.

Michael Kay
Software AG
Received on Wednesday, 3 April 2002 12:32:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:53 GMT