Nested Surveys

New Message Reply About this list Date view Thread view Subject view Author view

From: Richard Knapp (gyp_caver_at_yahoo.com)
Date: Sun Sep 02 2001 - 16:15:42 CEST


Received: (from mdom_at_localhost) by karto.ethz.ch (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) id f82FDJj10237 for cavexml-outgoing; Sun, 2 Sep 2001 17:13:19 +0200
Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by karto.ethz.ch (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with SMTP id f82FDGQ10233 for <cavexml_at_cartography.ch>; Sun, 2 Sep 2001 17:13:17 +0200
Message-Id: <200109021513.f82FDGQ10233@karto.ethz.ch>
Received: from slip166-72-184-25.nc.us.prserv.net (HELO Muphin) (166.72.184.25) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Sep 2001 15:15:51 -0000
X-Apparently-From: <gyp?caver_at_yahoo.com>
From: "Richard Knapp" <gyp_caver_at_yahoo.com>
To: "cavexml_at_cartography.ch" <cavexml_at_cartography.ch>
Date: Sun, 02 Sep 2001 10:15:42 -0400 (EDT)
X-Mailer: PMMail 2.20.2300 for OS/2 Warp 4.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Subject: Nested Surveys
Sender: owner-cavexml_at_karto.baug.ethz.ch
Precedence: bulk
Reply-To: cavexml_at_cartography.ch

I've been thinking about nested surveys... again. In my current (play) DTD, I'm using a SurveyGroup element to allow
multiple surveys to be grouped together. However, that only allows one level of nesting:

<SurveyGroup>
        <Survey>
        </Survey>
        <Survey>
        </Survey>
</SurveyGroup>

I think, for easy of coding and better capability, it would be better to allow surveys to be nested directly:

<Survey>
        <Survey>
                <Survey>
                </Survey>
                <Survey>
                </Survey>
        </Survey>
        <Survey>
        </Survey>
</Survey>

The "Colorado Survey Standard" attempt allowed nesting like like the SurveyGroup example. However, I think Survex
has a more robust grouping scheme by allowing multiple begin/end pairs. With XML, nesting should be easier (at least if
the document is properly formed).

This isn't a large change in DTD code but it is a fairly significant change in functionality.

(old DTD code)
<!ELEMENT Survey (%SurveyHeader;, Data)>

(new DTD code)
<!ELEMENT Survey ( (Survey)+ | (%SurveyHeader;, Data) )>

The one thing the SurveyGroup does provide is nesting other than by Survey. For instance, Surveys could be grouped
because of their location - entrance crawl, BFR, Left Hand Tunnel. However, a SurveyGroup cannot - at this time -
contain another SurveyGroup which is a little limiting.

My opinion (currently) is I like the nested Surveys more than the SurveyGroup. It's easier to follow, allows more nesting.
The downside is if used to create areas in a cave, it really isn't a proper name (not a location or anything if that makes any
sense).

If this works, I think I could also get rid of my Surveys element. It was used to break the raw data away from other cave
data that could be included later: pictures, mineralogical inventory, bio inventories, etc.

What do you think?

        - Richard Knapp

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


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Wed Jan 23 2002 - 17:06:45 CET