Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > from xml to html with xsl

Reply
Thread Tools

from xml to html with xsl

 
 
Lemon_Jelly
Guest
Posts: n/a
 
      10-01-2003
Hi,
i have this xml file...

<item>
<i>1</i>
<i>2</i>
<i>3</i>
<i>4</i>
<i>5</i>
<i>6</i>
<i>7</i>
<i>8</i>
<i>9</i>
</item>

and I would output file in this format

<html>
<body>
<table>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>4</td><td>5</td><td>6</td></tr>
<tr><td>7</td><td>8</td><td>9</td></tr>
</body>
</html>


How I can implement the xsl file?

than you!



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

This snippet shows how to produce an N column-table from the nodes in a
given a node-set, and also colour every two adjacent rows of the table in
alternating colours.


=====
Cheers,

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



"Lemon_Jelly" <linusx@_togli_qui_freemail.it> wrote in message
news:bldvqv$qkf$(E-Mail Removed)...
> Hi,
> i have this xml file...
>
> <item>
> <i>1</i>
> <i>2</i>
> <i>3</i>
> <i>4</i>
> <i>5</i>
> <i>6</i>
> <i>7</i>
> <i>8</i>
> <i>9</i>
> </item>
>
> and I would output file in this format
>
> <html>
> <body>
> <table>
> <tr><td>1</td><td>2</td><td>3</td></tr>
> <tr><td>4</td><td>5</td><td>6</td></tr>
> <tr><td>7</td><td>8</td><td>9</td></tr>
> </body>
> </html>
>
>
> How I can implement the xsl file?
>
> than you!
>
>
>



 
Reply With Quote
 
 
 
 
Lemon_Jelly
Guest
Posts: n/a
 
      10-02-2003
Thank you!!

Lemon_Jelly


 
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
Dataset to XSL Transform not displaying HTML--only XML Anthony Harkness-Gripe ASP .Net 1 07-08-2008 01:23 AM
XSL: putting a XSL value inside an html attribute? Kourosh XML 6 05-17-2006 09:13 PM
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
dates with db->xml->xsl->html Rick Walsh ASP .Net 0 07-15-2003 04:02 PM
Re: Problem with XSL transform of XML file to dynamic HTML tablewith fixed columns Johannes Koch XML 0 07-02-2003 07:54 AM



Advertisments