Re: [Ikvm-developers] ikvm fails with xml files set with the processinginstruction to encoding=utf-
Brought to you by:
jfrijters
|
From: Michael K. <mi...@sa...> - 2007-07-31 09:34:14
|
This is very unlikely to have anything to do with IKVM. My guess is that it's a question of whether or not the XML parser recognizes a byte-order-mark at the start of the file (some do, some don't). Perhaps = the XML file even misdeclares its own encoding. Michael Kay http://www.saxonica.com/ =20 > -----Original Message----- > From: ikv...@li...=20 > [mailto:ikv...@li...] On=20 > Behalf Of Henrik Bach > Sent: 31 July 2007 10:21 > To: ikv...@li... > Subject: [Ikvm-developers] ikvm fails with xml files set with=20 > the processinginstruction to encoding=3Dutf-16 >=20 > Hi! >=20 > I'm running Apache FOP 0.93 with both java 1.6 and ikvm 0.34.0.2. >=20 > I observe that ikvm fails, when translating the=20 > krusty.xml/.xsl reference files saved in Unicode Text=20 > Document format from Wordpad and the reference files have the=20 > processing instruction changed to <?xml version=3D"1.0"=20 > encoding=3D"UTF-16"?>, with this error: >=20 > DE:ikvm-0.34 (jdk-1.4),FOP:0.93>fop -xml krusty.xml -xsl=20 > krusty.xsl -pdf krusty. > pdf > "ikvm" > [Fatal Error] krusty.xsl:1:6: The processing instruction=20 > target matching "[xX][m M][lL]" is not allowed. > file:/C:/Documents%20and%20Settings/All%20Users/Documents/Shar > ed%20Projects/hb/P > rojects/Decon/FOP/FOP/FOP/Source/krusty.xsl; Line #1; Column=20 > #6; The processing instruction target matching "[xX][mM][lL]"=20 > is not allowed. > 31/07/2007 10.48.07 org.apache.fop.cli.Main startFOP > SEVERE: Exception > java.lang.NullPointerException > at=20 > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java) > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java) > at org.apache.fop.cli.Main.startFOP(Main.java) > at org.apache.fop.cli.Main.main(Main.java) >=20 > --------- >=20 > java.lang.NullPointerException > at=20 > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java) > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java) > at org.apache.fop.cli.Main.startFOP(Main.java) > at org.apache.fop.cli.Main.main(Main.java) > DE:ikvm-0.34 (jdk-1.4),FOP:0.93>ikvm -version IKVM.NET=20 > Launcher version 0.34.0.2 Copyright (C) 2002-2007 Jeroen=20 > Frijters http://www.ikvm.net/ >=20 > CLR version: 1.1.4322.2407 (32 bit) > mscorlib: 1.0.5000.0 > ikvm: 0.34.0.2 > IKVM.GNU.Classpath: 0.34.0.2 > IKVM.Runtime: 0.34.0.2 > GNU Classpath version: 0.95 >=20 > Java 1.6 doesn't fail and generates the pdf file as expected.=20 > xmlwf (a unix tool that checks xml for wellformedness)=20 > doesn't report any errors on the above change reference files, too. >=20 > Is this a bug? >=20 >=20 > Med venlig hilsen / Best regards > Henrik Bach > =A0 > Civilingeni=F8r/Cand.=A0Polyt./M.Sc.E. > MCPD: Web Developer, > MCTS: .Net Framework 2.0: Web Applications, Distributed Applications, > MCTS: SQL Server 2005 > =A0 > decon ApS > Vestre Gade 6D > DK-2605 Br=F8ndby > =A0 > Mobil=A0=A0=A0=A0=A0=A0 :=A0+45 4941 4207 > Reception: +45 4030 3610 > Fax.=A0=A0=A0=A0=A0=A0=A0 :=A0+45 3647 3670 > eMail=A0=A0=A0=A0=A0=A0 : hb...@de... > Web=A0=A0=A0=A0=A0=A0=A0 :=A0http://www.decon.dk >=20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and=20 > a browser. > Download your FREE copy of Splunk now >> =20 > http://get.splunk.com/ _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers |