I think you just need something as simple as:

<xsl:template match="p">
        <fo:block >
                <xsl:apply-templates/>
        </fo:block>
</xsl:template>

This will create a block area for your paragraph tags.  Modify the block 
as you need.

-Lou

Steve Osmond <[EMAIL PROTECTED]> wrote on 08/01/2007 12:42:16 PM:

> Thanks for your reply Lou.
> 
> This is a sample of the node of the xml that is causing the problem.
> 
> <COMMENTS>&lt;p&gt;test once again &lt;/p&gt;- - &lt;p&gt;&amp;nbsp;
> &lt;/p&gt;- - &lt;p&gt;test&lt;/p&gt;- - &lt;p&gt;&amp;nbsp;&lt;
> /p&gt;- - &lt;p&gt;test&lt;/p&gt;</COMMENTS>
> 
> Users will be entering the data that goes in here with a little html
> editor, so really they could be putting any html tags that they wantin 
there.
> 
> Thanks,
> 
> Stephen

> To: [email protected]
> Subject: Re: xml with html in it -> pdf issue
> From: [EMAIL PROTECTED]
> Date: Wed, 1 Aug 2007 07:40:47 -0400
> 
> 
> Stephen: 
> 
> Can you provide a snippet of your xml source?  Remember, you need to
> code the XSL that transforms html/xml to fo. 
> 
> -Lou 
> 
> 
> Steve Osmond <[EMAIL PROTECTED]> wrote on 07/31/2007 08:15:55 PM:
> 
> > 
> >     Hello,
> > 
> >     I am having an issue transforming some XML to a PDF.  The xml 
> > contains html which should show up in the PDF as what the html would
> > look like in a browser.
> > 
> >     At present, the html shows up when the pdf is generated with 
> > tags, such as <p>hello</p>
> > 
> >     Here is the snip from my xsl:
> > 
> >          <fo:table-row number-rows-spanned="3"  >
> >           <fo:table-cell number-columns-spanned="4">
> >             <fo:block >
> >              <xsl:value-of select="COMMENTS"/>
> >             </fo:block>
> >           </fo:table-cell>
> >         </fo:table-row>
> > 
> > 
> >     Let me know if I can give any more helpful information.
> > 
> >     Thanks,
> > 
> >     Stephen
> > 
> >     Connect to the next generation of MSN Messenger  Get it now!
> > 
> > 
> > Get news, entertainment and everything you care about at Live.com. 
> > Check it out!
> 
> Get news, entertainment and everything you care about at Live.com. 
> Check it out!

Reply via email to