![]() |
Using xsl to put xml data into a table
Hi guys,
I'm pretty new to XML and XSL, so I'm trying to get a grasp on how to use XSL to put data from an XML document into a table. This is the data: Code:
<?xml version="1.0" encoding="UTF-8"?>thanks :) |
Random thought: it looks like you already have the table. You might not need XSL when CSS can do the job for you. That is, if you care only about presentation of the data.
If you're thinking of transforming it into a HTML table, then yeah, you might want to skip that... because the HTML table would be presentation only. I did some exploring along these lines over ten years ago. It wasn't that hard, really, but I forget exactly what it was I did. |
Thanks for the quick reply Alex,
For the moment I want to stick to using XSL so I can understand it further. Other things I want to do further on down the track is highlight the lower percentages in red, and create ordered lists, but i need the table first. I may CSS just to colour the back fill of the table for the presentation. But i'm trying to stick to XSL for now. But yes I do want to transform the data into a HTML table. A couple of people have recommended using a for-each statement, but i'm unsure where to start for now. |
| All times are GMT +1. The time now is 01:42 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.