Jennifer,
You have to assign namespace prefixes to each of eac and xlink namespace
"names" (i.e, the URI for the namespace) in the form of
xmlns:[prefix]="[namespace URI]", then you map each of the namespace URIs
to the location of the related schema in the xsi:schemaLocation attribute
in the form of xsi:schemaLocation="[Namespace URI][space][Schema
Location][space][Namespace URI][space][Schema Location]"
This ought to work:
<eac:eac-cpf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:eac="urn:isbn:1-931666-33-4"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="urn:isbn:1-931666-33-4 http://eac.staatsbibliothek-berlin.de/schema/cpf.xsd http://www.w3.org/1999/xlink http://www.loc.gov/standards/xlink/xlink.xsd">
This should too (because the xlink namespace/schema is imported into
eac-cpf:
<eac:eac-cpf
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:eac="urn:isbn:1-931666-33-4"
xmlns:xlink="http://www.w3.org/1999/xlink">
xsi:schemaLocation="urn:isbn:1-931666-33-4 http://eac.staatsbibliothek-berlin.de/schema/cpf.xsd">
Hope this helps,
Terry
On Wed, 20 Mar 2013, Jennifer King wrote:
> Hello,
>
> Could someone please share an example of a valid EAC-CPF record with the
> xlink schema in the root element. I can not find an example of that and I
> can not get my xlink attributes to validate.
>
> Having it written as my example below does not work. Am I missing grammar or
> should the two scheme be in separate places?
>
> <eac-cpf xmlns="urn:isbn:1-931666-33-4"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="urn:isbn:1-931666-33-4
> http://eac.staatsbibliothek-berlin.de/schema/cpf.xsd"
> xlink:schemaLocation="http://www.w3.org/TR/xlink/">
>
> Jennifer
>
> --
> Jennifer King
> Manuscripts Librarian
> Special Collections Research Center
> George Washington University
> [log in to unmask]
> 202-994-0628
>
>
Terry Catapano
Special Collections Analyst/Librarian
Columbia University Libraries Digital Program
212-854-9942
[log in to unmask]
|