Hi Christof,

Just to be clear, you've got an XML element that contains HTML and you
want that HTML to be interpreted as text (i.e. you want the HTML tags
removed?)? If so, this isn't strictly a FOP question, FOP isn't
responsible for analysing/parsing/interpreting XML directly (though
admittedly it does accept XML as input with an XSLT to transform the
XML to FO). Anyway, the point is, you want that knowledge to be in the
XSL. The XSL/XSLT is responsible for parsing the XML and converting it
into FO, how you do that is a question for an XSLT forum, but one way
would be using regexs to return the string you want. One google search
yielded http://www.xml.com/pub/a/2003/06/04/tr.html which seems like a
fairly nice little introduction to regexes in XSLT.

I hope that helps

Mehdi

On 25 January 2011 08:32, echoo <[email protected]> wrote:
>
> Dear
>
>
> I have a problem which I don't know how to solve:
>
>    I have an xml file which I want to transform to:
>    - a pdf file.
>    - a xsl file.
>
>   For this, I use Apache FOP (as I am working in a Java environment).
>    The result of this is nice except for one thing:
>
>    My xml has one field which is called 'introduction' and which accepts
> HTML contents.
>    After transformation, the plain html is shown in the pdf file.
>
>    I want the HTML to be interpreted.
>
>
> Yours Sincerely
>
>
>
> Christof
> --
> View this message in context: 
> http://old.nabble.com/FOP---HTML2PDF-tp30748316p30748316.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to