From 32aee1a2b796fbc9b919344a20f202de24787879 Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Wed, 25 Feb 2009 05:14:25 +0000 Subject: [PATCH] Initial experiments with creating RELAX NG schema for entities, and validating instances of that schema using James Clark's Jing library. --- sandbox/aron/schema/CollectionObject.xml | 30 +++++++ sandbox/aron/schema/CollectionObject2.xml | 34 ++++++++ sandbox/aron/schema/entity.rng | 96 +++++++++++++++++++++++ sandbox/aron/schema/entityField.rng | 89 +++++++++++++++++++++ sandbox/aron/schema/header.txt | 55 +++++++++++++ sandbox/aron/schema/samples/patron.rng | 16 ++++ sandbox/aron/schema/samples/patron.xml | 7 ++ 7 files changed, 327 insertions(+) create mode 100644 sandbox/aron/schema/CollectionObject.xml create mode 100644 sandbox/aron/schema/CollectionObject2.xml create mode 100644 sandbox/aron/schema/entity.rng create mode 100644 sandbox/aron/schema/entityField.rng create mode 100644 sandbox/aron/schema/header.txt create mode 100644 sandbox/aron/schema/samples/patron.rng create mode 100644 sandbox/aron/schema/samples/patron.xml diff --git a/sandbox/aron/schema/CollectionObject.xml b/sandbox/aron/schema/CollectionObject.xml new file mode 100644 index 000000000..b53a3bb39 --- /dev/null +++ b/sandbox/aron/schema/CollectionObject.xml @@ -0,0 +1,30 @@ + + + + + + CollectionObject + + + + + + + pahma-collectionname-2007-06-09-00055 + + + diff --git a/sandbox/aron/schema/CollectionObject2.xml b/sandbox/aron/schema/CollectionObject2.xml new file mode 100644 index 000000000..09b79ce2d --- /dev/null +++ b/sandbox/aron/schema/CollectionObject2.xml @@ -0,0 +1,34 @@ + + + + + + CollectionObject + + + + + + + + + pahma-collectionname-2007-06-09-00055 + + + + + diff --git a/sandbox/aron/schema/entity.rng b/sandbox/aron/schema/entity.rng new file mode 100644 index 000000000..29ee9632a --- /dev/null +++ b/sandbox/aron/schema/entity.rng @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/aron/schema/entityField.rng b/sandbox/aron/schema/entityField.rng new file mode 100644 index 000000000..11a7b2dda --- /dev/null +++ b/sandbox/aron/schema/entityField.rng @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + false + + + + + + + + + + + + diff --git a/sandbox/aron/schema/header.txt b/sandbox/aron/schema/header.txt new file mode 100644 index 000000000..a8222114d --- /dev/null +++ b/sandbox/aron/schema/header.txt @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/aron/schema/samples/patron.rng b/sandbox/aron/schema/samples/patron.rng new file mode 100644 index 000000000..7054cbf4e --- /dev/null +++ b/sandbox/aron/schema/samples/patron.rng @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + diff --git a/sandbox/aron/schema/samples/patron.xml b/sandbox/aron/schema/samples/patron.xml new file mode 100644 index 000000000..9659edd7b --- /dev/null +++ b/sandbox/aron/schema/samples/patron.xml @@ -0,0 +1,7 @@ + + + + John Doe + 12345678 + + -- 2.47.3