Not quite what I want, need a little more logic. I've ALMOST got it
now. I've figured out that I can just use a normal untyped parameter,
pass it as a set, such as:
fn:myconcat(('abc', '123', 'def'))
In the function figured out to use for-each on the parameter, but now
trying to figure out how to tell which element # I'm on inside the
for-each, especially to detect the last item. Also need to discard the
'current' item if it's empty, which I can't quite get.
Chris Bordeman
Senior Software Developer
AppOne, Inc., a Wolters Kluwer Financial Services Company
"Connecting dealers & lenders"
http://www.appone.net
http://www.dmsone.net
225. 754. 5912 (P)
866. 422. 9910 (F)
-----Original Message-----
From: Liam Quin [mailto:liam(_at_)w3(_dot_)org]
Sent: Saturday, August 09, 2008 10:32 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] user functions with variable number of parameters
On Sat, Aug 09, 2008 at 10:21:00PM -0500, Bordeman, Chris wrote:
I want to create a function that accepts any number of strings, and
concatenates them using carriage return/linefeeds.
string-join(expression, "
")
may already do what you want.
Liam
--
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--