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

SV: xsl doesnt produce valid xhtml

Subject: SV: xsl doesnt produce valid xhtml
From: "Thomas V. Nielsen" <verakso@xxxxxxxx>
Date: Tue, 21 Oct 2003 08:51:52 +0200
xsl xhtml declaration
First of all, you can't attach files to this list (as you where informed
when you signed up).
Second, my guess is, that yuor processor complains simply because it isnt
valid XHTML you are making.

Perhaps your XHTML declaration is set to strict, and in that case a valid
XHTL table look like this

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Enter the title of your XHTML document here</title>
	</head>
	<body>
		<p>Enter the body text of your XHTML document here</p>
		<table>
			<tbody>
				<tr>
					<th>Header</th>
				</tr>
				<tr>
					<td>Cell</td>
				</tr>
			</tbody>
		</table>
	</body>
</html>

> are there any ways to get 
> around producing 
> valid xhtml ?

Yup, just format your output as your whish, and instruct the parser to make
plain XML, and then omit the xml declaration, and put your own html tags in
the output, something like this

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"
omit-xml-declaration="yes"/>
	<html>
		<head>
			<title>Enter the title of your HTML document
here</title>
		</head>
		<body>Enter the body text of your HTML document her</body>
	</html>
</xsl:stylesheet>

<thomas/>



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


Current Thread

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.