XSL-FO Liste Bl�cke
|
Um zu verursachen sind Listen dort vier XSL-FO Gegenst�nde:
- fo:list-block (it contains the whole list)
- fo:list-item (it contains each item in the list)
- fo:list-item-label (it contains the label for the list-item
like number, character, etc.)
- fo:list-item-body (contains the body of the list-item -
typically one or more <fo:block> objects)
|
|
- provisional-distance-between-starts
- provisional-label-separation
- start-indent for list-item-label
- start-indent for list-item-body
- end-indent for list-item-label
- end-indent for list-item-body
|
Beispiel:
|
Jetzt eine XSLT Schablone verursachen, um eine bestellte Liste anzufassen. Den Anfangseinzug des Liste Einzelteilaufklebers einstellen, und den Rest bis zum GECK lassen. Indem sie den relativen EM Abstand verwenden, willen Listen geben angemessenen Abstand mit jedem m�glichem Gr��e Schriftkegel.
|
<xsl:template match="ol">
<fo:list-block
space-before="0.25em" space-after="0.25em">
<xsl:apply-templates/>
</fo:list-block>
</xsl:template>
<xsl:template match="ol/li">
<fo:list-item space-after="0.5ex">
<fo:list-item-label start-indent="1em">
<fo:block>
<xsl:number/>.
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>
<xsl:apply-templates/>
</fo:block>
</fo:list-item-body>
</fo:list-item>
</xsl:template>
|
|
|
Keywords : convert xsl,
display xsl,
docbook fo,
docbook xsl,
fo elements,
fo examples,
fo reference,
fo table,
fo text,
fo tutorial,
html fo,
msxml xsl,
pdf fo,
string xsl,
svg xsl,
value xsl,
w3c xsl,
w3schools xsl,
xalan xsl,
xsl attribute,
xsl attributes,
xsl cdata,
xsl count,
xsl css,
xsl date,
xsl doctype,
xsl document,
xsl dom,
xsl dtd,
xsl element,
xsl elements,
xsl encoding,
xsl entity,
xsl example,
xsl examples,
xsl fo inline,
xsl function,
xsl href,
xsl html,
xsl include,
xsl javascript,
xsl name,
xsl namespace,
xsl node,
xsl output,
xsl processor,
xsl reference,
xsl schema,
xsl sort,
xsl stylesheet,
xsl syntax,
xsl tag,
xsl tags,
xsl template,
xsl text,
xsl tutorial,
xsl tutorials,
xsl using,
xsl variable,
xsl xhtml,
xsl xpath
|