soes

Implementation level

Type

Status

CML extraction template

image1

HTML5 representation

image2

Template attributes

Attribute

Value

source

Turbomole control file

id

soes

name

Soes section

pattern

\s*\u0024soes.*

endPattern

\s*\u0024.*

endPattern2

~

endOffset

0

xml:base

soes.xml

Input

$soes
a  4

Input

$soes
b1g  17
eu   23
t2g  all

Output text

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

Output text

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

Template definition

1<record>\s*\u0024{X,t:soes}</record>
2<record repeat="*" makeArray="true">{A,t:irrep}{A,t:lowest}</record>
3<transform process="addChild" xpath="." elementName="cml:list" id="soes" />
4<transform process="addAttribute" xpath=".//cml:list" name="cmlx:templateRef" value="soes" />
5<transform process="addAttribute" xpath=".//cml:list" name="dictRef" value="t:soes" />
6<transform process="move" xpath=".//cml:scalar" to=".//cml:list[@id='soes']" />
7<transform process="move" xpath=".//cml:array" to=".//cml:list[@id='soes']" />
8<transform process="delete" xpath=".//cml:list[count(*) = 0]" />