Subject:Several attributes with the same name within the same element Author:Mattias Pirmann Date:06 Apr 2006 10:01 AM
Hi!
I’m very new to XSLT and have only worked with simple tables. Now I have problem I hope someone can help me with.
I have two different kinds of attributes, cart and unit, which should be presented in two tables depending on if the element only holds cart or cart and unit.
The table that only holds attribute cart should present the values in a table of 5 columns. If it has more than 5 values it should create a new row i.e. 50 values should be presented in a table of 10 rows with 5 columns.
The table that holds both cart and units should be presented in a table of 5 columns. The first column should hold cart and column 2-5 unit. If more than 4 units exist it should be put on row 2 starting in column 2.
Should I create two elements, one that only holds cart and one that holds cart with units or stick with one? How can I make the maximum number of columns and also specify on which column to start on in the next row.