From 4f356b4bea4f6ea0206b31ce1603843e78365aed Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Fri, 13 Mar 2009 23:36:18 +0000 Subject: [PATCH] Add schema (RELAX NG, tool-generated XSD) for a list of collection objects. Add an example XML document representing a list of collection objects. Add a wrapper XSD schema, Hello.xsd, corresponding to Sanjay's document of the same name in the prototype. This document includes declarations for both individual collection objects and lists of collection objects. Changed sample documents to use realistic-looking hex strings for CSpace ID values, rather than sequences of (pseudo) random alphanumeric characters. --- sandbox/aron/schema/collectionObject-ns.xml | 2 +- sandbox/aron/schema/collectionObject.xml | 2 +- sandbox/aron/schema/collectionObjects.rng | 75 +++++++ sandbox/aron/schema/collectionObjects.xml | 36 ++++ sandbox/aron/schema/collectionObjects.xsd | 43 ++++ sandbox/aron/schema/hello.xsd | 215 ++++++++++++++++++++ 6 files changed, 371 insertions(+), 2 deletions(-) create mode 100644 sandbox/aron/schema/collectionObjects.rng create mode 100644 sandbox/aron/schema/collectionObjects.xml create mode 100644 sandbox/aron/schema/collectionObjects.xsd create mode 100644 sandbox/aron/schema/hello.xsd diff --git a/sandbox/aron/schema/collectionObject-ns.xml b/sandbox/aron/schema/collectionObject-ns.xml index 6a753b088..4fdd9d488 100644 --- a/sandbox/aron/schema/collectionObject-ns.xml +++ b/sandbox/aron/schema/collectionObject-ns.xml @@ -22,7 +22,7 @@ - org.collectionspace-eR5zB8tX2aE3wN6zG1 + org.collectionspace.797220effa5fa160 diff --git a/sandbox/aron/schema/collectionObject.xml b/sandbox/aron/schema/collectionObject.xml index 071b70855..97615c0c0 100644 --- a/sandbox/aron/schema/collectionObject.xml +++ b/sandbox/aron/schema/collectionObject.xml @@ -20,7 +20,7 @@ - org.collectionspace-eR5zB8tX2aE3wN6zG1 + org.collectionspace.797220effa5fa160 diff --git a/sandbox/aron/schema/collectionObjects.rng b/sandbox/aron/schema/collectionObjects.rng new file mode 100644 index 000000000..4e84991b8 --- /dev/null +++ b/sandbox/aron/schema/collectionObjects.rng @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/aron/schema/collectionObjects.xml b/sandbox/aron/schema/collectionObjects.xml new file mode 100644 index 000000000..abd74ef35 --- /dev/null +++ b/sandbox/aron/schema/collectionObjects.xml @@ -0,0 +1,36 @@ + + + + + + + + org.collectionspace.797220effa5fa160 + 1984.021.0049 + Radio News, vol. 10, no. 2, August 1928 + /collectionObjects/1984.021.0049 + + + + org.collectionspace.68ac7dc8f9e743 + 1997.005.0437 + Toy, Gotham City Police Helicopter, 1992 + /collectionObjects/1997.005.0437 + + + diff --git a/sandbox/aron/schema/collectionObjects.xsd b/sandbox/aron/schema/collectionObjects.xsd new file mode 100644 index 000000000..a0b5bbf9d --- /dev/null +++ b/sandbox/aron/schema/collectionObjects.xsd @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/aron/schema/hello.xsd b/sandbox/aron/schema/hello.xsd new file mode 100644 index 000000000..fd1313985 --- /dev/null +++ b/sandbox/aron/schema/hello.xsd @@ -0,0 +1,215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.47.3