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

RE: Passing arrays as parameters

Subject: RE: Passing arrays as parameters
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Wed, 21 Apr 2004 07:22:05 -0600
passing arrays
A slightly less expensive way to do this is to pass the array in as a
string of XML-like data and then serialize it into a node-set using the
node-set function particular to your processor.  Then you can process it
just like any other node-set.

Best of luck!

<M:D/>

-----Original Message-----
From: Emmanuil Batsis (Manos) [mailto:mbatsis@xxxxxxxxxxx] 
Sent: Wednesday, April 21, 2004 7:10 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Passing arrays as parameters



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@xxxxxxxxxxx
tel:+302103240940
http://forte.netsmart.gr/foaf/manos_foaf.rdf

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.