Apache-PageKit

 view release on metacpan or  search on metacpan

eg/View/pdf/media.tmpl  view on Meta::CPAN


      <!-- each paragraph is encapsulated in a block element
           the attributes of the block define
           font-family and size, line-heigth etc. -->

      <!-- this defines a title -->
      <fo:block font-size="18pt" 
            font-family="sans-serif" 
            line-height="24pt"
            space-after.optimum="15pt"
            background-color="blue"
            color="white"
            text-align="center"
            padding-top="3pt">
	Media Test - PDF
      </fo:block>


      <!-- this defines normal text -->
      <fo:block font-size="12pt" 
                font-family="sans-serif" 

eg/View/pdf/simple_page.xsl  view on Meta::CPAN

    <xsl:apply-templates/>
   </fo:flow>
  </fo:page-sequence>
</fo:root>
 </xsl:template>
 <xsl:template match="header">
      <fo:block font-size="18pt" 
            font-family="sans-serif" 
            line-height="24pt"
            space-after.optimum="15pt"
            background-color="blue"
            color="white"
            text-align="center"
            padding-top="3pt">
  <xsl:value-of select="."/> PDF
      </fo:block>
 </xsl:template>
 <xsl:template match="para">
      <fo:block font-size="12pt" 
                font-family="sans-serif" 
                line-height="15pt"



( run in 0.978 second using v1.01-cache-2.11-cpan-f56aa216473 )