[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

HTML to XSL

Subject: HTML to XSL
From: "Vadiraj" <Vadirajrk@xxxxxxxxxx>
Date: Sat, 18 Aug 2001 15:19:56 +0530
html to xsl
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
  • HTML to XSL
    • Vadiraj - Sat, 18 Aug 2001 05:57:33 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.