XSLT 4 columns problem!

G

Gunne

I need to divide my XML data into 4 columns. The LinkCategory name
need to be shown as header and then the LinkName(s) that belong to the
LinkCategory underneath.

Please help me with an XSLT example!

The output should look something like this:
1-4-7-10
2-5-8-11
3-6-9-12

MY XML
-----------------
<Root GuideName="mugo" >
<LinkCategory Name="miver1" >
<Link LinkName="test1" LinkUrl="">
<Icon></Icon>
</Link>
<Link LinkName="test2" LinkUrl="">
<Icon></Icon>
</Link>
</LinkCategory>
<LinkCategory Name="miver2" >
<Link LinkName="test1" LinkUrl="">
<Icon></Icon>
</Link>
</LinkCategory>
</Root>
 
G

Gunne

Sorry if i was unclear..

"miver1" is a link group header and underneath i want to list the
links that belongs to the category, in this case link "test1" and
"test2".

There might be a lot of link groups and i need to divide the link
groups in to my 4 columns design. There might be a problem with some
white space in some of the columns but that doesn't matter because the
adminuser will be able to move around on the order of the categories
my administration system.

This is basically what i want:

http://www.gface.dk/xslt4cols.jpg

Hope you will be able to help me out!

L
 
G

Gunne

Forgot one more thing :( i control my columns using div's like this so
no answers using tables please!

<div class="columns4G">
<div class="col1G"></div>
<div class="col2G"></div>
<div class="col3G"></div>
<div class="col4G"></div>
</div>

L
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top