Thanks for the detailed instructions, Michael. Maybe you or someone
else can help me out a little further -- I'm using XMetaL 4.5 and can't
seem to get it working. Is the word "file: " actually supposed to be in
the schemaLocation? The examples I found on the web didn't show it. I
put both the .xsd files in the same directory as the document I was
attempting to validate and tried all of these:
xsi:schemaLocation=" http://www.archivists.org/BetaSchema20060901
file:/ ead.20060901.xsd"
xsi:schemaLocation=" http://www.archivists.org/BetaSchema20060901 file:
ead.20060901.xsd"
xsi:schemaLocation=" http://www.archivists.org/BetaSchema20060901
ead.20060901.xsd"
xsi:schemaLocation=" http://www.archivists.org/BetaSchema20060901
C:\ead_schema\ead.20060901.xsd"
xsi:schemaLocation=" http://www.archivists.org/BetaSchema20060901
C:/ead_schema/ead.20060901.xsd"
Nothing works, I keep getting the error message, "The document could
not be opened because an XML Schema was not specified." XMetaL does let
me browse for a schema if it can't find one, so I tried that next. If I
browse for a schema and specifically select the ead.20060901.xsd schema,
I then get an error that the element ead is "not permitted by the
document's DTD." Any idea what I'm doing wrong?
I'm puzzled as to why one has to delete the doctype declaration. I
presume it's because the dtd doesn't support the xmlns attributes for
the EAD element? But if not, why not? Shouldn't the DTD and the schema
work together? Having to manually edit a file to switch between the DTD
and the schema seems awkward...or is the presumption that if you have a
good schema you don't need to validate against the DTD so you just don't
use the DTD anymore?
Forgive me if these are dumb questions, I know very little about
schemas and have not worked with them at all. Thanks!
Michele
-=--=--=--=--=--=--=--=--=--=--=--=--=--=-
Michele Rothenberger
Manuscripts Processor
Special Collections Research Center
Syracuse University Library
222 Waverly Avenue
Syracuse, NY 13244
(315) 443-2697
-=--=--=--=--=--=--=--=--=--=--=--=--=--=-
>>> [log in to unmask] 9/12/2006 11:43 AM >>>
Hello all,
I've been mucking about in Oxygen with the Beta EAD Schemas for a
couple of days. So far I've found a few attributes in my documents that
were the wrong case (countrycode="us" should be "US" for example), and
needed to make the changes to the linking attributes noted in the
release, but otherwise, everything looks good. It certainly seems that
as the EAD community implements schemas, we will be able to ensure
better compliance with the related ISO standards. Many compliments and
thanks to everyone on the EAD Schema Working Group.
For those of you who are curious and have been wondering how to get
your documents to validate against the schema, try the following steps
(in no particular order):
-Delete the <!DOCTYPE> declaration
-Add the following attributes to the root <ead> element:
xmlns=" http://www.archivists.org/BetaSchema20060901"
xmlns:xlink=" http://www.w3.org/1999/xlink"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.archivists.org/BetaSchema20060901 file:/ local file
path/ead.20060901.xsd"
-Then make the changes to the linking elements as noted in the release
email.
You may find other attributes that aren't quite right in your document,
but this will at least get you set up for validating against the XSD
flavor of the Schema. To validate against the Relax NG flavor of the
schema, try removing the xmlns:xsi and xsi:schemaLocation attributes
from the <ead> element. Some of my observations above may be specific
to Oxygen, so if you use another XML editor, something may differ.
Please Note: These suggestions are only my observations from a good bit
of trial and error. I hope they are helpful to those of you who want to
test the Beta Schemas, but please don't interpret them as any official
instructions. When the official EAD Schemas are released, I'm sure
there will be documentation to help all us start using the schemas.
Mike
____________________________________
Michael Rush | [log in to unmask]
Processing Archivist / EAD Coordinator
Beinecke Rare Book & Manuscript Library
Yale University
P.O. Box 208240
New Haven, CT 06520-8240
Tel: (203) 432-8123 Fax: (203) 432-4047
|