Skip to content

Commit

Permalink
Use local XML schemas in validation tests
Browse files Browse the repository at this point in the history
This prevents accessing the loc.gov URLs during those tests.
  • Loading branch information
replaceafill committed Jul 5, 2023
1 parent 6a81a9f commit 9fcaee1
Show file tree
Hide file tree
Showing 6 changed files with 4,576 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/assets/catalog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

<group prefer="system">
<system
systemId="http://www.loc.gov/standards/xlink/xlink.xsd"
uri="./xsd/xlink.xsd"/>

<system
systemId="http://www.loc.gov/standards/mets/version1121/mets.xsd"
uri="./xsd/mets.xsd"/>

<system
systemId="http://www.loc.gov/standards/premis/v3/premis.xsd"
uri="./xsd/premis.xsd"/>

<!-- mets-reader-writer still validates against PREMIS 2.2 -->
<system
systemId="http://www.loc.gov/standards/premis/v2/premis-v2-2.xsd"
uri="./xsd/premis-v2-2.xsd" />

</group>

</catalog>
Loading

0 comments on commit 9fcaee1

Please sign in to comment.