logo       

FOP + Batik interaction: msg#00014

Subject: FOP + Batik interaction
Hello

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="
http://www.w3.org/2000/svg";>
         <fo:layout-master-set>
            <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:simple-page-master>
         </fo:layout-master-set>

         <fo:page-sequence master-reference="first">
            <fo:static-content flow-name="xsl-region-before">
               <fo:block>
                  <fo:instream-foreign-object>
                     <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:block>
                        </svg:text>
                     </svg:svg>
                  </fo:instream-foreign-object>
               </fo:block>
            </fo:static-content>

            <fo:static-content flow-name="xsl-region-after">
               <fo:block>
                  <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="
#090E93">Footer</fo:block>
               </fo:block>
            </fo:static-content>

            <fo:flow flow-name="xsl-region-body">
               <fo:block text-align="left" font-family="Helvetica" color="
#090E93">
                  <xsl:apply-templates />
               </fo:block>
            </fo:flow>
         </fo:page-sequence>
      </fo:root>
   </xsl:template>
</xsl:stylesheet>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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.






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe