|
|
@@ -136,10 +136,8 @@
|
|
|
<xsl:include href="BI_audit_ENERGA_RUM_KONTRAHENCI_and_BI_audit_ENERGA_RUM_UMOWY_errors/BI_audit_ENERGA_RUM_KONTRAHENCI_and_BI_audit_ENERGA_RUM_UMOWY_errors_tree_to_dita.xsl"/>
|
|
|
<xsl:include href="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_tree_to_dita.xsl"/>
|
|
|
<xsl:include href="EXAMPLE/EXAMPLE_tree_to_dita.xsl"/>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<xsl:include href="Benford.xsl"/>
|
|
|
+
|
|
|
<xsl:output indent="yes"/>
|
|
|
<xsl:strip-space elements="*"/>
|
|
|
|
|
|
@@ -147,7 +145,9 @@
|
|
|
<xsl:param name="uuid" required="yes"/>
|
|
|
|
|
|
<xsl:param name="system_cache__dita:pdf_a4_string_width" select="80"/> <!-- parameter for automate table width - how many letters fits in pdf output -->
|
|
|
- <xsl:param name="system_cache__dita:simpletable.col.size" select="4"/><xsl:variable name="ditadir" select="concat($temp,'/',$uuid)"/>
|
|
|
+ <xsl:param name="system_cache__dita:simpletable.col.size" select="4"/> <!-- parameter for automate table width - how much space takes every column -->
|
|
|
+
|
|
|
+ <xsl:variable name="ditadir" select="concat($temp,'/',$uuid)"/>
|
|
|
|
|
|
<xsl:template mode="preprocess" match="RelatedFeatureRoot">
|
|
|
<preprocess_dita>
|
|
|
@@ -191,10 +191,25 @@
|
|
|
<xsl:template match="map" mode="ditamap_root">
|
|
|
<xsl:element name="{name()}">
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
- <xsl:copy-of select="title"/><xsl:apply-templates mode="ditamap_root.embedded_map" />
|
|
|
- <xsl:message>#196 in mode="ditamap_root" digging! </xsl:message></xsl:element>
|
|
|
+ <xsl:copy-of select="title"/>
|
|
|
+ <xsl:apply-templates mode="ditamap_root.embedded_map" />
|
|
|
+ <xsl:message>#196 in mode="ditamap_root" digging! </xsl:message>
|
|
|
+ <!--<debug197><xsl:copy-of select="."/></debug197>-->
|
|
|
+ <!--<xsl:variable name="Benford:ditamap_root.embedded_map">
|
|
|
+ <xsl:apply-templates mode="Benford:ditamap_root.embedded_map" />
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:if test="$Benford:ditamap_root.embedded_map/*">
|
|
|
+ <topichead navtitle="Wykryto brak poprawności rozkładu Benforda">
|
|
|
+ <xsl:apply-templates mode="ditamap_root.embedded_map" select="$Benford:ditamap_root.embedded_map" />
|
|
|
+ </topichead>
|
|
|
+ </xsl:if>-->
|
|
|
+ </xsl:element>
|
|
|
</xsl:template>
|
|
|
|
|
|
+ <!--<xsl:template match="title" mode="ditamap_root.embedded_map">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:template>-->
|
|
|
+
|
|
|
<xsl:template match="topichead|xref" mode="ditamap_root.embedded_map">
|
|
|
<xsl:element name="{name()}">
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
@@ -202,28 +217,37 @@
|
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
|
|
|
|
- <xsl:template mode="ditamap_root.embedded_map" match="@*"><xsl:copy-of select="."/></xsl:template><xsl:template match="topic" mode="ditamap_root.embedded_map">
|
|
|
+ <xsl:template mode="ditamap_root.embedded_map" match="@*"><xsl:copy-of select="."/></xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="topic" mode="ditamap_root.embedded_map">
|
|
|
<topicref href="{@id}.dita">
|
|
|
<xsl:variable name="ditamap_root.embedded_map.body">
|
|
|
<xsl:apply-templates mode="ditamap_root.embedded_map.body"/>
|
|
|
- </xsl:variable><xsl:result-document href="{$temp}/{$uuid}/{@id}.dita">
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:result-document href="{$temp}/{$uuid}/{@id}.dita">
|
|
|
<xsl:element name="{name()}">
|
|
|
<xsl:apply-templates mode="ditamap_root.embedded_map" select="@*"/>
|
|
|
<!--<xsl:copy-of select="@*"/>-->
|
|
|
<xsl:apply-templates mode="Benford:ditamap_root.embedded_map.body.topic.cleanup" select="$ditamap_root.embedded_map.body"/>
|
|
|
</xsl:element>
|
|
|
</xsl:result-document>
|
|
|
- <xsl:apply-templates mode="Benford:ditamap_root.embedded_map.body.topicref.topic" select="$ditamap_root.embedded_map.body"/><xsl:apply-templates mode="ditamap_root.embedded_map" />
|
|
|
+ <xsl:apply-templates mode="Benford:ditamap_root.embedded_map.body.topicref.topic" select="$ditamap_root.embedded_map.body"/>
|
|
|
+ <xsl:apply-templates mode="ditamap_root.embedded_map" />
|
|
|
</topicref>
|
|
|
</xsl:template>
|
|
|
|
|
|
-
|
|
|
<xsl:template mode="ditamap_root.embedded_map.body" match="@*">
|
|
|
<xsl:copy-of select="."/>
|
|
|
</xsl:template>
|
|
|
|
|
|
- <xsl:template mode="ditamap_root.embedded_map.body" match="@system_cache__dita:width_cols"/><xsl:template match="*" mode="ditamap_root.embedded_map.body">
|
|
|
+ <xsl:template mode="ditamap_root.embedded_map.body" match="@system_cache__dita:width_cols"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="*" mode="ditamap_root.embedded_map.body">
|
|
|
<xsl:element name="{name()}">
|
|
|
+ <!--<xsl:copy-of select="@*"/>-->
|
|
|
<xsl:apply-templates select="@*" mode="ditamap_root.embedded_map.body"/>
|
|
|
<xsl:apply-templates mode="ditamap_root.embedded_map.body"/>
|
|
|
</xsl:element>
|
|
|
@@ -233,15 +257,12 @@
|
|
|
<xsl:value-of select="."/>
|
|
|
</xsl:template>
|
|
|
|
|
|
- <xsl:template match="simpletable[ contains(@id,'GRAPH_')]" mode="ditamap_root.embedded_map.body">
|
|
|
-
|
|
|
+ <xsl:template match="simpletable[ contains(@id,'GRAPH_')]" mode="ditamap_root.embedded_map.body">
|
|
|
<xsl:copy-of select="."/>
|
|
|
-
|
|
|
<xsl:apply-templates mode="system_cache__dita:graph__read" select=".">
|
|
|
<xsl:with-param name="fileindex" select="@id"/>
|
|
|
<xsl:with-param name="width" select="700"/>
|
|
|
</xsl:apply-templates>
|
|
|
-
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
@@ -294,7 +315,10 @@
|
|
|
<xsl:with-param name="topic.id" select="../../../@id"/>
|
|
|
</xsl:apply-templates>
|
|
|
<!--<xsl:copy-of select="$table_cut"/>-->
|
|
|
- </xsl:template><xsl:template match="*" mode="preprocess_root.embedded_map.simpletable">
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="*" mode="preprocess_root.embedded_map.simpletable">
|
|
|
<xsl:element name="{name()}">
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
<xsl:apply-templates mode="preprocess_root.embedded_map.simpletable"/>
|
|
|
@@ -320,6 +344,9 @@
|
|
|
<xsl:with-param name="fileindex" select="@id"/>
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:for-each>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<!--<debug>
|
|
|
<xsl:copy-of select="//simpletable[ contains(@id,'GRAPH_')]"></xsl:copy-of>
|
|
|
</debug>-->
|
|
|
@@ -341,8 +368,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+<!-- TODO 2017-10-20 to implement -->
|
|
|
<xsl:template mode="table_cut" match="simpletable">
|
|
|
<xsl:param name="width_cols" select="6"/>
|
|
|
<xsl:param name="header_cols" select="1"/>
|
|
|
@@ -639,11 +665,13 @@
|
|
|
<xsl:variable name="system_cache__dita:width_cols.auto" select="round(count($simpletable/sthead/stentry) div $system_cache__dita:width_cols.auto.div )"/>
|
|
|
<xsl:message>#506 system_cache__dita:width_cols.auto $sum_width=<xsl:value-of select="$sum_width"/> $screens_div_sum = <xsl:value-of select="$screens_div_sum"/> ; $system_cache__dita:width_cols.auto.cols=<xsl:value-of select="$system_cache__dita:width_cols.auto.cols"/>; $system_cache__dita:width_cols.auto.div=<xsl:value-of select="$system_cache__dita:width_cols.auto.div"/>; <xsl:value-of select="$system_cache__dita:width_cols.auto"/> </xsl:message>
|
|
|
<xsl:value-of select="$system_cache__dita:width_cols.auto"/>
|
|
|
- </xsl:template><xsl:template match="*|text()|comment()" mode="ditamap_root.embedded_map"/>
|
|
|
-
|
|
|
+ </xsl:template>
|
|
|
|
|
|
+ <xsl:template match="*|text()|comment()" mode="ditamap_root.embedded_map"/>
|
|
|
|
|
|
-<xsl:template mode="system_cache__dita:xref.topic.result-document" match="@*"><xsl:copy-of select="."/></xsl:template>
|
|
|
+ <xsl:template mode="system_cache__dita:xref.topic.result-document" match="@*">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:template>
|
|
|
|
|
|
<xsl:template match="*" mode="system_cache__dita:xref.topic.result-document">
|
|
|
<topicref href="{@id}.dita">
|
|
|
@@ -746,4 +774,6 @@
|
|
|
<xsl:param name="Benford:subject"/>
|
|
|
<!--<xref href="#topic_ghxf_rum_os_d1e1/simpgletablesss_inaaz_fwf_d1e1_1" format="dita">asd</xref>-->
|
|
|
<xsl:value-of select="concat($Benford:subject,'_',$Benford:year)"/>
|
|
|
- </xsl:function></xsl:stylesheet>
|
|
|
+ </xsl:function>
|
|
|
+
|
|
|
+</xsl:stylesheet>
|