<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Maintaining RTF formating in FOP/PDF</title><link>https://www.infopathdev.com:443/forums/thread/31809.aspx</link><pubDate>Fri, 29 Aug 2008 16:16:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31809</guid><dc:creator>RLPopeIII</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31809</wfw:commentRss><description>&lt;p&gt;I am creating PDF reports with the xml data from a form.&amp;nbsp; The RTF fields have a lot of XHTML formatting.&lt;/p&gt;
&lt;p&gt;I am using Altova StyleVision to build my reports.&amp;nbsp; Unfortunately, StyleVision strips the XHTML elements out of the RTF field.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reulting FOP code that Altova generates is:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;font face="Arial" color="#000000" size="2"&gt;&amp;lt;xsl:for-each select=&amp;quot;do:Definition&amp;quot;&amp;gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp; &lt;font face="Arial" color="#000000" size="2"&gt;&amp;lt;xsl:for-each select=&amp;quot;note:Note&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;fo:inline&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;xsl:apply-templates/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fo:inline&amp;gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face="Arial" color="#000000" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;&amp;lt;/xsl:for-each&amp;gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I tried replacing xsl:apply-template with xsl:copy-of (which works with xslt to make&amp;nbsp;html)&amp;nbsp;but the FOP did not like that (It produces nothing).&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Is there a xslt/fo element that will expose and format the html in rtf elements?&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I am using the Apache FOP .20.5&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Thanks,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Ren&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>