xsl-list
[Top] [All Lists]

Re: [xsl] group together subsequent elements?

2012-03-17 06:12:22
On 17 March 2012 11:04, Matěj Cepl <mcepl(_at_)redhat(_dot_)com> wrote:
Hi,

I am probably missing something very obvious, but I have not found a way how
to combine group of same elements into one. Meaning, I have on input

n.: <spoj>mám</spoj> <spoj>zalíbení</spoj>

and I would like to get on output

n.: <linked>mám zalíbení</linked>

(number of elements in one group can vary).

Do I miss something completely trivial or it is one of those things which
XSLT cannot do?

XSLT can do that in several ways, but you will need to provide better
samples covering all of your requirements and edge cases to save going
through the loop.  Do you need a 1.0 solution or can you use 2.0?


-- 
Andrew Welch
http://andrewjwelch.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>
--~--