|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








