Holk, David A wrote:
I am creating an XML input file as a string in Java and then send it to fop
as a StreamSource. I convert '<' to '&lt;' when I am creating the XML. If I
don't, the XSLT engine chokes.

If I look at the .fo that is created when I run my stylesheet I find:
<fo:block font-size="7pt">&lt;/= 1.5%</fo:block>

Which expect FOP To render as '</= 1.5%', but it doesn't. The '&lt;' does
not get converted to '<'.

The &lt; should be converted by the parser reading from your XML string, before it even gets into the XSLT processor.

Try the following:
1. Dump the result of the transformation and run it through the
FOP command line.
2. Dump the XML string into a file and run it and the style sheet
through the FOP command line.
3. Are you using disable-output-escaping anywhere? Remove it and
try again.
4. Run the dumped XML string through a stand-alone XSLT processor
and check the result.

J.Pietschmann


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to