xsl-list
[Top] [All Lists]

Re: Passing arrays as parameters

2004-04-21 06:09:52


Michael L wrote:
I was just wondering if it is possible to send an array as a paramter to a XSL 
file. And then cycle through the array in the XSL code?

You cannot "cycle through" in XSLT using something like a for loop. Although you dont say what exactly the array is, i'd suggest passing it as a single string where array members are seperated by a certain character, then use a recursive template to process that using string functions to seperate the part you want to use from the part you want to forward to the next 'iteration'.

hth,


--
Manos Batsis

    _  __    __                    __
   / |/ /__ / /____ __ _ ___ _____/ /_
  /    / -_) __(_-</  ' Y _ `/ __/ __/
 /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/


http://www.netsmart.gr
mailto:mbatsisSPAM_TRAP(_at_)netsmart(_dot_)gr
tel:+302103240940
http://forte.netsmart.gr/foaf/manos_foaf.rdf




<Prev in Thread] Current Thread [Next in Thread>