473,382 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

XSLT 4 columns problem!

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>
-----------------
End of my XML

Hope somebody will be able to help me out!
Jul 20 '05 #1
2 1467
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

pr**********@gmail.com (Gunne) wrote in message news:<1a**************************@posting.google. com>...
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>
-----------------
End of my XML

Hope somebody will be able to help me out!

Jul 20 '05 #2
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

pr**********@gmail.com (Gunne) wrote in message news:<1a**************************@posting.google. com>...
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>
-----------------
End of my XML

Hope somebody will be able to help me out!

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: sam | last post by:
Hi, I've been buried in xsl and xslt articles for several days now, and am still unsure as to what I need to do... Basically, my vb.net app loads up an XML file from an external source...
0
by: Rocio | last post by:
I have a dataset with 5 columns. The first 4 columns are simply string columns, but the last one is another dataset with 4 simple columns. The problem is that, the XSLT transform only reads data...
7
by: Doug Heeren | last post by:
I have the following section of VB.NET code that transforms a simple dataset into an Excel xml workbook. It works fine for < 50 rows or so, but I have about 8,000 rows I need to transform. Is there...
3
by: Andy | last post by:
Hi all, I'm having a problem doing an Xslt transform in code. I've done it before, so I'm not really sure why its not working. The problem is that the result of the transform is an empty...
4
by: infiniti | last post by:
Hi, I am coming across problems in trying to EFFICIENTLY merge to XML files into one which involves transposing the rows into columns so that I can either generate a single flat xml file or store...
3
by: Ian Roddis | last post by:
Hello, I want to embed SQL type queries within an XML data record. The XML looks something like this: <DISPLAYPAGE> <FIELD NAME="SERVER" TYPE="DROPDOWN"> <OPTION>1<OPTION> <OPTION>2<OPTION>...
3
by: realmerl | last post by:
Hi All. I'm trying to transform a html document into plain text via xslt. Simple you say! (i hope) I have got it working, by using the magnificent <xsl:value-of select="."/>. This returns the...
6
by: John Larson | last post by:
Hi All, I am some information from INSPEC database records in XML to build a relational database of my own. I am currently trying to extract information by doing an XSLT transform of the XML...
1
by: =?Utf-8?B?U0FM?= | last post by:
Hi, Does anyone have any sample code they did in which they created a dynamic XSLT at runtime? I've seen many examples on the web in which an Embedded xsl:stylesheet is transformed in the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.