【发布时间】:2017-06-12 18:40:20
【问题描述】:
我正在使用 XSLT 将我的 XML 转换为 FO 输出。对于特定元素,我使用属性wrap-option 设置为wrap,如果它超过行限制,它会在输出中换行。它被正确地包装在输出中。
但是,我想要一个额外的功能,如果文本被包装在输出中,它应该有一些关于包装的指示给用户。即,如果将特定行换行到下一行,则该行的末尾应该有一个“+”符号,无论它被换行。
示例输入:
Testing the wrapped input specification for understanding the wrapping has happened.
Normal line without wrapping.
Again a lengthy line which exceeds the line limit.
当前输出:
Testing the wrapped input specification
for understanding the wrapping has happened.
Normal line without wrapping.
Again a lengthy line which exceeds
the line limit.
所需输出:
Testing the wrapped input specification+
for understanding the wrapping has happened.
Normal line without wrapping.
Again a lengthy line which exceeds+
the line limit.
我怎样才能达到这个结果?
【问题讨论】: