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

gama-xml.dtd                       version 2.02  2001.02.22
============  

2.02  2001.02.22

      - attribute `at' renamed to `from'

2.01  2001.02.16

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

2.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 ty-pes of num-erical 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 input stream for program GaMa for adjustment of local
geodetic network. Latest version is available from

            http://gama.fsv.cvut.cz/gama-xml.dtd

Program GaMa (GaMaLib) is subject to GNU Library General Public
Licence, for more details visit

            http://gama.fsv.cvut.cz/gama/

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

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

<!ELEMENT  point  EMPTY >

<!ELEMENT  obs  (direction | distance | angle)* 
                cov-mat? 
                (direction | distance | angle)* >
<!ELEMENT  cov-mat    (NMTOKEN)+ >
<!ELEMENT  direction  EMPTY >
<!ELEMENT  distance   EMPTY >
<!ELEMENT  angle      EMPTY >

<!-- observed coordinates -->
<!ELEMENT coordinates (point)* cov-mat? (point)* >

<!ATTLIST parameters 

   txt        CDATA    #IMPLIED
   stx        CDATA    #IMPLIED
   opr        CDATA    #IMPLIED
   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
   xy  (fixed | free | constrained | unused) "unused" >

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

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

<!ATTLIST direction 

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

<!ATTLIST distance 

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

<!ATTLIST angle 

   from   CDATA    #IMPLIED
   to     CDATA    #REQUIRED
   rs     CDATA    #REQUIRED
   val    NMTOKEN  #REQUIRED
   stdev  NMTOKEN  #IMPLIED  >
















