Re: [xsl] collect elements into variable and apply-templates

Subject: Re: [xsl] collect elements into variable and apply-templates
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 19 Feb 2004 20:54:36 GMT

  <xsl:variable name="a">
    <xsl:for-each select="xxx/*">
        <xsl:copy-of select="."/>
    </xsl:for-each>
  </xsl:variable>


don't do that, do this

  <xsl:variable name="a" select="xxx/*">

It's a lot less typing and it will make the use of teh variable in an
Xpath legal.

David




-- 
http://www.dcarlisle.demon.co.uk/matthew

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


Current Thread