[xsl] Converting xml data to html using xsl/xslt

Subject: [xsl] Converting xml data to html using xsl/xslt
From: Anna Bikkina <anna@xxxxxxxxxxxxxx>
Date: Wed, 11 Feb 2004 17:00:59 -0500

I have to convert a xml file into html. The data in xml has to be represented 
as tables. I have to write a xsl stylesheet and use xslt for the 

My xml file looks like this.

		<data1> xx1 </data1>
		<data2> xx2 </data2>

		<data1> yy1 </data1>
		<data2> yy2 </data2>

My existing xsl looks like this
  <xsl:template match="slide">
                <title> SOAP AND XML</title>
                <style type="text/css">
                    code {color: #808080;}
                        <table border="1">
                                <xsl:for-each select="*">
select="." mode="value"/></td>


I am getting data in seperate tables instead of in seperate rows. 

The data should be in a html table with data1 and data2 as headers and xx1,xx2 
in the first row and yy1 and yy2 in the second row.

I am not able to write a xsl to get this.

Can someone please help me write one.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread