AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/MathML テクニック

ブロック

トップ
基本・一般
AH Formatter について
XSL Formatter について
操作方法
プログラミング
XSLT/XSL-FO/SVG/MathML 仕様について
XSLT/XSL-FO/MathML テクニック
索引
Q.  改行を指定するために "white-space" にpreを指定しました。 改行はするのですが、今度は行末での折り返しをしなくなりました。なぜですか。 [No.2002052402]
A. 

W3CのXSL-FO仕様の勧告には次のように書かれています。

7.29.23 "white-space"

CSS2 Definition:

...

The CSS property shall be treated as a shorthand by XSL and maps as follows: pre
linefeed-treatment="preserve"
white-space-collapse="false"
white-space-treatment="preserve"
wrap-option="no-wrap"

white-space="pre" というのは次のこの4つを指定するのと同じ(Shorthandプロパティ)です。wrap-option="no-wrap" が含まれているので、行の折り返しはしなくなります。

下記の指定では行は折り返しません。

white-space="pre"

を次のように指定してください。

linefeed-treatment="preserve"
wrap-option="wrap"

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