[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Differing rows in a table from XML  XML
Forum Index » XSLfast Forum
Author Message
Ray Herring



Joined: 09/05/2011 02:54:37
Messages: 2
Offline

So i have a bit of an unusual problem, not sure if this one is even possible or not.

Basically i have in my XML file, something like:



Now, when creating the table from the XML file, if 'row_type' == 1 then the row needs to look a certain way (basically have 8 columns of data), however, if the 'row_type' == 2 then it needs to only have 2 columns (the first one is blank, the second one colspan's over the other 7 of them). I can't seem to work out how to do this though.

Ray
Ray Herring



Joined: 09/05/2011 02:54:37
Messages: 2
Offline

Nevermind, i figured it out. Was actually easier than i thought.

Basically, i created 2 rows in my table, and on each one i set a 'row if' pattern, so for the first row, it gets shown *only* if 'row_type == 1' and the second row only gets shown if 'row_type == 2'.
 
Forum Index » XSLfast Forum
Go to:   
Powered by JForum 2.1.8 © JForum Team