You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/04/25 17:26:46 UTC

DO NOT REPLY [Bug 8520] New: - property output opton indent is ignored

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=8520>.
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=8520

property output opton indent is ignored

           Summary: property output opton indent is ignored
           Product: XalanJ2
           Version: 2.3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: javax.xml
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: markus.wiedmann@entory.com


We tried to use translets for html output generation - but indents mess the 
html.

The underlying xalan version is 2.3.1 (bin-download).
We tested with jdk1.3 and 1.4 - same effect.

Using the XSLTC via TrAX/JAXP API, we generate a Template object and create a 
new Instance of a Transfomer with it. (Pretty much like the example on 
apache/xalan-j homepage).

Unfortunately every output we generate uses lots of whitespace characters (the 
html has indents) effecting the browser to mess the original look.
Setting the output properties like 
 lo_Props = lo_Transformer.getOutputProperties();
 lo_Props.setProperty(OutputKeys.INDENT,"no");
 lo_Transformer.setOutputProperties(lo_Props);
or using directly xsl:output in the xslt like
 <xsl:output method="html" indent="no" /> 
has no effect.

I saw an earlier bug-report (#3469, 03/10/2001) that seems to describe the same 
problem, but it was fixed.