Skip Menu |

This queue is for tickets about the MARC-XML CPAN distribution.

Report information
The Basics
Id: 44581
Status: resolved
Worked: 30 min
Priority: 0/
Queue: MARC-XML

People
Owner: mrylander [...] gmail.com
Requestors: jeff [...] tcnet.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.84
  • 0.85
  • 0.86
  • 0.87
  • 0.88
  • 0.88_1
Fixed in: (no value)



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
Fixed the space issue and one other while I was in there. I'll be creating a new release soon, I suppose -- watch for 0.91