Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: OT - Dynamic data into columns in XSLT

by simon.proctor (Vicar)
on Dec 20, 2005 at 16:09 UTC ( #518105=note: print w/replies, xml ) Need Help??

in reply to OT - Dynamic data into columns in XSLT

The way I did this at work was to first figure out how many items I was dealing with and then work out the correct partitions for my list. I then did a series of foreaches using pos, one for each column.

However, I achieved the columnar effect using a style sheet and divs.

This freed me up from trying to fill a table (which you are doing) as I could fill my data vertically whereas a table requires me to fill horizontally. This is a bit different (possibly harder!) to complete.

So .... I filled a set of divs with my partitioned data and then used CSS to move them where I wanted. This is easy enough using the old 'float' syntax.

I can't provide any more help now as I am at work. If you need more assistance put your XML and your expected output on your scratchpad or as a reply to this node. I am sure someone else can help . . . I'd be interested in seeing their answer too.
  • Comment on Re: OT - Dynamic data into columns in XSLT

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://518105]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2020-05-25 11:23 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (145 votes). Check out past polls.