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

how to pass an array of values as a parameter into XSL

Subject: how to pass an array of values as a parameter into XSL and loop over them
From: "Web Developer" <armyofda12mnkeys@xxxxxxxxx>
Date: Fri, 17 Nov 2006 13:45:11 -0500
pass array into xslt parameter
hello all,

I was hoping to do something on command line like...
A. java net.sf..... jsFiles="'../js/bleh.js' 'test.js'
'../js/libs/prototype.js'"
or
B. java net.sf..... jsFiles="../js/bleh.js" jsFiles="test.js"
jsFiles="../js/libs/prototype.js"

then i would loop through the $jsFiles parameter in XSL and assign
<script type="text/javascript "src="${jsFiles[i]}"></script>

I wasnt sure how to set up something like this up...
My only thought, although it pains for me to even think about it, is
to do some kind of recursion on the 1 string in option A.

anyone attempt something like this before/any ideas?

Thanks,
Arian

PS is there anyway to get xsl-list Digest emails but also get your own
topic threads delivered separately, so i can get answer immediately
when it relates to my question?
My email has too many lists subscribed to as it is :)

Thanks,
Arian

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.