![](/img/trans.png)
[英]xsl-fo, org.apache.fop.fo.ValidationException: “fo:table-body” is missing child elements
[英]FOP hyphenation xsl fo
我想在標簽<subtitle>
上使用屬性hyphenate="true"
,並在其可能包含的<italic>
元素上設置hyphenation="false"
。 問題是我只能在fo:block
和fo: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.