On Sep 27, 2005, at 7:29 AM, Sperr, Edwin wrote:
I'm attempting to use XSL (on a Windows server) to transform XML that I generated using MARC::File::XML. However, I keep running into errors because of illegal characters.
Well part of the problem is that MARC::File::XML does not do character conversion from MARC-8 to UTF-8. If you aren't concerned about special characters immediately try changing the encoding in the XML declaration to ISO-8859-1. If that does the trick let me know and I'll provide details on how to do this with the MARC::File::XML api.
There has been a TODO in MARC::File::XMl for a long time to get it to use MARC::Charset for MARC-8 <-> UTF-8 conversion. Unfortunately MARC::Charset also needs an overhaul to get it using the latest mapping tables from LoC. Not sure exactly when I'll get to this but another person asked just last week so maybe it should be sooner rather than later.
//Ed