Skip to content

soes ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceTurbomole control file
idsoes
nameSoes section
pattern\s*\u0024soes.*
endPattern\s*\u0024.*
endPattern2~
endOffset0
xml:basesoes.xml

Input ​

$soes
a  4

Input ​

$soes
b1g  17
eu   23
t2g  all    

Output text ​

xml
<comment class="example.output" name="soes">
        <module cmlx:templateRef="soes">
            <scalar dataType="xsd:string" dictRef="t:soes">soes</scalar>
            <array dataType="xsd:string" dictRef="t:irrep" size="1">a</array>
            <array dataType="xsd:string" dictRef="t:lowest" size="1">4</array>
        </module>
    </comment>

Output text ​

xml
<comment class="example.output" name="soes2">
       <module cmlx:templateRef="soes">
            <scalar dataType="xsd:string" dictRef="t:soes">soes</scalar>
            <array dataType="xsd:string" dictRef="t:irrep" size="3">b1g eu t2g</array>
            <array dataType="xsd:string" dictRef="t:lowest" size="3">17 23 all</array>
        </module> 
    </comment>

Template definition ​

xml
<record>\s*\u0024&#123;X,t:soes&#125;</record>
<record repeat="*" makeArray="true">&#123;A,t:irrep&#125;&#123;A,t:lowest&#125;</record>
<transform process="addChild" xpath="." elementName="cml:list" id="soes" />
<transform process="addAttribute" xpath=".//cml:list" name="cmlx:templateRef" value="soes" />
<transform process="addAttribute" xpath=".//cml:list" name="dictRef" value="t:soes" />
<transform process="move" xpath=".//cml:scalar" to=".//cml:list[@id='soes']" />
<transform process="move" xpath=".//cml:array" to=".//cml:list[@id='soes']" />
<transform process="delete" xpath=".//cml:list[count(*) = 0]" />