You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Fischer Tibor <fi...@freemail.hu> on 2002/04/12 19:47:27 UTC

bookmark

Hello,

How can i put entries into the bookmark of the pdf??

Thanks

BR,
Fishy



Re: bookmark

Posted by Joe Sytniak <jo...@usol.com>.
OOPS!!  I forgot about the namespace that must be added. Sorry.

xmlns:fox="http://xml.apache.org/fop/extensions"     

----- Original Message ----- 
From: "Joe Sytniak" <jo...@usol.com>
To: <fo...@xml.apache.org>
Sent: Friday, April 12, 2002 3:14 PM
Subject: Re: bookmark


> <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" <fi...@freemail.hu>
> To: <fo...@xml.apache.org>
> 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
> >
> >
> 


Re: Using FOP to create a query string from XML and XSL

Posted by Ian Taylor <ia...@inatos.com>.
Yes sorry, I've been doing the pdf side of things so long my mind got 
addled. Xalan is what I need. Thanks.

At 02:53 PM 4/16/2002 +0100, you wrote:
>At 14:39 16/04/2002, Ian Taylor wrote:
>>Is it possible to create a query string using FOP?
>>
>>I have been producing PDF's using the FileOutputStream which is working 
>>well. Do I just use a different OuputStream to create a query string that 
>>can be used to query a database?
>>
>>Thanks
>
>
>You'll forgive me for suggesting that you are a bit confused, I sure am. 
>FOP creates page descriptions suitable for printing eg PDF, RTF, or other 
>more exotic formats. I can't see any reason for the output of FOP to be 
>used for a query string.
>
>Do you perhaps mean the output of Xalan (the XSLT engine)? If so then 
>perhaps an XSL or Xalan mailing list may be more appropriate. You will 
>need to give a better explanation of what you need (and what you already 
>understand) before people will be able to help you.
>
>
>Alex
>
>
>
>
>
>Openweb Analysts Ltd, London: Software For Complex Websites 
>http://www.OWAL.co.uk/
>Free Consultancy for London Companies thinking of Open Source Software.


Re: Using FOP to create a query string from XML and XSL

Posted by Alex McLintock <al...@OWAL.co.uk>.
At 14:39 16/04/2002, Ian Taylor wrote:
>Is it possible to create a query string using FOP?
>
>I have been producing PDF's using the FileOutputStream which is working 
>well. Do I just use a different OuputStream to create a query string that 
>can be used to query a database?
>
>Thanks


You'll forgive me for suggesting that you are a bit confused, I sure am. 
FOP creates page descriptions suitable for printing eg PDF, RTF, or other 
more exotic formats. I can't see any reason for the output of FOP to be 
used for a query string.

Do you perhaps mean the output of Xalan (the XSLT engine)? If so then 
perhaps an XSL or Xalan mailing list may be more appropriate. You will need 
to give a better explanation of what you need (and what you already 
understand) before people will be able to help you.


Alex





Openweb Analysts Ltd, London: Software For Complex Websites 
http://www.OWAL.co.uk/
Free Consultancy for London Companies thinking of Open Source Software.


Using FOP to create a query string from XML and XSL

Posted by Ian Taylor <ia...@inatos.com>.
Is it possible to create a query string using FOP?

I have been producing PDF's using the FileOutputStream which is working 
well. Do I just use a different OuputStream to create a query string that 
can be used to query a database?

Thanks


Re: bookmark

Posted by Joe Sytniak <jo...@usol.com>.
<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" <fi...@freemail.hu>
To: <fo...@xml.apache.org>
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
>
>