AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/SVG/MathML Conformance

XSLT

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  When I use XML+XSL, some extra blanks are output. Why? [No.2005093001]
A. 

When the indent attribute is defined like <xsl:output method="xml" indent="yes"/> in stylesheet, the XSLT processor inserts the blank between tag and tag.

<fo:block><fo:wrapper><fo:inline>Hello</fo:inline></fo:wrapper>, world!</fo:block>

For instance, if indent-value is "yes" when such FO will be generated, these are indented by the XSLT processor as follows.

<fo:block>
    <fo:wrapper>
        <fo:inline>Hello</fo:inline>
    </fo:wrapper>, world!</fo:block>

In this case, the blank enters between "Hello" and "," in the formatting result.

The support of indent="yes" depends on the XSLT processor.

indent="yes" is not suitable in Style Sheet that generates XSL-FO. indent="no"should be defined.


Copyright © 1999-2011 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.