Subject: [xsl] assorted types of indented captions From: "Joerg Schmitz" <schmitz_joerg@xxxxxx> Date: Thu, 5 Apr 2001 13:32:11 +0200 |
Hello, I am working on indented captions / headers in XSL:Fo. I am trying the different forms of indented captions. I´m somehow convinced that it is not possible to give the headers of each caption different form sizes. Has anyone got a clue that can make me change my mind? This is how it looks like now (PDF): 1. Ueberschrift Text 1.1. Ueberschrift Text 1.1.1. Ueberschrift Text ...and so on. This is what I would like to have: 1. Ueberschrift (formated 20pt) Text 1.1. Ueberschrift (formated 15pt) Text 1.1.1. Ueberschrift (formated 12pt) Text ... and so on. This is the XML-Code: <?xml version="1.0"?> <Bedienungsanleitung> <Kapitel> <Ueberschrift>Kapitelueberschrift</Ueberschrift> <Absatz>Text (1.)</Absatz> <Kapitel> <Ueberschrift>Ueberschrift</Ueberschrift> <Absatz>Text</Absatz> <Kapitel> <Ueberschrift>Ueberschrift</Ueberschrift> <Absatz>Erster Textteil</Absatz> </Kapitel> </Kapitel> ...and so on and this one the important part of the XSL:Fo-file: <fo:flow flow-name="xsl-region-body"> <xsl:for-each select="//Kapitel"> <fo:block text-align="start" font-size="18pt" line-height="21pt" font-weight="bold" font-family="serif" space-before.optimum="17pt" space-after.optimum="13pt"> <xsl:number level="multiple" count="Kapitel" format="1.1.1. " /> <xsl:value-of select="Ueberschrift"/> </fo:block> <xsl:apply-templates select="Absatz"/> </xsl:for-each> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template match="Absatz"> <fo:block font-size="12pt" line-height="15pt" font-family="serif" space-after.optimum="10pt"> <xsl:value-of select="."/> </fo:block> </xsl:template> </xsl:stylesheet> ______________________________________________________________________________ Die Fachpresse ist sich einig: WEB.DE 20mal Testsieger! Kostenlos E-Mail, Fax, SMS, Verschlüsselung, POP3, WAP....testen Sie uns! http://freemail.web.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[no subject], David Carlisle | Thread | [xsl] SAXON limitation?, mjyoungblut |
[no subject], Tanzila Mohammad | Date | [no subject], David Carlisle |
Month |