Index: SMC/trunk/SMC/build_init.xml
===================================================================
--- SMC/trunk/SMC/build_init.xml	(revision 2481)
+++ SMC/trunk/SMC/build_init.xml	(revision 2481)
@@ -0,0 +1,192 @@
+<?xml version="1.0"?>
+
+
+<!-- ====================================================================== 
+     Date:     2011-10     
+     Project:  SMC
+     (based on Bruce Phillips: Coding_Actions_Struts2_Ant)
+     ====================================================================== -->
+
+
+	
+<project name="SMC init" default="init" basedir=".">
+	
+    <description>
+           targets for initializing the SMC-module - i.e. fetching the source data
+    </description>
+	
+  
+	
+	<property name="cache.dir" value="data2" />
+	<property name="out.dir" value="output" />
+	<property name="smc.config" value="src/smc_config.xml" />
+	<property name="xsl.dir" value="src/xsl/" />
+	
+	
+	<property name="scripts.dir" location="C:\Users\m\3\7utils"/>
+ 
+ <import file="${scripts.dir}\build.xml" />   
+
+<target name="gen-build-info" >
+	<ant antfile="${scripts.dir}\build.xml" target="gen-build-info">
+		<property name="in.dir" location="" />
+		<property name="other.build" value="build_init"/>
+		<property name="out.dir" location="docs"/>
+	</ant>
+</target>
+
+
+	<target name="gen-docs" >
+		<ant antfile="${scripts.dir}\build_docs.xml" target="gen-jsdoc">
+			<!-- src/web/scripts/js/cmd-dep-graph.js   -->
+			<property name="src.dir" location="src/web/scripts/js/cmd-dep-graph.js" />
+			<property name="docs.dir" location="docs/jsdocs/"/>
+		</ant>		
+	</target>
+		
+		
+	<target name="gen-userdocs" >
+		<ant antfile="${scripts.dir}\build_docs.xml" target="rst2html">
+			<!-- src/web/scripts/js/cmd-dep-graph.js   -->
+			<property name="src.file" location="docs/userdocs.rst" />
+			<property name="out.file" location="docs/userdocs.html/"/>
+			<property name="stylesheet" value="scripts/css/cmds-ui.css"/>
+		</ant>		
+	</target>
+		
+
+	<target name="init-data" description="run sequentially the initialization steps">
+		<mkdir dir="${cache.dir}" />
+		
+		<property name="init-sequence" value="cmd-profiles-raw,cmd-terms,cmd-terms-nested,dcr-terms,isocat-languages,termsets,dcr-cmd-map,rr-relations,rr-terms" ></property>
+<!--		<property name="init-sequence" value="cmd-profiles-raw,cmd-terms" ></property>-->
+		<foreach list="${init-sequence}" target="init-step" param="dataset.key" />
+	</target>
+	
+<!--	//		init_step ("cmd-profiles-raw");
+	//		don't do this! it is too big
+	//init_step ("cmd-resolved");
+	//init_step ("cmd-terms");
+	init_step ("cmd-terms-nested");
+	//init_step ("dcr-terms");
+	//init_step ("isocat-languages");
+	//init_step ("termsets");
+	// init_step ("dcr-cmd-map");
+	//init_step ("rr-relations");
+	//init_step ("rr-terms");
+	-->
+	<target name="init-step" description="one initialization steps - parametrized with dataset.key">
+				
+		<echo message="generating: ${dataset.key}" />
+		<saxon-xslt style="${xsl.dir}smc_init.xsl" in="${smc.config}"
+			out="${cache.dir}/${dataset.key}.xml" >
+			<param name="data_key" expression="${dataset.key}"/>			
+			<param name="cache" expression="use"/>			
+			<param name="cache_dir" expression="../../${cache.dir}"/>
+			<!-- <sysproperty key="ANT_OPTS"
+                 value="-Xmx512m" 
+     />-->
+		</saxon-xslt>						
+		
+	</target>
+
+	<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
+
+	<target name="gen-out" description="generate various views on the data" 
+		depends="init-out,smc-stats,smc-stats2,gen-cmd-dep-graph" >
+		
+	</target>
+		
+	<target name="init-out" description="clean and refill the output directory "
+		depends="gen-userdocs">
+			<delete dir="${out.dir}" />
+			<copy todir="${out.dir}">
+			<fileset dir="src/web" />
+			<fileset file="docs/userdocs.html" />
+			<fileset file="docs/graph_legend.svg" />
+		</copy>
+	</target>
+		
+	<target name="smc-stats" description="generate statistics - old - obsoleting by smc-stats2">
+		
+		<saxon-xslt style="${xsl.dir}smc_stats.xsl" in="${cache.dir}/dcr-cmd-map.xml"
+			out="${out.dir}/smc_stats.html" force="true">						
+			<param name="cache" expression="use"/>			
+			<param name="format" expression="htmlpage"/>
+			<param name="cache_dir" expression="../../${cache.dir}"/>
+		</saxon-xslt>						
+		
+	</target>
+	
+	<target name="smc-stats2" description="generate statistics (via dataset-xml)">
+		
+		<saxon-xslt style="${xsl.dir}smc2stats_datasets.xsl" in="${cache.dir}/dcr-cmd-map.xml"
+			out="${out.dir}/smc_stats_dataset.xml" force="true">						
+			<param name="cache" expression="use"/>			
+			<param name="cache_dir" expression="../../${cache.dir}"/>
+		</saxon-xslt>						
+		
+		<property name="amc.xsl.dir" value="C:/Users/m/3/corpus_shell/_repo/corpus_shell/xsl/amc" />
+		<saxon-xslt style="${amc.xsl.dir}/dataset2html.xsl" in="${out.dir}/smc_stats_dataset.xml"
+			out="${out.dir}/smc_stats_detail.html" force="true">						
+			<param name="format" expression="html"/>
+			<param name="mode" expression="dataseries-table"/>
+		</saxon-xslt>						
+		
+		
+		<saxon-xslt style="${amc.xsl.dir}/dataset2html.xsl" in="${out.dir}/smc_stats_dataset.xml"
+			out="${out.dir}/smc_stats.html" force="true">						
+			<param name="format" expression="htmlpage"/>
+			<param name="mode" expression=""/>
+		</saxon-xslt>						
+		
+	</target>
+	
+	<target name="gen-cmd-dep-graph" description="generate graph of component dependencies (dot/svg/json)" 		
+		depends="gen-cmd-dep-graph-dot,gen-cmd-dep-graph-json" 
+		/>		
+		
+		<target name="gen-cmd-dep-graph-xml" description="generate graph of component dependencies (internal xml-format)" 		>		
+			<saxon-xslt style="${xsl.dir}cmd2graph.xsl" in="${cache.dir}/cmd-terms-nested.xml"
+				out="${out.dir}/cmd-dep-graph.xml" >
+			</saxon-xslt>						
+		</target>
+		
+		<target name="gen-cmd-dep-graph-dot" description="generate dot-graph of component dependencies (dot/svg)" 
+			depends="gen-cmd-dep-graph-xml"		>		
+				
+					<saxon-xslt style="${xsl.dir}graph2dot.xsl" in="${out.dir}/cmd-dep-graph.xml"
+						out="${out.dir}/cmd-dep-graph.dot" >
+					</saxon-xslt>						
+				
+				<exec executable="dot">			    				
+					<arg value="${out.dir}/cmd-dep-graph.dot" />
+					<arg value="-o${out.dir}/cmd-dep-graph.svg"/>
+					<arg value="-Tsvg"/>
+				</exec>    		
+		</target>
+		
+	<target name="gen-cmd-dep-graph-json" description="generate dot-graph of component dependencies (json-d3)" 
+			depends="gen-cmd-dep-graph-xml"		>		
+		
+			<saxon-xslt style="${xsl.dir}graph2json-d3.xsl" in="${out.dir}/cmd-dep-graph.xml"
+				out="${out.dir}/cmd-dep-graph.d3.js" force="true">
+			</saxon-xslt>						
+			
+	</target>			
+	
+	
+	<!--
+	OBSOLETED by: gen-cmd-dep-graph-json <- gen-cmd-dep-graph-xml 
+	
+	<target name="gen-cmd-dep-graph-json-d3" description="generate graph of component dependencies (json/d3)" 		
+		>		
+		<saxon-xslt style="${xsl.dir}cmd2graph-json-d3.xsl" in="${cache.dir}/cmd-terms-nested.xml"
+			out="${out.dir}/scripts/cmd-dep-graph-d3.json" force="true" >
+			<param name="profiles" expression="teiHeader" />
+		</saxon-xslt>						
+	
+	</target>			
+-->
+</project>
+
Index: SMC/trunk/SMC/docs/build_init.svg
===================================================================
--- SMC/trunk/SMC/docs/build_init.svg	(revision 2481)
+++ SMC/trunk/SMC/docs/build_init.svg	(revision 2481)
@@ -0,0 +1,416 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
+ "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+<!-- Generated by graphviz version 2.22.2 (20090313.1817)
+ -->
+<!-- Title: build Pages: 1 -->
+<svg width="2256pt" height="661pt"
+ viewBox="0.00 0.00 2256.00 661.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 657)">
+<title>build</title>
+<polygon fill="white" stroke="white" points="-4,5 -4,-657 2253,-657 2253,5 -4,5"/>
+<text text-anchor="middle" x="1124" y="-8.4" font-family="Times Roman,serif" font-size="14.00">SMC init &#45; build&#45;info</text>
+<g id="graph2" class="cluster"><title>cluster_xsl_dir</title>
+<polygon fill="none" stroke="black" points="1178,-174 1178,-521 1424,-521 1424,-174 1178,-174"/>
+<text text-anchor="middle" x="1301" y="-504.4" font-family="Times Roman,serif" font-size="14.00">xsl.dir</text>
+</g>
+<g id="graph3" class="cluster"><title>cluster_amc_xsl_dir</title>
+<polygon fill="none" stroke="black" points="1794,-430 1794,-507 1986,-507 1986,-430 1794,-430"/>
+<text text-anchor="middle" x="1890" y="-490.4" font-family="Times Roman,serif" font-size="14.00">amc.xsl.dir</text>
+</g>
+<g id="graph4" class="cluster"><title>cluster_legend</title>
+<polygon fill="none" stroke="black" points="8,-130 8,-207 312,-207 312,-130 8,-130"/>
+<text text-anchor="middle" x="160" y="-190.4" font-family="Times Roman,serif" font-size="14.00">legend</text>
+</g>
+<!-- property -->
+<g id="node1" class="node"><title>property</title>
+<text text-anchor="middle" x="51" y="-151.9" font-family="Times Roman,serif" font-size="14.00">property</text>
+</g>
+<!-- target -->
+<g id="node16" class="node"><title>target</title>
+<polygon fill="none" stroke="black" points="304,-174 250,-174 250,-138 304,-138 304,-174"/>
+<text text-anchor="middle" x="277" y="-151.9" font-family="Times Roman,serif" font-size="14.00">target</text>
+</g>
+<!-- property&#45;&gt;target -->
+<!-- cache_dir -->
+<g id="node2" class="node"><title>cache_dir</title>
+<text text-anchor="middle" x="51" y="-228.9" font-family="Times Roman,serif" font-size="14.00">cache.dir</text>
+</g>
+<!-- out_dir -->
+<g id="node3" class="node"><title>out_dir</title>
+<text text-anchor="middle" x="51" y="-282.9" font-family="Times Roman,serif" font-size="14.00">out.dir</text>
+</g>
+<!-- smc_config -->
+<g id="node4" class="node"><title>smc_config</title>
+<text text-anchor="middle" x="951" y="-468.9" font-family="Times Roman,serif" font-size="14.00">${smc.config}</text>
+</g>
+<!-- xsl_dirsmc_init_xsl -->
+<g id="node8" class="node"><title>xsl_dirsmc_init_xsl</title>
+<ellipse fill="none" stroke="black" cx="1301" cy="-470" rx="62.0391" ry="18"/>
+<text text-anchor="middle" x="1301" y="-465.9" font-family="Times Roman,serif" font-size="14.00">smc_init.xsl</text>
+</g>
+<!-- smc_config&#45;&gt;xsl_dirsmc_init_xsl -->
+<g id="edge50" class="edge"><title>smc_config&#45;&gt;xsl_dirsmc_init_xsl</title>
+<path fill="none" stroke="black" d="M1002.72,-472.124C1028.37,-471.721 1059.81,-471.272 1088,-471 1134.53,-470.551 1186.78,-470.302 1227.89,-470.165"/>
+<polygon fill="black" stroke="black" points="1228.1,-473.664 1238.09,-470.132 1228.08,-466.664 1228.1,-473.664"/>
+<text text-anchor="middle" x="1128" y="-475.4" font-family="Times Roman,serif" font-size="14.00">in</text>
+</g>
+<!-- xsl_dir -->
+<g id="node5" class="node"><title>xsl_dir</title>
+<text text-anchor="middle" x="51" y="-417.9" font-family="Times Roman,serif" font-size="14.00">xsl.dir</text>
+</g>
+<!-- scripts_dir -->
+<g id="node6" class="node"><title>scripts_dir</title>
+<text text-anchor="middle" x="51" y="-480.9" font-family="Times Roman,serif" font-size="14.00">scripts.dir</text>
+</g>
+<!-- cache_dir_dataset_key_xml -->
+<g id="node59" class="node"><title>cache_dir_dataset_key_xml</title>
+<text text-anchor="middle" x="1643" y="-465.9" font-family="Times Roman,serif" font-size="14.00">${cache.dir}/${dataset.key}.xml</text>
+</g>
+<!-- xsl_dirsmc_init_xsl&#45;&gt;cache_dir_dataset_key_xml -->
+<g id="edge52" class="edge"><title>xsl_dirsmc_init_xsl&#45;&gt;cache_dir_dataset_key_xml</title>
+<path fill="none" stroke="black" d="M1363.73,-470C1409.48,-470 1472.79,-470 1527.56,-470"/>
+<polygon fill="black" stroke="black" points="1527.69,-473.5 1537.69,-470 1527.69,-466.5 1527.69,-473.5"/>
+<text text-anchor="middle" x="1474" y="-474.4" font-family="Times Roman,serif" font-size="14.00">out</text>
+</g>
+<!-- xsl_dirsmc_stats_xsl -->
+<g id="node9" class="node"><title>xsl_dirsmc_stats_xsl</title>
+<ellipse fill="none" stroke="black" cx="1301" cy="-362" rx="70.878" ry="18"/>
+<text text-anchor="middle" x="1301" y="-357.9" font-family="Times Roman,serif" font-size="14.00">smc_stats.xsl</text>
+</g>
+<!-- out_dir_smc_stats_html -->
+<g id="node64" class="node"><title>out_dir_smc_stats_html</title>
+<text text-anchor="middle" x="1643" y="-357.9" font-family="Times Roman,serif" font-size="14.00">${out.dir}/smc_stats.html</text>
+</g>
+<!-- xsl_dirsmc_stats_xsl&#45;&gt;out_dir_smc_stats_html -->
+<g id="edge58" class="edge"><title>xsl_dirsmc_stats_xsl&#45;&gt;out_dir_smc_stats_html</title>
+<path fill="none" stroke="black" d="M1372.28,-362C1422.96,-362 1491.6,-362 1547.09,-362"/>
+<polygon fill="black" stroke="black" points="1547.29,-365.5 1557.29,-362 1547.29,-358.5 1547.29,-365.5"/>
+<text text-anchor="middle" x="1474" y="-366.4" font-family="Times Roman,serif" font-size="14.00">out</text>
+</g>
+<!-- xsl_dirsmc2stats_datasets_xsl -->
+<g id="node10" class="node"><title>xsl_dirsmc2stats_datasets_xsl</title>
+<ellipse fill="none" stroke="black" cx="1301" cy="-416" rx="114.155" ry="18"/>
+<text text-anchor="middle" x="1301" y="-411.9" font-family="Times Roman,serif" font-size="14.00">smc2stats_datasets.xsl</text>
+</g>
+<!-- out_dir_smc_stats_dataset_xml -->
+<g id="node68" class="node"><title>out_dir_smc_stats_dataset_xml</title>
+<text text-anchor="middle" x="1643" y="-411.9" font-family="Times Roman,serif" font-size="14.00">${out.dir}/smc_stats_dataset.xml</text>
+</g>
+<!-- xsl_dirsmc2stats_datasets_xsl&#45;&gt;out_dir_smc_stats_dataset_xml -->
+<g id="edge64" class="edge"><title>xsl_dirsmc2stats_datasets_xsl&#45;&gt;out_dir_smc_stats_dataset_xml</title>
+<path fill="none" stroke="black" d="M1415.83,-416C1449.92,-416 1487.36,-416 1521.83,-416"/>
+<polygon fill="black" stroke="black" points="1521.95,-419.5 1531.95,-416 1521.95,-412.5 1521.95,-419.5"/>
+<text text-anchor="middle" x="1474" y="-420.4" font-family="Times Roman,serif" font-size="14.00">out</text>
+</g>
+<!-- xsl_dircmd2graph_xsl -->
+<g id="node11" class="node"><title>xsl_dircmd2graph_xsl</title>
+<ellipse fill="none" stroke="black" cx="1301" cy="-200" rx="75.2406" ry="18"/>
+<text text-anchor="middle" x="1301" y="-195.9" font-family="Times Roman,serif" font-size="14.00">cmd2graph.xsl</text>
+</g>
+<!-- out_dir_cmd_dep_graph_xml -->
+<g id="node27" class="node"><title>out_dir_cmd_dep_graph_xml</title>
+<text text-anchor="middle" x="951" y="-253.9" font-family="Times Roman,serif" font-size="14.00">${out.dir}/cmd&#45;dep&#45;graph.xml</text>
+</g>
+<!-- xsl_dircmd2graph_xsl&#45;&gt;out_dir_cmd_dep_graph_xml -->
+<g id="edge32" class="edge"><title>xsl_dircmd2graph_xsl&#45;&gt;out_dir_cmd_dep_graph_xml</title>
+<path fill="none" stroke="black" d="M1225.64,-197.717C1184,-198.66 1131.95,-203.528 1088,-219 1078.93,-222.193 1078.83,-227.207 1070,-231 1065.26,-233.037 1060.33,-234.931 1055.32,-236.691"/>
+<polygon fill="black" stroke="black" points="1053.96,-233.453 1045.56,-239.912 1056.16,-240.1 1053.96,-233.453"/>
+<text text-anchor="middle" x="1128" y="-223.4" font-family="Times Roman,serif" font-size="14.00">out</text>
+</g>
+<!-- xsl_dirgraph2dot_xsl -->
+<g id="node12" class="node"><title>xsl_dirgraph2dot_xsl</title>
+<ellipse fill="none" stroke="black" cx="1301" cy="-254" rx="70.878" ry="18"/>
+<text text-anchor="middle" x="1301" y="-249.9" font-family="Times Roman,serif" font-size="14.00">graph2dot.xsl</text>
+</g>
+<!-- out_dir_cmd_dep_graph_dot -->
+<g id="node28" class="node"><title>out_dir_cmd_dep_graph_dot</title>
+<text text-anchor="middle" x="1643" y="-249.9" font-family="Times Roman,serif" font-size="14.00">${out.dir}/cmd&#45;dep&#45;graph.dot</text>
+</g>
+<!-- xsl_dirgraph2dot_xsl&#45;&gt;out_dir_cmd_dep_graph_dot -->
+<g id="edge16" class="edge"><title>xsl_dirgraph2dot_xsl&#45;&gt;out_dir_cmd_dep_graph_dot</title>
+<path fill="none" stroke="black" d="M1372.28,-254C1418.99,-254 1480.97,-254 1533.83,-254"/>
+<polygon fill="black" stroke="black" points="1533.93,-257.5 1543.93,-254 1533.93,-250.5 1533.93,-257.5"/>
+<text text-anchor="middle" x="1474" y="-258.4" font-family="Times Roman,serif" font-size="14.00">out</text>
+</g>
+<!-- xsl_dirgraph2json_d3_xsl -->
+<g id="node13" class="node"><title>xsl_dirgraph2json_d3_xsl</title>
+<ellipse fill="none" stroke="black" cx="1301" cy="-308" rx="89.139" ry="18"/>
+<text text-anchor="middle" x="1301" y="-303.9" font-family="Times Roman,serif" font-size="14.00">graph2json&#45;d3.xsl</text>
+</g>
+<!-- out_dir_cmd_dep_graph_d3_js -->
+<g id="node35" class="node"><title>out_dir_cmd_dep_graph_d3_js</title>
+<text text-anchor="middle" x="1643" y="-303.9" font-family="Times Roman,serif" font-size="14.00">${out.dir}/cmd&#45;dep&#45;graph.d3.js</text>
+</g>
+<!-- xsl_dirgraph2json_d3_xsl&#45;&gt;out_dir_cmd_dep_graph_d3_js -->
+<g id="edge26" class="edge"><title>xsl_dirgraph2json_d3_xsl&#45;&gt;out_dir_cmd_dep_graph_d3_js</title>
+<path fill="none" stroke="black" d="M1390.86,-308C1433.08,-308 1483.9,-308 1528.82,-308"/>
+<polygon fill="black" stroke="black" points="1528.9,-311.5 1538.9,-308 1528.9,-304.5 1528.9,-311.5"/>
+<text text-anchor="middle" x="1474" y="-312.4" font-family="Times Roman,serif" font-size="14.00">out</text>
+</g>
+<!-- amc_xsl_dir_dataset2table_xsl -->
+<g id="node15" class="node"><title>amc_xsl_dir_dataset2table_xsl</title>
+<ellipse fill="none" stroke="black" cx="1890" cy="-456" rx="87.0549" ry="18"/>
+<text text-anchor="middle" x="1890" y="-451.9" font-family="Times Roman,serif" font-size="14.00">/dataset2table.xsl</text>
+</g>
+<!-- out_dir_smc_stats_detail_html -->
+<g id="node74" class="node"><title>out_dir_smc_stats_detail_html</title>
+<text text-anchor="middle" x="2141" y="-451.9" font-family="Times Roman,serif" font-size="14.00">${out.dir}/smc_stats_detail.html</text>
+</g>
+<!-- amc_xsl_dir_dataset2table_xsl&#45;&gt;out_dir_smc_stats_detail_html -->
+<g id="edge72" class="edge"><title>amc_xsl_dir_dataset2table_xsl&#45;&gt;out_dir_smc_stats_detail_html</title>
+<path fill="none" stroke="black" d="M1977.79,-456C1992.75,-456 2008.5,-456 2024.07,-456"/>
+<polygon fill="black" stroke="black" points="2024.26,-459.5 2034.26,-456 2024.26,-452.5 2024.26,-459.5"/>
+<text text-anchor="middle" x="2006" y="-460.4" font-family="Times Roman,serif" font-size="14.00">out</text>
+</g>
+<!-- gen_build_info -->
+<g id="node17" class="node"><title>gen_build_info</title>
+<polygon fill="none" stroke="black" points="102,-562 2.13163e-014,-562 0,-526 102,-526 102,-562"/>
+<text text-anchor="middle" x="51" y="-539.9" font-family="Times Roman,serif" font-size="14.00">gen&#45;build&#45;info</text>
+</g>
+<!-- gen_build_info&#45;&gt;gen_build_info -->
+<g id="edge4" class="edge"><title>gen_build_info&#45;&gt;gen_build_info</title>
+<path fill="none" stroke="black" d="M32.5474,-562.153C29.7085,-571.539 35.8594,-580 51,-580 60.2263,-580 66.1144,-576.858 68.6643,-572.28"/>
+<polygon fill="black" stroke="black" points="72.1658,-572.394 69.4526,-562.153 65.1869,-571.851 72.1658,-572.394"/>
+<text text-anchor="middle" x="51" y="-584.4" font-family="Times Roman,serif" font-size="14.00">1: ant</text>
+</g>
+<!-- gen_cmd_dep_graph -->
+<g id="node19" class="node"><title>gen_cmd_dep_graph</title>
+<polygon fill="none" stroke="black" points="348,-334 206,-334 206,-298 348,-298 348,-334"/>
+<text text-anchor="middle" x="277" y="-311.9" font-family="Times Roman,serif" font-size="14.00">gen&#45;cmd&#45;dep&#45;graph</text>
+</g>
+<!-- gen_cmd_dep_graph_dot -->
+<g id="node21" class="node"><title>gen_cmd_dep_graph_dot</title>
+<polygon fill="none" stroke="black" points="622,-196 456,-196 456,-160 622,-160 622,-196"/>
+<text text-anchor="middle" x="539" y="-173.9" font-family="Times Roman,serif" font-size="14.00">gen&#45;cmd&#45;dep&#45;graph&#45;dot</text>
+</g>
+<!-- gen_cmd_dep_graph&#45;&gt;gen_cmd_dep_graph_dot -->
+<g id="edge6" class="edge"><title>gen_cmd_dep_graph&#45;&gt;gen_cmd_dep_graph_dot</title>
+<path fill="none" stroke="black" d="M327.468,-297.977C334.442,-295.148 341.453,-292.122 348,-289 403.766,-262.41 464.977,-225.333 502.7,-201.495"/>
+<polygon fill="black" stroke="black" points="504.741,-204.346 511.305,-196.03 500.987,-198.437 504.741,-204.346"/>
+<text text-anchor="middle" x="400" y="-283.4" font-family="Times Roman,serif" font-size="14.00">1 depends</text>
+</g>
+<!-- gen_cmd_dep_graph_json -->
+<g id="node23" class="node"><title>gen_cmd_dep_graph_json</title>
+<polygon fill="none" stroke="black" points="625,-330 453,-330 453,-294 625,-294 625,-330"/>
+<text text-anchor="middle" x="539" y="-307.9" font-family="Times Roman,serif" font-size="14.00">gen&#45;cmd&#45;dep&#45;graph&#45;json</text>
+</g>
+<!-- gen_cmd_dep_graph&#45;&gt;gen_cmd_dep_graph_json -->
+<g id="edge8" class="edge"><title>gen_cmd_dep_graph&#45;&gt;gen_cmd_dep_graph_json</title>
+<path fill="none" stroke="black" d="M348.247,-314.912C377.234,-314.47 411.189,-313.951 442.353,-313.476"/>
+<polygon fill="black" stroke="black" points="442.418,-316.975 452.363,-313.323 442.311,-309.976 442.418,-316.975"/>
+<text text-anchor="middle" x="400" y="-319.4" font-family="Times Roman,serif" font-size="14.00">2 depends</text>
+</g>
+<!-- gen_cmd_dep_graph_dot&#45;&gt;xsl_dirgraph2dot_xsl -->
+<g id="edge12" class="edge"><title>gen_cmd_dep_graph_dot&#45;&gt;xsl_dirgraph2dot_xsl</title>
+<path fill="none" stroke="black" d="M622.623,-164.034C727.957,-148.978 914.052,-130.824 1070,-160 1115.92,-168.591 1135.6,-164.348 1168,-198 1177.46,-207.821 1167.82,-217.934 1178,-227 1190.04,-237.714 1205.34,-244.497 1221.02,-248.725"/>
+<polygon fill="black" stroke="black" points="1220.28,-252.145 1230.82,-251.039 1221.89,-245.333 1220.28,-252.145"/>
+<text text-anchor="middle" x="951" y="-164.4" font-family="Times Roman,serif" font-size="14.00">1: saxon&#45;xslt</text>
+</g>
+<!-- gen_cmd_dep_graph_xml -->
+<g id="node25" class="node"><title>gen_cmd_dep_graph_xml</title>
+<polygon fill="none" stroke="black" points="1035,-61 867,-61 867,-25 1035,-25 1035,-61"/>
+<text text-anchor="middle" x="951" y="-38.9" font-family="Times Roman,serif" font-size="14.00">gen&#45;cmd&#45;dep&#45;graph&#45;xml</text>
+</g>
+<!-- gen_cmd_dep_graph_dot&#45;&gt;gen_cmd_dep_graph_xml -->
+<g id="edge10" class="edge"><title>gen_cmd_dep_graph_dot&#45;&gt;gen_cmd_dep_graph_xml</title>
+<path fill="none" stroke="black" d="M567.476,-159.766C588.083,-147.203 616.949,-130.877 644,-120 713.06,-92.2317 794.992,-72.2909 856.837,-59.6688"/>
+<polygon fill="black" stroke="black" points="857.86,-63.033 866.973,-57.6287 856.479,-56.1706 857.86,-63.033"/>
+<text text-anchor="middle" x="729" y="-124.4" font-family="Times Roman,serif" font-size="14.00">1 depends</text>
+</g>
+<!-- dot -->
+<g id="node32" class="node"><title>dot</title>
+<ellipse fill="none" stroke="black" cx="951" cy="-204" rx="27" ry="18"/>
+<text text-anchor="middle" x="951" y="-199.9" font-family="Times Roman,serif" font-size="14.00">dot</text>
+</g>
+<!-- gen_cmd_dep_graph_dot&#45;&gt;dot -->
+<g id="edge18" class="edge"><title>gen_cmd_dep_graph_dot&#45;&gt;dot</title>
+<path fill="none" stroke="black" d="M622.871,-183.293C711.797,-188.905 848.243,-197.515 913.591,-201.639"/>
+<polygon fill="black" stroke="black" points="913.623,-205.148 923.824,-202.285 914.064,-198.162 913.623,-205.148"/>
+<text text-anchor="middle" x="729" y="-199.4" font-family="Times Roman,serif" font-size="14.00">2: exec</text>
+</g>
+<!-- gen_cmd_dep_graph_json&#45;&gt;xsl_dirgraph2json_d3_xsl -->
+<g id="edge22" class="edge"><title>gen_cmd_dep_graph_json&#45;&gt;xsl_dirgraph2json_d3_xsl</title>
+<path fill="none" stroke="black" d="M625.669,-311.545C768.091,-310.797 1050.81,-309.313 1201.31,-308.523"/>
+<polygon fill="black" stroke="black" points="1201.49,-312.023 1211.47,-308.47 1201.45,-305.023 1201.49,-312.023"/>
+<text text-anchor="middle" x="951" y="-315.4" font-family="Times Roman,serif" font-size="14.00">1: saxon&#45;xslt</text>
+</g>
+<!-- gen_cmd_dep_graph_json&#45;&gt;gen_cmd_dep_graph_xml -->
+<g id="edge20" class="edge"><title>gen_cmd_dep_graph_json&#45;&gt;gen_cmd_dep_graph_xml</title>
+<path fill="none" stroke="black" d="M595.432,-293.982C673.803,-268.719 806.856,-224.856 814,-216 855.05,-165.113 788.148,-118.493 832,-70 839.053,-62.2006 847.845,-56.4106 857.436,-52.144"/>
+<polygon fill="black" stroke="black" points="858.781,-55.3763 866.845,-48.5044 856.256,-48.8476 858.781,-55.3763"/>
+<text text-anchor="middle" x="729" y="-281.4" font-family="Times Roman,serif" font-size="14.00">1 depends</text>
+</g>
+<!-- gen_cmd_dep_graph_xml&#45;&gt;xsl_dircmd2graph_xsl -->
+<g id="edge28" class="edge"><title>gen_cmd_dep_graph_xml&#45;&gt;xsl_dircmd2graph_xsl</title>
+<path fill="none" stroke="black" d="M1035.19,-47.408C1076.83,-52.2073 1126.85,-62.0314 1168,-82 1214,-104.322 1256.16,-147.162 1280.18,-174.621"/>
+<polygon fill="black" stroke="black" points="1277.58,-176.965 1286.76,-182.269 1282.89,-172.403 1277.58,-176.965"/>
+<text text-anchor="middle" x="1128" y="-86.4" font-family="Times Roman,serif" font-size="14.00">1: saxon&#45;xslt</text>
+</g>
+<!-- out_dir_cmd_dep_graph_xml&#45;&gt;xsl_dirgraph2dot_xsl -->
+<g id="edge14" class="edge"><title>out_dir_cmd_dep_graph_xml&#45;&gt;xsl_dirgraph2dot_xsl</title>
+<path fill="none" stroke="black" d="M1050.76,-244.167C1063.27,-242.86 1075.92,-241.747 1088,-241 1123.49,-238.807 1132.49,-239.269 1168,-241 1186.96,-241.924 1207.38,-243.585 1226.39,-245.417"/>
+<polygon fill="black" stroke="black" points="1226.19,-248.915 1236.49,-246.419 1226.88,-241.949 1226.19,-248.915"/>
+<text text-anchor="middle" x="1128" y="-245.4" font-family="Times Roman,serif" font-size="14.00">in</text>
+</g>
+<!-- out_dir_cmd_dep_graph_xml&#45;&gt;xsl_dirgraph2json_d3_xsl -->
+<g id="edge24" class="edge"><title>out_dir_cmd_dep_graph_xml&#45;&gt;xsl_dirgraph2json_d3_xsl</title>
+<path fill="none" stroke="black" d="M1050.64,-266.565C1087.6,-270.266 1129.81,-275.113 1168,-281 1188.61,-284.177 1210.87,-288.385 1231.17,-292.531"/>
+<polygon fill="black" stroke="black" points="1230.47,-295.959 1240.97,-294.557 1231.88,-289.104 1230.47,-295.959"/>
+<text text-anchor="middle" x="1128" y="-285.4" font-family="Times Roman,serif" font-size="14.00">in</text>
+</g>
+<!-- cache_dir_cmd_terms_nested_xml -->
+<g id="node39" class="node"><title>cache_dir_cmd_terms_nested_xml</title>
+<text text-anchor="middle" x="951" y="-92.9" font-family="Times Roman,serif" font-size="14.00">${cache.dir}/cmd&#45;terms&#45;nested.xml</text>
+</g>
+<!-- cache_dir_cmd_terms_nested_xml&#45;&gt;xsl_dircmd2graph_xsl -->
+<g id="edge30" class="edge"><title>cache_dir_cmd_terms_nested_xml&#45;&gt;xsl_dircmd2graph_xsl</title>
+<path fill="none" stroke="black" d="M1069.56,-100.194C1102.08,-103.577 1136.93,-109.581 1168,-120 1206.1,-132.777 1244.95,-157.819 1270.74,-176.498"/>
+<polygon fill="black" stroke="black" points="1268.84,-179.446 1278.97,-182.562 1273,-173.812 1268.84,-179.446"/>
+<text text-anchor="middle" x="1128" y="-124.4" font-family="Times Roman,serif" font-size="14.00">in</text>
+</g>
+<!-- gen_docs -->
+<g id="node42" class="node"><title>gen_docs</title>
+<polygon fill="none" stroke="black" points="89,-653 13,-653 13,-617 89,-617 89,-653"/>
+<text text-anchor="middle" x="51" y="-630.9" font-family="Times Roman,serif" font-size="14.00">gen&#45;docs</text>
+</g>
+<!-- gen_jsdoc -->
+<g id="node44" class="node"><title>gen_jsdoc</title>
+<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="318,-653 236,-653 236,-617 318,-617 318,-653"/>
+<text text-anchor="middle" x="277" y="-630.9" font-family="Times Roman,serif" font-size="14.00">gen_jsdoc</text>
+</g>
+<!-- gen_docs&#45;&gt;gen_jsdoc -->
+<g id="edge34" class="edge"><title>gen_docs&#45;&gt;gen_jsdoc</title>
+<path fill="none" stroke="black" stroke-dasharray="1,5" d="M89.0823,-635C126.424,-635 183.633,-635 225.119,-635"/>
+<polygon fill="black" stroke="black" points="225.306,-638.5 235.306,-635 225.306,-631.5 225.306,-638.5"/>
+<text text-anchor="middle" x="154" y="-639.4" font-family="Times Roman,serif" font-size="14.00">1: ant</text>
+</g>
+<!-- gen_out -->
+<g id="node45" class="node"><title>gen_out</title>
+<polygon fill="none" stroke="black" points="83,-359 19,-359 19,-323 83,-323 83,-359"/>
+<text text-anchor="middle" x="51" y="-336.9" font-family="Times Roman,serif" font-size="14.00">gen&#45;out</text>
+</g>
+<!-- gen_out&#45;&gt;gen_cmd_dep_graph -->
+<g id="edge42" class="edge"><title>gen_out&#45;&gt;gen_cmd_dep_graph</title>
+<path fill="none" stroke="black" d="M83.289,-337.205C94.8655,-335.858 108.016,-334.344 120,-333 144.555,-330.247 171.279,-327.326 195.602,-324.695"/>
+<polygon fill="black" stroke="black" points="196.3,-328.14 205.866,-323.587 195.548,-321.181 196.3,-328.14"/>
+<text text-anchor="middle" x="154" y="-337.4" font-family="Times Roman,serif" font-size="14.00">4 depends</text>
+</g>
+<!-- init_out -->
+<g id="node47" class="node"><title>init_out</title>
+<polygon fill="none" stroke="black" points="305,-280 249,-280 249,-244 305,-244 305,-280"/>
+<text text-anchor="middle" x="277" y="-257.9" font-family="Times Roman,serif" font-size="14.00">init&#45;out</text>
+</g>
+<!-- gen_out&#45;&gt;init_out -->
+<g id="edge36" class="edge"><title>gen_out&#45;&gt;init_out</title>
+<path fill="none" stroke="black" d="M83.2062,-324.005C100.195,-315.073 117.956,-305.802 120,-305 159.285,-289.577 206.163,-277.515 238.407,-270.141"/>
+<polygon fill="black" stroke="black" points="239.342,-273.519 248.333,-267.914 237.809,-266.689 239.342,-273.519"/>
+<text text-anchor="middle" x="154" y="-309.4" font-family="Times Roman,serif" font-size="14.00">1 depends</text>
+</g>
+<!-- smc_stats -->
+<g id="node49" class="node"><title>smc_stats</title>
+<polygon fill="none" stroke="black" points="990,-383 912,-383 912,-347 990,-347 990,-383"/>
+<text text-anchor="middle" x="951" y="-360.9" font-family="Times Roman,serif" font-size="14.00">smc&#45;stats</text>
+</g>
+<!-- gen_out&#45;&gt;smc_stats -->
+<g id="edge38" class="edge"><title>gen_out&#45;&gt;smc_stats</title>
+<path fill="none" stroke="black" d="M83.2185,-345.96C94.7883,-347.54 107.952,-349.108 120,-350 416.028,-371.909 772.903,-368.293 901.676,-366.027"/>
+<polygon fill="black" stroke="black" points="902.055,-369.521 911.989,-365.84 901.927,-362.522 902.055,-369.521"/>
+<text text-anchor="middle" x="400" y="-369.4" font-family="Times Roman,serif" font-size="14.00">2 depends</text>
+</g>
+<!-- smc_stats2 -->
+<g id="node51" class="node"><title>smc_stats2</title>
+<polygon fill="none" stroke="black" points="994,-545 908,-545 908,-509 994,-509 994,-545"/>
+<text text-anchor="middle" x="951" y="-522.9" font-family="Times Roman,serif" font-size="14.00">smc&#45;stats2</text>
+</g>
+<!-- gen_out&#45;&gt;smc_stats2 -->
+<g id="edge40" class="edge"><title>gen_out&#45;&gt;smc_stats2</title>
+<path fill="none" stroke="black" d="M83.2207,-359.131C149.674,-395.442 307.818,-476.312 452,-508 611.191,-542.986 805.691,-536.833 897.782,-531.095"/>
+<polygon fill="black" stroke="black" points="898.213,-534.575 907.966,-530.436 897.76,-527.59 898.213,-534.575"/>
+<text text-anchor="middle" x="400" y="-507.4" font-family="Times Roman,serif" font-size="14.00">3 depends</text>
+</g>
+<!-- smc_stats&#45;&gt;xsl_dirsmc_stats_xsl -->
+<g id="edge54" class="edge"><title>smc_stats&#45;&gt;xsl_dirsmc_stats_xsl</title>
+<path fill="none" stroke="black" d="M990.165,-359.2C1017.51,-355.452 1054.89,-350.927 1088,-349 1123.5,-346.934 1132.49,-347.269 1168,-349 1186.96,-349.924 1207.38,-351.585 1226.39,-353.417"/>
+<polygon fill="black" stroke="black" points="1226.19,-356.915 1236.49,-354.419 1226.88,-349.949 1226.19,-356.915"/>
+<text text-anchor="middle" x="1128" y="-353.4" font-family="Times Roman,serif" font-size="14.00">1: saxon&#45;xslt</text>
+</g>
+<!-- smc_stats2&#45;&gt;xsl_dirsmc2stats_datasets_xsl -->
+<g id="edge60" class="edge"><title>smc_stats2&#45;&gt;xsl_dirsmc2stats_datasets_xsl</title>
+<path fill="none" stroke="black" d="M994.232,-521.82C1053.91,-514.283 1155.61,-499.895 1168,-488 1182.78,-473.812 1163.49,-457.468 1178,-443 1183.04,-437.969 1188.8,-433.781 1195,-430.304"/>
+<polygon fill="black" stroke="black" points="1196.94,-433.251 1204.37,-425.701 1193.85,-426.968 1196.94,-433.251"/>
+<text text-anchor="middle" x="1128" y="-513.4" font-family="Times Roman,serif" font-size="14.00">1: saxon&#45;xslt</text>
+</g>
+<!-- smc_stats2&#45;&gt;amc_xsl_dir_dataset2table_xsl -->
+<g id="edge68" class="edge"><title>smc_stats2&#45;&gt;amc_xsl_dir_dataset2table_xsl</title>
+<path fill="none" stroke="black" d="M994.231,-527.465C1038.03,-527.874 1107.72,-528.353 1168,-528 1428.8,-526.472 1497.82,-545.93 1754,-497 1781.8,-491.69 1812.01,-482.901 1836.88,-474.82"/>
+<polygon fill="black" stroke="black" points="1838.08,-478.108 1846.48,-471.649 1835.89,-471.461 1838.08,-478.108"/>
+<text text-anchor="middle" x="1474" y="-535.4" font-family="Times Roman,serif" font-size="14.00">3: saxon&#45;xslt</text>
+</g>
+<!-- init_data -->
+<g id="node53" class="node"><title>init_data</title>
+<polygon fill="none" stroke="black" points="571,-599 507,-599 507,-563 571,-563 571,-599"/>
+<text text-anchor="middle" x="539" y="-576.9" font-family="Times Roman,serif" font-size="14.00">init&#45;data</text>
+</g>
+<!-- init_step -->
+<g id="node57" class="node"><title>init_step</title>
+<polygon fill="none" stroke="black" points="984,-599 918,-599 918,-563 984,-563 984,-599"/>
+<text text-anchor="middle" x="951" y="-576.9" font-family="Times Roman,serif" font-size="14.00">init&#45;step</text>
+</g>
+<!-- init_data&#45;&gt;init_step -->
+<g id="edge46" class="edge"><title>init_data&#45;&gt;init_step</title>
+<path fill="none" stroke="black" d="M571.673,-581C645.411,-581 824.754,-581 907.658,-581"/>
+<polygon fill="black" stroke="black" points="907.75,-584.5 917.75,-581 907.75,-577.5 907.75,-584.5"/>
+<text text-anchor="middle" x="729" y="-602.4" font-family="Times Roman,serif" font-size="14.00">3: foreach (init_sequence) </text>
+<text text-anchor="middle" x="729" y="-585.4" font-family="Times Roman,serif" font-size="14.00"> as dataset_key</text>
+</g>
+<!-- init_sequence -->
+<g id="node54" class="node"><title>init_sequence</title>
+<text text-anchor="middle" x="277" y="-576.9" font-family="Times Roman,serif" font-size="14.00">init_sequence</text>
+</g>
+<!-- init_sequence&#45;&gt;init_data -->
+<g id="edge44" class="edge"><title>init_sequence&#45;&gt;init_data</title>
+<path fill="none" stroke="black" d="M329.704,-581C378.641,-581 450.604,-581 496.114,-581"/>
+<polygon fill="black" stroke="black" points="496.245,-584.5 506.245,-581 496.245,-577.5 496.245,-584.5"/>
+<text text-anchor="middle" x="400" y="-585.4" font-family="Times Roman,serif" font-size="14.00">2: property</text>
+</g>
+<!-- init_step&#45;&gt;xsl_dirsmc_init_xsl -->
+<g id="edge48" class="edge"><title>init_step&#45;&gt;xsl_dirsmc_init_xsl</title>
+<path fill="none" stroke="black" d="M984.101,-573.559C1007.99,-568.172 1041,-560.693 1070,-554 1113.59,-543.939 1125.68,-545.509 1168,-531 1200.53,-519.848 1235.85,-503.432 1261.91,-490.439"/>
+<polygon fill="black" stroke="black" points="1263.71,-493.448 1271.07,-485.823 1260.56,-487.197 1263.71,-493.448"/>
+<text text-anchor="middle" x="1128" y="-554.4" font-family="Times Roman,serif" font-size="14.00">2: saxon&#45;xslt</text>
+</g>
+<!-- cache_dir_dcr_cmd_map_xml -->
+<g id="node63" class="node"><title>cache_dir_dcr_cmd_map_xml</title>
+<text text-anchor="middle" x="951" y="-414.9" font-family="Times Roman,serif" font-size="14.00">${cache.dir}/dcr&#45;cmd&#45;map.xml</text>
+</g>
+<!-- cache_dir_dcr_cmd_map_xml&#45;&gt;xsl_dirsmc_stats_xsl -->
+<g id="edge56" class="edge"><title>cache_dir_dcr_cmd_map_xml&#45;&gt;xsl_dirsmc_stats_xsl</title>
+<path fill="none" stroke="black" d="M1053.65,-402.283C1110.76,-392.983 1180.34,-381.65 1231.14,-373.377"/>
+<polygon fill="black" stroke="black" points="1231.74,-376.826 1241.04,-371.764 1230.61,-369.917 1231.74,-376.826"/>
+<text text-anchor="middle" x="1128" y="-400.4" font-family="Times Roman,serif" font-size="14.00">in</text>
+</g>
+<!-- cache_dir_dcr_cmd_map_xml&#45;&gt;xsl_dirsmc2stats_datasets_xsl -->
+<g id="edge62" class="edge"><title>cache_dir_dcr_cmd_map_xml&#45;&gt;xsl_dirsmc2stats_datasets_xsl</title>
+<path fill="none" stroke="black" d="M1053.65,-418.12C1092.05,-417.791 1136.08,-417.414 1176.26,-417.069"/>
+<polygon fill="black" stroke="black" points="1176.42,-420.568 1186.39,-416.982 1176.36,-413.568 1176.42,-420.568"/>
+<text text-anchor="middle" x="1128" y="-422.4" font-family="Times Roman,serif" font-size="14.00">in</text>
+</g>
+<!-- out_dir_smc_stats_dataset_xml&#45;&gt;amc_xsl_dir_dataset2table_xsl -->
+<g id="edge70" class="edge"><title>out_dir_smc_stats_dataset_xml&#45;&gt;amc_xsl_dir_dataset2table_xsl</title>
+<path fill="none" stroke="black" d="M1754.22,-434.011C1773.45,-437.125 1793.08,-440.304 1811.22,-443.243"/>
+<polygon fill="black" stroke="black" points="1810.71,-446.705 1821.14,-444.848 1811.83,-439.795 1810.71,-446.705"/>
+<text text-anchor="middle" x="1778" y="-443.4" font-family="Times Roman,serif" font-size="14.00">in</text>
+</g>
+<!-- amc_xsl_dir -->
+<g id="node71" class="node"><title>amc_xsl_dir</title>
+<text text-anchor="middle" x="539" y="-476.9" font-family="Times Roman,serif" font-size="14.00">amc_xsl_dir</text>
+</g>
+<!-- amc_xsl_dir&#45;&gt;smc_stats2 -->
+<g id="edge66" class="edge"><title>amc_xsl_dir&#45;&gt;smc_stats2</title>
+<path fill="none" stroke="black" d="M585.942,-481.167C640.871,-481.915 734.442,-484.909 814,-496 815.105,-496.154 859.761,-506.272 897.789,-514.907"/>
+<polygon fill="black" stroke="black" points="897.262,-518.376 907.789,-517.178 898.812,-511.55 897.262,-518.376"/>
+<text text-anchor="middle" x="729" y="-500.4" font-family="Times Roman,serif" font-size="14.00">2: property</text>
+</g>
+</g>
+</svg>
