ID specification?

From: Richard Knapp (gyp_caver@yahoo.com)
Date: Fri May 18 2001 - 23:23:39 CEST


With all the different IDs floating around in the DTDs and Schemas, are there any ideas on helping to distinguish which is
which? For all the DTD cares, I could specify a Survey ID as a Station IDREF.

Would it be helpful to put a naming convention on the IDs? What I am proposing is this: adding a specific prefix to an ID to
help distinguish its intended usage. The draft DTD on which I'm working has Station and Survey IDs. (Ralph's has more:
Shots, Provenance elements, etc so he will need more prefixes). Here's what I have so far:

        Element Prefix Description
        Station N _N_ode
        Shot E _E_dge
        Survey S _S_urvey

This also helps address a concern on generating IDs. With a preset Prefix for all IDs, the rest could be easily generated
from an incremental number, the station name, or ? There is nothing to preclude this list from expanding to add IDs for
Cave, System, or other elements. While these are only single character prefixes, that should not be considered a limit. The
prefixes could also be "ST" for Station.

Comments?

        - Richard Knapp

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



This archive was generated by hypermail 2b30 : Fri Jun 01 2001 - 12:00:00 CEST