XML-Technologien / XSL-FO / Referenz / Funktionen in XSL-FO / body-start
(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Recommendationnummer: 5.10.4
Kategorie: 5.10.4 Property Value Functions
Die body-start-Funktion gibt den berechneten Wert für Listen aus, der mit dem "provisional-distance-between-starts"-Attribut bestimmt wird. Dieser spezifiziert in <fo:list-block> den linken Einzug des Rumpfes des Listenelements. Wenn die Funktion in <fo:list-item-body> als Wert vom Attribut "start-indent" verwendet wird, wird der in "provisional-distance-between-starts" angegebene Wert übernommen.
Werte
numeric body-start()
XSL-FO Version: 1.0
Unterstützung:
Conformance Level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Extended | J | J | J | ? | J |
XSL-FO Beispiel:
<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="Inhalt-Seiten" margin="0mm 0mm 0mm
0mm" page-height="297mm" page-width="210mm">
<fo:region-body margin="15mm 10mm 20mm 10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:flow flow-name="xsl-region-body">
<fo:list-block provisional-distance-between-starts="0.4cm" provisional-label-separation="0.15cm">
<fo:list-item start-indent="0.5cm">
<fo:list-item-label end-indent="label-end()">
<fo:block>
<fo:inline font-family="Symbol">
·
</fo:inline>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block text-align="justify">
here is text
in the list item body. here is text in the list item body.
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item start-indent="0.5cm">
<fo:list-item-label end-indent="label-end()">
<fo:block>
<fo:inline font-family="Symbol">
·
</fo:inline>
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block text-align="justify">
here comes a
nested list with numbers
<fo:list-block provisional-distance-between-starts="0.7cm" provisional-label-separation="0.15cm">
<fo:list-item start-indent="0.5cm">
<fo:list-item-label end-indent="label-end()">
<fo:block text-align="end">
1.)
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block text-align="justify">
nested list
item
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:flow>
</fo:page-sequence>
</fo:root>In der Ausgabe: