[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

lists as parameters

Subject: lists as parameters
From: "Jon Smirl" <jonsmirl@xxxxxxxxxxxx>
Date: Fri, 6 Aug 1999 01:22:27 -0400
lists as parameters
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.