[xsl] assorted types of indented captions

Subject: [xsl] assorted types of indented captions
From: "Joerg Schmitz" <schmitz_joerg@xxxxxx>
Date: Thu, 5 Apr 2001 13:32:11 +0200

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

1.1. Ueberschrift

1.1.1. Ueberschrift

...and so on.

This is what I would like to have:

1. Ueberschrift (formated 20pt)

1.1. Ueberschrift (formated 15pt)

1.1.1. Ueberschrift (formated 12pt)

... and so on.

This is the XML-Code:

<?xml version="1.0"?>
      <Absatz>Text (1.)</Absatz>
            <Absatz>Erster Textteil</Absatz>
...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"
              <xsl:number level="multiple" count="Kapitel" 
                format="1.1.1. " />
              <xsl:value-of select="Ueberschrift"/>

             <xsl:apply-templates select="Absatz"/>


  <xsl:template match="Absatz">
    <fo:block font-size="12pt" line-height="15pt" 
      font-family="serif" space-after.optimum="10pt">
      <xsl:value-of select="."/>


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