xsl:fo retrieve-marker not valid child

后端 未结 1 533
野的像风
野的像风 2021-01-21 10:58

I need for my xsl:fo transformation an in an table but I don\'t know if this is possible because I use FOP Processor for my transformatio

1条回答
  •  不思量自难忘°
    2021-01-21 11:26

    (disclosure: I'm a FOP developer)

    This example has dynamic table header and table footer, so it should cover your requirements:

    • if the table fits in a single page, both table header and table footer are empty
    • if the table is split over several pages
      • the table header is empty for the first page, and in the following ones it says "(continued)"
      • the table footer is empty for the last page, and in the previous ones it says "(continues on the next page)"
    • tested with FOP 2.0 (older versions did not support table markers); due to FOP's current limitations, the non-breaking space   in the table header and table footer is a necessary "placeholder" (the header / footer dimensions are computed just once, without marker content)
    • no formatter-specific extensions, so this could work with other formatters too (XslFormatter supports table markers; XEP has alternative workarounds)

    FO fragment:

      
        
        
          
            
              
                
                 
              
            
          
        
        
          
            
              
                
                 
              
            
          
        
        
          
          
            
              
                
                (continues on the next page)
                cell1
              
            
          
          
          
            
              
                (continued)
                (continues on the next page)
                cell2
              
            
          
          
          
          
            
              
                (continued)
                
                cell9
              
            
          
        
      
    

    0 讨论(0)
提交回复
热议问题