Skip to content

l1.version ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceGaussian log
idl1.version
pattern\s*\*+\s*$\s*Gaussian.*\s*
endPattern\s*\*+\s*
endOffset1
xml:basel1/l1.version.xml

Input ​

 *********************************************
 Gaussian 03:  x86-Linux-G03RevB.04 2-Jun-2003
                  20-Nov-2006 
 *********************************************

Output text ​

xml
<comment class="example.output" id="l1.version">
    <module cmlx:templateRef="l1.version">
      <scalar dataType="xsd:string" dictRef="cc:program">Gaussian 03</scalar>
      <scalar dataType="xsd:string" dictRef="cc:version">x86-Linux-G03RevB.04</scalar>
      <scalar dataType="xsd:string" dictRef="cc:program.date">2-Jun-2003</scalar>
      <scalar dataType="xsd:string" dictRef="cc:run.date">20-Nov-2006</scalar>
    </module>
  </comment>

Template definition ​

xml
<record />
<record id="prog">&#123;X,cc:program&#125;:&#123;A,cc:version&#125;\s+&#123;A,cc:program.date&#125;</record>
<record id="prog">\s*&#123;A,cc:run.date&#125;\s*</record>
<record repeat="*" id="verb">&#123;X,x:verb&#125;</record>
<transform process="delete" xpath="./cml:list[@cmlx:templateRef='verb']" />
<transform process="pullup" xpath=".//cml:scalar" repeat="2" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />