xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjohn P. Villedo" <bvill...@chpii.com>
Subject FOP commands to XSL
Date Fri, 12 Mar 2004 06:02:01 GMT
hi all,

Good Day!!!

i am really new to this thus the experimentation. i wanted to create 
tables that are side by side each other like on a page i have 5 tables 
aligned side by side with each other... am really not sure how this is 
done but as far as reading is concerned i came across block-
containers property i was wondering if you could help me convert 
these lines FO to XSL lines

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<fo:block-container border-color="black" border-style="solid" border-
width=".5mm" height="0.5cm" width="8.95
cm" top="3cm" left="0cm" padding=".6mm" position="absolute">
                <fo:block text-align="start" line-height="14pt" font-
family="sans-serif" font-size="12pt">
                    SOLD TO
                </fo:block>
            </fo:block-container>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

i just found those lines in the example/fo/basic/border.fo file which 
clearly works on this url 
http://www.chpii.com:8080/fop?fo=/usr/local/fop/examples/fo/basic/b
order.fo

now since we are getting data from a dynamic source the approach 
was to create an XML file then use the XSL file to translate the XML 
file then further convert it to PDF file

inside the XSL file i tried this but didn't work
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<xsl:template match="block_table">
  <fo:block-container border-color="black"
                      border-style="solid"
                      border-width=".5mm"
                      height="0.5cm"
                      width="8.95cm"
                      top="3cm"
                      left="0cm"
                      padding=".6mm"
                      position="absolute">
    <fo:block text-align="start" 
                   line-height="14pt" 
                   font-family="sans-serif" 
                   font-size="12pt">
      <xsl:apply-templates/>                   
   </fo:block>
  </fo:block-container>
</xsl:template>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


inside the XML file i tried
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<block_table>
this is a test
</block_table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

but the browser gave me the error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Failed To Execute Pipeline
org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: java.lang.RuntimeException: 
java.lang.ClassCastException: org.apache.fop.layout.BlockArea
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

hope you could help me in this endeavor... all the best!!


pal,
benjohn

---------------------------------------------------------------------
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