« February 11, 2008 | Main | February 13, 2008 »

February 12, 2008 Archives

February 12, 2008

Inline Grouping

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>
<name>Mike</name>
<name>Max</name>
<name>Nick</name>
</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. 

About February 2008

This page contains all entries posted to Oracle BI Publisher Blog in February 2008. They are listed from oldest to newest.

February 11, 2008 is the previous archive.

February 13, 2008 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle