|
|
@@ -0,0 +1,135 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
+ xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
|
|
|
+ xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
|
|
|
+ xmlns:p5RvJiE="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/render-vis-js-in-electron--v0.0.1/p5RvJiE.xsd"
|
|
|
+ xmlns:p5="https://biuro.biall-net.pl/wfs"
|
|
|
+ xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
+ xmlns:wps="http://www.opengis.net/wps/1.0.0"
|
|
|
+ xmlns:ows="http://www.opengis.net/ows/1.1"
|
|
|
+ xmlns:ogc="http://www.opengis.net/ogc"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ exclude-result-prefixes="xs"
|
|
|
+ version="2.0">
|
|
|
+
|
|
|
+
|
|
|
+ <!--{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/render-vis-js-in-electron-\-v0.0.1/p5RvJiE.xsd}system_cache__dita.preprocess.root-->
|
|
|
+
|
|
|
+ <xsl:output indent="yes"/>
|
|
|
+ <xsl:strip-space elements="*"/>
|
|
|
+
|
|
|
+ <xsl:param name="ditadir"/>
|
|
|
+ <xsl:template mode="p5RvJiE:system_cache__dita.write" match="*">
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template mode="p5RvJiE:system_cache__dita.preprocess.root" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA[BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row]">
|
|
|
+ <xsl:message>#97-97 bypas .root n/<xsl:value-of select="name()"/>; </xsl:message>
|
|
|
+ <p5:reportGraph>
|
|
|
+ <xsl:call-template name="p5RvJiE:system_cache__dita.nodes"/>
|
|
|
+ <xsl:call-template name="p5RvJiE:system_cache__dita.edges"/>
|
|
|
+ </p5:reportGraph>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template name="p5RvJiE:system_cache__dita.nodes">
|
|
|
+ <p5:nodes>
|
|
|
+ <xsl:for-each-group select=".//*" group-by="@fid">
|
|
|
+ <p5:node objectName="{local-name()}" primaryKey="{substring-after(@fid,'.')}" label="{local-name()} {ID}">
|
|
|
+
|
|
|
+ </p5:node>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </p5:nodes>
|
|
|
+ </xsl:template>
|
|
|
+ <xsl:template name="p5RvJiE:system_cache__dita.edges">
|
|
|
+ <p5:edges>
|
|
|
+ <xsl:for-each-group select="descendant-or-self::*[*[@fid][position()>1]]" group-by="@fid">
|
|
|
+ <xsl:comment>#48 edges for <xsl:value-of select="@fid"/>
|
|
|
+ c/n=<xsl:value-of select="current-group()/name()"/> ::fs/n<xsl:value-of select="current-group()/following-sibling::*[@fid][1]/name()"/>
|
|
|
+ </xsl:comment>
|
|
|
+ <!--<TEST>
|
|
|
+ <xsl:copy-of select="current-group()"/>
|
|
|
+ </TEST>-->
|
|
|
+ <xsl:variable name="context" select="current-group()"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="current-group()/following-sibling::*[@fid]">
|
|
|
+ <xsl:for-each select="current-group()/following-sibling::*[@fid]">
|
|
|
+ <p5:edge source="{$context/@fid}" target="{@fid}" pathId="{substring-after($context/@fid,'.')}{substring-after(@fid,'.')}"/>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </p5:edges>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template mode="p5RvJiE:system_cache__dita.preprocess.child" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[@fid]">
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template mode="p5RvJiE:system_cache__dita.preprocess" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA">
|
|
|
+ <xsl:message>#119 running match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" - intended for all raport </xsl:message>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template mode="p5RvJiE:system_cache__dita.preprocess" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object">
|
|
|
+ <xsl:message terminate="yes">#73 match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object" without @fid !</xsl:message>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template mode="p5RvJiE:system_cache__dita.read" match="p5RvJiE">
|
|
|
+ <!-- integration in echoxml file="${postprocess_modules.xml} -->
|
|
|
+ <xsl:param name="fileindex" required="yes"/> <!-- ex. 3161_IN7_MK_BAZA_DYSTRYBUCJI - is related dir in dita dir with images -->
|
|
|
+ <xsl:param name="width" select="500"/>
|
|
|
+ <xsl:comment>#85 todo mode="system_cache__dita:bocian-graph-2-html" match="bocian-graph-2-html"</xsl:comment>
|
|
|
+
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template mode="p5RvJiE:system_cache__dita.read" match="*">
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template mode="p5RvJiE:system_cache__dita.read" match="*">
|
|
|
+ <xsl:param name="fileindex" required="yes"/> <!-- ex. 3161_IN7_MK_BAZA_DYSTRYBUCJI - is related dir in dita dir with images -->
|
|
|
+ <xsl:param name="width" select="500"/>
|
|
|
+ <xsl:param name="map_or_indita" select="'map'"/>
|
|
|
+ <!-- example usage from other module
|
|
|
+
|
|
|
+ <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>
|
|
|
+
|
|
|
+ <xsl:copy-of select="$simpletable"/>
|
|
|
+ <xsl:apply-templates mode="system_cache__dita:graph__read" select="$simpletable">
|
|
|
+ <xsl:with-param name="fileindex" select="$simpletable/simpletable/@id"/>
|
|
|
+ <xsl:with-param name="width" select="500"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ -->
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="doc-available(concat($ditadir,'/p5RvJiE/',$fileindex,'.png.xml'))">
|
|
|
+ <!--<xsl:apply-templates mode="system_cache__dita:graph_to_image" select="doc(concat($ditadir,'/graph_to_image/',$fileindex,'.png.xml'))">
|
|
|
+ <xsl:with-param name="fileindex" select="$fileindex"/>
|
|
|
+ <xsl:with-param name="width" select="$width"/>
|
|
|
+ </xsl:apply-templates>-->
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$map_or_indita='topic'">
|
|
|
+ <image href="../p5RvJiE/{$fileindex}.png" width="{$width}"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <image href="p5RvJiE/{$fileindex}.png" width="{$width}"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:comment>#190 doc not aviable <xsl:value-of select="concat($ditadir,'/p5RvJiE/',$fileindex,'.png.xml')"/></xsl:comment>
|
|
|
+ <xsl:message>#190 doc not aviable <xsl:value-of select="concat($ditadir,'/p5RvJiE/',$fileindex,'.png.xml')"/></xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ <xsl:comment>#180 todo mode="p5RvJiE:read" match="*" name=<xsl:value-of select="name()"/></xsl:comment>
|
|
|
+
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+</xsl:stylesheet>
|