xsl-list
[Top] [All Lists]

RE: [xsl] Smart Quote Encoding

2007-09-12 10:42:37
I am using Saxon 6.3 

That's a very old release, though that shouldn't matter as it's failing
before it even gets to Saxon.

and trying to transform some XML 

Actually your problem is that the thing you are trying to transform isn't
XML - the parser is rejecting it.

The messages sometimes contain special/nonstandard 
characters, such as smart quotes.  

How are the messages generated? Whatever software generates them should know
what character encoding it is using, and should set this character encoding
in the XML declaration.

I receive the following error when I try to apply transformations:

  Fatal error reported by XML parser: illegal XML character U+18
    URL:    file:/C:/hello/goodbye.log
    Line:   8
    Column: 116

That looks like a pretty weird character to me - it's not what I'd expect
when you use typographical quotes in a Windows encoding.


How do I handle any arbitrary text yet still be able to apply 
transformations?

All you have to do - it's very simple in principle! - is to ensure that the
encoding of the characters in the file is what the XML declaration claims it
is.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>