W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2001

Please help generating a fo from a xml and xsl

From: Dudley Butt (ZA) <Dudley.Butt@za.didata.com>
Date: Fri, 16 Nov 2001 11:12:03 +0200
Message-ID: <9F3EC9F34AEAD4118D6000A0C9FB0C0502C84EBD@fgp0sv02.ics.didata.com>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>
Hi All, 

Could someone please help out here.
What i want to know is if it is possible to do the following...

I need to generate a .fo file for FOP, here is a snippet i wrote by hand of
part of my .fo file

<fo:table-header font-family="ArialBold" font-size="10pt" >
                 <fo:table-row >
                    <fo:table-cell  border-style="solid"
                                    border-left-width="0.1pt"
border-right-width="0pt"
                                    border-top-width="0.1pt"
border-bottom-width="0.1pt"
                                    padding-top="0.5pt">

                        <fo:block text-indent="2pt" >Client
Details</fo:block>
                      </fo:table-cell>

                      <fo:table-cell border-style="solid"
                                     border-left-width="0pt"
border-right-width="0.1pt"
                                     border-top-width="0.1pt"
border-bottom-width="0.1pt">
                        <fo:block></fo:block>
                      </fo:table-cell>

                      <fo:table-cell >
                        <fo:block></fo:block>
                      </fo:table-cell>


                      <fo:table-cell border-style="solid"
                                     border-left-width="0.1pt"
border-right-width="0pt"
                                     border-top-width="0.1pt"
border-bottom-width="0.1pt"
                                     padding-top="0.5pt">

                        <fo:block text-indent="2pt">Contact Details And
Numbers</fo:block>
                      </fo:table-cell>

                      <fo:table-cell border-style="solid"
                                     border-left-width="0pt"
border-right-width="0.1pt"
                                     border-top-width="0.1pt"
border-bottom-width="0.1pt">
                        <fo:block></fo:block>
                      </fo:table-cell>

                 </fo:table-row >
              </fo:table-header>

Is it possible to have the similair sort of effect as that of a CSS in HTML
where u can hold some specific formatting eg, as above on my table-cells, to
some sort of file, so that one doesn't have to duplicate the same formatting
for certain cells over and over again, this makes maintainance
impossible....please help.
I read that one can generate the .fo file using an XML and XSL file? Does
anyone have a example and instruction on how to go about this? 

Thanx



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************
Received on Friday, 16 November 2001 04:17:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT