<xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ex="http://xml.exciting-code.org/inputschemaextentions.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xsi:schemaLocation="http://xml.exciting-code.org/inputschemaextentions.xsd    http://xml.exciting-code.org/inputschemaextentions.xsd">
    <!--
  This schema defines the input file format. It should be the central place for parameter and task specification and documentation
 -->
    <!-- global type definitions -->
    <xs:simpleType name="fortrandouble">
        <xs:annotation>
            <xs:documentation>
 The type <pre>fortrandouble</pre> allows to use the letters <pre>"eEdDqQ"</pre> for exponent operators. This alters in what precision the number is parsed.
 </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:token">
            <xs:pattern value="\-?[0-9]*\.?[0-9]+([eEdDqQ][\-+]?[0-9]+)?"/>
        </xs:restriction>

    </xs:simpleType>
    <xs:annotation>
        <xs:documentation>
        <p>This web page lists all <blue>elements</blue> and <green>attributes</green> that can be used in the input file of an <exciting>exciting</exciting> calculation: </p>

 <list>
 <li><blue>elements</blue> are defined according to the <a href="http://en.wikipedia.org/wiki/XML#Key_terminology">general XML conventions</a>.  <it>Example:</it> The element <pre-bf>groundstate</pre-bf> is used to set up a self-consistent calculation of the ground-state energy.
 </li>
 <li>
  <green>attributes</green>  are defined according to the <a href="http://en.wikipedia.org/wiki/XML#Key_terminology">general XML conventions</a>. An attribute is always connected to an element. In <exciting>exciting</exciting> an attribute generally specifies a parameter or a set of parameters which are connected to the corresponding element.
 <it>Example:</it> The attribute <pre-bf>xctype</pre-bf> of the element <pre-bf>groundstate</pre-bf> defines which exchange-correlation potential is used in the self-consistent calculation.
</li>
</list>

<p>The input file of an  <exciting>exciting</exciting> calculation is named <filenamens>input.xml</filenamens>. It must be a valid XML file, and it must contain the root element <pre-bf_ns>input</pre-bf_ns>.</p>
        
        
        <p>Unless explicitly stated otherwise, <exciting>exciting</exciting> uses atomic units
  (<inlinemath>\hbar = m_{e} = e = 1</inlinemath>):</p>

     <list>
                <li> Energies are given in Hartree:
                <p>
    <inlinemath> 1 Ha = 2 Ry = 27.21138386(68) eV = 4.35926 10^{-18}\  J</inlinemath></p>
                </li>
                <li> Lengths are given in Bohr: <p>
     <inlinemath>  1 a_{\rm Bohr}\  = 0.52917720859(36)  {\buildrel _{\circ} \over {\mathrm{A}}} \ = 0.52917720859(36)  10^{-10} \ m</inlinemath></p>
                </li>
                <li> Magnetic fields are given in units of <p>
     <inlinemath> 1 a.u. =  \displaystyle\frac{e}{a_{\rm Bohr}^2}\    = 1717.2445320376\ Tesla.
   </inlinemath></p>
                </li>
            </list>
            <p> Note: The electron charge is positive, so that the atomic numbers <inlinemath>Z</inlinemath> are negative.
    </p>
        </xs:documentation>
        <xs:appinfo>
            <title>\<exciting>exciting</exciting> input reference</title>
            <root>input</root>
        </xs:appinfo>
    </xs:annotation>
    <xs:simpleType name="vector">
        <xs:annotation>
            <xs:documentation>
 A vector is a space separated list of floating point numbers.
<p>
 Example:<pre> "1.3 2.3e4 3 90"</pre>
                </p>
            </xs:documentation>
        </xs:annotation>
        <xs:list itemType="fortrandouble"/>
    </xs:simpleType>
    <xs:simpleType name="integerlist">
        <xs:annotation>
            <xs:documentation>
 List of space separated integers.
 </xs:documentation>
        </xs:annotation>
        <xs:list itemType="xs:integer"/>
    </xs:simpleType>
    <xs:simpleType name="vect3d">
        <xs:annotation>
            <xs:documentation>
 Three dimensional vector as three space separated floating point numbers.
 </xs:documentation>
        </xs:annotation>
        <xs:restriction base="vector">
            <xs:length value="3"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="vect2d">
        <xs:annotation>
            <xs:documentation>
 Three dimensional vector as three space separated floating point numbers.
 </xs:documentation>
        </xs:annotation>
        <xs:restriction base="vector">
            <xs:length value="2"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="integertriple">
        <xs:annotation>
            <xs:documentation>
 Space separated list of three integers.
<p>
Example:  <pre>
  "1 2 3"
  </pre>
                </p>
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="integerlist">
            <xs:length value="3"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="integerpair">
        <xs:annotation>
            <xs:documentation>
 Space separated list of two integers
 <p>
 Example:
 <pre> "1 2" </pre>
                </p>
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="integerlist">
            <xs:length value="2"/>
        </xs:restriction>
    </xs:simpleType>
    <!-- global attribute definitions -->
    <xs:attribute ex:importance="experimental" ex:unit="" name="outfileprefix" type="xs:string">
        <xs:annotation>
            <xs:documentation>A prefix to be prepended to the output files.
