<xsl:template match="/">
  <fo:root >
   <xsl:call-template name="BOOKMARKS"/>

   <fo:layout-master-set>
     <fo:simple-page-master master-name="simple"
     page-height="16.4cm"
     page-width="24.2cm"
     margin-top="0.5cm"
     margin-bottom="0.5cm"
     margin-left="2cm"
     margin-right="2cm">
         <fo:region-before precedence="true" extent="1.2cm"/>
    <fo:region-body margin-top="1.1cm" margin-bottom="0.75cm"/>
         <fo:region-after precedence="true" extent="0.5cm"/>
    </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-reference="simple">
    <fo:static-content flow-name="xsl-region-before">
     <fo:block text-align="left"
       font-size="8pt"
       font-family="serif"
       line-height="14pt" vertical-align="top">

      <xsl:call-template name="PAGE_HEADER"/>

     </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after">
     <fo:block text-align="end"
       font-size="8pt"
       font-family="serif"
       line-height="14pt" vertical-align="bottom" >

      <xsl:call-template name="PAGE_FOOTER"/>

     </fo:block>
    </fo:static-content>
    <fo:flow flow-name="xsl-region-body">
     <xsl:apply-templates select="MYDATA"/>
     <fo:block id="last-page"/>
    </fo:flow>
   </fo:page-sequence>
  </fo:root>
 </xsl:template>

 <xsl:template name="PAGE_HEADER">
  <fo:table border-collapse="collapse" table-layout="fixed">
   <fo:table-column column-width="6.7cm"/>
   <fo:table-column column-width="6.7cm"/>
   <fo:table-column column-width="6.7cm"/>
   <fo:table-body>
    <fo:table-row>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block font-weight="bold"><xsl:text>PROJECT:
</xsl:text><xsl:value-of select="MYDATA/@ClientName"/><xsl:text>
</xsl:text><xsl:value-of select="MYDATA/@ProjectName"/></fo:block>
     </fo:table-cell>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block text-align="center"
font-weight="bold"><xsl:text>STUFF</xsl:text></fo:block>
     </fo:table-cell>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block text-align="right"
font-weight="bold"><xsl:text>Initials:_____________</xsl:text></fo:block>
     </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block font-weight="bold"><xsl:text>REVISION: </xsl:text> <!--
Revision parm? --></fo:block>
     </fo:table-cell>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block text-align="center" font-weight="bold"><xsl:text>Status:
DRAFT</xsl:text><!-- Status parm? --></fo:block>
     </fo:table-cell>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block text-align="right"
font-weight="bold"><xsl:text>Date:______________</xsl:text></fo:block>
     </fo:table-cell>
    </fo:table-row>
   </fo:table-body>
  </fo:table>
 </xsl:template>

 <xsl:template name="PAGE_FOOTER">
  <fo:table border-collapse="collapse" table-layout="fixed">
   <fo:table-column column-width="6.7cm"/>
   <fo:table-column column-width="6.7cm"/>
   <fo:table-column column-width="6.7cm"/>
   <fo:table-body>
    <fo:table-row>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block text-align="left" font-weight="bold"><xsl:text>My Company
Inc. </xsl:text></fo:block>
     </fo:table-cell>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block
text-align="center"><xsl:text>Confidential</xsl:text></fo:block>
     </fo:table-cell>
     <fo:table-cell border-collapse="collapse" padding-before="1pt"
padding-left="1pt" padding-right="1pt" padding-after="1pt">
      <fo:block text-align="right">Page <fo:page-number/> of
<fo:page-number-citation ref-id="last-page"/></fo:block>
     </fo:table-cell>
    </fo:table-row>
   </fo:table-body>
  </fo:table>
 </xsl:template>

 <xsl:template name="BOOKMARKS">
   <xsl:for-each select="MYDATA">
    <fox:outline internal-destination="{position()}">
     <fox:label><xsl:value-of select="@SomeField"/></fox:label>
    </fox:outline>
   </xsl:for-each>
 </xsl:template>


 <xsl:template match="MYDATA">
    .
    .
    .
    .
    .
 </xsl:template>
    .
    .
    .
    .
    .


----- Original Message -----
From: "Fischer Tibor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 1:47 PM
Subject: bookmark


> Hello,
>
> How can i put entries into the bookmark of the pdf??
>
> Thanks
>
> BR,
> Fishy
>
>

Reply via email to