xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timo Haberkern <thaberk...@emedia-office.de>
Subject Re: Images in region-start?
Date Fri, 06 Dec 2002 10:05:10 GMT
Does nobody have a hint or a solution for my problem. It's a very urgent 
problem for me and i would be very happy to hear from someone who can 
help me...

Timo

Timo Haberkern wrote:

> hello,
>
> I'm trying to place an image (JPEG) on the left and right side of my 
> page that runs the
> allmost the whole length of the page inside the region-start and 
> region-end.
> But best it will ever get is approx. 3/4 of the length of the page.
>
> I've tried everything! can someone tell me what i'm doing wrong?
>
> My stylesheet:
>
> <?xml version='1.0' encoding="ISO-8859-1"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
> xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
>     <!--    
>     **************************************************
>     *** root rule. Defines the general site layout
>     **************************************************
>     -->
>     <xsl:template match="/">
>         <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>             <fo:layout-master-set>
>                 <!-- Layout of the first site -->
>                 <fo:simple-page-master master-name="First" 
> page-height="29.7cm" page-width="21cm">
>                     <fo:region-body  region-name="first-body" 
> margin-left="3.4cm" margin-right="3.4cm" margin-top="7cm"/>
>                     <fo:region-before  precedence="false" 
> extent="3.4cm" region-name="PucaroLeftGradientSideBar"/>
>                     <fo:region-after precedence="false" extent="1.5cm"/>
>                     <fo:region-start extent="7cm" 
> region-name="PucaroHeader"/>
>                     <fo:region-end extent="2.4cm" 
> region-name="PucaroRightProductSideBar"/>
>                    
>                 </fo:simple-page-master>
>                
>                 <!-- Layout of all following sites -->
>                 <fo:simple-page-master master-name="Following" 
> page-height="29.7cm" page-width="21cm">
>                     <fo:region-start extent="7cm" 
> region-name="PucaroHeader"/>
>                     <fo:region-before extent="29.7cm" 
> region-name="PucaroLeftGradientSideBar"/>
>                     <fo:region-body region-name="first-body" 
> margin-bottom="1.8cm" margin-left="2cm" margin-right="0cm" 
> margin-top="2cm"/>
>                 </fo:simple-page-master>
>                
>                 <!-- The page sequence master -->
>                 <fo:page-sequence-master master-name="PucaroSchema">
>                     <fo:single-page-master-reference 
> master-reference="First"/>
>                     <fo:repeatable-page-master-reference 
> master-reference="Following"/>
>                 </fo:page-sequence-master>
>             </fo:layout-master-set>
>            
>             <fo:page-sequence master-reference="PucaroSchema">
>                 <!-- static sequences: Pucaro left gradient sidebar -->
>                 <fo:static-content flow-name="PucaroLeftGradientSideBar">
>                     <fo:block-container border-color="black" 
> border-style="solid" border-width="0.5pt" height="27cm" width="0.65cm" 
> top="2cm" left="2cm" position="absolute">
>                         <fo:block>
>                             <fo:external-graphic width="0.65cm" 
> height="25.9cm" 
> src="file:../elk/develop/Layouts/Pucaro/pdf/leftgradient.gif"/>
>                         </fo:block>
>                     </fo:block-container>
>                 </fo:static-content>
>                
>                 <!-- static sequences: Pucaro right product sidebar -->
>                 <fo:static-content flow-name="PucaroRightProductSideBar">
>                     <fo:block-container border-color="black" 
> border-style="solid" border-width="0.5pt" height="27cm" width="2.4cm" 
> top="2cm" left="0cm" position="absolute">
>                         <fo:block>
>                             <fo:external-graphic scaling="non-uniform" 
> width="24mm" height="259mm" 
> src="file:../elk/develop/Layouts/Pucaro/pdf/rightproducts.gif"/>
>                         </fo:block>
>                     </fo:block-container>
>                 </fo:static-content>
>                
>                 <!-- static sequences: Pucaro header -->
>                 <fo:static-content flow-name="PucaroHeader">
>                     <fo:block-container border-color="black" 
> border-style="solid" border-width="0.5pt" height="5cm" padding="0" 
> width="14.2cm" top="2cm" left="3.4cm" position="absolute">
>                         <xsl:apply-templates 
> select="ELKDocument/eo_51ba8178-02cc-11d7-a9ff-8012d336c952"/> <!-- 
> Block_Kopfbereich_Motoren -->
>                         <xsl:apply-templates 
> select="ELKDocument/eo_"/> <!-- Block_Kopfbereich_Trafo -->
>                     </fo:block-container>
>                 </fo:static-content>
>                                
>                 <fo:flow flow-name="first-body">
>                     <fo:block background-color="rgb(211,231,188)">
>                         <xsl:apply-templates select="ELKDocument"/>
>                     </fo:block>   
>                 </fo:flow>
>             </fo:page-sequence>
>         </fo:root>
>     </xsl:template>
>     
>     <!--    
>     **************************************************
>     *** ELK document rule
>     **************************************************
>     -->
>     <xsl:template match="ELKDocument">
>         <fo:block>Hello World</fo:block>
>     </xsl:template>
>     
>     <!-- Block_Kopfbereich_Motoren -->
>     <xsl:template match="eo_51ba8178-02cc-11d7-a9ff-8012d336c952">
>         <fo:table width="14.2cm" table-layout="fixed">
>             <fo:table-column column-width="9.2cm"/>
>             <fo:table-column column-width="5cm"/>
>             <fo:table-body>
>                 <fo:table-row>
>                     <fo:table-cell>
>                         <fo:block font-size="20pt" font-weight="bold" 
> color="rgb(77,175,74)">
>                             <xsl:value-of 
> select="eo_51afd2a2-02cc-11d7-a9ff-8012d336c952"/> <!-- 
> Dokumenten_Benennung -->
>                         </fo:block>
>                     </fo:table-cell>
>                     <fo:table-cell display-align="after">
>                         <fo:block>
>                             <fo:external-graphic>
>                                 <xsl:attribute 
> name="width">5cm</xsl:attribute>
>                                 <xsl:attribute name="src">
>                                     <xsl:value-of 
> select="eo_f4678ee4-02e6-11d7-99e8-bc7bf02e2c02"/> <!-- 
> Logo_Pucaro_ohneZusatz -->
>                                 
> </xsl:attribute>                                 
>                             </fo:external-graphic>
>                         </fo:block>
>                     </fo:table-cell>
>                 </fo:table-row>
>             </fo:table-body>
>         </fo:table>
>         <fo:block space-before.optimum="0.35cm" font-size="18pt" 
> line-height="20pt" color="black" font-weight="bold">
>             <xsl:value-of 
> select="eo_51afd2a4-02cc-11d7-a9ff-8012d336c952"/> <!-- 
> Ueberschrift_Haupt -->
>         </fo:block>       
>         <fo:block font-size="12pt" color="black">
>             <xsl:value-of 
> select="eo_51afd2a5-02cc-11d7-a9ff-8012d336c952"/> <!-- 
> Ueberschrift_Unter -->
>         </fo:block>
>        
>     </xsl:template>
>
> </xsl:stylesheet>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
> .
>

-- 
GrĂ¼sse

Timo Haberkern

EMEDIA OFFICE GmbH
Wingertstr. 4
74850 Schefflenz-Kl.

http://www.emedia-office.com
thaberkern@emedia-office.de

Tel.: 06293/921121
Fax:  06293/921129



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message