![](/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.