This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: passing intermediate result while recursively building nodeset



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]