</xs:documentation>
        </xs:annotation>
    </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit="" name="do" default="fromscratch">
        <xs:annotation>
            <xs:appinfo>
                <oldname>nonreplace</oldname>
            </xs:appinfo>
            <xs:documentation>
            Decides if the ground state is calculated starting from scratch, using
            the densities from file or if it is skipped and only its associated input parameters
            are read in. Also applies fo structural optimization run.
        </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
            <xs:restriction base="xs:string">
                <xs:enumeration value="fromscratch"/>
                <xs:enumeration value="fromfile"/>
                <xs:enumeration value="skip"/>
            </xs:restriction>
        </xs:simpleType>
    </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit="" name="tfibs" type="xs:boolean" default="true">
        <xs:annotation>
            <xs:documentation>
    If the IBS correction to the force should be calculated Because calculation of the incomplete basis set (IBS) correction to
    the force is fairly time-consuming, it can be switched off by setting
    <pre> tfibs </pre>
    to
    <pre> "false"</pre>
    This correction can then be included only when necessary, i.e. when the atoms are close to equilibrium in a structural
    relaxation run.
   </xs:documentation>
        </xs:annotation>
    </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit="" name="tforce" type="xs:boolean" default="false">
        <xs:annotation>
            <xs:documentation>
    The attribute is set to
    <pre> "true"</pre>
    if the force should be calculated at the end of the self-consistent cycle This variable is automatically set to
    <pre> "true"</pre>
     when performing structural optimization.
   </xs:documentation>
        </xs:annotation>
    </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit="" name="symmorph"
        type="xs:boolean" default="false">
        <xs:annotation>
            <xs:documentation>
               When set to <pre>"true"</pre> only symmorphic space-group operations are to be considered, i.e. only symmetries without non-primitive translations are used anywhere in the code.
            </xs:documentation>
        </xs:annotation>
     </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit="Hartree" name="scissor" type="fortrandouble"
        default="0.0d0">
        <xs:annotation>
            <xs:documentation> This is the scissors shift applied to states above the Fermi energy. Affects DOS,
    optics and band structure plots.</xs:documentation>
        </xs:annotation>
    </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit="" name="fastpmat"
       type="xs:boolean" default="true">
       <xs:annotation>
       <xs:documentation>
        if <pre>"true"</pre>, a fast method to calculate APW-lo, lo-APW and lo-lo parts of the momentum matrix elements in the muffin-tin is used.
       </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit="" name="intraband"
        type="xs:boolean" default="false">
       <xs:annotation>
           <xs:documentation>The intraband attribute is <pre>"true"</pre> if the intraband term is to be added to the optical matrix (q=0)</xs:documentation>
       </xs:annotation>
    </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit=""
    name="action" default="include">
    <xs:annotation>
        <xs:documentation>Select to include or exclude states</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
        <xs:restriction base="xs:string">
            <xs:enumeration value="include"/>
            <xs:enumeration value="exclude"/>
        </xs:restriction>
    </xs:simpleType>
    </xs:attribute>
    <xs:attribute ex:importance="expert" ex:unit=""
    name="statestype" >
    <xs:annotation>
        <xs:documentation>Select for initial or final state range</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
        <xs:restriction base="xs:string">
            <xs:enumeration value="initialstates"/>
            <xs:enumeration value="finalstates"/>
        </xs:restriction>
    </xs:simpleType>
    </xs:attribute>                                                     
    <xs:attribute ex:importance="essential" ex:unit="" name="epsforce" type="fortrandouble"
        default="5.0d-5"> </xs:attribute>
    <!-- global element definitions -->
    <xs:element ex:importance="essential" ex:unit="" name="origin">
        <xs:complexType>
            <xs:attribute ex:importance="essential" ex:unit="" name="coord" type="vect3d"/>
        </xs:complexType>
    </xs:element>
    <xs:element ex:importance="essential" ex:unit="" name="point">
        <xs:complexType>
            <xs:attribute ex:importance="essential" ex:unit="" name="coord" type="vect3d"
                use="required"/>
            <xs:attribute ex:importance="essential" ex:unit="" name="label" type="xs:string"
                default=""/>
        </xs:complexType>
    </xs:element>
    <xs:element ex:importance="essential" ex:unit="" name="plot1d">
        <xs:annotation>
            <xs:documentation> The element plot1d specifies sample points along a path. The coordinate space (lattice or cartesian)is chosen in the context of the parent.
   </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:all>
                <xs:element ex:importance="essential" ex:unit="" name="path" maxOccurs="1"
                    minOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:annotation>
                                <xs:documentation>A path consists of at least two points and a number of divisions.</xs:documentation>
                            </xs:annotation>
                            <xs:element ex:importance="essential" ex:unit="" ref="point"
                                minOccurs="2" maxOccurs="unbounded"/>
                        </xs:sequence>
                        <xs:attribute ex:importance="essential" ex:unit="" name="steps"
                            type="xs:integer" use="required"/>
                        <xs:attribute ex:importance="expert" ex:unit="" ref="outfileprefix"/>
                    </xs:complexType>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <xs:element ex:importance="essential" ex:unit="" name="plot2d">
        <xs:annotation>
            <xs:documentation>Defines a 2d plot domain. </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:all>
                <xs:element ex:importance="essential" ex:unit="" name="parallelogram" maxOccurs="1"
                    minOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element ex:importance="essential" ex:unit="" ref="origin"
                                minOccurs="1" maxOccurs="1"/>
                            <xs:element ex:importance="essential" ex:unit="" ref="point"
                                minOccurs="2" maxOccurs="2"/>
                        </xs:sequence>
                        <xs:attribute ex:importance="essential" ex:unit="" name="grid"
                            type="integerpair" use="required"/>
                        <xs:attribute ex:importance="expert" ex:unit="" ref="outfileprefix"/>
                    </xs:complexType>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <xs:element ex:importance="essential" ex:unit="" name="plot3d">
        <xs:annotation>
            <xs:documentation>Defines a 3d plot domain. </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:all>
                <xs:element ex:importance="essential" ex:unit="" name="box" maxOccurs="1"
                    minOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element ex:importance="essential" ex:unit="" ref="origin"
                                minOccurs="1" maxOccurs="1"/>
                            <xs:element ex:importance="essential" ex:unit="" ref="point"
                                minOccurs="3" maxOccurs="3"/>
                        </xs:sequence>
                        <xs:attribute ex:importance="essential" ex:unit="" name="grid"
                            type="integertriple" use="required"/>
                        <xs:attribute ex:importance="expert" ex:unit="" ref="outfileprefix"/>
                    </xs:complexType>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
    <xs:element ex:importance="essential" ex:unit="" name="pointstatepair" type="integerpair">
        <xs:annotation>
            <xs:documentation>
   The element <pre>pointstatepair</pre> defines a
    <inlinemath>{ \bf k}</inlinemath>
    -point and state index pair.
   </xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element ex:importance="essential" ex:unit="" name="kstlist">
        <xs:annotation>
            <xs:documentation>
    The kstlist element is used in the LSJ and wavefunction plot element This is a user-defined list of
    <inlinemath>{ \bf k}</inlinemath>
    -point and state index pairs which are those used for plotting wavefunctions and writing
    <inlinemath>{ \bf L}</inlinemath>
    ,
    <inlinemath>{ \bf S}</inlinemath>
    and
    <inlinemath>{ \bf J}</inlinemath>
    expectation values.
   </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ex:importance="essential" ex:unit="" ref="pointstatepair" minOccurs="1"
                    maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- root element starts here -->
    <xs:element ex:importance="essential" ex:unit="" name="input">
        <xs:annotation>
            <xs:documentation>
       The xml element <pre> input</pre> is the root element of the <exciting>exciting</exciting> input file. It must contain one element <pre>structure </pre> and the element <pre>groundstate </pre>.
       <p>
                    <a href="http://exciting-code.org/input-file-format-overview">Find a minimal input file instance described here.</a>
                </p>
            </xs:documentation>
            <xs:appinfo>
     </xs:appinfo>
        </xs:annotation>
        <xs:complexType>
            <xs:all>
                <xs:element ex:importance="essential" ex:unit="" name="title" type="xs:string"
                    minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation>Title of the input file.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ex:importance="essential" ex:unit="" name="structure" maxOccurs="1"
                    minOccurs="1">
                    <xs:annotation>
                        <xs:documentation>The structure element contains all structural information such as unit cell and atom positions.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element ex:importance="spacegroup" ex:unit="" name="symmetries"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:appinfo>
                                        <notindocu/>
                                    </xs:appinfo>
                                    <xs:documentation>This element is used by the spacegroup tool to generate structures and supercells</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:annotation>
                                        <xs:documentation>
                     The symmetries element is output from the spacegroup program the values are currently not used in the <exciting>exciting</exciting> program
                   </xs:documentation>
                                    </xs:annotation>
                                    <xs:sequence>
                                        <xs:element ex:importance="spacegroup" ex:unit=""
                                            name="lattice" maxOccurs="1" minOccurs="1">
                                            <xs:annotation>
                                                <xs:documentation>The lattice element defines lattice from a,b,c, and angles.</xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:attribute ex:importance="spacegroup"
                                                  ex:unit="Bohr" name="a" type="fortrandouble"
                                                  use="required">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldname>noreplace</oldname>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute ex:importance="spacegroup"
                                                  ex:unit="Bohr" name="b" type="fortrandouble"
                                                  use="required">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldname>noreplace</oldname>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute ex:importance="spacegroup"
                                                  ex:unit="Bohr" name="c" type="fortrandouble"
                                                  use="required">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldname>noreplace</oldname>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute ex:importance="spacegroup"
                                                  ex:unit="Degree" name="ab" type="fortrandouble"
                                                  use="required"/>
                                                <xs:attribute ex:importance="spacegroup"
                                                  ex:unit="Degree" name="ac" type="fortrandouble"
                                                  use="required"/>
                                                <xs:attribute ex:importance="spacegroup"
                                                  ex:unit="Degree" name="bc" type="fortrandouble"
                                                  use="required"/>
                                                <xs:attribute ex:importance="spacegroup" ex:unit=""
                                                  name="ncell" type="integertriple" use="optional"
                                                  default="1 1 1">
                                                  <xs:annotation>
                                                  <xs:documentation>Number of repeated cells in each direction.</xs:documentation>
                                                  </xs:annotation>
                                                </xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element ex:importance="spacegroup" ex:unit=""
                                            name="WyckoffPositions" maxOccurs="1" minOccurs="0">
                                            <xs:complexType>
                                                <xs:sequence>
                                                  <xs:element ex:importance="spacegroup" ex:unit=""
                                                  name="wspecies" maxOccurs="unbounded"
                                                  minOccurs="0">
                                                  <xs:annotation>
                                                  <xs:documentation/>
                                                  </xs:annotation>
                                                  <xs:complexType>
                                                  <xs:sequence>
                                                  <xs:element ex:importance="spacegroup" ex:unit=""
                                                  name="wpos" maxOccurs="unbounded" minOccurs="0">
                                                  <xs:complexType>
                                                  <xs:attribute ex:importance="spacegroup"
                                                  ex:unit="" name="coord" type="vect3d"/>
                                                  </xs:complexType>
                                                  </xs:element>
                                                  </xs:sequence>
                                                  <xs:attribute ex:importance="spacegroup"
                                                  ex:unit="" name="speciesfile" type="xs:string"/>
                                                  </xs:complexType>
                                                  </xs:element>
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute ex:importance="spacegroup" ex:unit=""
                                        name="HermannMauguinSymbol" type="xs:string" use="required">
                                        <xs:annotation>
                                            <xs:documentation>Herman Mauguin symbol giving the spacegroup</xs:documentation>
                                            <xs:appinfo>
                                                <oldname>hrmg</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="spacegroup" ex:unit=""
                                        name="HallSymbol" type="xs:string"/>
                                    <xs:attribute ex:importance="spacegroup" ex:unit=""
                                        name="SchoenfliesSymbol" type="xs:string"/>
                                    <xs:attribute ex:importance="spacegroup" ex:unit=""
                                        name="spaceGroupNumber" type="xs:string"/>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="essential" ex:unit="" name="crystal"
                                minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Defines the unit cell of the crystal via the 3 basis vectors.  </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:annotation>
                                        <xs:documentation>The unit cell is spanned by 3 base vectors that define the lattice coordinates.</xs:documentation>
                                    </xs:annotation>
                                    <xs:sequence>
                                        <xs:element ex:importance="essential" ex:unit="Bohr"
                                            name="basevect" minOccurs="3" maxOccurs="3"
                                            type="vect3d">
                                            <xs:annotation>
                                                <xs:documentation>Defines one basis vector in Cartesian coordinates.</xs:documentation>
                                                <xs:appinfo>
                                                    <oldname>avec</oldname>
                                                </xs:appinfo>
                                            </xs:annotation>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute ex:importance="essential" ex:unit="1" name="scale"
                                        type="fortrandouble" default="1.0d0">
                                        <xs:annotation>
                                            <xs:documentation>Scales all the lattice vectors by the same factor. This is useful for varying the volume.</xs:documentation>
                                            <xs:appinfo>
                                                <oldname>scale</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="essential" ex:unit=""
                                        name="stretch" type="vect3d" default="1.0d0 1.0d0 1.0d0 ">
                                        <xs:annotation>
                                            <xs:documentation>Allows for an individual scaling of each lattice vector separately. <pre>"1 1 1"</pre> means no scaling.</xs:documentation>
                                            <xs:appinfo>
                                                <oldname>(sc1|sc2|sc3)</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="essential" ex:unit="" name="species"
                                minOccurs="0" maxOccurs="unbounded">
                                <xs:annotation>
                                    <xs:documentation>Defines the atomic species, i.e. the chemical element. The atomic coordinates and, optionally, quantities relevant for magnetic calculations are defined in the subelement(s) atom.  </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element ex:importance="essential" ex:unit="" name="atom"
                                            minOccurs="1" maxOccurs="unbounded">
                                            <xs:annotation>
                                                <xs:documentation>Defines the position and other attributes of one atom in the unit cell.</xs:documentation>
                                                <xs:appinfo>
                                                    <oldname>noname</oldname>
                                                </xs:appinfo>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:attribute ex:importance="essential"
                                                  ex:unit="lattice coordinates" name="coord"
                                                  type="vect3d" use="required">
                                                  <xs:annotation>
                                                  <xs:documentation>Position in lattice coordinates.</xs:documentation>
                                                  <xs:appinfo>
                                                            <oldname>atposl</oldname>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute ex:importance="expert" ex:unit=""
                                                  name="bfcmt" type="vect3d"
                                                  default="0.0d0 0.0d0 0.0d0" use="optional">
                                                  <xs:annotation>
                                                  <xs:documentation>Muffin-tin external magnetic field in Cartesian coordinates.</xs:documentation>
                                                  </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute ex:importance="expert" ex:unit=""
                                                  name="mommtfix" type="vect3d"
                                                  default="0.0d0 0.0d0 0.0d0" use="optional">
                                                  <xs:annotation>
                                                  <xs:documentation>The desired muffin-tin moment for a Fixed Spin Moment (FSM) calculation.</xs:documentation>
                                                  </xs:annotation>
                                                </xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element ex:importance="expert" ex:unit=""
                                            name="LDAplusU" minOccurs="0">
                                            <xs:annotation>
                                                <xs:documentation>If present defines LDA plus U parameters for species</xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:attribute ex:importance="expert" ex:unit=""
                                                  name="l" type="xs:integer" default="-1">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldname>notaname</oldname>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute ex:importance="expert" ex:unit=""
                                                  name="U" type="fortrandouble" default="0.0d0">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldname>notaname</oldname>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:attribute>
                                                <xs:attribute ex:importance="expert" ex:unit=""
                                                  name="J" type="fortrandouble" default="0.0d0">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldname>notaname</oldname>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute ex:importance="essential" ex:unit=""
                                        name="speciesfile" type="xs:anyURI" use="required">
                                        <xs:annotation>
                                            <xs:documentation>
                       Defines the file that contains the species definition. It is looked up in the species directory specified by the species path. By default, the name of the file is <it_ns>element</it_ns>.<ns_pre_ns> xml</ns_pre_ns>, e.g. <pre_ns>Ag.xml</pre_ns>.
                     </xs:documentation>
                                            <xs:appinfo>
                                                <oldname>spfname</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit=""
                                        name="chemicalSymbol" type="xs:string" use="optional"
                                        default="">
                                        <xs:annotation>
                                            <xs:documentation>Optional attribute that may be used in visualization and by converters. It is ignored by <exciting>exciting</exciting>
                                            </xs:documentation>
                                            <xs:appinfo>
                                                <oldname>spsymb</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit=""
                                        name="atomicNumber" type="xs:integer" use="optional">
                                        <xs:annotation>
                                            <xs:documentation>
                       Optional attribute that may be used in visualization and by converters. It is not used in <exciting>exciting</exciting>
                                            </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="Bohr" name="rmt"
                                        type="fortrandouble" default="-1.0d0" use="optional">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>noreplace&gt;</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>
                                            Defines the muffin-tin radius; this optional parameter allows to override species file or automatic determination. The muffin-tin radius defines the region around the atomic nucleus where the wave function is expanded in terms of atomic-like functions. In contrast, the interstitial region (=region not belonging to any muffin-tin) is described by planewaves.
                                            </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute name="href" type="xs:anyURI" default="">
                                    <xs:annotation>
                                        
                                 <xs:documentation>Defines the address/URI of a species file provided in web. If this attribute is specified, all other attributes  </xs:documentation>
                                   </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                        <xs:attribute ex:importance="essential" ex:unit="" name="speciespath"
                            type="xs:anyURI" use="required">
                            <xs:annotation>
                                <xs:documentation>Gives the path to the directory containing the species files. It can be an HTTP URL too (needs <pre>wget</pre>).</xs:documentation>
                                <xs:appinfo>
                                    <oldname>sppath</oldname>
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="molecule"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                 Has to be set to <pre>"true"</pre> if one wants to calculate an isolated molecule. If it is
                 <pre>"true"</pre>
                 , then the atomic positions,
                 <inlinemath>{\bf a}</inlinemath>
                 , are assumed to be in Cartesian coordinates. The lattice vectors are also set up automatically with the i-th lattice vector given by
                 <displaymath>{\bf A}^i=A_i\hat{\bf e}^i,</displaymath>
                 where
                 <displaymath>A_i=\max_{\alpha,\beta}\left|{\bf a}^{\alpha}_i-{\bf a}^{\beta}_i\right| +d_{\rm vac}</displaymath>
                 with
                 <inlinemath>\alpha</inlinemath>
                 and
                 <inlinemath>\beta</inlinemath>
                 labeling atoms, and
                 <inlinemath>d_{\rm vac}</inlinemath>
                 determines the size of the vacuum around the molecule. The last variable is set by the attribute
                 <pre>vacuum</pre>
                 .
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Bohr" name="vacuum"
                            type="fortrandouble" default="10.0d0">
                            <xs:annotation>
                                <xs:documentation>Determines the size of the vacuum around the molecule.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Bohr" name="epslat"
                            type="fortrandouble" default="1.0d-6">
                            <xs:annotation>
                                <xs:documentation>Vectors with lengths less than this are considered zero.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="autormt"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>If <pre>"true"</pre> automatic determination of the muffin tin radii is allowed.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="primcell"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                 Allows the primitive unit cell to be determined automatically from the conventional cell. 
                 This is done by searching for lattice vectors among
                 all those which connect atomic sites, and using the three shortest 
                 ones which produce a unit cell with non-zero volume.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="tshift"
                            type="xs:boolean" default="true">
                            <xs:annotation>
                                <xs:documentation>
                 Set to it to <pre>"true"</pre> if the crystal can be shifted such that the atom closest to the origin is exactly at the origin.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>
                <xs:element ex:importance="essential" ex:unit="" name="groundstate" maxOccurs="1"
                    minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>
             The groundstate element is required for any calculation. Its attributes are the parameters and methods used to calculate the groundstate density.
           </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:all>
                            <xs:element ex:importance="essential" ex:unit="" name="spin"
                                minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>
                   If the
                   <pre>spin</pre> 
                   element is present calculation is done with spin polarization.
                 </xs:documentation>
                                    <xs:appinfo>
                                        <oldname>spinpol</oldname>
                                    </xs:appinfo>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="essential" ex:unit="" name="momfix"
                                        type="vect3d" default="0.0d0 0.0d0 0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>The desired total moment for a FSM calculation.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="essential" ex:unit=""
                                        name="bfieldc" type="vect3d" default="0.0d0 0.0d0 0.0d0 ">
                                        <xs:annotation>
                                            <xs:documentation>
                       Alows to apply a constant B field This is a constant magnetic field applied throughout the entire unit cell and enters the
                       second-variational Hamiltonian as
                       <displaymath>\frac{g_e\alpha}{4}\,\vec{\sigma}\cdot{\bf B}_{\rm ext},</displaymath>
                       where
                       <inlinemath>g_e</inlinemath>
                       is the electron
                       <inlinemath>g</inlinemath>
                       -factor (2.0023193043718). This field is normally used to break spin symmetry for spin-polarised calculations and considered to be
                       infinitesimal with no direct contribution to the total energy. In cases where the magnetic field is finite (for example when computing
                       magnetic response) the external
                       <inlinemath>{ \bf B}</inlinemath>
                       -field energy reported in
                       <pre>INFO.OUT</pre>
                       should be added to the total by hand. This field is applied throughout the entire unit cell. To apply magnetic fields in particular
                       muffin-tins use the
                       <pre>bfcmt</pre>
                       vect ors in the
                       <pre>atoms</pre>
                       block. Collinear calculations are more efficient if the field is applied in the
                       <inlinemath>z</inlinemath>
                       -direction.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="essential" ex:unit=""
                                        name="spinorb" type="xs:boolean">
                                        <xs:annotation>
                                            <xs:documentation>
                        If
                       <pre>spinorb</pre>
                       is
                       <pre>"true"</pre>
                       , then a
                       <inlinemath>\boldsymbol \sigma\cdot{ \bf L}</inlinemath>
                       term is added to the second-variational Hamiltonian.  
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="spinsprl"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                       Set to
                       <pre>"true"</pre>
                       if a spin-spiral calculation is required. Experimental feature for the calculation of spin-spiral states. See
                       <attref>vqlss</attref>
                       for details.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="vqlss"
                                        type="vect3d" default="0.0d0 0.0d0 0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>
                       Is the
                       <inlinemath>{ \bf q}</inlinemath>
                       -vector of the spin-spiral state in lattice coordinates. Spin-spirals arise from spinor states assumed to be of the form
                       <displaymath>
                         \Psi^{ \bf q}_{ \bf k}({ \bf r})= \left( \begin{array}{c} U^{{\bf q}\uparrow}_{ \bf k}({\bf r})e^{i({ \bf k+q/2})\cdot{ \bf r}} \\ U^{{
                         \bf q}\downarrow}_{\bf k}({ \bf r})e^{i({\bf k-q/2})\cdot{ \bf r}} \\ \end{array} \right).
                       </displaymath>
                       These are determined using a second-variational approach, and give rise to a magnetization density of the form
                       <displaymath>
                         {\bf m}^{ \bf q}({ \bf r})=(m_x({\bf r})\cos({ \bf q \cdot r}), m_y({\bf r})\sin({ \bf q \cdot r}),m_z({\bf r})),
                       </displaymath>
                       where
                       <inlinemath>m_x</inlinemath>
                       ,
                       <inlinemath>m_y</inlinemath>
                       and
                       <inlinemath>m_z</inlinemath>
                       are lattice periodic. See also
                       <attref>spinprl</attref>.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="taufsm"
                                        type="fortrandouble" default="0.01d0"/>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="reducebf"
                                        type="fortrandouble" default="1.0d0">
                                        <xs:annotation>
                                            <xs:documentation>
                       After each iteration the external magnetic fields are multiplied with reducebf. This al- lows for a large external magnetic field at the
                       start of the self-consistent loop to break spin symmetry, while at the end of the loop the field will be effectively zero, i.e.
                       infinitesimal. See <attref>bfieldc</attref> and atom element.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="essential" ex:unit=""
                                        name="fixspin" default="none">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:enumeration value="none">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>0</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="total FSM">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>1</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="localmt FSM">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>2</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="both">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>3</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="experimental" ex:unit="" name="HartreeFock"
                                minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>If preset HartreeFock calculation is triggered.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="Hartree"
                                        name="epsengy" type="fortrandouble" use="optional"
                                        default="1.0d-4">
                                        <xs:annotation>
                                            <xs:documentation>Energy convergence tolerance.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="solver"
                                minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Optional configuration options for eigenvector solver.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="type"
                                        default="Lapack">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>solvertype</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>Selects the eigenvalue solver for the first variational equation</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:enumeration value="Lapack">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>1</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="Arpack">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>2</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="DIIS">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>3</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit=""
                                        name="packedmatrixstorage" type="xs:boolean" use="optional"
                                        default="true">
                                        <xs:annotation>
                                            <xs:documentation>
                       In the default calculation the matrix is sored in packed form. When using multithreaded BLAS setting this parmeter to <pre>"false"</pre> increases
                       efficiency.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="epsarpack"
                                        type="fortrandouble" default="1.0d-8">
                                        <xs:annotation>
                                            <xs:documentation>Tolerance parameter for the ARPACK shift invert solver</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="Hartree"
                                        name="evaltol" type="fortrandouble" default="1.0d-8">
                                        <xs:annotation>
                                            <xs:documentation>Error tolerance for the first-variational eigenvalues using the LAPACK Solver</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="experimental" ex:unit="" name="OEP"
                                minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>If present exact exchange calculation is triggered. (experimental)</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="maxitoep"
                                        type="xs:integer" default="120">
                                        <xs:annotation>
                                            <xs:documentation>Maximum number of iterations when solving the exact exchange integral equations.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="tauoep"
                                        type="vect3d" default="1.0d0 0.2d0 1.5d0">
                                        <xs:annotation>
                                            <xs:documentation>
                       The optimised effective potential is determined using an interative method. [Phys. Rev. Lett. 98, 196405 (2007)]. At the first iteration
                       the step length is set to tauoep(1). Dur- ing subsequent iterations, the step length is scaled by tauoep(2) or tauoep(3), when the
                       residual is increasing or decreasing, respectively. See also <attref>maxitoep</attref>.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="experimental" ex:unit="" name="RDMFT"
                                minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>If present Reduced Density Matrix Funcional Theory calculation is triggered</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="rdmxctype"
                                        type="xs:integer" default="2">
                                        <xs:annotation>
                                            <xs:documentation>XC functional.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="rdmmaxscl"
                                        type="xs:integer" default="1">
                                        <xs:annotation>
                                            <xs:documentation>maximum number of self-consistent loops.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="maxitn"
                                        type="xs:integer" default="250">
                                        <xs:annotation>
                                            <xs:documentation>maximum number of iteration for occupation number optimization.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="maxitc"
                                        type="xs:integer" default="10">
                                        <xs:annotation>
                                            <xs:documentation>maximum number of iteration for natural orbital optimization.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="taurdmn"
                                        type="fortrandouble" default="1.0d0">
                                        <xs:annotation>
                                            <xs:documentation>step size for occupation numbers.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="taurdmc"
                                        type="fortrandouble" default="0.5d0">
                                        <xs:annotation>
                                            <xs:documentation>Step size for natural orbital coefficients.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="rdmalpha"
                                        type="fortrandouble" default="0.7d0">
                                        <xs:annotation>
                                            <xs:documentation>exponent for the functional.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="rdmtemp"
                                        type="fortrandouble" default="0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>temperature.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="output"
                                minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Specifications on the file formats for output files.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="state"
                                        default="binary">
                                        <xs:annotation>
                                            <xs:documentation>Selects the file format of the STATE file.</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:enumeration value="binary"/>
                                                <xs:enumeration value="XML"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                        </xs:all>
                        <xs:attribute ex:importance="essential" ex:unit="" ref="do"
                            default="fromscratch">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>nonreplace</oldname>
                                </xs:appinfo>
                                <xs:documentation>Decides if the groundstate run is skipped, calculated from scratch, or continued from the file STATE.OUT.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="ngridk"
                            type="integertriple" use="required">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>ngridk</oldname>
                                </xs:appinfo>
                                <xs:documentation>Number of k grid points along the basis vector directions.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="rgkmax"
                            type="fortrandouble" default="7.0d0">
                            <xs:annotation>
                                <xs:documentation>
                 The parameter <pre>rgkmax</pre> implicitly determines the number of basis functions and 
                 is one of the crucial parameters for the accuracy of the calculation.  
                 It represents the product of two quantities: <inlinemath>R_{MT,\, Min}</inlinemath>, 
                 the smallest of all muffin-tin radii, and 
                 <inlinemath>|{ \bf G}+{ \bf k}|_{max}</inlinemath>,
                 the maximum length for the <inlinemath>{ \bf G}+{ \bf k}</inlinemath>\ vectors.
                 Because each <inlinemath>{ \bf G}+{ \bf k}</inlinemath>\ vector represents
                 one basis function, <pre>rgkmax</pre> gives the number of basis functions 
                 used for solving the Kohn-Sham equations. Typical values of <pre>rgkmax</pre> 
                 are between 6 and 9. However, for systems with very short bond-lengths,
                 significantly smaller values may be sufficient. This may especially be the case
                 for materials containing carbon, where  <pre>rgkmax</pre> may be 
                 4.5-5, or hydrogen, where even values between 3 and 4 may be sufficient.
                 In any case, a convergence check is indispensible for a proper choice of this
                 parameter for your system!
                 
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="epspot"
                            type="fortrandouble" use="optional" default="1.0d-6">
                            <xs:annotation>
                                <xs:documentation>
                 If the RMS change in the effective potential and magnetic field is smaller than <pre>epspot</pre>, then the self-consistent loop is considered converged
                 and exited. For structural optimization runs this results in the forces being calculated, the atomic positions updated and the loop restarted.
                 See also <attref>maxscl</attref>.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Hartree" name="epsengy"
                            type="fortrandouble" use="optional" default="1.0d-4">
                            <xs:annotation>
                                <xs:documentation>Energy convergence tolerance.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" ref="epsforce"
                            default="5.0d-5">
                            <xs:annotation>
                                <xs:documentation>Convergence tolerance for the forces during the SCF run.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="rmtapm" type="vect2d"
                            default="0.25d0 0.95d0">
                            <xs:annotation>
                                <xs:documentation>
                 Parameters governing the automatic generation of the muffin-tin radii. When <attref>autormt</attref> is set to <pre>"true"</pre>, the muffin-tin radii are found
                 automatically from the formula
                 <displaymath>R_i\propto 1+\zeta|Z_i|^{1/3},</displaymath>
                 where
                 <inlinemath>Z_i</inlinemath>
                 is the atomic number of the  <inlinemath>i</inlinemath> th species,
                 <inlinemath>\zeta</inlinemath>
                 is stored in <attref>rmtapm</attref>(1) and the value which governs the distance between the muffin-tins is stored in <attref>rmtapm</attref>(2). When <attref>rmtapm</attref>(2) =1, the
                 closest muffin-tins will touch.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="Hartree" name="swidth"
                            type="fortrandouble" default="0.001d0">
                            <xs:annotation>
                                <xs:documentation>Width of the smooth approximation to the Dirac delta function (must be greater than zero).</xs:documentation>
                                <xs:appinfo>
                                    <olddefault default="0.01d0"/>
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="stype"
                            default="Gaussian">
                            <xs:annotation>
                                <xs:documentation>
                 A smooth approximation to the Dirac delta function is needed to compute the occupancies of the Kohn-Sham states. The attribute
                 <pre>swidth</pre>
                 determines the width of the approximate delta function.
               </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="Gaussian">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>0</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Methfessel-Paxton 1">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>1</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Methfessel-Paxton 2">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>2</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Fermi Dirac">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>3</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="Square-wave impulse">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>4</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="findlinentype"
                            default="advanced">
                            <xs:annotation>
                                <xs:documentation>Select method to determine the linearization energies.</xs:documentation>
                                <xs:appinfo>
                                    <olddefault default="simple"/>
                                </xs:appinfo>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="simple"/>
                                    <xs:enumeration value="Fermi"/>
                                    <xs:enumeration value="advanced"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="isgkmax"
                            type="xs:integer" default="-1">
                            <xs:annotation>
                                <xs:documentation>Species for which the muffin-tin radius will be used for calculating gkmax.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="gmaxvr"
                            type="fortrandouble" default="12.0d0">
                            <xs:annotation>
                                <xs:documentation>Maximum length of |G| for expanding the interstitial density and potential.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="nempty"
                            type="xs:integer" default="5">
                            <xs:annotation>
                                <xs:documentation>
                 Defines the number of eigenstates beyond that required for charge neutrality. When running metals it is not known
                 <it>a priori</it> how many states will be below the Fermi energy for each
                 <bf>k</bf>
                 -point. Setting
                 <pre>nempty</pre>
                 greater than zero allows the additional states to act as a buffer in such cases. Furthermore, magnetic calculations use the first-variational
                 eigenstates as a basis for setting up the second-variational Hamiltonian, and thus
                 <pre>nempty</pre>
                 will determine the size of this basis set. Convergence with respect to this quantity should be checked.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="nosym"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                 When set to
                 <pre>"true"</pre>
                 no symmetries, apart from the identity, are used anywhere in the code.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" ref="symmorph"
                            default="false">
                            <xs:annotation>
                                <xs:documentation>
                                    When set to <pre>"true"</pre> only symmorphic space-group operations are to be considered, i.e. only symmetries without non-primitive translations are used anywhere in the code.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="frozencore"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                 When set to
                 <pre>"true"</pre>
                 the frozen core approximation is applied, i.e., the core states are fixed to the atomic states.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="autokpt"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                 Decides if the
                 <bf>k</bf>
                 -point set is to be determined automatically
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="radkpt"
                            type="fortrandouble" default="40.0d0">
                            <xs:annotation>
                                <xs:documentation>
                 Used for the automatic determination of the
                 <bf>k</bf>
                 -point mesh. If
                 <pre>autokpt</pre>
                 is set to
                 <pre>"true"</pre>
                 then the mesh sizes will be determined by
                 <inlinemath>n_i=\lambda/|{ \bf A}_i|+1</inlinemath>
                 .
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="reducek"
                            type="xs:boolean" default="true">
                            <xs:annotation>
                                <xs:documentation>
                If the attribute <pre>reducek</pre> is 
                 <pre>"true"</pre>
                  the
                 <inlinemath>  \bf{k}  </inlinemath>
                 -point set is reduced with the crystal symmetries.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" ref="tfibs" default="true">
                            <xs:annotation>
                                <xs:documentation>
                 Because calculation of the incomplete basis set (IBS) correction to the force is fairly time- consuming, it can be switched off by setting
                 tfibs to <pre>"false"</pre> This correction can then be included only when necessary, i.e. when the atoms are close to equilibrium in a structural
                 relaxation run.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" ref="tforce"
                            default="false">
                            <xs:annotation>
                                <xs:documentation>Decides if the force should be calculated at the end of the self-consistent cycle.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lmaxapw"
                            type="xs:integer" default="10">
                            <xs:annotation>
                                <xs:documentation>Angular momentum cut-off for the APW functions.</xs:documentation>
                                <xs:appinfo>
                                    <olddefault default="8"/>
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="maxscl"
                            type="xs:integer" default="200">
                            <xs:annotation>
                                <xs:documentation>Upper limit for te selfconsistency loop.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="chgexs"
                            type="fortrandouble" default="0.0d0">
                            <xs:annotation>
                                <xs:documentation>
                 This controls the amount of charge in the unit cell beyond that required to maintain neu-trality. It can be set positive or negative depending
                 on whether electron or hole doping is required.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Hartree" name="deband"
                            type="fortrandouble" default="0.0025d0">
                            <xs:annotation>
                                <xs:documentation>
                 Initial band energy step size The initial step length used when searching for the band energy, which is used as the APW linearization energy.
                 This is done by first searching upwards in energy until the radial wavefunction at the muffin-tin radius is zero. This is the energy at the top
                 of the band, denoted
                 <inlinemath>E_{\rm t}</inlinemath>
                 . A downward search is now performed from
                 <inlinemath>E_{\rm t}</inlinemath>
                 until the slope of the radial wavefunction at the muffin-tin radius is zero. This energy,
                 <inlinemath>E_{\rm b}</inlinemath>
                 , is at the bottom of the band. The band energy is taken as
                 <inlinemath>(E_{\rm t}+E_{\rm b})/2</inlinemath>
                 . If either
                 <inlinemath>E_{\rm t}</inlinemath>
                 or
                 <inlinemath>E_{\rm b}</inlinemath>
                 cannot be found then the band energy is set to the default value.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Hartree" name="epsband"
                            type="fortrandouble" default="1.0d-6">
                            <xs:annotation>
                                <xs:documentation>Energy tolerance for search of linearization energies.
                                </xs:documentation>
                                <xs:appinfo>
                                    <oldname>none</oldname>
                                    <olddefault default="1.0d-5"/>
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Hartree" name="dlinenfermi"
                            type="fortrandouble" default="-0.1d0">
                            <xs:annotation>
                                <xs:documentation>Energy difference between linearisation and Fermi energy.
                                </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="epschg"
                            type="fortrandouble" default="1.0d-3">
                            <xs:annotation>
                                <xs:documentation>Maximum allowed error in the calculated total charge beyond which a warning message will be issued.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="epsocc"
                            type="fortrandouble" default="1.0d-8">
                            <xs:annotation>
                                <xs:documentation>smallest occupancy for which a state will contribute to the density.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="mixer"
                            default="msec">
                            <xs:annotation>
                                <xs:documentation>select the mixing (relaxation) scheme for SCF</xs:documentation>
                                <xs:appinfo>
                                    <oldname>mixtype</oldname>
                                    <olddefault default="lin"/>
                                </xs:appinfo>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="lin">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>1</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="msec">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>2</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="pulay">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>3</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="beta0"
                            type="fortrandouble" default="0.4d0">
                            <xs:annotation>
                                <xs:documentation>Initial value for mixing parameter. Used in linear mixing.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="betainc"
                            type="fortrandouble" default="1.1d0">
                            <xs:annotation>
                                <xs:documentation>Mixing parameter increase. Used in linear mixing.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="betadec"
                            type="fortrandouble" default="0.6d0">
                            <xs:annotation>
                                <xs:documentation>Mixing parameter decrease. Used in linear mixing.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lradstep"
                            type="xs:integer" default="4">
                            <xs:annotation>
                                <xs:documentation>
                 Some muffin-tin functions (such as the density) are calculated on a coarse radial mesh and then interpolated onto a fine mesh. This is done for
                 the sake of efficiency. lradstp defines the step size in going from the fine to the coarse radial mesh. If it is too large, loss of precision
                 may occur.
               </xs:documentation>
                                <xs:appinfo>
                                    <oldname>lradstp</oldname>
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="nprad"
                            type="xs:integer" default="4">
                            <xs:annotation>
                                <xs:documentation>Smallest occupancy for which a state will contribute to the density.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="xctype"
                            default="LSDAPerdew-Wang">
                            <xs:annotation>
                                <xs:documentation>
                 Type of exchange-correlation functional to be used 
                 
                 <list>
                                        <li> No exchange-correlation funtional (
                 <inlinemath>E_{\rm xc}\equiv 0</inlinemath>
                 )</li>
                                        <li>
                  LDA, Perdew-Zunger/Ceperley-Alder, <it> Phys. Rev. B</it>
                                            <bf>23</bf>
                 , 5048 (1981) </li>
                                        <li> LSDA, Perdew-Wang/Ceperley-Alder,
                 <it>Phys. Rev. B</it>
                                            <bf>45</bf>
                 , 13244 (1992) </li>
                                        <li> LDA, X-alpha approximation, J. C. Slater,
                 <it>Phys. Rev.</it>
                                            <bf>81</bf>
                 , 385 (1951) </li>
                                        <li> LSDA, von Barth-Hedin,
                 <it>J. Phys. C</it>
                                            <bf>5</bf>
                 , 1629 (1972)  </li>
                                        <li> GGA, Perdew-Burke-Ernzerhof,
                 <it>Phys. Rev. Lett.</it>
                                            <bf>77</bf>
                 , 3865 (1996) </li>
                                        <li> GGA, Revised PBE, Zhang-Yang, <it> Phys. Rev. Lett.</it>
                                            <bf>80</bf>
                 , 890 (1998) </li>
                                        <li> GGA, PBEsol, arXiv:0707.2088v1 (2007) </li>
                                        <li> GGA, Wu-Cohen exchange (WC06) with PBE correlation,
                 <it>Phys. Rev. B</it>
                                            <bf>73</bf>
                 , 235116 (2006) </li>
                                        <li> GGA, Armiento-Mattsson (AM05) spin-unpolarised functional, <it> Phys. Rev. B</it>
                                            <bf>72</bf>
                 , 085108 (2005) </li>
                                    </list>
                                </xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="LDAPerdew-Zunger">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>2</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="LSDAPerdew-Wang">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>3</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="LDA-X-alpha">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>4</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="LSDA-Barth-Hedin">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>5</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="GGAPerdew-Burke-Ernzerhof">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>20</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="GGArevPBE">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>21</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="GGAPBEsol">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>22</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="GGA-Wu-Cohen">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>26</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="GGAArmiento-Mattsson">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>30</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="EXX">
                                        <xs:annotation>
                                            <xs:appinfo><!-- set to "-2" or lower for EXX -->
                                                <oldnr>-2</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="none">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>1</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="ldapu" default="none">
                            <xs:annotation>
                                <xs:documentation>Type of LDA+U method to be used.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="none">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>0</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="FullyLocalisedLimit">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>1</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="AroundMeanField">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>2</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                    <xs:enumeration value="FFL-AMF-interpolation">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldnr>3</oldnr>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:enumeration>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lmaxvr"
                            type="xs:integer" default="6">
                            <xs:annotation>
                                <xs:documentation>Angular momentum cut-off for the muffin-tin density and potential.</xs:documentation>
                                <xs:appinfo>
                                    <olddefault default="7"/>
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="fracinr"
                            type="fortrandouble" default="0.25d0">
                            <xs:annotation>
                                <xs:documentation>Fraction of the muffin-tin radius up to which lmaxinr is used as the angular momentum cut-off.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lmaxinr"
                            type="xs:integer" default="2">
                            <xs:annotation>
                                <xs:documentation>
                 Close to the nucleus, the density and potential is almost spherical and therefore the spherical harmonic expansion can be truncated a low
                 angular momentum. See also <attref>fracinr</attref>.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lmaxmat"
                            type="xs:integer" default="5">
                            <xs:annotation>
                                <xs:documentation>Angular momentum cut-off for the outer-most loop in the hamiltonian and overlap matrix setup.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="vkloff" type="vect3d"
                            default="0.0d0 0.0d0 0.0d0">
                            <xs:annotation>
                                <xs:documentation>The k-point offset vector in lattice coordinates.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="npsden"
                            type="xs:integer" default="9">
                            <xs:annotation>
                                <xs:documentation>oOrder of polynomial for pseudocharge density.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="cfdamp"
                            type="fortrandouble" default="0.0d0">
                            <xs:annotation>
                                <xs:documentation>Damping coefficient for characteristic function.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="nosource"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                 When set to <pre>"true"</pre>, source fields are projected out of the exchange-correlation magnetic field. experimental feature.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="tevecsv"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>The attribute tevecsv is <pre>"true"</pre> if second-variational eigenvectors are calculated.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="nwrite"
                            type="xs:integer" default="0">
                            <xs:annotation>
                                <xs:documentation>
                 Normally, the density and potentials are written to the file STATE.OUT only after com- pletion of the self-consistent loop. By setting nwrite
                 to a positive integer the file will be written during the loop every nwrite iterations.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="ptnucl"
                            type="xs:boolean" default="true">
                            <xs:annotation>
                                <xs:documentation>
                 The attrubute ptnucl is <pre>"true"</pre> if the nuclei are to be treated as point charges, if <pre>"false"</pre> the nuclei have a finite spherical distribution.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>
                <xs:element ex:importance="essential" ex:unit="" name="structureoptimization"
                    maxOccurs="1" minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>The structure optimization element triggers if present a geometry relaxation.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:annotation>
                            <xs:documentation>
               Structural optimization run. Atomic positions written to
               <pre_ns>geometry.xml</pre_ns>.
             </xs:documentation>
                        </xs:annotation>
                        <xs:attribute ex:importance="essential" ex:unit="" ref="epsforce"
                            default="5.0d-5">
                            <xs:annotation>
                                <xs:documentation>Convergence tolerance for the forces during a structural optimization run.</xs:documentation>
                                <xs:appinfo>
                                    <olddefault default="5.0d-4"/>
                                </xs:appinfo>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="tau0atm"
                            type="fortrandouble" default="0.2d0">
                            <xs:annotation>
                                <xs:documentation>
                  The step size to be used for structural optimization
                 <p/>
                 The position of atom
                 <inlinemath>\alpha</inlinemath>
                 is updated on step
                 <inlinemath>m</inlinemath>
                 of a structural optimization run using
                 <displaymath>{\bf r}_{\alpha}^{m+1}={\bf r}_{\alpha}^m+\tau_{\alpha}^m \left({ \bf F}_{\alpha}^m+{ \bf F}_{\alpha}^{m-1}\right),</displaymath>
                 where
                 <inlinemath>\tau_{\alpha}</inlinemath>
                 is set to
                 <pre>tau0atm</pre>
                 for
                 <inlinemath>m=0</inlinemath>
                 , and incremented by the same amount if the atom is moving in the same direction between steps. If the direction changes then
                 <inlinemath>\tau_{\alpha}</inlinemath>
                 is reset to
                 <pre>tau0atm</pre>
                 .
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="" name="resume"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                 Resumption of structural optimization run using density in
                 <pre>STATE.OUT</pre>
                 but with positions from
                 <pre>input.xml</pre>
                 .
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>
                <xs:element ex:importance="essential" ex:unit="" name="properties" maxOccurs="1"
                    minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>
             Properties listed in this element can be calculated from the groundstate. It works also from a saved state from a previous run.
           </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:all>
                            <xs:element ex:importance="essential" ex:unit="" name="bandstructure"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>If present a banstructure is calculated.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:annotation>
                                        <xs:documentation>Create a bandstructure. Must contain plot1d element for bandstructure path.</xs:documentation>
                                    </xs:annotation>
                                    <xs:all>
                                        <xs:element ex:importance="essential" ex:unit=""
                                            ref="plot1d"/>
                                    </xs:all>
                                    <xs:attribute ex:importance="essential" ex:unit="Hartree"
                                        ref="scissor" default="0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>Value to shift bandgap.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="character"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>Band structure plot which includes angular momentum characters for every atom.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="STM" minOccurs="0"
                                maxOccurs="1">
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot2d"
                                            minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="wfplot"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Wavefunction plot.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:annotation>
                                        <xs:documentation>Plot the wave function at a set of kpoints</xs:documentation>
                                    </xs:annotation>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="kstlist"
                                            minOccurs="0">
                                            <xs:annotation>
                                                <xs:documentation>List of kpoints of which the wave functions should be plotted.</xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot1d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot2d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot3d"
                                            minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="essential" ex:unit="" name="dos"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>
                   If present a DOS calculation is started.
                   <p/>
                   DOS and optics plots require integrals of the kind
                   <displaymath>g(\omega_i)=\frac{\Omega}{(2\pi)^3}\int_{\rm BZ} f({ \bf k}) \delta(\omega_i-e({\bf k}))d{ \bf k}.</displaymath>
                   These are calculated by first interpolating the functions
                   <inlinemath>e({ \bf k})</inlinemath>
                   and
                   <inlinemath>f({ \bf k})</inlinemath>
                   with the trilinear method on a much finer mesh whose size is determined by
                   <pre>ngrdos</pre>
                   . Then the
                   <inlinemath>\omega</inlinemath>
                   -dependent histogram of the integrand is accumulated over the fine mesh. If the output function is noisy then either
                   <pre>ngrdos</pre>
                   should be increased or
                   <pre>nwdos</pre>
                   decreased. Alternatively, the output function can be artificially smoothed up to a level given by
                   <pre>nsmdos</pre>
                   . This is the number of successive 3-point averages to be applied to the function
                   <inlinemath>g</inlinemath>
                   .
                 </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="sqados"
                                        default="0.0d0 0.0d0 1.0d0" type="vect3d">
                                        <xs:annotation>
                                            <xs:documentation>
                       Spin-quantization axis in Cartesian coordinates used when plotting the spin-resolved DOS (z-axis by default).
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="lmirep"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                       When lmirep is set to <pre>"true"</pre>, the spherical harmonic basis is transformed into one in which the site symmetries are block diagonal. Band
                       characters determined from the density matrix expressed in this basis correspond to irreducible representations, and allow the partial
                       DOS to be resolved into physically relevant contributions, for example eg and t2g.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="essential" ex:unit="" name="nwdos"
                                        type="xs:integer" default="500">
                                        <xs:annotation>
                                            <xs:documentation>Number of frequency/energy points in the DOS</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="essential" ex:unit="" name="ngrdos"
                                        type="xs:integer" default="100">
                                        <xs:annotation>
                                            <xs:documentation>Effective k-point mesh size to be used for Brillouin zone integration.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nsmdos"
                                        type="xs:integer" default="0">
                                        <xs:annotation>
                                            <xs:documentation>Level of smoothing applied to DOS/optics output integer 0.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="Hartree"
                                        name="winddos" default="0.0d0 0.5d0" type="vect2d">
                                        <xs:annotation>
                                            <xs:documentation>Frequency/energy window for the DOS or optics plot.</xs:documentation>
                                            <xs:appinfo>
                                                <oldname>wdos</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="essential" ex:unit="Hartree"
                                        ref="scissor" default="0.0d0"/>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="LSJ" maxOccurs="1"
                                minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Output L, S and J expectation values.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="kstlist">
                                            <xs:annotation>
                                                <xs:documentation>
                       List of
                       <inlinemath>{ \bf k}</inlinemath>
                         -point and state pairs. Referenced by their index.
                       </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="masstensor"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>
                   Compute the effective mass tensor at the
                   <bf>k</bf>
                   -point given by vklem.
                 </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="deltaem"
                                        type="fortrandouble" default="0.025d0">
                                        <xs:annotation>
                                            <xs:documentation>
                       The size of the k-vector displacement used when calculating numerical derivatives for the effective mass tensor.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="ndspem"
                                        type="xs:integer" default="1">
                                        <xs:annotation>
                                            <xs:documentation>
                       The number of k-vector displacements in each direction around vklem when computing the numerical derivatives for the effective mass
                       tensor.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="vklem"
                                        type="vect3d" default="0.0d0 0.0d0 0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>The k-point in lattice coordinates at which to compute the effective mass tensors.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="essential" ex:unit=""
                                name="chargedensityplot" maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Plot the charge density</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="essential" ex:unit=""
                                            ref="plot1d" minOccurs="0"/>
                                        <xs:element ex:importance="essential" ex:unit=""
                                            ref="plot2d" minOccurs="0"/>
                                        <xs:element ex:importance="essential" ex:unit=""
                                            ref="plot3d" minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="exccplot"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Exchange-correlation and Coulomb potential plots.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot1d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot2d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot3d"
                                            minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="elfplot"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Electron localization function (ELF).</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot1d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot2d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot3d"
                                            minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="mvecfield"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Plot of magnetization vector field.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot2d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot3d"
                                            minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="xcmvecfield"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Plot of exchange-correlation magnetic vector field.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot2d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot3d"
                                            minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="electricfield"
                                minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Writes the electric field to file.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot2d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot3d"
                                            minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="gradmvecfield"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Plot of he gradient of the magnetic vector field.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:all>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot1d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot2d"
                                            minOccurs="0"/>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot3d"
                                            minOccurs="0"/>
                                    </xs:all>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="essential" ex:unit="" name="fermisurfaceplot"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Writes Fermi surface data to file.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:attribute ex:importance="essential" ex:unit="" name="nstfsp"
                                        type="xs:integer" default="6">
                                        <xs:annotation>
                                            <xs:documentation>Number of states to be included in the Fermi surface plot file.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="essential" ex:unit=""
                                        name="separate" type="xs:boolean"/>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="EFG" maxOccurs="1"
                                minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Calculation of electric field gradient (EFG), contact charge.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType/>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="mossbauer"
                                minOccurs="0">
                                <xs:complexType/>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="momentummatrix"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Matrix elements of the momentum operator (legacy version, required by dielectric-element).</xs:documentation>
                                    <xs:appinfo>
                                        <oldname>noname</oldname>
                                    </xs:appinfo>
                                </xs:annotation>
                                <xs:complexType>
                                <xs:attribute ex:importance="expert" ex:unit="" ref="fastpmat"
                                   default="false">
                                  <xs:annotation>
                                     <xs:documentation>apply generalised DFT correction of L. Fritsche and Y. M. Gu, Phys. Rev. B 48, 4250 (1993)</xs:documentation>
                                  </xs:annotation>                                     
                                  </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="dielectric"
                                minOccurs="0" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Linear optical response (without local field effects, legacy version).</xs:documentation>
                                    <xs:appinfo>
                                        <oldname>noname</oldname>
                                    </xs:appinfo>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element ex:importance="expert" ex:unit="" name="optcomp"
                                            type="integertriple" default="1 1 1" maxOccurs="27">
                                            <xs:annotation>
                                                <xs:documentation>The components of the first- or second-order optical tensor to be calculated.</xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute ex:importance="expert" ex:unit="Hartree"
                                        ref="scissor" default="0.0d0"/>
                                <xs:attribute ex:importance="expert" ex:unit="" ref="intraband"
                                    default="false">
                                   <xs:annotation>
                                       <xs:documentation>The intraband attribute is <pre>"true"</pre> if the intraband term is to be added to the optical matrix (q=0)</xs:documentation>
                                   </xs:annotation>
                                </xs:attribute>
                                <xs:attribute ex:importance="expert" ex:unit="" name="usegdft"
                                   type="xs:boolean" default="false">
                                  <xs:annotation>
                                     <xs:documentation>apply generalised DFT correction of L. Fritsche and Y. M. Gu, Phys. Rev. B 48, 4250 (1993)</xs:documentation>
                                  </xs:annotation>   
                                  </xs:attribute>
                               </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="moke"
                                minOccurs="0">
                                <xs:complexType/>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="expiqr"
                                minOccurs="0">
                                <xs:complexType/>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="elnes" minOccurs="0">
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="vecql"
                                        type="vect3d" default="0.0d0 0.0d0 0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>Gives the q-vector in lattice coordinates for calculating ELNES.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="eliashberg"
                                minOccurs="0">
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="mustar"
                                        type="fortrandouble" default="0.15d0">
                                        <xs:annotation>
                                            <xs:documentation>Coulomb pseudopotential, μ*, used in the McMillan-Allen-Dynes equation.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
                <xs:element ex:importance="expert" ex:unit="" name="phonons" maxOccurs="1"
                    minOccurs="0">
                    <xs:annotation>
                        <xs:documentation>Phonon frequencies and eigen vectors for an arbitrary q-point.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:annotation>
                            <xs:documentation>The phonon element must contain one or more q-point elements.</xs:documentation>
                        </xs:annotation>
                        <xs:all>
                            <xs:element ex:importance="expert" ex:unit="" ref="qpointset"
                                minOccurs="1" maxOccurs="1"/>
                            <xs:element ex:importance="expert" ex:unit="" name="phonondos"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>
                   Phonon density of states.
                 </xs:documentation>
                                </xs:annotation>
                                <xs:complexType/>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="phonondispplot"
                                maxOccurs="1" minOccurs="0">
                                <xs:annotation>
                                    <xs:documentation>Phonon dispersion plot.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element ex:importance="expert" ex:unit="" ref="plot1d"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" ref="parts" minOccurs="0"
                                maxOccurs="1"/>
                        </xs:all>
                        <xs:attribute ex:importance="expert" ex:unit="" ref="do"
                            default="fromscratch">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>nonreplace</oldname>
                                </xs:appinfo>
                                <xs:documentation>Decides if the phonon calculation is skipped or recalculated or continued from file.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="ngridq"
                            type="integertriple" use="required">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>ngridq</oldname>
                                </xs:appinfo>
                                <xs:documentation>Number of q grid points along the basis vector directions.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="reduceq"
                            type="xs:boolean" default="true">
                            <xs:annotation>
                                <xs:documentation>
                 The attribute <pre>reduceq</pre> is
                 set to
                 <pre>"true"</pre>
                 if the
                 <inlinemath>
                                        <bf>q</bf>
                                    </inlinemath>
                 -point set is to be reduced with the crystal symmetries.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="deltaph"
                            type="fortrandouble" default="0.03d0">
                            <xs:annotation>
                                <xs:documentation>
                 Phonon calculations are performed by constructing a supercell corresponding to a particular
                 <inlinemath>{\bf q}</inlinemath>
                 -vector and making a small periodic displacement of the atoms. The magnitude of this displacement is given by deltaph. This should not be made
                 too large, as anharmonic terms could then become significant, neither should it be too small as this can introduce numerical error.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>
                <xs:element ex:importance="expert" ex:unit="" name="xs" minOccurs="0" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation>
             If this element is present with valid configuration, the macroscopic dielectric function and related spectroscopic quantities in the linear regime
             are calculated through either time-dependent DFT (TDDFT) or the Bethe-Salpeter equation (BSE).
           </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:all>
                            <xs:element ex:importance="expert" ex:unit="" name="tddft" minOccurs="0"
                                maxOccurs="1">
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" ref="intraband"
                                        default="false">
                                        <xs:annotation>
                                            <xs:documentation>The intraband attribute is <pre>"true"</pre> if the intraband term is to be added to the optical matrix (q=0)</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="torddf"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>Is <pre>"true"</pre> if to consider the time-ordered version of the dielectric function</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="tordfxc"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>Is <pre>"true"</pre> if to consider the time-ordered version of xc kernel (MBPT derived kernels only)</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="aresdf"
                                        type="xs:boolean" default="true">
                                        <xs:annotation>
                                            <xs:documentation>Is <pre>"true"</pre> if to consider the anti-resonant part for the dielectric function</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="aresfxc"
                                        type="xs:boolean" default="true">
                                        <xs:annotation>
                                            <xs:documentation>Is <pre>"true"</pre> if to consider the anti-resonant part for the MBPT derived xc-kernels</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="Hartree"
                                        name="fxcbsesplit" type="fortrandouble" default="1.0d-5">
                                        <xs:annotation>
                                            <xs:documentation>Split parameter for degeneracy in energy differences of MBPT derived xc kernels</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="acont"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>true if analytic continuation from the imaginary axis to the real axis is to be performed</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nwacont"
                                        type="xs:integer" default="0">
                                        <xs:annotation>
                                            <xs:documentation>number of energy intervals (on imaginary axis) for analytic continuation</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="lindhard"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                                                <pre>"true"</pre> if Lindhard like function is calculated (trivial matrix elements)</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="kerndiag"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation><pre>"true"</pre> if only diagonal part of xc-kernel is used</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="lmaxalda"
                                        type="xs:integer" default="3">
                                        <xs:annotation>
                                            <xs:documentation>angular momentum cutoff for Rayleigh expansion of exponential factor for ALDA-kernel</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="alphalrc"
                                        type="fortrandouble" default="0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>alpha-parameter for the static long range contribution (LRC) model xc kernel</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit=""
                                        name="alphalrcdyn" type="fortrandouble" default="0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>alpha-parameter for the dynamical long range contribution (LRC) model xc kernel</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit=""
                                        name="betalrcdyn" type="fortrandouble" fixed="0.0d0">
                                        <xs:annotation>
                                            <xs:documentation>beta-parameter for the dynamical long range contribution (LRC) model xc kernel</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="mdfqtype"
                                        type="xs:integer" default="0">
                                        <xs:annotation>
                                            <xs:documentation>
                       treatment of macroscopic dielectric function for
                       <inlinemath>{\bf Q}</inlinemath>
                       -point outside of Brillouin zone. A value of 0 uses the full
                       <inlinemath>{\bf Q}</inlinemath>
                       and and the
                       <inlinemath>({\bf 0},{\bf 0})</inlinemath>
                       component of the microscopic dielectric matrix is used. A value of 1 invokes a decomposition
                       <inlinemath>{\bf Q}={\bf q}+{\bf G}_{\bf q}</inlinemath>
                       and and the
                       <inlinemath>({\bf Q}_{\bf q},{\bf Q}_{\bf q})</inlinemath>
                       component of the microscopic dielectric matrix is used.
                     </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="fxctype"
                                        default="RPA">
                                        <xs:annotation>
                                            <xs:documentation>defines which xc kernel is to be used</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:enumeration value="RPA">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>0</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="LRCstatic_NLF">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>1</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="LRCstatic">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>2</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="LRCdyn_NLF">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>3</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="LRCdyn">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>4</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="ALDA">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>5</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="MB1_NLF">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>7</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="MB1">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldnr>8</oldnr>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                </xs:enumeration>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit=""
                                        name="resumefromkernel" type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                                                <pre>"true"</pre> if the TDDFT calculation is to be resumed starting from a new xc kernel.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="screening"
                                minOccurs="0" maxOccurs="1">
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="run"
                                        default="fromscratch">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>nonreplace</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:enumeration value="fromscratch"/>
                                                <xs:enumeration value="skip"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nosym"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>nosymscr</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>nosym is <pre>"true"</pre> if no symmetry information should be used for screening</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="ngridk"
                                        type="integertriple" default="0 0 0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>ngridkscr</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>k-point grid sizes for screening</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="reducek"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>reducekscr</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>reducek is <pre>"true"</pre> if k-points are to be reduced (with crystal symmetries) for screening.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="vkloff"
                                        type="vect3d" default="-1.0d0 -1.0d0 -1.0d0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>vkloffscr</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>k-point offset for screening</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="rgkmax"
                                        type="fortrandouble" default="0.0d0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>rgkmaxscr</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>smallest muffin-tin radius times gkmax for screening</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nempty"
                                        type="xs:integer" default="0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>nemptyscr</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>number of empty states</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit=""
                                        name="screentype" default="full">
                                        <xs:annotation>
                                            <xs:documentation>defines which screening is used</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:enumeration value="full"/>
                                                <xs:enumeration value="diag"/>
                                                <xs:enumeration value="noinvdiag"/>
                                                <xs:enumeration value="longrange"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="BSE" minOccurs="0"
                                maxOccurs="1">
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nosym"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>nosymbse</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>set to<pre>"true"</pre> if no symmetry information should be used for BSE.</xs:documentation>                                        
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="reducek"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>reducekbse</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>reducek is <pre>"true"</pre> if k-points are to be reduced (with crystal symmetries) for BSE.</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="vkloff"
                                        type="vect3d" default="-1.0d0 -1.0d0 -1.0d0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>vkloffbse</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>k-point offset for BSE</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="rgkmax"
                                        type="fortrandouble" default="0.0d0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>rgkmaxbse</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>smallest muffin-tin radius times gkmax</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="scrherm"
                                        type="xs:integer" default="0">
                                        <xs:annotation>
                                            <xs:documentation>
                                            Method of how an almost Hermitian matrix is inverted.
                                            A value of 0: invert full matrix (matrix is allowed to be not strictly Hermitian);
                                            a value of 1: take the Hermitian average for inversion;
                                            a value of 2: assume Hermitian and use the upper triangle;
                                            a value of 3: assume Hermitian and use the lower triangle.
                                            </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="fbzq"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>true if q-point set is taken from first Brillouin zone</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>                                        
                                    <xs:attribute ex:importance="expert" ex:unit="" name="sciavtype"
                                        default="spherical">
                                        <xs:annotation>
                                            <xs:documentation>
                       defines how the screened Coulomb interaction matrix is to be averaged (important for the singular terms)
                     </xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:enumeration value="spherical"/>
                                                <xs:enumeration value="screendiag"/>
                                                <xs:enumeration value="invscreendiag"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="sciavbd"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                                                <pre>"true"</pre> if the body of the screened Coulomb interaction is to be averaged (q=0)</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="sciavqhd"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                                                <pre>"true"</pre> if the head of the screened Coulomb interaction is to be averaged (q!=0)</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="sciavqwg"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                                                <pre>"true"</pre> if the wings of the screened Coulomb interaction is to be averaged (q!=0)</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="sciavqbd"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                                                <pre>"true"</pre> if the body of the screened Coulomb interaction is to be averaged (q!=0)</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit=""
                                        name="bsedirsing" type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>true if effective singular part of direct term of BSE Hamiltonian is to be used</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>                                        
                                    <xs:attribute ex:importance="expert" ex:unit="" name="lmaxdielt"
                                        type="xs:integer" default="14">
                                        <xs:annotation>
                                            <xs:documentation>angular momentum cutoff of the spherical harmonics expansion of the dielectric matrix</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nleblaik"
                                        type="xs:integer" default="5810">
                                        <xs:annotation>
                                            <xs:documentation>number of points used for the Lebedev-Laikov grids (must be selected according to Ref.LebLaik)</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nexcitmax"
                                        type="xs:integer" default="100">
                                        <xs:annotation>
                                            <xs:documentation>maximum number of excitons to be considered in a BSE calculation</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>                                        
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nstlbse"
                                        type="integerpair" default="0 0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>nbfbse,nafbse</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>number of states below and above the Fermi level</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nstlce"
                                        type="integerpair" default="0 0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>nbfce,nafce</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="bsetype"
                                        default="singlet">
                                        <xs:annotation>
                                            <xs:documentation>defines which parts of the BSE Hamiltonian are to be considered</xs:documentation>
                                        </xs:annotation>
                                        <xs:simpleType>
                                            <xs:restriction base="xs:string">
                                                <xs:enumeration value="IP"/>
                                                <xs:enumeration value="RPA"/>
                                                <xs:enumeration value="singlet"/>
                                                <xs:enumeration value="triplet"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="transitions" minOccurs="0"
                                maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>Describe transitions between Kohn-Sham states 
                                    for the calculation of the Kohn-Sham response function (and screening) here.
                                    Individual transitions can  be defined as well as a range (or a list) of initial
                                    and final states can be defined.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                   <xs:all>
                                      <xs:element ex:importance="expert" ex:unit="" name="individual" minOccurs="0"
                                maxOccurs="1">
                                         <xs:annotation>
                                             <xs:documentation>A list of individual transitions consisting of an initial state
                                             a final state and a k-point is given here. An empty list amounts to no transitions at all.
                                             </xs:documentation>
                                         </xs:annotation>
                                         <xs:complexType>
                                         <xs:sequence>
                                           <xs:element ex:importance="expert" ex:unit="" name="trans"
                                               minOccurs="0" maxOccurs="unbounded">
                                               <xs:annotation>
                                                   <xs:documentation>
                                                   An individual transition consisting of an initial state
                                             a final state and a k-point is given here.
                                                    Values of zero correspond to the inclusion of all initial and final states and all k-points 
                                                    and can be used as "wildcards" (default). Therefore, an empty element amounts to include all
                                                    transitions.
                                                   </xs:documentation>
                                               </xs:annotation>
                                               <xs:complexType>
                                                   <xs:attribute ex:importance="expert" ex:unit=""
                                                     ref="action" use="optional" default="include">
                                                     <xs:annotation>
                                                         <xs:documentation>Select to include or exclude states. If a state is included as
                                                         well as excluded several times the last definition (in the sequence of individual
                                                         transitions) counts.</xs:documentation>
                                                     </xs:annotation>
                                                   </xs:attribute>
                                                   <xs:attribute ex:importance="expert" ex:unit="" name="kpointnumber"
                                                      type="xs:integer" default="0">
                                                      <xs:annotation>
                                                        <xs:documentation>Number of k-point to consider. A value of zero (default) means to include all k-points.</xs:documentation>
                                                      </xs:annotation>
                                                   </xs:attribute>                                                                                                    
                                                   <xs:attribute ex:importance="expert" ex:unit="" name="initial"
                                                      type="xs:integer" default="0">
                                                      <xs:annotation>
                                                        <xs:documentation>Initial state of individual transition. A value of zero (default) means to include all states.</xs:documentation>
                                                      </xs:annotation>
                                                   </xs:attribute>                                                                                                                                                                                                                                                           
                                                   <xs:attribute ex:importance="expert" ex:unit="" name="final"
                                                      type="xs:integer" default="0">
                                                      <xs:annotation>
                                                        <xs:documentation>Final state of individual transition. A value of zero (default) means to include all states.</xs:documentation>
                                                      </xs:annotation>
                                                   </xs:attribute>                                                                                                                                                                                                                                                           
                                               </xs:complexType>
                                           </xs:element>
                                         </xs:sequence>
                                         </xs:complexType>
                                      </xs:element>
                                      <xs:element ex:importance="expert" ex:unit="" name="ranges" minOccurs="0"
                                maxOccurs="1">
                                         <xs:annotation>
                                             <xs:documentation>A list of ranges of transitions (initial state as well as final state ranges)
                                             and a k-point are given here. An empty list amounts to no transitions at all.</xs:documentation>
                                         </xs:annotation>
                                         <xs:complexType>
                                         <xs:sequence>
                                           <xs:element ex:importance="expert" ex:unit="" name="range"
                                               minOccurs="0" maxOccurs="unbounded">
                                               <xs:annotation>
                                                   <xs:documentation>A range of transitions (for initial as well as final states)
                                             is given here. A range consists of a "start" and a "stop" value as well as a k-point.
                                                    Values of zero correspond to starting at the first state and stopping at the last
                                                    state and considering all k-points. They can be used as "wildcards" (default). Therefore,
                                                    an empty element corresponds to the full initial/final state range for all k-points.
                                                   </xs:documentation>
                                               </xs:annotation>
                                               <xs:complexType>
                                                   <xs:attribute ex:importance="expert" ex:unit=""
                                                     ref="action" use="optional" default="include">
                                                     <xs:annotation>
                                                         <xs:documentation>Select to include or exclude states.  If a state is included as
                                                         well as excluded several times the last definition (in the sequence of individual
                                                         transitions) counts.</xs:documentation>
                                                     </xs:annotation>
                                                   </xs:attribute>
                                                   <xs:attribute ex:importance="expert" ex:unit=""
                                                     ref="statestype" use="required">
                                                     <xs:annotation>
                                                         <xs:documentation>Select for initial or final state range</xs:documentation>
                                                     </xs:annotation>
                                                   </xs:attribute>
                                                   <xs:attribute ex:importance="expert" ex:unit="" name="kpointnumber"
                                                      type="xs:integer" default="0">
                                                      <xs:annotation>
                                                        <xs:documentation>Number of k-point to consider. A value of zero (default) means to include all k-point.</xs:documentation>
                                                      </xs:annotation>
                                                   </xs:attribute>
                                                   <xs:attribute ex:importance="expert" ex:unit="" name="start"
                                                      type="xs:integer" default="0">
                                                      <xs:annotation>
                                                        <xs:documentation>Start value (first state) for range. A value of zero (default) means to start from the first state.</xs:documentation>
                                                      </xs:annotation>
                                                   </xs:attribute>                                                                                                                                                                                                                                                           
                                                   <xs:attribute ex:importance="expert" ex:unit="" name="stop"
                                                      type="xs:integer" default="0">
                                                      <xs:annotation>
                                                        <xs:documentation>Stop value (last state) for range. A value of zero (default) means to stop at the last state (no upper limit).</xs:documentation>
                                                      </xs:annotation>
                                                   </xs:attribute>                                                                                                                                                                                                                                                           
                                               </xs:complexType>
                                           </xs:element>
                                         </xs:sequence>
                                         </xs:complexType>                                        
                                      </xs:element>
                                      <xs:element ex:importance="expert" ex:unit="" name="lists" minOccurs="0"
                                maxOccurs="1">
                                         <xs:annotation>
                                             <xs:documentation>A list of initial and final state entries to be considered for transitions.
                                             An empty list amounts to no transitions at all.</xs:documentation>
                                         </xs:annotation>
                                         <xs:complexType>
                                         <xs:sequence>
                                           <xs:element ex:importance="expert" ex:unit="" name="istate"
                                               minOccurs="0" maxOccurs="unbounded">
                                               <xs:annotation>
                                                   <xs:documentation>An initial or final state and corresponding k-point                                                   
                                             is given here.
                                                    Values of zero correspond to considering all initial/final states for all k-points. They can be used as "wildcards" (default). Therefore,
                                                    an empty element corresponds to the full initial/final state set for all k-points.
                                                   </xs:documentation>
                                               </xs:annotation>
                                               <xs:complexType>
                                                   <xs:attribute ex:importance="expert" ex:unit=""
                                                     ref="action" use="optional" default="include">
                                                     <xs:annotation>
                                                         <xs:documentation>Select to include or exclude states.  If a state is included as
                                                         well as excluded several times the last definition (in the sequence of individual
                                                         transitions) counts.</xs:documentation>
                                                     </xs:annotation>
                                                   </xs:attribute>
                                                   <xs:attribute ex:importance="expert" ex:unit=""
                                                     ref="statestype" use="required">
                                                     <xs:annotation>
                                                         <xs:documentation>Select for initial or final state list</xs:documentation>
                                                     </xs:annotation>
                                                   </xs:attribute>
                                                   <xs:attribute ex:importance="expert" ex:unit="" name="kpointnumber"
                                                      type="xs:integer" default="0">
                                                      <xs:annotation>
                                                        <xs:documentation>Number of k-point to consider. A value of zero (default) means to include all k-point.</xs:documentation>
                                                      </xs:annotation>
                                                   </xs:attribute>                                                                                                    
                                                   <xs:attribute ex:importance="expert" ex:unit="" name="state"
                                                      type="xs:integer" default="0">
                                                      <xs:annotation>
                                                        <xs:documentation>The state to be considered. A value of zero (default) means to include all states.</xs:documentation>
                                                      </xs:annotation>
                                                   </xs:attribute>
                                               </xs:complexType>
                                           </xs:element>
                                         </xs:sequence>
                                         </xs:complexType>                                        
                                      </xs:element>
                                    </xs:all>                                      
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" ref="qpointset"
                                minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation>
                   finite momentum transfer
                   <inlinemath>{ \bf G}+{ \bf q}</inlinemath>
                   vector
                 </xs:documentation>
                                    <xs:appinfo>
                                        <oldname>vgqlmt,nqptmt</oldname>
                                    </xs:appinfo>
                                </xs:annotation>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="tetra" maxOccurs="1"
                                minOccurs="0">
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="tetraocc"
                                        type="xs:boolean" default="false"/>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="tetradf"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:documentation>
                                                <pre>"true"</pre> if tetrahedron method is used for the k-space integration in the Kohn-Sham response function</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="kordexc"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>tetrakordexc</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="cw1k"
                                        type="xs:boolean" default="false">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>tetracw1k</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="qweights"
                                        type="xs:integer" default="1">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>tetraqweights</oldname>
                                            </xs:appinfo>
                                            <xs:documentation>choice of weights and nodes for tetrahedron method and non-zero Q-point</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="dosWindow"
                                maxOccurs="1" minOccurs="1">
                                <xs:complexType>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="points"
                                        type="xs:integer" default="500">
                                        <xs:annotation>
                                            <xs:documentation>number of points to be sampled linearly inside the energy interval</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="intv"
                                        type="vect2d" default="-0.5d0 0.5d0">
                                        <xs:annotation>
                                            <xs:documentation>energy interval for the density of states</xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attribute ex:importance="expert" ex:unit="" name="nsmdos"
                                        type="xs:integer" default="0">
                                        <xs:annotation>
                                            <xs:appinfo>
                                                <oldname>noreplace</oldname>
                                            </xs:appinfo>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ex:importance="expert" ex:unit="" name="plan" minOccurs="0"
                                maxOccurs="1">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element ex:importance="expert" ex:unit="" name="doonly"
                                            minOccurs="0" maxOccurs="unbounded">
                                            <xs:complexType>
                                                <xs:attribute ex:importance="expert" ex:unit=""
                                                  name="task" use="required">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                            <oldname>noreplace</oldname>
                                                        </xs:appinfo>
                                                  </xs:annotation>
                                                  <xs:simpleType>
                                                  <xs:restriction base="xs:string">
                                                  <!-- required workflow tasks below-->
                                                  <xs:enumeration value="xsgeneigvec">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>301</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate eigenvectors, -values and occupancies</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="tetcalccw">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>310</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate frequency-dependent weights for convolutions using the linear tetrahedron method</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="writepmatxs">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>320</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate momentum matrix elements</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="writeemat">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>330</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate q-dependent matrix elements</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="df">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>340</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate the Kohn-Sham response function checked in the code !</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="df2">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>345</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>
                                   Calculate the Kohn-Sham response function taking into account the rigid shift of the BSE diagonal. This is not a duplicate
                                   task, as the task-Nr. is referenced. checked in the code !
                                 </xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="idf">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>350</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>
                                   Set up simple xc-kernels, solve Dyson's equation for the full polarizability and determine the macroscopic dielectric
                                   function and other spectroscopic quantities.
                                 </xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="scrgeneigvec">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>401</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate eigenvectors, -values and occupancies for screening</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="scrtetcalccw">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>410</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>
                                   Calculate frequency-dependent weights for convolutions using the linear tetrahedron method for screening
                                 </xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="scrwritepmat">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>420</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate momentum matrix elements for screening</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="screen">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>430</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate RPA screening (ignoring scissor's shift)</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="scrcoulint">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>440</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate direct term of BSE Hamiltonian</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="exccoulint">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>441</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Calculate exchange term of BSE Hamiltonian</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="bse">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>445</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>Bethe-Salpeter equation</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="kernxc_bse">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>450</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>
                                   Calculate frequency dependent xc-kernel drived from the Bethe-Salpeter equation in first order
                                 </xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <!-- experimental and debugging tasks below-->
                                                  <xs:enumeration value="writebandgapgrid">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>23</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>estimate bandgap from regular grid</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="writepmat">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>120</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>calculate momentum matrix elements (legacy)</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="dielectric">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>121</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>linear optics (legacy)</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="writepmatasc">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>321</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>ASCII output of momentum matrix elements</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="pmatxs2orig">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>322</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>convert momentum matrix elements file to old format</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="writeematasc">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>331</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>ASCII output of q-dependent matrix elements</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="writepwmat">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>335</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>calculate matrix elements of the plane wave (simple version for checking)</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="emattest">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>339</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>check relation between matr. el. of exp. and mom. matr. el.</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="x0toasc">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>341</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>ASCII output of Kohn Sham response function</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="x0tobin">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>342</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>binary output of Kohn Sham response function</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="fxc_alda_check">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>398</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>check ALDA kernel</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="kernxc_bse3">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>451</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>BSE-kernel, straight forward version</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="testxs">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>499</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>degub routine of xs-part</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="xsestimate">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>700</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>estimate disk-space, cpu-time and memory requirements</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="xstiming">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>701</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>test timing</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <!-- debugging main part-->
                                                  <xs:enumeration value="testmain">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>999</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>debug routine main part of code</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <!-- import/export tasks below-->
                                                  <xs:enumeration value="portstate(1)">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>900</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>generate STATE.xml file from STATE.OUT file</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="portstate(2)">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>901</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>generate STATE.OUT file from STATE.xml file</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="portstate(-1)">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>910</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>display Information about STATE.OUT file</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  <xs:enumeration value="portstate(-2)">
                                                  <xs:annotation>
                                                  <xs:appinfo>
                                                                        <oldnr>911</oldnr>
                                                                    </xs:appinfo>
                                                  <xs:documentation>display Information about STATE.xml file</xs:documentation>
                                                  </xs:annotation>
                                                  </xs:enumeration>
                                                  </xs:restriction>
                                                  </xs:simpleType>
                                                </xs:attribute>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:all>
                        <xs:attribute ex:importance="expert" ex:unit="" name="emattype"
                            type="xs:integer" default="1">
                            <xs:annotation>
                                <xs:documentation>Type of matrix element generation (band-combinations). Should only be referenced for experimental features.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="dfoffdiag"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                                    <pre>"true"</pre> if also off-diagonal tensor elements for the interacting response function are to be calculated</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lmaxapwwf"
                            type="xs:integer" default="-1">
                            <xs:annotation>
                                <xs:documentation>maximum angular momentum for APW functions for q-dependent matrix elements</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lmaxemat"
                            type="xs:integer" default="3">
                            <xs:annotation>
                                <xs:documentation>
                 maximum angular momentum for Rayleigh expansion of
                 <inlinemath>{\bf q}</inlinemath>
                 -dependent plane wave factor
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="emaxdf"
                            type="fortrandouble" default="1.0d10">
                            <xs:annotation>
                                <xs:documentation>energy cutoff for the unoccupied states in the Kohn-Sahm response function and screening</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Hartree" name="broad"
                            type="fortrandouble" default="0.01d0">
                            <xs:annotation>
                                <xs:documentation>Lorentzian broadening for all spectra</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Hartree"
                            name="epsdfde" type="fortrandouble" default="1.0d-8">
                            <xs:annotation>
                                <xs:documentation>
                       smallest energy difference for which the square of its inverse will be considered in the Kohn-Sham response function
                     </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>                        
                        <xs:attribute ex:importance="expert" ex:unit="" name="tevout"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:documentation>
                                    <pre>"true"</pre> if energy outputs are in eV</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="xstype" use="required">
                            <xs:annotation>
                                <xs:documentation>Should TDDFT be used or BSE</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:enumeration value="TDDFT"/>
                                    <xs:enumeration value="BSE"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:attribute>
                        <!-- Here are experimental parameters -->
                        <xs:attribute ex:importance="expert" ex:unit="" ref="fastpmat"
                            default="true">
                            <xs:annotation>
                                <xs:documentation>
                 if <pre>"true"</pre>, a fast method to calculate APW-lo, lo-APW and lo-lo parts of the momentum matrix elements in the muffin-tin is used.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="fastemat"
                            type="xs:boolean" default="true">
                            <xs:annotation>
                                <xs:documentation>
                 if <pre>"true"</pre>, a fast method to calculate APW-lo, lo-APW and lo-lo parts of the
                 <inlinemath>{\bf q}</inlinemath>
                 -dependent matrix elements in the muffin-tin is used.
               </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="tappinfo"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                               <xs:documentation>true if to append info to output file</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="dbglev"
                            type="xs:integer" default="0">
                            <xs:annotation>
                               <xs:documentation>debugging level</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="gqmax"
                            type="fortrandouble" default="0.0d0">
                            <xs:annotation>
                                <xs:documentation>|G+q| cutoff for Kohn-Sham response function, screening and for expansion of Coulomb potential</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <!-- section of parameters from groundstate which are allowed to be different from the ones of the ground state run -->
                        <xs:attribute ex:importance="expert" ex:unit="" name="nosym"
                            type="xs:boolean" default="false">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>nosymxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>nosym is <pre>"true"</pre> if no symmetry information should be used</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="ngridk"
                            type="integertriple" default="1 1 1">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>ngridkxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>k-point grid sizes</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="vkloff" type="vect3d"
                            default="0.0d0 0.0d0 0.0d0 ">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>vkloffxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>k-point offset</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="reducek"
                            type="xs:boolean" default="true">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>reducekxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>reducek is <pre>"true"</pre> if k-points are to be reduced (with crystal symmetries)</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="ngridq"
                            type="integertriple" default="1 1 1">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>ngridqxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>q-point grid sizes</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="reduceq"
                            type="xs:boolean" default="true">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>reduceqxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>reducek is <pre>"true"</pre> if q-points are to be reduced (with crystal symmetries)</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="rgkmax"
                            type="fortrandouble" default="7.0d0">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>rgkmaxxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>smallest muffin-tin radius times gkmax</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="Hartree" name="swidth"
                            type="fortrandouble" default="0.001d0">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>swidthxs</oldname>
                                    <olddefault default="0.01d0"/>
                                </xs:appinfo>
                                <xs:documentation>width of the smooth approximation to the Dirac delta function (must be greater than zero)</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lmaxapw"
                            type="xs:integer" default="10">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>lmaxapwxs</oldname>
                                    <olddefault default="8"/>
                                </xs:appinfo>
                                <xs:documentation>angular momentum cut-off for the APW functions</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="lmaxmat"
                            type="xs:integer" default="5">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>lmaxmatxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>angular momentum cut-off for the outer-most loop in the hamiltonian and overlap matrix setup</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="expert" ex:unit="" name="nempty"
                            type="xs:integer" default="5">
                            <xs:annotation>
                                <xs:appinfo>
                                    <oldname>nemptyxs</oldname>
                                </xs:appinfo>
                                <xs:documentation>number of empty states</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute ex:importance="essential" ex:unit="Hartree"
                                        ref="scissor" default="0.0d0">
                            <xs:annotation>
                                <xs:documentation>scissors correction</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="0" name="keywords" type="xs:string" maxOccurs="1">
                  <xs:annotation>
                    <xs:documentation>The keywords tag can contain a space separated list of keywords classifying the calculation for archiving purposes. It is not used by the <exciting>exciting</exciting> program.</xs:documentation>
                  </xs:annotation></xs:element>
            </xs:all>
            <xs:attribute ex:importance="expert" ex:unit="" name="xsltpath" type="xs:anyURI"
                default="http://xml.exciting-code.org">
                <xs:annotation>
                    <xs:appinfo> 
         </xs:appinfo>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute ex:importance="expert" ex:unit="" name="scratchpath" type="xs:anyURI"
                use="optional">
                <xs:annotation>
                    <xs:documentation>
           This is the path to scratch space where the eigenvector files EVECFV.OUT, EVECSV.OUT and OCCSV.OUT will be written. If the local directory is
           accessed via a network then scrpath can be set to a directory on a local disk
         </xs:documentation>
                </xs:annotation>
            </xs:attribute>
        </xs:complexType>
    </xs:element>
    <xs:element ex:importance="expert" ex:unit="" name="qpointset">
        <xs:complexType>
            <xs:sequence>
                <xs:element ex:importance="expert" ex:unit="" name="qpoint" type="vect3d"
                    minOccurs="1" maxOccurs="unbounded">
                    <xs:annotation>
                        <xs:documentation> a q-point is given in reciprocal space coordinates</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element ex:importance="expert" ex:unit="" name="parts">
        <xs:complexType>
            <xs:sequence>
                <xs:element ex:importance="expert" ex:unit="" name="dopart" minOccurs="0"
                    maxOccurs="unbounded">
                    <xs:complexType>
                        <xs:attribute ex:importance="expert" ex:unit="" name="id" type="xs:string"
                            use="required">
                            <xs:annotation>
                                <xs:documentation>
              This attribute is used to trigger lower-level tasks and is mainly
                 used for testing, debugging, and the testing of new features. Do not
                 use it unless you know what you are doing.
              </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>

