Wed Jul  3 17:42:37 MDT 2002

Update of /var/lib/cvs/fugalh/gdmxml
In directory andreas:/tmp/cvs-serv9057

Modified Files:
        gdmxml.rnc gdmxml.rng 
Log Message:
Added the top-level element, where everything that has been defined can be included 
zero-to-many times and in any order.
commit by: fugalh

        "Evil does seek to maintain power by suppressing the truth."
        "Or by misleading the innocent."
                -- Spock and McCoy, "And The Children Shall Lead",
                   stardate 5029.5.

diffs:

Index: fugalh/gdmxml/gdmxml.rnc
diff -u fugalh/gdmxml/gdmxml.rnc:1.5 fugalh/gdmxml/gdmxml.rnc:1.6
--- fugalh/gdmxml/gdmxml.rnc:1.5        Wed Jul  3 16:12:33 2002
+++ fugalh/gdmxml/gdmxml.rnc    Wed Jul  3 17:42:36 2002
@@ -1,18 +1,52 @@
 # gdmxml - an XML schema for the GENTECH Genealogical Data Model
 # Copyright 2002 Hans Fugal
 
+start = element gdmxml {
+    \activity*
+  & \administrative-task*
+  & \assertion*
+  & \assertion-assertion*
+  & \characteristic*
+  & \characteristic-part*
+  & \characteristic-part-type*
+  & \citation-part*
+  & \citation-part-type*
+  & \event*
+  & \event-type*
+  & \event-type-role*
+  & \group*
+  & \group-type*
+  & \group-type-role*
+  & \persona*
+  & \place-part*
+  & \place-part-type*
+  & \project*
+  & \repository*
+  & \repository-source*
+  & \representation*
+  & \representation-type*
+  & \research-objective*
+  & \research-objective-activity*
+  & \researcher-project*
+  & \search*
+  & \source*
+  & \source-group*
+  & \source-group-source*
+  & \surety-scheme*
+  & \surety-scheme-part*
+}
+  
 ## ACTIVITY
-activity = 
-  element activity {
-    attribute id { xsd:ID },
-    attribute researcher-id { xsd:IDREF },
-    attribute type { "administrative-task" | "search" },
-    attribute status { text },
-    attribute priority { text },
-    element scheduled-date { \date }?,
-    element description { text },
-    element comments { text }
-  }
+activity = element activity {
+  attribute id { xsd:ID },
+  attribute researcher-id { xsd:IDREF },
+  attribute type { "administrative-task" | "search" },
+  attribute status { text },
+  attribute priority { text },
+  element scheduled-date { \date }?,
+  element description { text },
+  element comments { text }
+}
 
 ## ADMINISTRATIVE-TASK
 administrative-task = element administrative-task {
@@ -287,5 +321,5 @@
   element sequence-number { text }
 }
 
-# $Id: gdmxml.rnc,v 1.5 2002/07/03 22:12:33 fugalh Exp $
+# $Id: gdmxml.rnc,v 1.6 2002/07/03 23:42:36 fugalh Exp $
 # vim: shiftwidth=2 expandtab softtabstop=2

Index: fugalh/gdmxml/gdmxml.rng
diff -u fugalh/gdmxml/gdmxml.rng:1.6 fugalh/gdmxml/gdmxml.rng:1.7
--- fugalh/gdmxml/gdmxml.rng:1.6        Wed Jul  3 16:12:33 2002
+++ fugalh/gdmxml/gdmxml.rng    Wed Jul  3 17:42:37 2002
@@ -4,6 +4,108 @@
     gdmxml - an XML schema for the GENTECH Genealogical Data Model
     Copyright 2002 Hans Fugal
   -->
+  <start>
+    <element name="gdmxml">
+      <interleave>
+        <zeroOrMore>
+          <ref name="activity"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="administrative-task"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="assertion"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="assertion-assertion"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="characteristic"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="characteristic-part"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="characteristic-part-type"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="citation-part"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="citation-part-type"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="event"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="event-type"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="event-type-role"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="group"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="group-type"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="group-type-role"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="persona"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="place-part"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="place-part-type"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="project"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="repository"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="repository-source"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="representation"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="representation-type"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="research-objective"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="research-objective-activity"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="researcher-project"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="search"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="source"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="source-group"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="source-group-source"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="surety-scheme"/>
+        </zeroOrMore>
+        <zeroOrMore>
+          <ref name="surety-scheme-part"/>
+        </zeroOrMore>
+      </interleave>
+    </element>
+  </start>
   <define name="activity">
     <a:documentation>ACTIVITY</a:documentation>
     <element name="activity">
@@ -639,6 +741,6 @@
   </define>
 </grammar>
 <!--
-  $Id: gdmxml.rng,v 1.6 2002/07/03 22:12:33 fugalh Exp $
+  $Id: gdmxml.rng,v 1.7 2002/07/03 23:42:37 fugalh Exp $
   vim: shiftwidth=2 expandtab softtabstop=2
 -->



_______________________________________________
gdmxml mailing list
[EMAIL PROTECTED]
http://fugal.net/cgi-bin/mailman/listinfo/gdmxml

Reply via email to