Ethan,
I'm not sure this is exactly what you're looking for, but I've used
the tools at the link below to batch validate EAD files against the
dtd. The same tool should also work for the schema. Basically, you
drag the batch file into a directory of xml files and it validates all
of the files in that directory. It then opens a web browser and
reports any validation errors in human readable form, with line and
column references.
http://sunsite.berkeley.edu/ead/tools/schema_validate/
-Noah
================
Noah Huffman
Archivist for Metadata and Encoding
Rare Book, Manuscript, and Special Collections Library
Duke University
Box 90767, Smith Warehouse
Durham, NC 27708
919-660-5982
On Thu, Oct 21, 2010 at 3:39 PM, Michael Rush <[log in to unmask]> wrote:
>
> Ethan,
> I did this about 6 or 7 years ago for the Massachusetts Historical Society. Before I learned how to write RelaxNG schemas for validating local encoding practices, XSLT was a handy way to output errors if certain criteria were not met.
> If someone from the MHS is on the list perhaps they will chime in to say of they are still using that XSL or not. Else, if you are interested, I can get in touch with them off list and forward the stylesheet to you.
> Mike
> Accessioning Archivist / EAD Coordinator
> Beinecke Rare Book and Manuscript Library
>
> On Thu, Oct 21, 2010 at 2:35 PM, Ethan Gruber <[log in to unmask]> wrote:
>>
>> Hi,
>>
>> Has anyone on the list ever written or used XSLT stylesheets that can be run against EAD guides to list errors or warnings that the guide fails to meet certain criteria (invalid content, usage of elements/attributes fails to meet best practices)?
>>
>> I'm attempting to process some EAD guides against dtd2schema.xsl and post the result to eXist, but if a file doesn't validate, eXist will not accept it. I'd like to be able to preprocess the file and output human-readable error reports before attempting to post it to eXist.
>>
>> Thanks,
>> Ethan Gruber
>
|