xtb.input ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | xTB input |
| id | xtb.input |
| name | xTB input |
| xml:base | topTemplate.xml |
Input
$chrg 0
$spin 1
$gfn 2
Output text
xml
<comment class="example.output" id="xtb.input">
<module id="xtb.input">
<module cmlx:templateRef="charge">
<scalar dataType="xsd:integer" dictRef="cc:charge">0</scalar>
</module>
<module cmlx:templateRef="spin">
<scalar dataType="xsd:integer" dictRef="xtb:spinPolarization">1</scalar>
</module>
</module>
</comment>Template definition
xml
<templateList> <template id="charge" pattern="\s*\u0024chrg.*" endPattern=".*"> <record>\s*\u0024chrg{I,cc:charge}</record>
</template> <template id="spin" pattern="\s*\u0024spin.*" endPattern=".*"> <record>\s*\u0024spin{I,xtb:spinPolarization}</record>
</template>
</templateList>
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="delete" xpath=".//cml:list" />