About
XSLTC, i’ve modified the output_html.properties(
indent-amount=2, before:0 ). I’ve
rebuild the xalan-2.5.2.jar and now, the indentation works with XSLTC. So,
XSLTC doesnot take care of xalan:indent-amount="2" in the XSL( bug
? ). About the strip-spaces, I did not find yet a solution. -----Message d'origine----- 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 & ... Laurent Michenaud
- RE: RE : Problem with indentation (xalan &a... Andrew Welch
- RE : Problem with indentation (xalan & ... david_marston
- replacing ALL chars in a string while t... Pramodh Peddi
- Re: replacing ALL chars in a string... Santiago Pericas-Geertsen