Maintaining RTF formating in FOP/PDF - InfoPath Dev
in

InfoPath Dev

Maintaining RTF formating in FOP/PDF

Last post 08-29-2008 09:16 AM by RLPopeIII. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 08-29-2008 09:16 AM

    Maintaining RTF formating in FOP/PDF

    I am creating PDF reports with the xml data from a form.  The RTF fields have a lot of XHTML formatting.

    I am using Altova StyleVision to build my reports.  Unfortunately, StyleVision strips the XHTML elements out of the RTF field. 

    The reulting FOP code that Altova generates is:

     

    <xsl:for-each select="do:Definition">
      <xsl:for-each select="note:Note">
        <fo:inline>
          <xsl:apply-templates/>
        </fo:inline>
      </xsl:for-each>
    </xsl:for-each>
     
    I tried replacing xsl:apply-template with xsl:copy-of (which works with xslt to make html) but the FOP did not like that (It produces nothing).
     
    Is there a xslt/fo element that will expose and format the html in rtf elements?
     
    I am using the Apache FOP .20.5
     
    Thanks,
     
     
    Ren

     

    Filed under: , , , , ,
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.