module.header

Implementation level

Type

Status

CML extraction template

image1

HTML5 representation

image2

Template attributes

Attribute

Value

source

MOLCAS log

id

module.header

name

Module header

pattern

\s*(\(\)){20,}\s*$\s*MOLCAS\sexecuting\smodule.*

pattern2

\s*—\s*Start\s*Module.*

endPattern

\s*

endPattern2

\s*—\s*

endPattern3

~

repeat

*

xml:base

modules/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

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

Output text

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

Template definition

1<templateList>  <template pattern="\s*(\(\)){20,}\s*$\s*MOLCAS\sexecuting\smodule.*" endPattern="~">    <record />    <record>\s*MOLCAS\sexecuting\smodule{X,m:module}with.*</record>    <record>\s*at\s*{X,cc:runDate}</record>
2
3        </template>  <template pattern="\s*---\s*Start.*" endPattern="~">    <record>\s*---\s*Start\s*Module:{A,m:module}at{X,cc:runDate}</record>    <transform process="pullup" xpath=".//cml:scalar" repeat="1" />
4        </template>
5    </templateList>
6<transform process="pullup" xpath=".//cml:scalar" repeat="2" />
7<transform process="delete" xpath=".//cml:module" />