You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by ab...@freenet.de on 2003/01/23 21:43:22 UTC

German characters

I generate with FOp o.20.4rc from xsl and xml files PDFs.
My xsl file containt some  German characters like �.�,�
When i run FOP i get  this ERROR:

[INFO] FOP 0.20.4rc
[Fatal Error] myxslfile.xsl:2:6: The processing instruction target matching "[xX][mM][lL]" is not allowed.
[ERROR] null



(i get an Error from iexplorer 6.0 too when i open this xsl file with iexplorer because of this German characters )

I use at the head of my xsl file this header:

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
    


does  somebody know the Solution!


amad



--
Singles aufgepasst!
Spielend in Kontakt kommen und neue Freunde finden in der freenet.de Community!
Jetzt durchstarten unter: http://www.freenet.de/tipp/community/

Re: German characters

Posted by "J.Pietschmann" <j3...@yahoo.de>.
abdolah@freenet.de wrote:
> My xsl file containt some  German characters like Ö.ß,Ü
> When i run FOP i get  this ERROR:
...
> [Fatal Error] myxslfile.xsl:2:6: The processing instruction target
 >    matching "[xX][mM][lL]" is not allowed.

This error is cause by whitespace, usually a linefeed, before the
XML declaration in either the XML source or in the style sheet.

> <?xml version='1.0'?>
Check your files if there is a blank line before the line above.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: German characters

Posted by Herr Christian Wolfgang Hujer <Ch...@itcqis.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

With what editor did you generate the file?
In what encoding did you safe the file?
XML files use something like UTF-8 or UTF-16 per default.
So if you simply edited them using wordpad or notepad (since you talk of ie I 
assume you use that **** from **** *****), they are saved in Windows CP-1252 
which is a derivate of ISO-8859-1, not compatible with the default encodings 
of XML and therefore must be declared like <?xml version="1.0" 
encoding="iso-8859-1"?>.
And remember, there may not be any characters before the XML Declaration.

Am Donnerstag, 23. Januar 2003 21:43 schrieb abdolah@freenet.de:
> I generate with FOp o.20.4rc from xsl and xml files PDFs.
> My xsl file containt some  German characters like ���When i run FOP i get 
> this ERROR:
>
> [INFO] FOP 0.20.4rc
> [Fatal Error] myxslfile.xsl:2:6: The processing instruction target matching
> "[xX][mM][lL]" is not allowed. [ERROR] null
>
>
>
> (i get an Error from iexplorer 6.0 too when i open this xsl file with
> iexplorer because of this German characters )
>
> I use at the head of my xsl file this header:
>
> <?xml version='1.0'?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:fo="http://www.w3.org/1999/XSL/Format"> <xsl:template match="/">
>
>
>
> does  somebody know the Solution!
>
>
> amad

- -- 
ITCQIS GmbH
Christian Wolfgang Hujer
Geschäftsführender Gesellschafter
Telefon: +49  (0)89  27 37 04 37
Telefax: +49  (0)89  27 37 04 39
E-Mail: Christian.Hujer@itcqis.com
WWW: http://www.itcqis.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+MFxAzu6h7O/MKZkRAtF4AJ956slJxpS5fu4kzIPfAN6NlcRT3QCdFMtV
4hQ0zmMW5fQcsle/ZSSCEWA=
=fkk2
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org