XSLT/XSL-FO/MathML テクニック空白 |
|
Q. |
linefeed-treatment="treat-as-space" と white-space-treatment="ignore" を指定しましたが、改行コードが空白として残ります。
[No.2004032501]
|
---|---|
A. |
W3CのXSL-FO仕様の勧告には以下のようにあります。 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.
U+000A を除いた空白文字の処理です。改行の扱いは
ignore したがって、通常の空白を削除した後に改行が空白になります。
改行を削除したい場合は |