Skip to content

module.header ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceMOLCAS log
idmodule.header
nameModule header
pattern\s*(\(\)){20,}\s*$\s*MOLCAS\sexecuting\smodule.*
pattern2\s*---\s*Start\s*Module.*
endPattern\s*
endPattern2\s*---\s*
endPattern3~
repeat*
xml:basemodules/module.header.xml

Input ​

()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
                                  MOLCAS executing module SEWARD with 400 MB of memory                                  
                                              at 14:02:49 Mon May 30 2011                                               
()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()

Input ​

--- Start Module: slapaf at Wed Jan 20 21:04:10 2016

Output text ​

xml
<comment class="example.output" id="module.header">
        <module cmlx:templateRef="module.header">
            <scalar dataType="xsd:string" dictRef="m:module">SEWARD</scalar>
            <scalar dataType="xsd:string" dictRef="cc:runDate">14:02:49 Mon May 30 2011</scalar>
        </module> 
    </comment>

Output text ​

xml
<comment class="example.output" id="">
        <module cmlx:templateRef="module.header">
            <scalar dataType="xsd:string" dictRef="m:module">slapaf</scalar>
            <scalar dataType="xsd:string" dictRef="cc:runDate">Wed Jan 20 21:04:10 2016</scalar>
        </module>
    </comment>

Template definition ​

xml
<templateList>  <template pattern="\s*(\(\))&#123;20,&#125;\s*$\s*MOLCAS\sexecuting\smodule.*" endPattern="~">    <record />    <record>\s*MOLCAS\sexecuting\smodule&#123;X,m:module&#125;with.*</record>    <record>\s*at\s*&#123;X,cc:runDate&#125;</record>
                
        </template>  <template pattern="\s*---\s*Start.*" endPattern="~">    <record>\s*---\s*Start\s*Module:&#123;A,m:module&#125;at&#123;X,cc:runDate&#125;</record>    <transform process="pullup" xpath=".//cml:scalar" repeat="1" />
        </template>
    </templateList>
<transform process="pullup" xpath=".//cml:scalar" repeat="2" />
<transform process="delete" xpath=".//cml:module" />