On behalf of Basil Dewhurst (National Library of Australia).

Begin forwarded message:

[...]


The problem is in Michele's xmlns declaration xmlns:eac.staatsbibliothek-berlin.de="http://eac.staatsbibliothek-berlin.de".  The fix would be to use xmlns="http://eac.staatsbibliothek-berlin.de" if you want http://eac.staatsbibliothek-berlin.de to be the default namespace for the xml document.  This means your eac document would look like this:

<?xml version="1.0" encoding="UTF-8"?>
<eac-cpf xmlns="http://eac.staatsbibliothek-berlin.de"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://eac.staatsbibliothek-berlin.de http://www3.iath.virginia.edu/eac/cpf/schema/cpf.xsd">
   <control>
       <recordId>testing</recordId>
       <maintenanceStatus>deleted</maintenanceStatus>
       <maintenanceAgency>
           <agencyName></agencyName>
       </maintenanceAgency>
       <maintenanceHistory>
           <maintenanceEvent>
               <eventType>deleted</eventType>
               <eventDateTime></eventDateTime>
               <agentType>human</agentType>
               <agent></agent>
           </maintenanceEvent>
       </maintenanceHistory>
   </control>
   <cpfDescription>
       <identity>
           <entityType>person</entityType>
           <nameEntry>
               <part>Bob the builder</part>
           </nameEntry>
       </identity>
   </cpfDescription>
</eac-cpf>

Alternatively if you want to explicitly declare the name eac-cpf for the namespace then use xmlns:eac-cpf="http://eac.staatsbibliothek-berlin.de" and your document will look like this:

<?xml version="1.0" encoding="UTF-8"?>
<eac-cpf:eac-cpf xmlns:eac-cpf="http://eac.staatsbibliothek-berlin.de"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://eac.staatsbibliothek-berlin.de http://www3.iath.virginia.edu/eac/cpf/schema/cpf.xsd">
<eac-cpf:control>
   <eac-cpf:recordId>testing</eac-cpf:recordId>
   <eac-cpf:maintenanceStatus>deleted</eac-cpf:maintenanceStatus>
   <eac-cpf:maintenanceAgency>
       <eac-cpf:agencyName></eac-cpf:agencyName>
   </eac-cpf:maintenanceAgency>
   <eac-cpf:maintenanceHistory>
       <eac-cpf:maintenanceEvent>
           <eac-cpf:eventType>deleted</eac-cpf:eventType>
           <eac-cpf:eventDateTime></eac-cpf:eventDateTime>
           <eac-cpf:agentType>human</eac-cpf:agentType>
           <eac-cpf:agent></eac-cpf:agent>
       </eac-cpf:maintenanceEvent>
   </eac-cpf:maintenanceHistory>
</eac-cpf:control>
   <eac-cpf:cpfDescription>
       <eac-cpf:identity>
           <eac-cpf:entityType>person</eac-cpf:entityType>
           <eac-cpf:nameEntry>
               <eac-cpf:part>Bob the builder</eac-cpf:part>
           </eac-cpf:nameEntry>
       </eac-cpf:identity>
   </eac-cpf:cpfDescription>
</eac-cpf:eac-cpf>

Cheers,
Basil


________________________________________
[...]
---------- Forwarded message ----------
From: Michele R Combs <[log in to unmask]>
Date: 2009/8/21
Subject: EAC schema and XMetaL
To: [log in to unmask]


I downloaded the EAC schema to play with it and when I create an EAC document in XMetaL all the element names are prefixed with the full namespace, for example "eac.staatsbibliothek-berlin.de:activity" instead of just "activity."    Plus I'm getting the full info for all the namespaces shoved in as well.

So just this one ACTIVITY element in plain text view looks like this:

<eac.staatsbibliothek-berlin.de:activity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://eac.staatsbibliothek-berlin.de file:///G:/LIB/Special%20Collections/Digital%20Projects/EAD/ead_dtd/cpf.xsd" xmlns:eac.staatsbibliothek-berlin.de="http://eac.staatsbibliothek-berlin.de" xmlns:xlink="http://www.w3.org/1999/xlink">
</eac.staatsbibliothek-berlin.de:activity>

This is most annoying.  Anyone know how to get rid of it?  Do I just remove it from the schema?  (I haven't worked with schemas before so am not sure what's OK and what's not as far as changing stuff.)

Michele

(be green - don't print this email!)
~~~~~~~~~~~~~~~~~~
Michele Combs
Manuscripts Librarian
Special Collections Research Center
Syracuse University Libraries
222 Waverly Ave.
Syracuse, NY  13244
315-443-2081
[log in to unmask]
~~~~~~~~~~~~~~~~~~


[...]