Re: [xsl] 0x19 is not a legal XML character

Subject: Re: [xsl] 0x19 is not a legal XML character
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 28 Jun 2007 11:56:56 +0200
This is an XML question. Try http://www.ibiblio.org/xml/mailinglists.html and pick the mailing list that best suits your needs.

Because XML is related to XSLT, I'll answer it (hope Tommy does not mind ;).

The parser is correct, 0x19 is not a valid character. The message says that, after translation from the used encoding, the character U+0019 is not allowed inside XML. This is not true for XML 1.1, which does allow such characters. The character U+0019 means "End of Medium" and is a control character sometimes used to (incorrectly?) designate the end of a file.

In other words: your XML files do not contain legal well-formed XML and, as such, are not XML at all. It has nothing to do with your diacritics problems, it is just incorrect at the source and should be fixed there.

Hope this helps,
-- Abel Braaksma

Vaduvoiu Tiberiu wrote:
I know this is not a xsl specific problem but I was hoping someone knows the answer. I am using a repository on apache tomcat. I have a lot of xmls that have content with h` (italian french or other country specific characters). When I try to display these xmls on my site on catalina.out I get this error:

org.jdom.IllegalDataException: The data "

.....block of text...

" is not legal for a JDOM character content: 0x19 is not a legal XML character.
 at org.jdom.Text.setText(Text.java:188)
 at org.jdom.Text.<init>(Text.java:99)
....................

Is there anythign I can do about this? there has to be a way to be able to display other characters in my site. 10x


____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

Current Thread