This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Mysterious 'invalid character'
Thanks for your reply, David, and Peter Hunsberger's as well.
I have in fact just run my file through emacs (completely escaped my mind
that I could try that as well).
Emacs gives me an error message for the same line ("non-SGML character
number 11"). However, although the line is right, it gives me col. 89. There
are only 4 characters (letters) on that line though. There's a similar
trouble spot later on, with col. 48, and again only 4 characters on that
line; same environment, BTW (underscore = cursor):
</p>_
<p>
There are many many more of these character sequences though, without
errors.
I'm sorry if I'm moving into non-XSL territory here. I've been trying to
find something useful on non-SGML characters, but it wasn't very helpful.
Where can I find out more about this?
Ingo
----- Original Message -----
From: "David Carlisle" <davidc@nag.co.uk>
To: <xsl-list@lists.mulberrytech.com>
Sent: Friday, November 30, 2001 6:02 PM
Subject: Re: [xsl] Mysterious 'invalid character'
> > My file is well-formed and valid against the DTD when I check it (within
> > XMLSpy). No error message there.
>
> are you sure that isn't also using the same msxml parser with the same
bug?
>
> > What am I supposed to look for?
>
> a character in the ascii control range below space (32) that
> isn't a tab (9) carrage return or line feed (10 or 13).
>
> Any reasonable editor will show these in some form or other.
>
>
> Also try a different parser, for example the excellent (and free) rxp
> parser says, if I try to add a control-B to a file:
>
>
>
> $ rxp -s bad.xml
> Error: illegal character <0x2> immediately before file offset 11
> I/O error on stream <file:///c:/tmp/bad.xml>, ignore further errors
>
>
>
>
> which tells you what the bad character is (#x02) and where it is (11
> characters into the file)
>
> rxp is a trivial download/install or you can run it online (on small
> examples, to be kind to their server:-)
>
> http://www.cogsci.ed.ac.uk/~richard/rxp.html
>
> David
>
> _____________________________________________________________________
> This message has been checked for all known viruses by Star Internet
> delivered through the MessageLabs Virus Scanning Service. For further
> information visit http://www.star.net.uk/stats.asp or alternatively call
> Star Internet for details on the Virus Scanning Service.
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list