Greg S.,
Those line numbers in this case (of an illegal character) are
approximations.
I would suggest that you save your original document.
Use a copy of your document.
Cut the first 100 lines. (It has to be well formed of course.)
Send it through.
Keep going until your are close to the error.
If you can take the short cut, then get a freeware unicode aware
program to check your document. I use babelpad.
Open the document in Babelpad.
Tools>Document analysis
This will give you a line and position that is exact.
You can do this alot of ways, but these are my suggestions. I assume
that you have your encodings correct in your stylesheet for output
UTF-8.
Mike Ferrando
Library Technician
Library of Congress
Washington, DC
202-707-4454
--- Greg Stark <[EMAIL PROTECTED]> wrote:
> fop-users,
> How can I resolve this? Is there a way on Solaris to search and
> replace
> 0000x0 characters. This is an XSLT question, I am asking here
> because it is
> part of my FOP process before the file is translated to fo and then
> a PDF.
>
> The file saved as UTF-8 contains Chinese characters. I go to that
> location,
> and there is no null character there! I can replace spaces before
> the
> location with and this seems to move the message to a new
> location.
> No pattern has emerged yet.
>
> /usr/local/FOP/xalan.sh -v
> >>>>>>> Xalan Version Xalan Java 2.2.D11, <<<<<<<
>
> /usr/local/FOP/xalan.sh -in maporder2153450ZHSS.xml -XSL
> ZHrsShip_data.xsl
> -out tmp2.xml
> [Fatal Error] ZHrsShip_data.xsl:420:95: An invalid XML character
> (Unicode:
> 0x0) was found in the element content of the document.
> file:///XMLFOP/rsship/ZHrsShip_data.xsl; Line 420; Column 95; XSLT
> Error
> (javax.xml.transform.TransformerConfigurationException):
> javax.xml.transform.TransformerException:
> org.xml.sax.SAXParseException: An
> invalid XML character (Unicode: 0x0) was found in the element
> content of the
> document.
>
> ZHrsShip_data.xsl file available on request.
>
> I appreciate your time and help.
> Thank you very much.
>
> Greg Stark <gstark at electrorent dot com>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]