|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] SV: xsl doesnt produce valid xhtml
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








