|
Subject: RE: [xsl] user functions with variable number of parameters From: "Bordeman, Chris" <Chris.Bordeman@xxxxxxxxxxxxxxxxx> Date: Sat, 9 Aug 2008 23:05:23 -0500 |
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@xxxxxx]
Sent: Saturday, August 09, 2008 10:32 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] user functions with varia, Liam Quin | Thread | RE: [xsl] user functions with varia, G. Ken Holman |
| Re: [xsl] user functions with varia, Liam Quin | Date | RE: [xsl] user functions with varia, G. Ken Holman |
| Month |