С процессором Antenna House 6.3 XSL, как можно сделать так, чтобы границы появлялись, когда строка разбивается на страницы? - PullRequest
0 голосов
/ 06 февраля 2020

С процессором Antenna House 6.3 XSL, как сделать так, чтобы границы появлялись при разрыве строк на страницах?

Мой fo выглядит так:

<fo:table xmlns:fo="http://www.w3.org/1999/XSL/Format" border-bottom-color="black"
    border-bottom-style="solid" border-bottom-width="0.5pt" border-left-color="black"
    border-left-style="solid" border-left-width="0.5pt" border-right-color="black"
    border-right-style="solid" border-right-width="0.5pt" border-top-color="black"
    border-top-style="solid" border-top-width="0.5pt" font-size="7pt" space-after="10pt"
    space-before="10pt" start-indent="inherit" width="auto">
    <fo:table-body start-indent="0pt" table-layout="auto">
        <fo:table-row keep-together="always">
            <fo:table-cell border-after-width.conditionality="retain" border-bottom-color="black"
                border-bottom-style="solid" border-bottom-width="0.5pt" border-right-color="black"
                border-right-style="solid" border-right-width="0.5pt">
                <fo:block end-indent="4pt" space-after="3pt" space-after.conditionality="retain"
                    space-before="4pt" space-before.conditionality="retain" start-indent="4pt"
                    >This</fo:block>
            </fo:table-cell>
            <fo:table-cell border-after-width.conditionality="retain" border-bottom-color="black"
                border-bottom-style="solid" border-bottom-width="0.5pt">
                <fo:block end-indent="4pt" space-after="3pt" space-after.conditionality="retain"
                    space-before="4pt" space-before.conditionality="retain" start-indent="4pt">
                    <fo:block background-color="#f0f0f0" end-indent="from-parent(end-indent)"
                        font-size="88.88888889%" keep-with-previous.within-page="always"
                        line-height="106%" linefeed-treatment="preserve" padding="6pt"
                        space-after="0pt" space-before="9pt"
                        start-indent="from-parent(start-indent)" white-space-collapse="false"
                        white-space-treatment="preserve" wrap-option="wrap"
                        line-height-shift-adjustment="disregard-shifts" font-family="Courier New"
                        >That</fo:block>
                </fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-body>
</fo:table>

В результате получается, что нет нижней или верхней границы при разрыве строки на странице.

Я не могу опубликовать, если не добавлю больше деталей, по-видимому.

Когда документ отображается и в таблице есть строка, которая разрывы по всей странице, в нижней части страницы, где она была разорвана, нет границ, и в верхней части страницы, где она была разорвана, нет границ.

1 Ответ

1 голос
/ 06 февраля 2020

Добавление border-before-width.conditionality="retain" к fo:table решит вашу проблему. Смотрите следующий образец снимка, модифицированный из вашего образца файла FO.

Sample PDF snap-shot

...