MARC and XML ELAG April 2002, Rome Mette Båstrup
ELAG 2002Mette Båstrup-Larsen, Portia2 Overview Introduction What has been done and what to achieve XML Schema specifications Gaining consensus
ELAG 2002Mette Båstrup-Larsen, Portia3 Why XML for MARC? Widespread standard technologies XML (data structure) XSD schemas for specification replacing DTD and XDR schemas XSL (presentation and customised validation) Standard tools available (IBM, Microsoft, XML Spy)
ELAG 2002Mette Båstrup-Larsen, Portia4 What has been done in this area? Library of Congress MARC DTD ftp://ftp.loc.gov/pub/xmldtd/mrcbfile.dtd Open Archive Initiative (OAI) MARC XML c.xsd VisualCat XDR and XSD schemas
ELAG 2002Mette Båstrup-Larsen, Portia5 Related technologies Dublin Core RDF XML 28/dcmes-xml/ c a.xsd MODS from Library of Congress
ELAG 2002Mette Båstrup-Larsen, Portia6 MARC validation rules Syntax rules Format rules e.g. 5 digit subfield List of valid codes ISBN validation Context dependent rules If subfield a is 10 then subfield b is 20 Sequences of subfields in a field e.g. a e a e a e b k l
ELAG 2002Mette Båstrup-Larsen, Portia7 Problems when going to XML MARC records are not self identifying Tag names (characters not allowed as an XML element name) Character sets No formal specification of MARC records User specified fields in the header Non valid MARC records
ELAG 2002Mette Båstrup-Larsen, Portia8 Goals for XML Schemas Self identifying MARC records Specifying rules: General MARC 2709 rules Rules for the different MARC flavours Rules for a specific application Use built-in schema validation Extend schemas with application specific information
ELAG 2002Mette Båstrup-Larsen, Portia9 The general MARC Schema Specifications at: arcXml/MarcTemplate2.xsd arcXml/MarcTemplate2.xsd Specifying general information: MARC record incl. MARC header MARC field MARC subfield No specification of specific fields e.g. Field 001, Field 002 etc.
ELAG 2002Mette Båstrup-Larsen, Portia10 General MARC schema excerpt
ELAG 2002Mette Båstrup-Larsen, Portia11 The specific MARC flavour schema Specification at: ecs/MarcXml/danMarc2Template2.xsd ecs/MarcXml/danMarc2Template2.xsd Specifying record for a given MARC flavour i.e MARC21, UNIMARC etc. Specifying validation rules Redefining the schema for a given situation e.g. cataloguing music
ELAG 2002Mette Båstrup-Larsen, Portia12 Specific MARC flavour schema excerpt I Personnavn
ELAG 2002Mette Båstrup-Larsen, Portia13 Specific MARC flavour schema excerpt II
ELAG 2002Mette Båstrup-Larsen, Portia14 What has been gained? Platform independent specification of MARC format Can be used directly in an application with freely available standard tools Can be read and maintained by non technicians To be determined: Schema for exchange of MARC records based on OAI MARC/XML