This is what is in my XML before FOP gets it: <attribute>&lt;/= 1.5%</attribute>
Looks like the double escaping you mentioned. Here is the total flow: --------------- Retrieve data from Oracle as string using XML SQL utility Parse into java classes using SAX (at this point I replace '<' with '<' in my SAX event handler's end Element event) Manipulate java classes/perform business logic Serialize java classes to XML string Send XML to FOP ------------------- I almost seems like I don't need to do the '<' to '<' replacement, in the EventHandler. But FOP was choking if I didn't. SAX must be doing some additional transformation, maybe after endDocument? -----Original Message----- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 3:38 PM To: [EMAIL PROTECTED] Subject: Re: problem with entity characters - < 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 '<' 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"></= 1.5%</fo:block> > > Which expect FOP To render as '</= 1.5%', but it doesn't. The '<' does > not get converted to '<'. The < 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] LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
