From 616fcc61c002c804b48a01c7cab0000047ae127d Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Fri, 13 Mar 2009 20:34:48 +0000 Subject: [PATCH] CSPACE-12: Added a namespace-qualified version of the rudimentary Rel. 0.1 collectionObject schema, in both RELAX NG and (via tool generation) W3C XML Schema (XSD). Added missing XSD datatype library declaration to full RELAX NG collection object schema ( the schema that is sans namespaces). Minor correction on intro comments in rng-to-xsd script. --- .../aron/schema/collectionObject-full-ns.rng | 277 ++++++++++++++++++ sandbox/aron/schema/collectionObject-full.rng | 9 +- sandbox/aron/schema/collectionObject-ns.xml | 86 ++++++ sandbox/aron/schema/collectionObject-ns.xsd | 165 +++++++++++ sandbox/aron/schema/rng-to-xsd.sh | 2 +- 5 files changed, 533 insertions(+), 6 deletions(-) create mode 100644 sandbox/aron/schema/collectionObject-full-ns.rng create mode 100644 sandbox/aron/schema/collectionObject-ns.xml create mode 100644 sandbox/aron/schema/collectionObject-ns.xsd diff --git a/sandbox/aron/schema/collectionObject-full-ns.rng b/sandbox/aron/schema/collectionObject-full-ns.rng new file mode 100644 index 000000000..90bb33583 --- /dev/null +++ b/sandbox/aron/schema/collectionObject-full-ns.rng @@ -0,0 +1,277 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/aron/schema/collectionObject-full.rng b/sandbox/aron/schema/collectionObject-full.rng index e5fb369df..2c59821ab 100644 --- a/sandbox/aron/schema/collectionObject-full.rng +++ b/sandbox/aron/schema/collectionObject-full.rng @@ -28,8 +28,9 @@ --> + name="collectionObject" + xmlns="http://relaxng.org/ns/structure/1.0" + datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> @@ -163,9 +164,7 @@ + name="defaultCollectionObject"> + + + + + + + org.collectionspace-eR5zB8tX2aE3wN6zG1 + + + + + + + + + + 1984.021.0049 + + Radio News, vol. 10, no. 2, August 1928 + + + Radio News, August 1928. The cover of this issue features an +illustration of a man and woman watching an early "radio movie." Text on +the cover reads, "Radio's Greatest Magazine / Radio News / August 25 +Cents / Over 200 illustrations / Edited by Hugo Gernsback / Radio Movies +and Television for the Home / Experimenter Publishing Company, 230 Fifth +Avenue, New York." + +In addition to articles about radios and radio technology, the magazine +also contains several articles about developments in the field of +television. The issue begins with an editorial about the future of +television by the magazine's editor, Hugo Gernsback, which is followed +by an article about the radio movie receiver system invented by C. +Francis Jenkins. The article includes drawings illustrating the layout +of the sytem. + + + + + + + diff --git a/sandbox/aron/schema/collectionObject-ns.xsd b/sandbox/aron/schema/collectionObject-ns.xsd new file mode 100644 index 000000000..49c10ee86 --- /dev/null +++ b/sandbox/aron/schema/collectionObject-ns.xsd @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/aron/schema/rng-to-xsd.sh b/sandbox/aron/schema/rng-to-xsd.sh index 7ed9aba4c..9acc354a9 100644 --- a/sandbox/aron/schema/rng-to-xsd.sh +++ b/sandbox/aron/schema/rng-to-xsd.sh @@ -8,7 +8,7 @@ # Requires two arguments: # - Filename of the RELAX NG schema document. # (or the full path to this document, if it is not in the current directory) -# - Filename of the new XML instance document to be created. +# - Filename of the new W3C XML Schema document to be created. # (or the full path to this document, if it is not in the current directory) # # $Author: aron $ -- 2.47.3