Hi, When i use Xalan, the html
output is quite correct : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <html> <body>
<table> <tr> <td></td> </tr>
</table>
<span> test </span> </body> </html> A
little problem : I would like the spaces before and
after “test” to be deleted. I tried with <xsl:strip-space elements="*"/> but it doesnot
work. The big problem : When I activate
XSLTC, the ouput is horrible : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <html
xmlns:xalan="http://xml.apache.org/xslt"> <body> <table> <tr> <td></td> </tr> </table> <span> test </span> </body> </html> My XSL
is very simple : <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet
version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xslt"> <xsl:output encoding="ISO-8859-1" method="html" version="4.0" doctype-public="-//W3C//DTD
HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" indent="yes"
xalan:indent-amount="2" media-type="text/html"/> <xsl:strip-space
elements="*"/> <xsl:preserve-space
elements="pre|code" /> <xsl:template match="/"> <html> <body> <table><tr><td> </td> </tr></table> <span> test </span> </body>
</html>
</xsl:template> </xsl:stylesheet> Do u know why ? Thanks |
- RE: Problem with indentation (xalan & xsltc ) Laurent Michenaud
- RE: Problem with indentation (xalan & xsltc ) Andrew Welch