<!-- doctype definition for apis database v0.2

     nigelk@umich.edu, 1997-04-22

     APIS dtd, second take, based on what Traianos Gagos did as a
     layout for Umich Papyrology's FMPro database.  the organization
     of the previous version was apparently horribly wrong, data was
     put inside elements where it didn't logically belong from a
     descriptive standpoint.  this attempts to be true to the layout,
     which i'm assuming is organized as per the logical organization
     or clumping of elements.

     this has a rather floppy structure: lots of things are optional,
     inside the text elements there is no other structure other than
     BR elements to imply listness.  this reflects what is and is not
     always in the fmpro database as produced by um papyrology.  if we
     decide to assume that things coming out of particular fmpro
     fields should be structure one way or another, we can certainly
     change things to reflect that here.

-->

<!-- ========== apis, idlib, iditem ========== -->

<!element apis	- -	(idlib?, entry*)>

<!element idlib - - (iditem+)>

<!element iditem - - (#PCDATA)>
<!attlist iditem     type    CDATA	#REQUIRED
		     id     ID   	#REQUIRED >

<!-- ========== entry ========== -->

<!-- entries seem to be made up of five sections:

	     Background and Physical Properties
	     Contents
	     Publications	
	     System and Image Metadata
	     Cataloging

     each of which has subelements.

     entries as a whole all get an INV NO that is in theory unique,
     but right now we've just got cdata, as they are not really unique
     in the fmpro database.

-->

<!element entry  - -  (background, contents, publications, system, cataloging)>
<!attlist entry        invno   CDATA   #REQUIRED>

<!-- BR -->

<!-- this is a line break kludge to try to preserve what meager
structure there is from the fmpro database... -->

<!element BR - o EMPTY>

<!-- ===== background ===== -->
<!-- this contains all the information about where the item lives,
it's physical extent, and related notes about preservation,
conservation, negatives, and so forth. -->

<!element background  - -  (sect.side?, publ.side?, library?, location?, conx?, material?, items?, size?, lines?, mounted?, negative?, negative.cop?, conserv?, preserv.notes?, palaeogr?, status?)>
<!attlist background       invno   CDATA   #IMPLIED>

<!element sect.side - - (#PCDATA) +(BR)>
<!element publ.side - - (#PCDATA) +(BR)>
<!element library - - (#PCDATA) +(BR)>
<!element location - - (#PCDATA) +(BR)>
<!element conx - - (#PCDATA) +(BR)>
<!element material - - (#PCDATA) +(BR)>
<!element items - - (#PCDATA) +(BR)>
<!element size - - (#PCDATA) +(BR)>
<!element lines - - (#PCDATA) +(BR)>
<!element mounted - - (#PCDATA) +(BR)>
<!element negative - - (#PCDATA) +(BR)>
<!element negative.cop - - (#PCDATA) +(BR)>
<!element conserv - - (#PCDATA) +(BR)>
<!element preserv.notes - - (#PCDATA) +(BR)>
<!element palaeogr - - (#PCDATA) +(BR)>
<!element status - - (#PCDATA) +(BR)>


<!-- ===== content ===== -->
<!-- regarding the intellectual content of the item -->

<!element contents  - -  (date?, origin?, provenance?, acqui?, lang?, genre?, au?, text.title?, content?, subj.head?, persons?, geogr?, translation?)>
<!attlist contents       invno   CDATA   #IMPLIED>

<!element date - - (#PCDATA) +(BR)>
<!element origin - - (#PCDATA) +(BR)>
<!element provenance - - (#PCDATA) +(BR)>
<!element acqui - - (#PCDATA) +(BR)>
<!element lang - - (#PCDATA) +(BR)>
<!element genre - - (#PCDATA) +(BR)>
<!element au - - (#PCDATA) +(BR)>
<!element text.title - - (#PCDATA) +(BR)>
<!element content - - (#PCDATA) +(BR)>
<!element subj.head - - (#PCDATA) +(BR)>
<!element persons - - (#PCDATA) +(BR)>
<!element geogr - - (#PCDATA) +(BR)>
<!element translation - - (#PCDATA) +(BR)>


<!-- ===== publications ===== -->

<!element publications  - -  (first.ed?, repro.ed?, elec.ed?, bibliography?, assignment?, notes?)>
<!attlist publications       invno   CDATA   #IMPLIED>

<!element first.ed - - (ser.vol?, ed?, year?, page?, photo?, sb?, corr?)>
<!element repro.ed - - (ser.vol?, ed?, year?, page?, photo?, sb?, corr?, fur.repro?, fur.corr?, fur.sb?)>
<!element elec.ed - - (ed?, publdate?, rev.hist?)>
<!element assignment - - (assign?, assign.date?, research.status?)>

<!element bibliography - - (#PCDATA) +(BR)>
<!element notes - - (#PCDATA) +(BR)>

<!element ser.vol - - (#PCDATA) +(BR)>
<!element ed - - (#PCDATA) +(BR)>
<!element year - - (#PCDATA) +(BR)>
<!element page - - (#PCDATA) +(BR)>
<!element photo - - (#PCDATA) +(BR)>
<!element sb - - (#PCDATA) +(BR)>
<!element corr - - (#PCDATA) +(BR)>

<!element fur.repro - - (#PCDATA) +(BR)>
<!element fur.corr - - (#PCDATA) +(BR)>
<!element fur.sb - - (#PCDATA) +(BR)>
<!element publdate - - (#PCDATA) +(BR)>
<!element rev.hist - - (#PCDATA) +(BR)>

<!element assign - - (#PCDATA) +(BR)>
<!element assign.date - - (#PCDATA) +(BR)>
<!element research.status - - (#PCDATA) +(BR)>


<!-- ===== system ===== -->

<!element system  - -  (image.source?, image.arrange?, image.creation?, extent?, images?, availsysreq?, scanmedium?, scantime?, scanner?, scandate?, institution?)>
<!attlist system       invno   CDATA   #IMPLIED>

<!element image.source - - (#PCDATA) +(BR)>
<!element image.arrange - - (#PCDATA) +(BR)>
<!element image.creation - - (#PCDATA) +(BR)>
<!element extent - - (#PCDATA) +(BR)>
<!element availsysreq - - (#PCDATA) +(BR)>
<!element scanmedium - - (#PCDATA) +(BR)>
<!element scantime - - (#PCDATA) +(BR)>
<!element scanner - - (#PCDATA) +(BR)>
<!element scandate - - (#PCDATA) +(BR)>
<!element institution - - (#PCDATA) +(BR)>

<!element images - - ( fsf?, fsb?, sixdpif?, sixdpib?)>
<!element fsf - - (table*)>
<!element fsb - - (table*)>
<!element sixdpif - - (table*)>
<!element sixdpib - - (table*)>
<!element table - - (tr*)>
<!element tr - - (td*)>
<!element td - - (#PCDATA) +(BR)>


<!-- ===== cataloging ===== -->

<!element cataloging  - -  (cataloger?, catalog.date?, check?)>
<!attlist cataloging       invno   CDATA   #IMPLIED>

<!element cataloger - - (#PCDATA) +(BR)>
<!element catalog.date - - (#PCDATA) +(BR)>
<!element check - - (#PCDATA) +(BR)>


