Print

Print


Hello,

We are considering the switch to XML schema and I was curious about the
schema location. I started out per discussions on the list which
indicated that the xsi:schemaLocation should point to the urn:isbn...
and to a local copy of the XSD, eg:

<ead xmlns= "urn:isbn:1-931666-22-9"
  xmlns:xlink= "http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="urn:isbn:1-931666-22-9 ../schemas/ead.xsd">

Normally, for other schemas, we've been referencing an official xsd at
the namespace, so for MODS,

<mods xmlns:xlink="http://www.w3.org/1999/xlink"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://www.loc.gov/mods/v3"
 xsi:schemaLocation="http://www.loc.gov/mods/v3 
http://www.loc.gov/standards/mods/v3/mods-3-1.xsd">

So I tried that out on one of our EADs, so:

<ead xmlns= "urn:isbn:1-931666-22-9"
  xmlns:xlink= "http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="urn:isbn:1-931666-22-9
http://www.loc.gov/ead/ead.xsd">

And it validated, ie it was able to find the .xsd quite easily. What is
the recommendation, reference the online version, or a local copy of the
XSD?

Thanks,

Joseph Greene

Irish Virtual Research Library and Archive Project (HII),
http://www.ucd.ie/ivrla
James Joyce Library,
UCD,
Belfield,
Dublin 4.