By Tim Dexter-Oracle on Feb 12, 2008
Spotted a nice question on the forum today, its nice cos its a good question and even better it has a short but sweet answer. Michaël has the following data:
<root>Tabulating this data is noobie stuff but how about getting something like:
Hi Mike, Max, Nick how's your day?
Not quite so obvious but it can be done. We can use the @inlines command to force the template to lay the text out horizontally across the page rather than down the page.
Hi <?for-each@inlines:name?><?.?> <?end for-each?> how's your day?
this gets us
Hi Mike Max Nick how's your day? - the italics are just for emphasis the code wont magically change your output
Now we could get all cool and funky and introduce logic to add commas as appropriate to get our English past my old Language Arts teacher. But, 1. Im not at school any more and 2. the answer wont be short and sweet anymore.