Re: [xsl] passing intermediate result while recursively building nodeset

Subject: Re: [xsl] passing intermediate result while recursively building nodeset
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 3 May 2002 15:52:39 +0100
> If 1.1 can't handle this, will it be something that 2.0 will be able to do?

in 1.1 (or 1.0 using xx:node-set() ) the way to model a list of elements
is to make them siblings of each other.

so if $x holds a root node containing
 <a i=1/><a i=2/>
then
<xsl:with-param name="x">
  <xsl:copy-of select="$x"/>
   <a i="3"/>
</xsl:with-param>

will pass on $x containing a root node with three children.
that;s 1.1 syntax, in 1.o it would be


<xsl:variable name="xx">
  <xsl:copy-of select="$x"/>
   <a i="3"/>
</xsl:with-param>

...
<xsl:with-param name="x" select="saxon:node-set($xx)"/>

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread