A cut at a DTD

From: Richard Knapp (gyp_caver@yahoo.com)
Date: Fri Mar 09 2001 - 16:49:48 CET


Here's another take on a DTD. It's similar to what Devin has with the addition of a System and a Surveys
block. This is by no means complete. Just taking a "whack" at things.

<!ELEMENT CaveXML (System | Cave)>
<!-- A file can contain a survey with many caves or a single cave -->
<!ATTLIST CaveXML
        Version CDATA #REQUIRED
        Source CDATA #IMPLIED>
<!-- Version will hold the CaveXML release version this file used.-->
<!-- Source will hold information from a data conversion. Some values
       could be: SMAPS, CMAP, Karst, COMPASS, OnStation, Survex. -->

<!ELEMENT System (Cave+)>
<!-- A system is made up of one or more Caves -->

<!ELEMENT Cave (Entrance?, Surveys)>
<!ATTLIST Cave Name CDATA>

<!ELEMENT Entrance Location>
<!ATTLIST Entrance station IDREF #IMPLIED>
<!-- This is the entrance station used for tying the cave to coordinate data.-->

<!ELEMENT Location EMPTY>
<!-- This would hold the coordinates in either GPS or Lat/Long for the entrance station -->

<!ELEMENT Surveys (Survey+)>
<!-- This is the section were raw survey data is held. If other information is necessary,
     it can be added via another section (ie. Inventories, Pictures, etc). -->

<!ELEMENT Survey EMPTY>
<!-- The raw survey data -->

        - Richard Knapp

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



This archive was generated by hypermail 2b30 : Mon Apr 02 2001 - 18:00:00 CEST