- 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
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.
Received on Monday, 27 January 2003 03:50:35 UTC