W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2003

FOP + Batik interaction

From: <Stefan.Gaertners@trinkaus.de>
Date: Mon, 27 Jan 2003 09:48:40 +0100
To: batik-users@xml.apache.org, www-xsl-fo@w3.org
Message-ID: <OFD3D80463.3858E7A3-ONC1256CBB.0029A1C6-C1256CBB.00305C49@int.trinkaus.de>


I think i've a problem with the interaction between FOP and Batik.

My problem is:

In a Headline of a page in want to draw a rectangle and a line together
with the pagenumber. The pagenumber should appear in the middle/above the
rectangle.  But when i try to draw the pagenumber using <fo: page-number />
inside an SVG-section i didn't see the number.  What's going wrong in my
code that i've attached.

Does anyone have an idea or solution for me. That would be great.

Kind regards,
      Stefan Gaertners.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:fo="
http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
   <xsl:template match="xmldb/database/records">
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="
            <fo:simple-page-master margin-top="0.5cm" margin-bottom="0.5cm"
margin-left="0.5cm" margin-right="0.5cm" page-width="20.0cm" page-height
="20.0cm" master-name="first">
               <fo:region-body margin-top="1.5cm" margin-bottom="0.8cm" />

               <fo:region-before extent="1.5cm" />

               <fo:region-after extent="1.0cm" />

         <fo:page-sequence master-reference="first">
            <fo:static-content flow-name="xsl-region-before">
                     <svg:svg width="19.0cm" height="30pt">
                        <svg:rect style="fill:#090E93;stroke:#090E93" width
="25pt" height="25pt" />

                        <svg:line x1="1pt" y1="14pt" x2="19.0cm" y2="14pt"
stroke-width="2" stroke="#090E93" />

                        <svg:text x="12.5pt" y="17pt" fill="white"
text-anchor="middle" font-family="helvetica" font-size="12pt">
                           <fo:block font-size="10.5pt" font-family
="Helvetica" color="#090E93">
                              <fo:page-number />

            <fo:static-content flow-name="xsl-region-after">
                  <fo:leader leader-pattern="rule" color="#090E93"
rule-thickness="2pt" />

                  <fo:block font-size="10.5pt" font-family="Helvetica"
line-height="12pt" space-after.optimum="3pt" text-align="center" color="

            <fo:flow flow-name="xsl-region-body">
               <fo:block text-align="left" font-family="Helvetica" color="
                  <xsl:apply-templates />
Der Austausch von Nachrichten mit HSBC Trinkaus & Burkhardt via E-Mail
dient ausschliesslich Informationszwecken. Rechtsgeschaeftliche
Erklaerungen duerfen ueber dieses Medium nicht ausgetauscht werden.
Verfaelschungen des urspruenglichen Inhaltes dieser Nachricht bei der
Datenuebertragung koennen nicht ausgeschlossen werden.

Correspondence with HSBC Trinkaus & Burkhardt via e-mail is only for
information purposes. This medium is not to be used for the exchange of
legally-binding communications. The falsification of the original content
of this message in the course of data transmission cannot be excluded.
Received on Monday, 27 January 2003 03:50:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:27 UTC