You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Sayeau, Derek" <De...@Cognos.COM> on 2002/02/27 17:07:09 UTC
Stylesheet whitespace processing with XSLTC
Hi, has anyone run into this problem with XSLTC (2.3.1), and know a work
around (or perhaps I'm doing something wrong?)...
this works fine with XalanJ.
XSLTC indents (when indent="false") literal result nodes in the stylesheet,
which can cause all sorts of problems with tables
in html. Example stylesheet:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" version="1.0"
encoding="UTF-8" indent="no"/>
<xsl:template match="/">
<html>
<body>
<table><tr><td>123</td></tr></table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Given output:
<html>
<body>
<table>
<tr>
<td>123</td>
</tr>
</table>
</body>
</html>
Expected output:
<html><body><table><tr><td>123</td></tr></table></body></html>
............................................................................
.
Derek Sayeau 3755 Riverside Drive
Information Delivery Ottawa, ON
Cognos Inc. K1G 4K9
(613) 738-1338 ext. 5097
derek.sayeau@cognos.com
............................................................................
.
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.