Subject: SV: [xsl] xsl doesnt produce valid xhtml From: "Thomas V. Nielsen" <verakso@xxxxxxxx> Date: Tue, 21 Oct 2003 08:51:52 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl doesnt produce valid xhtm, james walker | Thread | Re: SV: [xsl] xsl doesnt produce va, james walker |
[xsl] ANN: The first DSSSL book!, David . Pawson | Date | [xsl] Game of Life: an XSLT impleme, David . Pawson |
Month |