Hi Geert:
I recently was faced with the same problem. Fortunately I could modify
the XML. I used an external entity file that maps the ISO 8859-1
character set to UTF encoding. If you are already using a DTD and have
entity declarations in the document declaration subset then you only need
to add the entity declaration and call in the entity.
Saxon is happy and I am happy.
<!DOCTYPE mydoc [
<!ENTITY % ISOCharacters SYSTEM "ISOCharacters.ent">
%ISOCharacters;
]>
I don't know if this will work on your situation!
Good luck!
Betty
Hi all,
I need to deal with XML that has this encoding="ISO8859-1",
I am not sure about this, some parsers seem to accept it
I am using Saxon command-line on a win 2008 server.
I am using collection() since I have to combine a bunch of these XML
into one resulting XML
Saxon throws an error because of the encoding.
I assume it is the underlying parser that does this
What are my options to make Saxon accept this encoding?
My last resort would be to have a Ruby or Python up front that transforms
the
encoding="ISO8859-1"
into
encoding="ISO-8859-1"
but my customer will be hard to convince to throw yet another
technology on his server
Thanks in advance
Geert
--~------------------------------------------------------------------
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>
--~--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
harvey(_at_)eccnet(_dot_)com | Washington,DC XML Users Grp
URL: http://www.eccnet.com | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
Member of XML Guild (www.xmlguild.org)
--~------------------------------------------------------------------
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>
--~--