xsl-list
[Top] [All Lists]

RE: php:join() equiv in XSL/XPath 1.0?

2006-02-28 12:03:28
XSLT 2.0 has string-join(), but in 1.0 you need

for-each ...
  if position()!=last()

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Phillip B Oldham [mailto:phillip(_dot_)oldham(_at_)kilo75(_dot_)com] 
Sent: 28 February 2006 18:36
To: Mailing List: XSL
Subject: [xsl] php:join() equiv in XSL/XPath 1.0?

Hi guys

I'm looking for a quick way to join node values with a seperator, 
similar to the join function in PHP/Perl/etc. concat() is 
fine, but I'd 
rather pass a nodeset, something like join( ', ', /root/list/* ).

Can anyone help me out?

--~------------------------------------------------------------------
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>
--~--



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