AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/MathML Technics

Space

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  I specified linefeed-treatment="treat-as-space" and white-space-treatment="ignore". However, linefeed is output as white space. [No.2004032501]
A. 

the W3C Recommendation for XSL-FO says as follows:

7.15.8. "white-space-treatment"

The "white-space-treatment" property specifies the treatment during the refinement process of character flow objects, except for linefeeds, that are classified as white space in XML. This includes U+0020 (space) and other white space characters but excludes U+000A (linefeed). Linefeed treatment is determined by the "linefeed-treatment" property.

ignore
Specifies that any character flow object whose character is classified, before any linefeed-treatment handling is considered, as white space in XML, except for U+000A (linefeed) characters, shall be discarded during the refinement process.

Therefore, after usual white space is deleted, linefeed is converted into white space. Please use linefeed-treatment="ignore" to delete linefiied.


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