Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSLT: Split into multiple columns

Reply
Thread Tools

XSLT: Split into multiple columns

 
 
Gary Johnson
Guest
Posts: n/a
 
      12-10-2003
I am wanting to create an HTML table using XSLT that looks like: -

-------------
| A | B | C |
-------------
| D | E | F |
-------------
| G | H | |
-------------

based on some XML that looks like:

<items>
<item>A</item>
<item>B</item>
<item>C</item>
<item>D</item>
<item>E</item>
<item>F</item>
<item>G</item>
<item>H</item>
</items>

.... and (as you can probably guess from the fact I am writing this!) I
can't work out how to do it. Anyone got any ideas?

Many thanks
G
 
Reply With Quote
 
 
 
 
Dimitre Novatchev
Guest
Posts: n/a
 
      12-10-2003
http://www.topxml.com/code/default.a...20020514091249


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL


"Gary Johnson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> I am wanting to create an HTML table using XSLT that looks like: -
>
> -------------
> | A | B | C |
> -------------
> | D | E | F |
> -------------
> | G | H | |
> -------------
>
> based on some XML that looks like:
>
> <items>
> <item>A</item>
> <item>B</item>
> <item>C</item>
> <item>D</item>
> <item>E</item>
> <item>F</item>
> <item>G</item>
> <item>H</item>
> </items>
>
> ... and (as you can probably guess from the fact I am writing this!) I
> can't work out how to do it. Anyone got any ideas?
>
> Many thanks
> G



 
Reply With Quote
 
 
 
 
Baldo
Guest
Posts: n/a
 
      12-11-2003
> > -------------
> > | A | B | C |

> -------------
> > | D | E | F |

> -------------
> > | G | H | |
> > -------------
> >
> > based on some XML that looks like:
> >
> > <items>
> > <item>A</item>
> > <item>B</item>
> > <item>C</item>
> > <item>D</item>
> > <item>E</item>
> > <item>F</item>
> > <item>G</item>
> > <item>H</item>
> > </items>
> >
> > ... and (as you can probably guess from the fact I am writing this!) I
> > can't work out how to do it. Anyone got any ideas?


try with position() or mod() functions
 
Reply With Quote
 
Baldo
Guest
Posts: n/a
 
      12-16-2003
> ... and (as you can probably guess from the fact I am writing this!) I
> can't work out how to do it. Anyone got any ideas?


use position() function (and "mod" math function)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to split a UL list into two columns? Cristian HTML 6 04-11-2008 12:51 PM
Split datagrid into newspaper-style columns? =?Utf-8?B?RGF2ZQ==?= ASP .Net 5 03-18-2006 05:28 PM
How to split a webapp into multiple assemblies. Willempie ASP .Net 2 03-01-2005 02:06 PM
Why does split operate over multiple lines in the absence of "ms" ? And why doesn't $_ work with split? Sara Perl Misc 6 04-12-2004 09:07 AM
Want to split a file into columns SL_McManus Perl 2 10-02-2003 01:33 AM



Advertisments