RE: section 14.1

> 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 UTC