簡體   English   中英

FOP連字xsl fo

[英]FOP hyphenation xsl fo

我想在標簽<subtitle>上使用屬性hyphenate="true" ,並在其可能包含的<italic>元素上設置hyphenation="false" 問題是我只能在fo:blockfo:character上使用連fo:character 有人可以給我個建議嗎?

這是我的xml的示例:

<subtitle type="subtitles">
    Some text that should have the hyphenation true 
    (<italic>This one shoud have the hyphenation false</italic>).
</subtitle>

hyphenate是繼承的屬性(請參閱https://www.w3.org/TR/xsl11/#hyphenate )。 XSL-FO中的文本被視為fo:character FO序列(請參閱https://www.w3.org/TR/xsl11/#fo_character )。

只需在fo:inline上將hyphenate="false"放在italic ,它將對組成文本的名義fo:character產生影響。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM