<!-- ****************************************************************

gama-xml.dtd                       version 2.0.11  2002-06-27
============  

2.0.11  2002-06-27

      - added attributes for describing heights of instrument and/or
        reflector: from_dh="...", to_dh="...", bs_dh="..." and
        fs_dh="..."

2.0.10  2002-05-24

      - new attributes bs="..." and fs="..." in the definition of <angle />

        Chuck Ghilani pointed out that XML description of angles was
        not natural; thus attribute `to' was renamed to `bs' (backsight) 
        and `rs' was renamed to `fs' (foresight)

2.0.09  2002-01-03

      - corrected definition of point attributes fix and adj

2.0.08  2001-08-20

      - added attributes axes-xy and angles into tag <network>

2.0.07  2001.06.27

      - removed parameters txt, stx, opr and xy (for the time being 
        are accepted by gama for backward compatibility)

      - introduced new parameters <point fix="..." and adj="..." />

      - tag <dh /> allowed inside start-end tag <obs>

2.0.06  2001.04.27

      - new tags: s-distance, z-angle, height-differences, dh,
        vectors, vec

2.0.05  2001.04.24

      - deterministic bug in elements obs and coordinates (Kolda)

2.0.04  2001.04.24

      - added attribute version into tag gama-xml

2.0.03  2001.04.17

      - corrected two errors concerning cov-mat (Jan Kolar, Jan Pytel)

2.0.02  2001.02.22

      - attribute `at' renamed to `from'

2.0.01  2001.02.16

      - attribute type `at' of the element `obs' changed to #IMPLIED
        (we do not need a station number for the set of angles or height
        differences)

2.0.00  2000.08.24 English tag names replaced their Czech equivalents
      (thanks to Pavel Novak for consultations)

      This version was translated from version 1.03 using sed editor

            s/sit/network/g
            s/popis/description/g
            s/parametry/parameters/g
            s/body-mereni/points-observations/g
            
            # delka-str-km delka-str-exp  .... removed
            s/str/stdev/g
            
            s/bod/point/g
            s/cislo/id/g
            s/typ/xy/g
            s/or-posun/orientation/g
            
            s/pevny/fixed/g
            s/urcovany/free/g
            s/operny/constrained/g
            s/nepouzit/unused/g
            
            s/konf-pr/conf-pr/g
            s/m0-apr/sigma-apr/g
            s/type-m0/sigma-act/g
            s/empiricka/aposteriori/g
            s/apriorni/apriori/g


1.03  2000.08.01 preparation for version 2.0 : single distances and 
      angles cannot be used outside tag <body-mereni>, removed tags 
      <delka-str-km> and <delka-str-exp> 

      added new tags:
      ==============
        
      * tag <cov-mat>       (covariance matrix of observations)
      * tag <coordinates>   (coordinate observations)


1.02  2000.04.15 types of numerical attributes changed  from CDATA
      to NMTOKEN (Miloslav Nic)

1.01  2000.03.28 to the element osnova added element uhel

1.00  1999.07.05 first draft (Ales Cepek)


***********************************************************************

Definition of XML input stream for GNU GaMa for adjustment of local
geodetic network. Latest version is available from

            http://www.gnu.org/software/gama/gama-xml.dtd

GNU GaMa is subject to GNU General Public Licence, for more
information visit

            http://www.gnu.org/software/gama/

*********************************************************************** -->

<!ELEMENT  gama-xml     (network) >
<!ELEMENT  network      (description | parameters | points-observations)* >
<!ELEMENT  description  (#PCDATA) >
<!ELEMENT  parameters   EMPTY >
<!ELEMENT  points-observations  (point | obs | coordinates | 
                                 height-differences | vectors)* >
<!ELEMENT  point  EMPTY >

<!ELEMENT  obs ((direction | distance | angle | s-distance | z-angle 
                | dh)*, cov-mat?) >

<!ELEMENT  cov-mat  (#PCDATA) >

<!ELEMENT  direction   EMPTY >
<!ELEMENT  distance    EMPTY >
<!ELEMENT  angle       EMPTY >
<!ELEMENT  s-distance  EMPTY >
<!ELEMENT  z-angle     EMPTY >

<!ELEMENT  height-differences (dh+, cov-mat?) >
<!ELEMENT  dh  EMPTY >

<!-- observed coordinates -->
<!ELEMENT  coordinates (point+, cov-mat) >

<!-- observed coordinate differences -->
<!ELEMENT  vectors     (vec+, cov-mat) >  
<!ELEMENT  vec          EMPTY > 

<!ATTLIST gama-xml version NMTOKEN #IMPLIED >

<!ATTLIST network

   axes-xy (ne | sw | es | wn | 
            en | nw | se | ws )          "ne"
   angles  (right-handed | left-handed)  "right-handed" >

<!ATTLIST parameters 

   sigma-apr  NMTOKEN  "10.0" 
   conf-pr    NMTOKEN  "0.95"
   tol-abs    NMTOKEN  "1000.0"
   sigma-act           (aposteriori | apriori) "apriori" >

<!ATTLIST points-observations

   distance-stdev   NMTOKEN  #IMPLIED
   direction-stdev  NMTOKEN  #IMPLIED
   angle-stdev      NMTOKEN  #IMPLIED  >

<!ATTLIST point

   id  CDATA    #REQUIRED
   x   NMTOKEN  #IMPLIED
   y   NMTOKEN  #IMPLIED
   z   NMTOKEN  #IMPLIED
   fix (xy | XY | z | Z | xyz | XYZ | XYz | xyZ ) #IMPLIED
   adj (xy | XY | z | Z | xyz | XYZ | XYz | xyZ ) #IMPLIED >

<!ATTLIST obs    
   from         CDATA   #IMPLIED
   orientation  NMTOKEN #IMPLIED  
   from_dh      NMTOKEN #IMPLIED >

<!ATTLIST cov-mat
   dim   NMTOKEN  #REQUIRED
   band  NMTOKEN  #REQUIRED >

<!ATTLIST direction 

   to       CDATA    #REQUIRED
   val      NMTOKEN  #REQUIRED
   stdev    NMTOKEN  #IMPLIED  
   from_dh  NMTOKEN  #IMPLIED
   to_dh    NMTOKEN  #IMPLIED  >

<!ATTLIST distance 

   from     CDATA    #IMPLIED
   to       CDATA    #REQUIRED
   val      NMTOKEN  #REQUIRED
   stdev    NMTOKEN  #IMPLIED  
   from_dh  NMTOKEN  #IMPLIED
   to_dh    NMTOKEN  #IMPLIED >

<!ATTLIST angle 

   from     CDATA    #IMPLIED
   bs       CDATA    #REQUIRED
   fs       CDATA    #REQUIRED
   val      NMTOKEN  #REQUIRED
   stdev    NMTOKEN  #IMPLIED  
   from_dh  NMTOKEN  #IMPLIED
   bs_dh    NMTOKEN  #IMPLIED 
   fs_dh    NMTOKEN  #IMPLIED >

<!ATTLIST s-distance

   from     CDATA    #IMPLIED
   to       CDATA    #REQUIRED
   val      NMTOKEN  #REQUIRED
   stdev    NMTOKEN  #IMPLIED  
   from_dh  NMTOKEN  #IMPLIED
   to_dh    NMTOKEN  #IMPLIED >

<!ATTLIST z-angle

   from     CDATA    #IMPLIED
   to       CDATA    #REQUIRED
   val      NMTOKEN  #REQUIRED
   stdev    NMTOKEN  #IMPLIED  
   from_dh  NMTOKEN  #IMPLIED
   to_dh    NMTOKEN  #IMPLIED >
   
<!ATTLIST dh

   from   CDATA    #IMPLIED
   to     CDATA    #REQUIRED
   val    NMTOKEN  #REQUIRED
   stdev  NMTOKEN  #IMPLIED  
   dist   NMTOKEN  #IMPLIED >
   
<!ATTLIST vec

   from     CDATA    #IMPLIED
   to       CDATA    #REQUIRED
   dx       NMTOKEN  #REQUIRED
   dy       NMTOKEN  #REQUIRED
   dz       NMTOKEN  #REQUIRED 
   from_dh  NMTOKEN  #IMPLIED
   to_dh    NMTOKEN  #IMPLIED >

