Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Newbie question about XSL

I have been playing with XSL and I am running into a slight problem.
When I format the output of my XML data I can only seem to get it into a
"list" type format... For example.
Data1
Data2
Data3
Data4
etc.

But What I really want is to find a way that I can display it in the following
format:

Data1 Data2 Data3
Data4 Data5 Data6
Data7 Data8 Data9

and so on.

Since I am new.. I am not sure how to do this.
Someone please guide me in the right direction on this.

Thanks
[556 byte] By [Joe] at [2007-11-9 15:28:25]
# 1 Re: Newbie question about XSL
Look at the mod operator. For example, you can create a table row and add
cells to it until the position() mod 3 = 0, after which you start another
row.

"Joe" <jkeller@hartzellfan.com> wrote in message
news:3e777c86$2@tnews.web.dev-archive.com...
>
> I have been playing with XSL and I am running into a slight problem.
> When I format the output of my XML data I can only seem to get it into a
> "list" type format... For example.
> Data1
> Data2
> Data3
> Data4
> etc.
>
> But What I really want is to find a way that I can display it in the
following
> format:
>
> Data1 Data2 Data3
> Data4 Data5 Data6
> Data7 Data8 Data9
>
> and so on.
>
> Since I am new.. I am not sure how to do this.
> Someone please guide me in the right direction on this.
>
> Thanks
>
Russell Jones at 2007-11-11 23:29:41 >