| |
< section><title>Section</title > < p>Text</p > </Abschnitt > </Kapitel > < chapter><title>Chapter</title > < p>Text</p > < section><title>Section</title > < p>Text</p > </Abschnitt > < section><title>Section</title > < p>Text</p > </Abschnitt > </Kapitel > </Doc. > In diesem Beispiel wird das Inhaltsverzeichnis mit einem Punktführer zwischen dem Überschriftstext und der Seite formatiert Zahl. XSL Stylesheet: <?xml version='1.0 '? >, < xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform " xmlns:fo="http://www.w3.org/1999/XSL/Format " version='1.0 ' > < xsl:template-match="doc "> <! - - verursachen Sie das Inhaltsverzeichnis--> < xsl:apply-templates select="chapter/title "mode="toc"/> <! - - tun Sie das Dokument--> < xsl:apply-templates/> </xsl:template > < "mode="toc" xsl:template match="chapter/title > < fo:block Text-richten-last="justify "> aus < fo:simple-link interne-destination="{generate-id(.)}"> "< des xsl:number-level="multiple" count="chapter" format="1./> < xsl:apply-templates/> </fo:simple-link > < xsl:text > </xsl:text > < fo:leader leader-length.minimum="12pt "leader-length.optimum="40pt" Führer-length.maximum="100%"Führer-pattern="dots"/> < xsl:text > </xsl:text > < fo:page-number-citationhinweis-id="{generate-id(.)}"/> </fo:block > < xsl:apply-templates select="../section/title "mode="toc"/> </xsl:template > < "mode="toc" xsl:template match="section/title > < fo:block start-indent="10mm "Text-richten-last="justify" > aus < fo:simple-link interne-destination="{generate-id(.)}"> < xsl:number-level="multiple"count="chapter|Abschnitt"format="1.1-"/> < xsl:apply-templates/> </fo:simple-link > < xsl:text > </xsl:text > Inline--NiveaucFormatierungscGegenstände Seite 103 von 400 Extensible Markup Language (XSL) |  |
|
| |
|
|