xsl-fo to word

Hello Am trying to convert an xsl-fo file to a word document. The conversion
is working fine but it does not include the table in the word document
properly and when printed the table disappears....the xsl-fo file is shown
below, how can this be fixed?

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
  <fo:simple-page-master master-name="funcSpec" page-height="11in" 
   page-width="8.5in" margin-top="1in" margin-bottom="1in" 
   margin-left="1in" margin-right="1in">
   <fo:region-body margin-top="1in" margin-bottom=".5in"/>
   <fo:region-before extent=".5in" background-color="black"/>
   <fo:region-after extent=".5in" background-color="black"/>
   <fo:region-start  extent=".5in"/>
  </fo:simple-page-master>
 </fo:layout-master-set>
 
 <fo:page-sequence master-reference="funcSpec">
  <fo:static-content flow-name="xsl-region-before">
  <fo:block font-size='16pt' font-family= 'Arial' font-weight="bold" 
space-after="3mm">User Process Design</fo:block>
  </fo:static-content>
  <fo:static-content flow-name="xsl-region-after">
   <fo:block font-size="12pt" text-align="right">
    Page <fo:page-number/>
 </fo:block>
 </fo:static-content>
  <fo:flow flow-name="xsl-region-body">
   <fo:block font-size='13pt'  font-family= 'Arial'  text-align="left"
font-weight="bold">
    #foreach ($compProc in $CompositeUserProcessHome)
        $compProc.displayName
        #if ($compProc.shortDesc == " ")
                    #set ($desc = "No Documentation for Process")
                #else
                    #set ($desc = $compProc.shortDesc)                
                #end
        <fo:block font-family = 'Century Gothic' font-size="10pt"
font-weight="regular" space-after="2mm" text-align="left">$desc</fo:block>
        <fo:block font-family = 'Century Gothic' font-size="10pt"
font-weight="regular" space-after="1mm" text-align="left">#set
($processEntry = $compProc.getCompositeProcessEntriesArray())
        </fo:block>
        <fo:table  border-collapse="collapse"  font-size="12pt"
font-family="Arial" 
        font-style="normal"  space-after="5mm" border-width="2mm"> 
       <fo:table-header  text-align="left" background-color="silver">
        <fo:table-row>
            <fo:table-cell padding="2pt" border="1pt solid black">
                <fo:block font-family = 'Century Gothic' font-size="10pt"
font-weight="regular">Start flow</fo:block>
            </fo:table-cell>
            <fo:table-cell padding="2pt" border="1pt solid black">
                <fo:block font-family = 'Century Gothic' font-size="10pt"
font-weight="regular">Advisory flow</fo:block>
            </fo:table-cell>
            <fo:table-cell padding="2pt" border="1pt solid black">
                <fo:block font-family = 'Century Gothic' font-size="10pt"
font-weight="regular">End flow</fo:block>
            </fo:table-cell>
        </fo:table-row>
    </fo:table-header>
     <fo:table-body>
       <fo:table-row>
            <fo:table-cell padding="2pt" border="1pt solid black">
                <fo:block font-family = 'Century Gothic' font-size="10pt"
font-weight="regular" text-align="justify">  #foreach ($entry in
$processEntry)
                #if ( $entry.eventTypes =="PROCESS_ENTRY")
                   #set ($flowName = $entry.compositeFlowItem.displayName)
                        #else
                    #set ($flowName = " ")  
                    #end
                     $flowName 
                   #end
                     </fo:block>
            </fo:table-cell>
            <fo:table-cell padding="2pt" border="1pt solid black">
                <fo:block font-family = 'Century Gothic' font-size="10pt"
font-weight="regular" text-align="justify"> #foreach ($entry in
$processEntry)
                    #if ($entry.eventTypes =="PROCESS_ADVISORY")
                     #set ($flowName = $entry.compositeFlowItem.displayName)
                        #else
                    #set ($flowName = " ")  
                    #end 
                    $flowName
                    #end
                      </fo:block>
            </fo:table-cell>
            <fo:table-cell padding="2pt" border="1pt solid black">
                <fo:block font-family = 'Century Gothic' font-size="10pt"
font-weight="regular" text-align="justify"> #foreach ($entry in
$processEntry)
                    #if ($entry.eventTypes =="PROCESS_EXIT")
                     #set ($flowName = $entry.compositeFlowItem.displayName)
                        #else
                    #set ($flowName = " ")   
                    #end
                     $flowName
                    #end
                  </fo:block>
            </fo:table-cell>
        </fo:table-row> 
    </fo:table-body>  
    </fo:table>   
    #end
    
    <fo:block font-size='16pt' font-family= 'Arial' font-weight="bold" 
space-after="3mm">Composite Pages</fo:block>
    <fo:block font-size='10pt'  font-family= 'Century Gothic' 
text-align="left" font-weight="bold">
    #foreach ($compPage in $NewFlowItemHome)
     $compPage.CompositePage.displayName
     $compPage.CompositePage.pageElements.findFirstDisplayName(
$compPage.CompositePage.displayName) 
     <fo:block font-size='10pt'  font-family= 'Century Gothic' 
text-align="left" font-weight="normal">
     New Flow Item: $compPage.displayName
     </fo:block>
    #end
    </fo:block>
   </fo:block>
   <fo:block id="last-page"/>
  </fo:flow>
 </fo:page-sequence>
 
</fo:root>


thanks in advance
 
 




-- 
View this message in context: http://www.nabble.com/xsl-fo-to-word-tp17491836p17491836.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.

Received on Wednesday, 28 May 2008 03:36:50 UTC