DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14229>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14229

XSLTC indents as if indent always set to yes





------- Additional Comments From [EMAIL PROTECTED]  2002-11-04 22:10 -------
I'm afraid this is the best I can do: I have stylesheet with the top looking 
like this:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" encoding="iso-8859-1"/>

The following two lines are in a template in the same file:

        <td width="64"><img src="images/jcp_logo.gif" width="64" 
height="62" /></td>
        <td width="29"><img src="images/spacer.gif" width="29" 
height="1" /></td>

XSLTC renders these two lines like so:

        <td width="64"><img src="images/jcp_logo.gif" width="64" height="62">
        </td>
        <td width="29"><img src="images/spacer.gif" width="29" height="1">
        </td>

Xalan renders them like so:

<td width="64"><img height="62" width="64" src="images/jcp_logo.gif"></td><td 
width="29"><img height="1" width="29" src="images/spacer.gif"></td>

The two lines come out on one line, but my whole html document is not on one 
line - it uses newlines that are in the stylesheet. If I turn indent off, I get 
fewer line breaks, but I still get them here and there (again, indent has no 
effect on XSLTC). Is this what's supposed to happen? Really, I don't have a 
problem with the fact that it is indenting, just the way it does it. It seems 
to be doing a "pretty print" by bringing the </td> down to the next line. No 
tinkering with indent settings for Xalan will get Xalan to reproduce this 
layout. What is the logic behind this? When does the engine add newlines and 
indent spaces? I'd be happy with indenting always on if the </td> was on the 
same line as the <td>.

Thanks.

Reply via email to