Skip to content

atomic.number ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceAmber topology atomic number section
idatomic.number
nameAmber topology atomic number section
pattern\s*%FLAG\sATOMIC_NUMBER.*
endPattern.*[0-9]\s*$%.*
endPattern2~
endOffset1
xml:basesections/atomic.number.xml

Input ​

%FLAG ATOMIC_NUMBER                                                             
%FORMAT(10I8)                                                                   
      30       8       8       8       8       8       8       7       7       7
       7       6       6       6       6       6       6       6       6       6
       6       6       6       6       6       6       6       6       6       6
       6       6       6       6       6       6       6       6       6       6
       6       6       6       6       6       6       6       1       1       1
       1       1       1       1       1       1       1       1       1       1
       1       1       1       1       1       1       1       1       1       1
       1       1       1       1       1       1       1       1       1       1
       1       1       1       8       1       1       8       1       1       8
       1       1       8       1       1       8       1       1       8       1
       1       8       1       1       8       1       1       8       1       1
       8       1       1       8       1       1       8       1       1       8
       1       8       1       1       8       1       1       8       1       1
       8       1       1       8       1       1       8       1       1       8
       1       1       8       1       1       8       1       1
%FLAG MASS

Output text ​

xml
<comment class="example.output" id="atomic.number">   
         <module cmlx:templateRef="atomic.number">
            <array dataType="xsd:integer" dictRef="cc:elementType" size="7628">30 8 8 8 8 8 8 7 7 7 7 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 8 1 1 8 1 1 8 1 1 8 1 1 8 1 1 8 1 1 8 1 1</array>
         </module>    
    </comment>

Template definition ​

xml
<record repeat="2" />
<record repeat="*">&#123;1_10I,cc:elementType&#125;</record>
<transform process="joinArrays" xpath=".//cml:array" />
<transform process="pullup" xpath=".//cml:array" />
<transform process="delete" xpath=".//cml:list" />