Subject: [xsl] HTML to XSL From: "Vadiraj" <Vadirajrk@xxxxxxxxxx> Date: Sat, 18 Aug 2001 15:19:56 +0530 |
I know its regorus to read the big text like this..but still make time to read and help me out..... How do I convert the HTML files to XSL...is there any tool (other than Xsplit)..My exact requirement is like below.. for Ex my html file: <html> <head><title>Test</title></head> <body> <table> <tr> <td>Row1</td> </tr> <tr> <td> <table> <tr><td>Val1</td></tr> <tr><td>Val2</td></tr> </table> </td> </tr> <table> </body> </html> I want my xsl should be like this... <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" indent="yes"/> <xsl:template match="/"> <html> <head><title>Test</title></head> <body> <table> <xsl:for-each select="RootEle/ChEle"> <tr> <td><xsl:value-of select="Element"/></td> </tr> <tr> <td> <table> <xsl:for-each select="RootEle/ChEle"> <tr><td><xsl:value-of select="Element"/></td></tr> <tr><td><xsl:value-of select="Element"/></td></tr> </xsl:for-each> </table> </td> </tr> </xsl:for-each> <table> </body> </html> </xsl:template> </xsl:stylesheet> as per my html and xsl example files.. data's Row1,Val1 and Val2 r hard coded in html but that data will come from XML file..its clear in my xsl file RootEle.chEle and Element r examples for XML tags(elements).. So I want to generate the XSL dynamically with the given html and xml file... Pls help me out.. ThanX in advance ---:) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xmlc, Michael Brennan | Thread | [no subject], Suresh Kumar T |
RE: [xsl] xmlc, Michael Brennan | Date | [no subject], Suresh Kumar T |
Month |