[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

assorted types of indented captions

Subject: assorted types of indented captions
From: "Joerg Schmitz" <schmitz_joerg@xxxxxx>
Date: Thu, 5 Apr 2001 13:32:11 +0200
xml xsl formated bold
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.