lists as parameters

Subject: lists as parameters
From: "Jon Smirl" <jonsmirl@xxxxxxxxxxxx>
Date: Fri, 6 Aug 1999 01:22:27 -0400
Is there someway to pass list/collections as parameters? Here's what I would
like to do, but this isn't allowed....

<xsl:template name="runner">
  <xsl:param name="test">
   <v>one</v>
   <v>two</v>
   <v>three</v>
   <v>four</v>
  </xsl:param>

     <xsl:for-each select="$test/v">
      V is <xsl:value-of select="."/><br />
     </xsl:for-each>

  </xsl:template>

<xsl:call-template name="runner">
    <xsl:with-param name="test">
       <v>one</v>
       <v>two</v>
    </xsl:with-param>
</xsl:call-template>

I tried to achieve this with the string functions but I couldn't come up
with a scheme to handle a variable number of items.

'runner' is in an include file. The including files need to pass it various
static lists of data. The static data is not present in the XML being
processed.


Jon Smirl
jonsmirl@xxxxxxxxxxxx



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


Current Thread