l1.keywords
Type |
Status |
---|---|
CML extraction template |
|
HTML5 representation |
Attribute |
Value |
---|---|
source |
Gaussian log |
id |
l1.keywords |
pattern |
\s*\-+\s*$.* |
endPattern |
\s*\-+\s* |
endOffset |
1 |
xml:base |
l1/l1.keywords.xml |
Input
--------------------------
#N B3LYP/6-31G(d) OPT FREQ
--------------------------
Output text
1<comment class="example.output" id="l1.keywords">
2 <module cmlx:templateRef="l1.keywords">
3 <scalar dataType="xsd:string" dictRef="cc:keyword">#N</scalar>
4 <scalar dataType="xsd:string" dictRef="cc:keyword">B3LYP/6-31G(d)</scalar>
5 <scalar dataType="xsd:string" dictRef="cc:keyword">OPT</scalar>
6 <scalar dataType="xsd:string" dictRef="cc:keyword">FREQ</scalar>
7 </module>
8 </comment>
Template definition
1<record />
2<record id="prog" repeat="*">{X,cc:keywords}</record>
3<transform process="delete" xpath=".//cml:scalar[contains(.,'------')]" />
4<transform process="delete" xpath=".//cml:scalar[string-length(.)=0]" />
5<transform process="pullup" xpath=".//cml:scalar" />
6<transform process="split" xpath="./cml:scalar" dictRef="cc:keyword" />
7<transform process="pullup" xpath=".//cml:scalar" />
8<transform process="delete" xpath=".//cml:list[count(*)=0]" />
9<transform process="delete" xpath=".//cml:list[count(*)=0]" />