xsl-list
[Top] [All Lists]

[xsl] how to pass an array of values as a parameter into XSL and loop over them

2006-11-17 11:45:37
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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