Subject: | stray space in xsi:schemaLocation |
I noticed that the ->as_xml_record method in MARC::File::XML was
generating output containing the following:
<record xsi:schemaLocation="http://www.loc.gov/MARC21/slim
http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd">
Note the extra space in the second URI, before "standards".
A stray space on line 338 of lib/MARC/File/XML.pm (inside "->record") is
to blame.
Problem seems to be present since 0.84.
Trivial patch against 0.88 is attached.
Thanks!
Subject: | stray-space-in-schema-uri.patch |
--- XML.pm-orig 2007-11-28 22:02:00.000000000 -0500
+++ XML.pm 2009-03-25 16:39:25.000000000 -0400
@@ -335,7 +335,7 @@
<?xml version="1.0" encoding="$enc"?>
<record
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/ standards/marcxml/schema/MARC21slim.xsd"
+ xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"
xmlns="http://www.loc.gov/MARC21/slim">
HEADER