bcgtht.tree_to_dita.xsl 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:gml="http://www.opengis.net/gml"
  5. xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
  6. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  7. xmlns:bcgtht="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/bocian-graph-to-html/bcgtht.xsd"
  8. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  9. xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_PRACOWNICY"
  10. xmlns:p5="https://biuro.biall-net.pl/wfs"
  11. xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"
  12. xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row"
  13. xmlns:default_db__x3A__BI_audit_KRS="https://biuro.biall-net.pl/wfs/default_db/BI_audit_KRS"
  14. xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI"
  15. xmlns:default_db__x3A__BI_audit_MSIG="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG"
  16. xmlns:default_db__x3A__BI_audit_CEIDG="https://biuro.biall-net.pl/wfs/default_db/BI_audit_CEIDG"
  17. xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
  18. xmlns:default_db__x3A__BI_audit_KRS_person="https://biuro.biall-net.pl/wfs/default_db/BI_audit_KRS_person"
  19. xmlns:default_db__x3A__BI_audit_taxpayer="https://biuro.biall-net.pl/wfs/default_db/BI_audit_taxpayer"
  20. xmlns:default_db__x3A__BI_audit_KRS_company="https://biuro.biall-net.pl/wfs/default_db/BI_audit_KRS_company"
  21. xmlns:default_db__x3A__BI_audit_MSIG_company="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_company"
  22. xmlns:default_db__x3A__TERYT_adresy="https://biuro.biall-net.pl/wfs/default_db/TERYT_adresy"
  23. xmlns:default_db__x3A__BI_audit_MSIG_person="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_person"
  24. xmlns:default_db__x3A__BI_audit_operational_raport_note="https://biuro.biall-net.pl/wfs/default_db/BI_audit_operational_raport_note"
  25. xmlns:default_db__x3A__BI_audit_MSIG_address="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_address"
  26. xmlns:yed="http://www.yworks.com/xml/yed/3"
  27. xmlns:p5xmli="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xmlschema_interface/p5xmli.xsd"
  28. xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
  29. exclude-result-prefixes="xs vc gml p5bws system_cache__appinfo bcgtht default_db__x3A__BI_audit_ENERGA_PRACOWNICY p5 default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row default_db__x3A__BI_audit_KRS default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI default_db__x3A__BI_audit_MSIG default_db__x3A__BI_audit_CEIDG system_cache__dita default_db__x3A__BI_audit_KRS_person default_db__x3A__BI_audit_taxpayer"
  30. version="2.0">
  31. <xsl:import href="../xmlschema_interface/p5xmli.xsi.schemaLocation.xsl"/>
  32. <xsl:import href="bcgtht.tree_to_dita.import.xsl"/>
  33. <xsl:output indent="yes"/>
  34. <xsl:strip-space elements="*"/> <!-- -->
  35. <xsl:include href="../p5/p5.primaryKey.xsl"/>
  36. <xsl:include href="bcgtht.tree_to_dita.src_fid_analys.xsl"/>
  37. <xsl:include href="bcgtht.tree_to_dita.applying_analys.xsl"/>
  38. <xsl:include href="bcgtht.tree_to_dita.clousure.xsl"/>
  39. <xsl:include href="bcgtht.tree_to_dita.clousure.analys.xsl"/>
  40. <xsl:include href="bcgtht.tree_to_dita.clousure.analys.merge.xsl"/>
  41. <xsl:include href="bcgtht.tree_to_dita.clousure.analys.merge.apply.xsl"/>
  42. <xsl:include href="bcgtht.tree_to_dita.clousure.analys.merge.apply.rename.xsl"/>
  43. <xsl:include href="bcgtht.tree_to_dita.clousure.analys.merge.apply.rename.analys.xsl"/>
  44. <xsl:include href="../yed/p5yed.yed.graphml.xsl"/>
  45. <xsl:param name="bcgtht:debug" /> <!-- select="4" -->
  46. <xsl:param name="bcgtht:repository" select="'/Users/a.binder/Downloads'"/> <!-- select="concat($temp,'/bcgtht.repository'" -->
  47. <xsl:param name="bcgtht.clousure.xml" select="concat($bcgtht:repository,'/bcgtht.clousure.xml')"/>
  48. <xsl:param name="bcgtht.clousure.analys.xml" select="concat($bcgtht:repository,'/bcgtht.clousure.analys.xml')"/>
  49. <xsl:param name="bcgtht.src_fid_analys.xml" select="concat($bcgtht:repository,'/bcgtht.src_fid_analys.xml')"/>
  50. <xsl:param name="bcgtht.applying_analys.xml" select="concat($bcgtht:repository,'/bcgtht.applying_analys.xml')"/>
  51. <xsl:param name="bcgtht.applying_analys.merge.xml" select="concat($bcgtht:repository,'/bcgtht.applying_analys.merge.xml')"/>
  52. <xsl:param name="bcgtht.applying_analys.merge.apply.xml" select="concat($bcgtht:repository,'/bcgtht.applying_analys.merge.apply.xml')"/>
  53. <xsl:param name="bcgtht.applying_analys.merge.apply.rename.xml" select="concat($bcgtht:repository,'/bcgtht.applying_analys.merge.apply.rename.xml')"/>
  54. <xsl:param name="bcgtht.applying_analys.merge.apply.rename.analys.xml" select="concat($bcgtht:repository,'/bcgtht.applying_analys.merge.apply.rename.analys.xml')"/>
  55. <xsl:param name="bcgtht.yed.graphml" select="concat($bcgtht:repository,'/bcgtht.yed.graphml')"/>
  56. <xsl:param name="bcgtht.applying_analys.debug.xml" select="concat($bcgtht:repository,'/bcgtht.applying_analys.debug.xml')"/>
  57. <xsl:param name="bcgtht.yed.analys.graphml" select="concat($bcgtht:repository,'/bcgtht.yed.analys.graphml')"/>
  58. <xsl:param name="bcgtht.yed.clousure.analys.merge.apply.graphml" select="concat($bcgtht:repository,'/bcgtht.yed.clousure.analys.merge.apply.graphml')"/>
  59. <xsl:param name="bcgtht.yed.clousure.analys.merge.apply.rename.analys.graphml" select="concat($bcgtht:repository,'/bcgtht.yed.clousure.analys.merge.apply.rename.analys.graphml')"/>
  60. <xsl:param name="bcgtht.clousure.xsd" select="'bcgtht.clousure.xsd'"/>
  61. <!-- to be used from tree_to_dita.xsl -->
  62. <xsl:template mode="bocian-graph-2-html.preprocess" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA[@fid]|BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[@fid]">
  63. <!--<xsl:variable name="fileindex" select="@fid"/>-->
  64. <xsl:param name="fileindex" select="@fid"/>
  65. <xsl:message>#75 result-document <xsl:value-of select="$ditadir"/>/bocian-graph-2-html/<xsl:value-of select="$fileindex"/>.xml ;</xsl:message>
  66. <xsl:result-document href="{$ditadir}/bocian-graph-2-html/{$fileindex}.xml" omit-xml-declaration="yes">
  67. <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_PRACOWNICY" xmlns:p5="https://biuro.biall-net.pl/wfs" xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" xmlns:default_db__x3A__BI_audit_KRS="https://biuro.biall-net.pl/wfs/default_db/BI_audit_KRS" xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI" xmlns:default_db__x3A__BI_audit_MSIG="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG" xmlns:default_db__x3A__BI_audit_CEIDG="https://biuro.biall-net.pl/wfs/default_db/BI_audit_CEIDG" xsi:schemaLocation="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_PRACOWNICY https://biuro.biall-net.pl/dev-pl/se-projects/bocian/SE//wfs-data.php/default_db/?SERVICE=WFS&amp;VERSION=1.0.0&amp;TYPENAME=default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY&amp;REQUEST=DescribeFeatureType" numberMatched="unknown" numberReturned="1" next="https://biuro.biall-net.pl/dev-pl/se-projects/bocian/SE//wfs-data.php/default_db/?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=default_db__x3A__BI_audit_ENERGA_PRACOWNICY%3ABI_audit_ENERGA_PRACOWNICY&amp;SRSNAME=EPSG%3A3003&amp;sortBy=ID+D&amp;maxFeatures=20&amp;startIndex=20">
  68. <xsl:apply-templates mode="bocian-graph-2-html.preprocess.child" select="."/>
  69. <!-- strategy
  70. wszystkie wyjscia od pracownika
  71. row_object
  72. row
  73. row_object
  74. KONTR
  75. -->
  76. </wfs:FeatureCollection>
  77. </xsl:result-document>
  78. <bocian-graph-2-html xsl:exclude-result-prefixes="p5 bcgtht" xsl:xpath-default-namespace="" srcfile="{$ditadir}/bocian-graph-2-html/{$fileindex}.xml" dstfile="{$ditadir}/bocian-graph-2-html/{$fileindex}.png.xml" fileindex="{$fileindex}" ditadir="{$ditadir}" />
  79. </xsl:template>
  80. <!--<xsl:template mode="bocian-graph-2-html.preprocess" match="text()|comment()|*"/>-->
  81. <xsl:template mode="bocian-graph-2-html.preprocess.child" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA">
  82. <!--<xsl:apply-templates mode="#current" select="*"/>--> <!-- [1] -->
  83. <xsl:variable name="bcgtht:src_fid_analys">
  84. <xsl:apply-templates mode="bcgtht:src_fid_analys" select="."/>
  85. </xsl:variable>
  86. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.src_fid_analys.xml"/></xsl:message>
  87. <xsl:result-document href="{$bcgtht.src_fid_analys.xml}.{@fid}.xml">
  88. <xsl:copy-of select="$bcgtht:src_fid_analys"/>
  89. </xsl:result-document>
  90. <!--<xsl:copy-of select="$bcgtht:src_fid_analys" copy-namespaces="no"/>-->
  91. <xsl:variable name="bcgtht:applying_analys">
  92. <xsl:call-template name="bcgtht:applying_analys">
  93. <xsl:with-param name="bcgtht:src_fid_analys" select="$bcgtht:src_fid_analys"/>
  94. </xsl:call-template>
  95. </xsl:variable>
  96. <!--<xsl:if test="number($bcgtht:debug) &gt; 3">-->
  97. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.applying_analys.xml"/></xsl:message>
  98. <xsl:result-document href="{$bcgtht.applying_analys.xml}.{@fid}">
  99. <xsl:copy-of select="$bcgtht:applying_analys"/>
  100. </xsl:result-document>
  101. <!--</xsl:if>-->
  102. <xsl:if test="number($bcgtht:debug) &gt; 3">
  103. <xsl:message>#129 number($bcgtht:debug = <xsl:value-of select="$bcgtht:debug"/>) &gt; 3 bcgtht:repository = <xsl:value-of select="$bcgtht:repository"/>; </xsl:message>
  104. <xsl:variable name="bcgtht:clousure">
  105. <xsl:apply-templates mode="bcgtht:clousure" select="."/>
  106. </xsl:variable>
  107. <xsl:variable name="yed:graphml">
  108. <xsl:apply-templates mode="yed:graphml" select="$bcgtht:clousure"/>
  109. </xsl:variable>
  110. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.clousure.xml"/></xsl:message>
  111. <xsl:result-document href="{$bcgtht.clousure.xml}">
  112. <xsl:copy-of select="$bcgtht:clousure"/>
  113. </xsl:result-document>
  114. <xsl:variable name="bcgtht:clousure.analys">
  115. <xsl:call-template name="bcgtht:clousure.analys">
  116. <xsl:with-param name="bcgtht:clousure" select="$bcgtht:clousure"/>
  117. </xsl:call-template>
  118. </xsl:variable>
  119. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.clousure.analys.xml"/></xsl:message>
  120. <xsl:result-document href="{$bcgtht.clousure.analys.xml}">
  121. <xsl:copy-of select="$bcgtht:clousure.analys"/>
  122. </xsl:result-document>
  123. <xsl:variable name="yed:analys.graphml">
  124. <xsl:apply-templates mode="yed:graphml" select="$bcgtht:clousure.analys"/>
  125. </xsl:variable>
  126. <xsl:variable name="bcgtht:clousure.analys.merge">
  127. <xsl:apply-templates mode="bcgtht:clousure.analys.merge" select="$bcgtht:clousure.analys"/>
  128. </xsl:variable>
  129. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.applying_analys.merge.xml"/></xsl:message>
  130. <xsl:result-document href="{$bcgtht.applying_analys.merge.xml}">
  131. <xsl:copy-of select="$bcgtht:clousure.analys.merge"/>
  132. </xsl:result-document>
  133. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.yed.analys.graphml"/></xsl:message>
  134. <xsl:result-document href="{$bcgtht.yed.analys.graphml}">
  135. <xsl:copy-of select="$yed:analys.graphml"/>
  136. </xsl:result-document>
  137. <xsl:variable name="bcgtht:clousure.analys.merge.apply">
  138. <xsl:apply-templates mode="bcgtht:clousure.analys.merge.apply" select="$bcgtht:clousure.analys.merge"/>
  139. </xsl:variable>
  140. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.applying_analys.merge.apply.xml"/></xsl:message>
  141. <xsl:result-document href="{$bcgtht.applying_analys.merge.apply.xml}">
  142. <xsl:copy-of select="$bcgtht:clousure.analys.merge.apply"/>
  143. </xsl:result-document>
  144. <xsl:variable name="yed:clousure.analys.merge.apply.graphml">
  145. <xsl:apply-templates mode="yed:graphml" select="$bcgtht:clousure.analys.merge.apply"/>
  146. </xsl:variable>
  147. <xsl:variable name="bcgtht:clousure.analys.merge.apply.rename">
  148. <xsl:apply-templates mode="bcgtht:clousure.analys.merge.apply.rename" select="$bcgtht:clousure.analys.merge.apply"/>
  149. </xsl:variable>
  150. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.applying_analys.merge.apply.rename.xml"/></xsl:message>
  151. <xsl:result-document href="{$bcgtht.applying_analys.merge.apply.rename.xml}">
  152. <xsl:copy-of select="$bcgtht:clousure.analys.merge.apply.rename"/>
  153. </xsl:result-document>
  154. <xsl:call-template name="p5suis:say_to_queue.copy_file.xml">
  155. <xsl:with-param name="filename" select="'bcgtht.applying_analys.merge.apply.rename.xml'"/>
  156. <xsl:with-param name="context" select="$bcgtht:clousure.analys.merge.apply.rename"/>
  157. </xsl:call-template>
  158. <xsl:variable name="bcgtht:clousure.analys.merge.apply.rename.analys">
  159. <xsl:apply-templates mode="bcgtht:clousure.analys.merge.apply.rename.analys" select="$bcgtht:clousure.analys.merge.apply.rename"/>
  160. </xsl:variable>
  161. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.applying_analys.merge.apply.rename.analys.xml"/></xsl:message>
  162. <xsl:result-document href="{$bcgtht.applying_analys.merge.apply.rename.analys.xml}">
  163. <xsl:copy-of select="$bcgtht:clousure.analys.merge.apply.rename.analys"/>
  164. </xsl:result-document>
  165. <xsl:variable name="yed:clousure.analys.merge.apply.rename.analys.graphml">
  166. <xsl:apply-templates mode="yed:graphml" select="$bcgtht:clousure.analys.merge.apply.rename.analys"/>
  167. </xsl:variable>
  168. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.yed.clousure.analys.merge.apply.rename.analys.graphml"/></xsl:message>
  169. <xsl:result-document href="{$bcgtht.yed.clousure.analys.merge.apply.rename.analys.graphml}">
  170. <xsl:copy-of select="$yed:clousure.analys.merge.apply.rename.analys.graphml"/>
  171. </xsl:result-document>
  172. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.yed.clousure.analys.merge.apply.graphml"/></xsl:message>
  173. <xsl:result-document href="{$bcgtht.yed.clousure.analys.merge.apply.graphml}">
  174. <xsl:copy-of select="$yed:clousure.analys.merge.apply.graphml"/>
  175. </xsl:result-document>
  176. <xsl:variable name="bcgtht:clousure.analys.debug">
  177. <xsl:apply-templates mode="bcgtht:clousure.analys.debug" select="$bcgtht:clousure.analys"/>
  178. </xsl:variable>
  179. <xsl:message> result-document href="<xsl:value-of select="$bcgtht.applying_analys.debug.xml"/></xsl:message>
  180. <xsl:result-document href="{$bcgtht.applying_analys.debug.xml}">
  181. <xsl:copy-of select="$bcgtht:clousure.analys.debug"/>
  182. </xsl:result-document>
  183. </xsl:if>
  184. <!--<xsl:copy-of select="$applying_analys" copy-namespaces="no"/>-->
  185. <!--<bocian-graph-2-html.preprocess.applying_analys>-->
  186. <xsl:apply-templates mode="bcgtht:applying_analys" select="$bcgtht:applying_analys"/>
  187. <!--</bocian-graph-2-html.preprocess.applying_analys>-->
  188. </xsl:template>
  189. <xsl:template mode="bocian-graph-2-html.preprocess.from_analys" match="*">
  190. <xsl:copy copy-namespaces="no">
  191. <xsl:copy-of select="@*"/>
  192. <xsl:apply-templates mode="#current"/>
  193. </xsl:copy>
  194. </xsl:template>
  195. <xsl:function name="system_cache__dita:bocian.cached">
  196. <system_cache__dita:bocian.cached>
  197. <fid/>
  198. </system_cache__dita:bocian.cached>
  199. </xsl:function>
  200. <xsl:function name="system_cache__dita:bocian.cached">
  201. <xsl:param name="system_cache__dita:bocian.cached"/>
  202. <xsl:param name="fid"/>
  203. <xsl:choose>
  204. <xsl:when test="$system_cache__dita:bocian.cached//fid[@fid=$fid]">
  205. <xsl:message>#158 cached node <xsl:value-of select="$fid"/> - bypasiing </xsl:message>
  206. </xsl:when>
  207. <xsl:otherwise>
  208. <system_cache__dita:bocian.cached>
  209. <xsl:for-each select="$system_cache__dita:bocian.cached//fid">
  210. <xsl:copy-of select="." copy-namespaces="no"/>
  211. </xsl:for-each>
  212. </system_cache__dita:bocian.cached>
  213. </xsl:otherwise>
  214. </xsl:choose>
  215. </xsl:function>
  216. <!--<xsl:template name="bocian-graph-2-html.applying_analys">
  217. <xsl:param name="dst_fid.not.following.count" required="yes"/>
  218. <xsl:param name="dst_fid.following.count" required="yes"/>
  219. <xsl:param name="src_fid_analys" required="yes"/>
  220. <xsl:param name="src_fid" required="yes"/>
  221. <xsl:param name="src_fid.pos" />
  222. <xsl:param name="dst_fid.not.following.pos" select="1"/>
  223. <xsl:param name="dst_fid.following.pos" select="1"/>
  224. <xsl:param name="last_call"/>
  225. <xsl:param name="last_call.pos" />
  226. <xsl:param name="last_call.pos.count" />
  227. <bocian-graph-2-html.applying_analys>
  228. <xsl:choose>
  229. <xsl:when test="not($dst_fid.not.following.count &gt; 0) and not($dst_fid.following.count &gt; 0)">
  230. <TODO>not($dst_fid.not.following.count &gt; 0) and not($dst_fid.following.count &gt; 0)</TODO>
  231. </xsl:when>
  232. <xsl:otherwise>
  233. <xsl:choose>
  234. <xsl:when test="$dst_fid.not.following.pos &lt; $dst_fid.not.following.count and not($last_call='not.following')">
  235. <xsl:for-each select="$src_fid/dst_fid[not(following-sibling)][$dst_fid.not.following.pos]">
  236. <dst_fid_not_following-sibling>
  237. <xsl:copy copy-namespaces="no">
  238. <xsl:copy-of select="@*"/>
  239. </xsl:copy>
  240. </dst_fid_not_following-sibling>
  241. <xsl:call-template name="bocian-graph-2-html.applying_analys">
  242. <xsl:with-param name="src_fid_analys" select="$src_fid_analys"/>
  243. <xsl:with-param name="dst_fid.not.following.count" select="$dst_fid.not.following.count"/>
  244. <xsl:with-param name="dst_fid.following.count" select="$dst_fid.following.count"/>
  245. <xsl:with-param name="src_fid.pos" select="$src_fid.pos"/>
  246. <xsl:with-param name="src_fid" select="$src_fid"/>
  247. <xsl:with-param name="dst_fid.not.following.pos" select="$dst_fid.not.following.pos"/>
  248. <xsl:with-param name="dst_fid.following.pos" select="$dst_fid.following.pos"/>
  249. <xsl:with-param name="last_call" select="'not.following'"/>
  250. <xsl:with-param name="last_call.pos" select="1"/>
  251. <xsl:with-param name="last_call.pos.count" select="count($src_fid/dst_fid[not(following-sibling)][$dst_fid.not.following.pos]/*)"/>
  252. </xsl:call-template>
  253. </xsl:for-each>
  254. </xsl:when>
  255. <!-\-<xsl:when test="$dst_fid.following.pos &lt; $dst_fid.following.count and $last_call = 'not.following'">
  256. <xsl:for-each select="$src_fid/dst_fid[following-sibling][$dst_fid.following.pos]/*">
  257. <dst_fid_not_following-sibling>
  258. <xsl:copy copy-namespaces="no">
  259. <xsl:copy-of select="@*"/>
  260. </xsl:copy>
  261. </dst_fid_not_following-sibling>
  262. <xsl:call-template name="bocian-graph-2-html.applying_analys">
  263. <xsl:with-param name="src_fid_analys" select="$src_fid_analys"/>
  264. <xsl:with-param name="dst_fid.not.following.count" select="$dst_fid.not.following.count"/>
  265. <xsl:with-param name="dst_fid.following.count" select="$dst_fid.following.count"/>
  266. <xsl:with-param name="src_fid.pos" select="$src_fid.pos"/>
  267. <xsl:with-param name="src_fid" select="$src_fid"/>
  268. <xsl:with-param name="dst_fid.not.following.pos" select="$dst_fid.not.following.pos"/>
  269. <xsl:with-param name="dst_fid.following.pos" select="$dst_fid.following.pos + 1"/>
  270. <xsl:with-param name="last_call" select="'not.following'"/>
  271. </xsl:call-template>
  272. </xsl:for-each>
  273. </xsl:when>-\->
  274. <!-\-<xsl:when test="$dst_fid.not.following.pos &lt; $dst_fid.not.following.count and $last_call='not.following'">
  275. </xsl:when>-\->
  276. </xsl:choose>
  277. </xsl:otherwise>
  278. </xsl:choose>
  279. </bocian-graph-2-html.applying_analys>
  280. </xsl:template>-->
  281. <xsl:template mode="bocian-graph-2-html.preprocess.child" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[@fid]">
  282. <xsl:variable name="fileindex" select="@fid"/>
  283. <!--example call module <xsl:for-each select="$dita//simpletable">
  284. <xsl:apply-templates select="." mode="system_cache__dita:graph__write_dita_preprocess">
  285. <xsl:with-param name="fileindex" select="@id"/>
  286. </xsl:apply-templates>
  287. </xsl:for-each> -->
  288. <!-- example xsl from other module
  289. <xsl:result-document href="{$ditadir}/graph_to_image/{$fileindex}.gnuplot" omit-xml-declaration="yes">
  290. set terminal pngcairo font "arial,6" size 800,600
  291. set nokey
  292. set output '<xsl:value-of select="$fileindex"/>.png'
  293. set boxwidth 0.75
  294. set style fill solid
  295. set title "Wykres"
  296. plot "<xsl:value-of select="$fileindex"/>.gnuplot.dat" using 2:xtic(1) with boxes
  297. </xsl:result-document>
  298. -->
  299. <!--<xsl:result-document href="{$ditadir}/graph_to_image/{$fileindex}.gnuplot.dat" omit-xml-declaration="yes">
  300. <!-\-<system_cache__appinfo:graph_to_image.population.dat>-\->
  301. <!-\-<xsl:attribute name="local-name" select="local-name()"/>-\->
  302. <xsl:variable name="cols" select="count(strow[ position() = 1]/stentry)"/>
  303. <xsl:variable name="strow" select="(strow|sthead)"/>
  304. <xsl:message>#69 graph cols <xsl:value-of select="$cols"/></xsl:message>
  305. <xsl:for-each select="1 to $cols">
  306. <xsl:for-each select="$strow/stentry[ position() = current()]">
  307. <xsl:choose>
  308. <xsl:when test="position() = 1">
  309. <!-\-<xsl:value-of select="system_cache__appinfo:truncate_special_and_do_uppercase(.)"/><xsl:text>&#09;</xsl:text>-\->
  310. <xsl:value-of select="string(.)"/><xsl:text>&#09;</xsl:text>
  311. </xsl:when>
  312. <xsl:otherwise>
  313. <xsl:value-of select="string(.)"/><xsl:text>&#09;</xsl:text>
  314. </xsl:otherwise>
  315. </xsl:choose>
  316. </xsl:for-each>
  317. <xsl:text>&#10;</xsl:text>
  318. </xsl:for-each>
  319. <!-\-</system_cache__appinfo:graph_to_image.population.dat>-\->
  320. <!-\-<xsl:apply-templates mode="preprocess_gml_geometry_image" select="."/>-\->
  321. </xsl:result-document>-->
  322. <gml:featureMember >
  323. <xsl:element name="default_db__x3A__{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/local-name()}:{BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/local-name()}">
  324. <xsl:attribute name="p5:primaryKey" select="p5:primaryKey(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/@fid)"/>
  325. <xsl:copy-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1]/@fid"/>
  326. <!--<default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY fid="{@fid}">-->
  327. <!--<xsl:attribute name="p5:primaryKey" select="p5:primaryKey(@fid)"/>-->
  328. <xsl:apply-templates mode="bocian-graph-2-html.preprocess.names" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]"/>
  329. <!--<default_db__x3A__BI_audit_ENERGA_PRACOWNICY:ID>12</default_db__x3A__BI_audit_ENERGA_PRACOWNICY:ID>
  330. <default_db__x3A__BI_audit_ENERGA_PRACOWNICY:imiona>Robert</default_db__x3A__BI_audit_ENERGA_PRACOWNICY:imiona>
  331. <default_db__x3A__BI_audit_ENERGA_PRACOWNICY:nazwisko>Szaj</default_db__x3A__BI_audit_ENERGA_PRACOWNICY:nazwisko>-->
  332. <xsl:variable name="pos.last" select="count(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)"/>
  333. <xsl:element name="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
  334. <xsl:copy-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/@fid"/>
  335. <xsl:attribute name="p5:primaryKey" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/p5:primaryKey(@fid)"/>
  336. <default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object:ID><xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/p5:primaryKey(@fid)"/></default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object:ID>
  337. <xsl:comment>#109 parent once </xsl:comment>
  338. <xsl:element name="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
  339. <xsl:copy-of select="@fid"/>
  340. <xsl:attribute name="p5:primaryKey" select="p5:primaryKey(@fid)"/>
  341. <default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row:ID><xsl:value-of select="p5:primaryKey(@fid)"/></default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row:ID>
  342. <xsl:comment>#109 parent root </xsl:comment>
  343. <xsl:variable name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row" select="."/>
  344. <xsl:for-each select="0 to ( $pos.last - 1 )">
  345. <xsl:comment>#133 1 to <xsl:value-of select="$pos.last"/> = <xsl:value-of select="$pos.last - current()"/></xsl:comment>
  346. <xsl:for-each select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ ($pos.last - current()) ]">
  347. <xsl:apply-templates mode="bocian-graph-2-html.preprocess.row_objects" select="." >
  348. <xsl:with-param name="pos" select="position()"/>
  349. <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" select="."/>
  350. </xsl:apply-templates>
  351. </xsl:for-each>
  352. </xsl:for-each>
  353. <!--<xsl:apply-templates mode="bocian-graph-2-html.preprocess.row_objects" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]" >
  354. <xsl:with-param name="pos" select="2"/>
  355. <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" select="."/>
  356. </xsl:apply-templates>-->
  357. </xsl:element>
  358. </xsl:element>
  359. <!--<xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ not(position()=1)]" >-->
  360. <!--<xsl:call-template name="bocian-graph-2-html.preprocess.row_objects" />-->
  361. <!--</xsl:for-each>-->
  362. <!-- mode="bocian-graph-2-html.preprocess.row_objects" -->
  363. <!--</default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY>-->
  364. </xsl:element>
  365. </gml:featureMember>
  366. </xsl:template>
  367. <xsl:template name="bocian-graph-2-html.preprocess.row_objects">
  368. <bocian-graph-2-html.preprocess.row_objects>
  369. <xsl:for-each select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ not(position()=1)]" >
  370. <OBJ>
  371. </OBJ>
  372. <xsl:apply-templates mode="bocian-graph-2-html.preprocess.row_objects" select="."/>
  373. </xsl:for-each>
  374. </bocian-graph-2-html.preprocess.row_objects>
  375. </xsl:template>
  376. <xsl:template mode="bocian-graph-2-html.preprocess bocian-graph-2-html.preprocess.child bocian-graph-2-html.preprocess.applying_analys" match="text()|comment()|*"/>
  377. <xsl:function name="system_cache__dita:bocian.add.elements">
  378. <xsl:param name="local-name"/>
  379. <xsl:choose>
  380. <xsl:when test="contains($local-name,'default_db__x3A__')">
  381. <xsl:value-of select="$local-name"/>
  382. </xsl:when>
  383. <xsl:otherwise>
  384. <xsl:value-of select="concat('default_db__x3A__',$local-name,':',$local-name)"/>
  385. </xsl:otherwise>
  386. </xsl:choose>
  387. </xsl:function>
  388. <xsl:template mode="bocian-graph-2-html.preprocess.names" match="*[* ]">
  389. <xsl:param name="addelement"/>
  390. <xsl:choose>
  391. <xsl:when test="$addelement">
  392. <xsl:comment>#512 not bypassed <xsl:value-of select="local-name()"/></xsl:comment>
  393. <xsl:message>#512 not bypassed <xsl:value-of select="local-name()"/></xsl:message>
  394. <xsl:choose>
  395. <xsl:when test="contains(name(),'default_db__x3A__')">
  396. <xsl:copy copy-namespaces="no">
  397. <xsl:copy-of select="@fid"/>
  398. <xsl:attribute name="p5:primaryKey" select="p5:primaryKey(@fid)"/>
  399. <xsl:apply-templates mode="#current">
  400. <xsl:with-param name="addelement" select="$addelement"/>
  401. </xsl:apply-templates>
  402. </xsl:copy>
  403. </xsl:when>
  404. <xsl:otherwise>
  405. <xsl:element name="default_db__x3A__{local-name()}:{local-name()}">
  406. <xsl:copy-of select="@fid"/>
  407. <xsl:attribute name="p5:primaryKey" select="p5:primaryKey(@fid)"/>
  408. <xsl:apply-templates mode="#current">
  409. <xsl:with-param name="addelement" select="$addelement"/>
  410. </xsl:apply-templates>
  411. </xsl:element>
  412. </xsl:otherwise>
  413. </xsl:choose>
  414. </xsl:when>
  415. <xsl:otherwise>
  416. <xsl:comment>#512 bypassed <xsl:value-of select="local-name()"/></xsl:comment>
  417. <xsl:message>#512 bypassed <xsl:value-of select="local-name()"/></xsl:message>
  418. <xsl:apply-templates mode="#current"/>
  419. </xsl:otherwise>
  420. </xsl:choose>
  421. </xsl:template>
  422. <xsl:function name="system_cache__dita:bocian.bypass.elements">
  423. <xsl:param name="element"/>
  424. <xsl:choose>
  425. <xsl:when test="$element = 'relation_from'"/>
  426. <xsl:when test="$element = 'BI_audit_MSIG_person'"/>
  427. <xsl:when test="$element = 'BI_audit_KRS_person'"/>
  428. <xsl:when test="$element = 'BI_audit_MSIG_company'"/>
  429. <xsl:when test="$element = 'BI_audit_KRS_company'"/>
  430. <xsl:when test="$element = 'BI_audit_taxpayer'"/>
  431. <xsl:when test="$element = 'TERYT_adresy'"/>
  432. <xsl:when test="$element = 'BI_audit_MSIG_address'"/>
  433. <xsl:otherwise><xsl:value-of select="true()"/></xsl:otherwise>
  434. </xsl:choose>
  435. </xsl:function>
  436. <xsl:template match="relation_from|BI_audit_MSIG_person[preceding-sibling::* and following-sibling::*][preceding-sibling::* and following-sibling::*]|BI_audit_KRS_person[ preceding-sibling::* and following-sibling::* ]|BI_audit_MSIG_company|BI_audit_KRS_company|BI_audit_taxpayer|TERYT_adresy|BI_audit_MSIG_address" mode="bocian-graph-2-html.preprocess.names" priority="5"/>
  437. <xsl:template mode="bocian-graph-2-html.preprocess.names" match="ID|imiona|nazwisko|Pelna_nazwa_kontrahenta|nazwa"> <!-- |*[not(*)] -->
  438. <xsl:element name="default_db__x3A__{parent::*/local-name()}:{local-name()}">
  439. <xsl:if test="local-name()='nazwa'"><xsl:value-of select="parent::*/system_cache__dita:localname.translate(local-name())"/><xsl:text> </xsl:text></xsl:if><xsl:value-of select="text()"/>
  440. <!--<xsl:if test="local-name()='ID'"><xsl:comment>#201 parent/name=<xsl:value-of select="parent::*/name()"/></xsl:comment></xsl:if>-->
  441. </xsl:element>
  442. </xsl:template>
  443. <xsl:template mode="bocian-graph-2-html.preprocess.names" match="text()|comment()"/>
  444. <xsl:template mode="bocian-graph-2-html.preprocess.row_objects" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
  445. <xsl:param name="pos" required="yes"/>
  446. <xsl:param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" required="yes"/>
  447. <!--<bocian-graph-2-html.preprocess.row_objects pos="{$pos}" cnt="{count($BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object//*)}">-->
  448. <xsl:variable name="test_child">
  449. <xsl:apply-templates mode="bocian-graph-2-html.preprocess.names" >
  450. <xsl:with-param name="addelement" select="true()"/>
  451. </xsl:apply-templates>
  452. </xsl:variable>
  453. <xsl:choose>
  454. <xsl:when test="$test_child//*">
  455. <default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object fid="{@fid}" >
  456. <xsl:namespace name="default_db__x3A__{*[1]/local-name()}">https://biuro.biall-net.pl/wfs/default_db/<xsl:value-of select="*[1]/local-name()"/></xsl:namespace>
  457. <xsl:attribute name="p5:primaryKey" select="p5:primaryKey(@fid)"/>
  458. <default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object:ID><xsl:value-of select="p5:primaryKey(@fid)"/></default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object:ID>
  459. <!--<xsl:element name="{*[1]/name()}"></xsl:element>-->
  460. <xsl:apply-templates mode="bocian-graph-2-html.preprocess.names" >
  461. <xsl:with-param name="addelement" select="true()"/>
  462. </xsl:apply-templates>
  463. <!--<xsl:apply-templates mode="#current" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ $pos + 1]" >
  464. <xsl:with-param name="pos" select="$pos + 1"/>
  465. <xsl:with-param name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" select="$BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"/>
  466. </xsl:apply-templates>-->
  467. </default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object>
  468. </xsl:when>
  469. </xsl:choose>
  470. <!--</bocian-graph-2-html.preprocess.row_objects>-->
  471. </xsl:template>
  472. <xsl:template mode="bocian-graph-2-html.preprocess" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
  473. <xsl:message terminate="yes">#73 match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" without @fid !</xsl:message>
  474. </xsl:template>
  475. <xsl:template mode="system_cache__dita:bocian-graph-2-html.write" match="*">
  476. </xsl:template>
  477. <xsl:template mode="system_cache__dita:bocian-graph-2-html.read" match="*">
  478. <xsl:param name="fileindex" required="yes"/> <!-- ex. 3161_IN7_MK_BAZA_DYSTRYBUCJI - is related dir in dita dir with images -->
  479. <xsl:param name="width" select="500"/>
  480. <xsl:param name="map_or_indita" select="'map'"/>
  481. <!-- example usage from other module
  482. <p> Ilości powiązań <note>Uwaga, w przypadku odnalezionych kilku tras do tego samego kontrahenta pokazywana jest jedna trasa (wykres nie zawiera tego ograniczenia)</note>
  483. <xsl:copy-of select="$simpletable"/>
  484. <xsl:apply-templates mode="system_cache__dita:graph__read" select="$simpletable">
  485. <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
  486. <xsl:with-param name="width" select="500"/>
  487. </xsl:apply-templates>
  488. </p>
  489. -->
  490. <xsl:choose>
  491. <xsl:when test="doc-available(concat($ditadir,'/bocian-graph-2-html/',$fileindex,'.png.xml'))">
  492. <!--<xsl:apply-templates mode="system_cache__dita:graph_to_image" select="doc(concat($ditadir,'/graph_to_image/',$fileindex,'.png.xml'))">
  493. <xsl:with-param name="fileindex" select="$fileindex"/>
  494. <xsl:with-param name="width" select="$width"/>
  495. </xsl:apply-templates>-->
  496. <xsl:choose>
  497. <xsl:when test="$map_or_indita='topic'">
  498. <image href="../bocian-graph-2-html/{$fileindex}.png" width="{$width}"/>
  499. </xsl:when>
  500. <xsl:otherwise>
  501. <image href="bocian-graph-2-html/{$fileindex}.png" width="{$width}"/>
  502. </xsl:otherwise>
  503. </xsl:choose>
  504. </xsl:when>
  505. <xsl:otherwise>
  506. <xsl:comment>#190 doc not aviable <xsl:value-of select="concat($ditadir,'/bocian-graph-2-html/',$fileindex,'.png.xml')"/></xsl:comment>
  507. <xsl:message>#190 doc not aviable <xsl:value-of select="concat($ditadir,'/bocian-graph-2-html/',$fileindex,'.png.xml')"/></xsl:message>
  508. </xsl:otherwise>
  509. </xsl:choose>
  510. <xsl:comment>#180 todo mode="system_cache__dita:bocian-graph-2-html.read" match="*" name=<xsl:value-of select="name()"/></xsl:comment>
  511. </xsl:template>
  512. <xsl:template mode="system_cache__dita:bocian-graph-2-html.read" match="bocian-graph-2-html">
  513. <!-- integration in echoxml file="${postprocess_modules.xml} -->
  514. <xsl:param name="fileindex" required="yes"/> <!-- ex. 3161_IN7_MK_BAZA_DYSTRYBUCJI - is related dir in dita dir with images -->
  515. <xsl:param name="width" select="500"/>
  516. <xsl:comment>#85 todo mode="system_cache__dita:bocian-graph-2-html" match="bocian-graph-2-html"</xsl:comment>
  517. <!--<xsl:apply-templates mode="system_cache__appinfo:images">
  518. <xsl:with-param name="fileindex" select="$fileindex"/>
  519. <xsl:with-param name="width" select="$width"/>
  520. </xsl:apply-templates>-->
  521. </xsl:template>
  522. </xsl:stylesheet>