|
|
@@ -5,6 +5,9 @@
|
|
|
xmlns:wfs="http://www.opengis.net/wfs"
|
|
|
xmlns:gml="http://www.opengis.net/gml"
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
+ xmlns:get_wfs_recurse_xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/get_wfs_recurse_xsl.xsd"
|
|
|
+ xmlns:p5="https://biuro.biall-net.pl/wfs"
|
|
|
+ xmlns:grapht="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph_tree/graph_tree.xsd"
|
|
|
xmlns:y="http://www.yworks.com/xml/graphml">
|
|
|
<xsl:output method="xml" indent="yes"/>
|
|
|
|
|
|
@@ -16,8 +19,10 @@
|
|
|
<xsl:param name="graph_title" select="'Arkadiusz Binder/RIP Graficzna prezentacja wybranych par raportu dla podanych KRS 2017-08-09'"/>
|
|
|
<xsl:param name="graph_desc" select="'Uwaga - limit 10 umow'"/>
|
|
|
|
|
|
- <xsl:param name="bypass_nodes_string" select="'(.*BI_audit_MSIG_name.*)|(.*BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.*)'"/>
|
|
|
- <xsl:param name="not_bypass_nodes_string" select="'xxxxxxxBI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object'"/>
|
|
|
+ <xsl:param name="bypass_nodes_string" select="'(.*XXXXBI_audit_MSIG_nameXXXX.*)|(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row)|(.*taxpayer.*)'"/>
|
|
|
+ <xsl:param name="not_bypass_nodes_string" select="'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object'"/>
|
|
|
+ <xsl:param name="debug" select="0"/>
|
|
|
+
|
|
|
|
|
|
<xsl:variable name="colors">
|
|
|
<colors>
|
|
|
@@ -52,16 +57,20 @@
|
|
|
|
|
|
<object_hex pos="9">#FFAAAA</object_hex>
|
|
|
|
|
|
-
|
|
|
+ <dashed>
|
|
|
+ <dash pos="0">dashed</dash>
|
|
|
+ <dash pos="1">line</dash>
|
|
|
+ </dashed>
|
|
|
|
|
|
</colors>
|
|
|
- <dashed>
|
|
|
- <dash pos="0">dashed</dash>
|
|
|
- <dash pos="1">line</dash>
|
|
|
- </dashed>
|
|
|
+
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
|
+ <xsl:template match="get_wfs_recurse_xsl:context.PRIMARYKEY|get_wfs_recurse_xsl:nodes" mode="#all"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<xsl:template match="RelatedFeatureRoot" xpath-default-namespace="">
|
|
|
<xsl:message>#63 matched RelatedFeatureRoot</xsl:message>
|
|
|
@@ -78,12 +87,98 @@
|
|
|
|
|
|
|
|
|
<xsl:template match="wfs:FeatureCollection" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:variable name="gml:featureMember">
|
|
|
+ <!--<gml:featureMember>-->
|
|
|
+ <xsl:for-each select="gml:featureMember//*[ substring-before(substring-after(name(),'__x3A__'),':') = local-name() and (* or @xlink:href) ]"> <!-- -->
|
|
|
+ <!--<xsl:message>#135OKOK trasa <xsl:value-of select="position()"/> <xsl:value-of select="@fid"/></xsl:message>-->
|
|
|
+ <xsl:element name="{local-name()}" >
|
|
|
+ <!--<xsl:namespace name="{ substring-before(name(),':')}" select="substring-before(name(),':')"/>-->
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="pos" select="position()"/>
|
|
|
+ <xsl:if test="../@fid"><xsl:attribute name="parent" select="../@fid"/></xsl:if>
|
|
|
+ <xsl:variable name="fid">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="@fid"><xsl:value-of select="@fid"/></xsl:when>
|
|
|
+ <xsl:when test="@xlink:href and @p5:primaryKey">
|
|
|
+ <xsl:value-of select="concat(local-name(),'.',@p5:primaryKey)"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise><xsl:message terminate="yes">#131 missing @fid for element <xsl:value-of select="name()"/>;</xsl:message></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:attribute name="fid" select="$fid"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="( matches($fid,$bypass_nodes_string) or matches($fid,$bypass_nodes_string) ) and ( not(matches($fid,$not_bypass_nodes_string)) and not(matches($fid,$not_bypass_nodes_string)))">
|
|
|
+ <xsl:attribute name="bypass" select="true()"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="count(*[@fid]) >1">
|
|
|
+ <xsl:attribute name="bypass.group.count" select="count(*[@fid])"/>
|
|
|
+ <xsl:attribute name="bypass.group.id" select="replace(@fid,'\.','_')"/>
|
|
|
+ <grapht:group_childs>
|
|
|
+ <xsl:for-each select="*[@fid]">
|
|
|
+ <xsl:copy copy-namespaces="no">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:for-each select="*[not(@fid) and not(@xlink:href) and not(*)]">
|
|
|
+ <xsl:copy copy-namespaces="no">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:copy-of select="text()"/>
|
|
|
+ </xsl:copy>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:copy>
|
|
|
+ </xsl:for-each>
|
|
|
+ </grapht:group_childs>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="../@fid and *[@fid]">
|
|
|
+ <xsl:attribute name="bypass.parent" select="../@fid"/>
|
|
|
+ <xsl:attribute name="bypass.child" select="*[@fid]/@fid"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:attribute name="bypass.not-aviable" select=" true()"/>
|
|
|
+ <xsl:message>#164 bypass not aviable - not parent ../@fid found for @fid=<xsl:value-of select="@fid"/>; or @xlink:href=<xsl:value-of select="@xlink:href"/>;</xsl:message>
|
|
|
+ <xsl:comment>#164 bypass not aviable - not parent ../@fid found for @fid=<xsl:value-of select="@fid"/>; or @xlink:href=<xsl:value-of select="@xlink:href"/>;</xsl:comment>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="( matches(../@fid,$bypass_nodes_string) or matches(../@fid,$bypass_nodes_string) ) and ( not(matches(../@fid,$not_bypass_nodes_string)) and not(matches(../@fid,$not_bypass_nodes_string)))"><!-- detect child if its connects to grouped or bypassed parent -->
|
|
|
+ <xsl:attribute name="bypass.parent" select="'group'"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="count(../*[@fid]) >1">
|
|
|
+ <xsl:attribute name="bypass.parent.group.id" select="replace(../@fid,'\.','_')"/>
|
|
|
+ <xsl:attribute name="bypass.parent.current.id" select="concat( replace(../@fid,'\.','_'),'::', replace(@fid,'\.','_'))"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="../../@fid and ../@fid">
|
|
|
+ <xsl:attribute name="bypass.parent.parent" select="../../@fid"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message>#179 bypass parent not aviable - not parent ../../@fid found for @fid=<xsl:value-of select="@fid"/>; or @xlink:href=<xsl:value-of select="@xlink:href"/>;</xsl:message>
|
|
|
+ <xsl:comment>#179 bypass parent not aviable - not parent ../../@fid found for @fid=<xsl:value-of select="@fid"/>; or @xlink:href=<xsl:value-of select="@xlink:href"/>;</xsl:comment>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
+ <xsl:for-each select="*[ not( substring-before(substring-after(name(),'__x3A__'),':') = local-name() ) ]">
|
|
|
+ <xsl:copy-of select="." copy-namespaces="no"/>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:for-each>
|
|
|
+ <!--</gml:featureMember>-->
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+
|
|
|
<graphml
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xmlns="http://graphml.graphdrawing.org/xmlns"
|
|
|
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
|
|
|
<key id="d0" for="node" yfiles.type="nodegraphics"/>
|
|
|
<key id="d1" for="edge" yfiles.type="edgegraphics"/>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:for-each select="$gml:featureMember//*[grapht:group_childs]">
|
|
|
+ <key attr.name="url" attr.type="string" for="node" id="{replace(@fid,'\.','_')}_4"/>
|
|
|
+ <key attr.name="description" attr.type="string" for="node" id="{replace(@fid,'\.','_')}_5"/>
|
|
|
+ <key for="node" id="{replace(@fid,'\.','_')}_6" yfiles.type="nodegraphics"/>
|
|
|
+ </xsl:for-each>
|
|
|
+
|
|
|
<graph id="G" edgedefault="directed">
|
|
|
|
|
|
|
|
|
@@ -108,40 +203,43 @@
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
- <xsl:variable name="gml:featureMember">
|
|
|
- <!--<gml:featureMember>-->
|
|
|
- <xsl:for-each select="gml:featureMember//*[ substring-before(substring-after(name(),'__x3A__'),':') = local-name() ]">
|
|
|
- <!--<xsl:message>#135OKOK trasa <xsl:value-of select="position()"/> <xsl:value-of select="@fid"/></xsl:message>-->
|
|
|
- <xsl:element name="{local-name()}" >
|
|
|
- <!--<xsl:namespace name="{ substring-before(name(),':')}" select="substring-before(name(),':')"/>-->
|
|
|
- <xsl:copy-of select="@*"/>
|
|
|
- <xsl:attribute name="pos" select="position()"/>
|
|
|
- <xsl:if test="../@fid"><xsl:attribute name="parent" select="../@fid"/></xsl:if>
|
|
|
-
|
|
|
- <xsl:for-each select="*[ not( substring-before(substring-after(name(),'__x3A__'),':') = local-name() ) ]">
|
|
|
- <xsl:copy-of select="." copy-namespaces="no"/>
|
|
|
- </xsl:for-each>
|
|
|
- </xsl:element>
|
|
|
- </xsl:for-each>
|
|
|
- <!--</gml:featureMember>-->
|
|
|
- </xsl:variable>
|
|
|
|
|
|
- <!--<xsl:copy-of select="$gml:featureMember"/>-->
|
|
|
|
|
|
+ <xsl:if test="number($debug)>3">
|
|
|
+ <debug.128>
|
|
|
+ <xsl:copy-of select="$gml:featureMember"/>
|
|
|
+ </debug.128>
|
|
|
+ </xsl:if>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<debug.129>
|
|
|
+ <xsl:copy-of select="gml:featureMember//*[ @xlink:href]"/>
|
|
|
+ </debug.129>-->
|
|
|
+ <!--<debug_129_grouped>
|
|
|
+ <xsl:for-each-group select="$gml:featureMember/*" group-by="@fid">
|
|
|
+ <xsl:copy-of select="."/>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </debug_129_grouped>-->
|
|
|
<xsl:comment>#95 create-nodes-BI dla DEALS</xsl:comment>
|
|
|
|
|
|
|
|
|
- <xsl:for-each select="$gml:featureMember">
|
|
|
+ <!--<xsl:for-each select="$gml:featureMember">
|
|
|
<xsl:apply-templates mode="create-nodes-BI-wfs"/>
|
|
|
- </xsl:for-each>
|
|
|
+ </xsl:for-each>-->
|
|
|
|
|
|
|
|
|
+ <xsl:comment>#139 nizej group by</xsl:comment>
|
|
|
|
|
|
-
|
|
|
- <xsl:for-each-group select="$gml:featureMember" group-by="@fid">
|
|
|
- <xsl:apply-templates mode="create-nodes-BI-wfs" />
|
|
|
+ <xsl:for-each-group select="$gml:featureMember/*" group-by="@fid">
|
|
|
+ <xsl:comment>#142 create-nodes-BI-wfs for @fid=<xsl:value-of select="@fid"/>;</xsl:comment>
|
|
|
+ <xsl:apply-templates mode="create-nodes-BI-wfs" select="." />
|
|
|
</xsl:for-each-group>
|
|
|
-
|
|
|
+ <!-- <xsl:comment>#159 create-nodes-BI-wfs for @xlink:href ;</xsl:comment>
|
|
|
+ <xsl:for-each-group select="$gml:featureMember/*" group-by="@xlink:href">
|
|
|
+ <xsl:comment>#160 create-nodes-BI-wfs for @xlink:href=<xsl:value-of select="@xlink:href"/>;</xsl:comment>
|
|
|
+ <xsl:apply-templates mode="create-nodes-BI-wfs" select="." />
|
|
|
+ </xsl:for-each-group>-->
|
|
|
+
|
|
|
<xsl:variable name="edges">
|
|
|
<edges>
|
|
|
<xsl:for-each select="$gml:featureMember/*">
|
|
|
@@ -152,22 +250,25 @@
|
|
|
<xsl:with-param name="next" select="@parent"/>
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:for-each>
|
|
|
-
|
|
|
-
|
|
|
<!--<xsl:apply-templates mode="create-edges-BI-wfs" select="$gml:featureMember" >
|
|
|
<xsl:with-param name="pos" select="@pos"/>
|
|
|
<xsl:with-param name="next" select="@parent"/>
|
|
|
</xsl:apply-templates>-->
|
|
|
-
|
|
|
</edges>
|
|
|
</xsl:variable>
|
|
|
- <!--<debug.edges>
|
|
|
- <xsl:copy-of select="$edges"></xsl:copy-of>
|
|
|
-
|
|
|
- </debug.edges>-->
|
|
|
+ <xsl:if test="number($debug) > 3">
|
|
|
+ <debug.edges>
|
|
|
+ <xsl:copy-of select="$edges"></xsl:copy-of>
|
|
|
+ </debug.edges>
|
|
|
+ </xsl:if>
|
|
|
<xsl:for-each-group select="$edges/edges/edge" group-by="concat(@target,@source)"> <!-- group-by="@target" -->
|
|
|
+
|
|
|
<edge xmlns="http://graphml.graphdrawing.org/xmlns">
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
+ <xsl:copy-of select="comment()"/>
|
|
|
+ <!--<xsl:copy-of select="../comment()"/>-->
|
|
|
+ <!--<xsl:comment>#173</xsl:comment>-->
|
|
|
+ <!--<xsl:copy-of select="../../comment()"/>-->
|
|
|
<xsl:copy-of select="*"/>
|
|
|
</edge>
|
|
|
</xsl:for-each-group>
|
|
|
@@ -184,6 +285,7 @@
|
|
|
<xsl:template match="BI_audit_ENERGA_RUM_UMOWY" mode="create-edges-BI-rev">
|
|
|
<xsl:param name="pos" required="yes"/>
|
|
|
<xsl:param name="next" required="yes"/>
|
|
|
+ <xsl:comment>#187 match BI_audit_ENERGA_RUM_UMOWY</xsl:comment>
|
|
|
<xsl:element name="edge">
|
|
|
<xsl:attribute name="id">
|
|
|
<xsl:value-of select="generate-id()"/>
|
|
|
@@ -233,6 +335,7 @@
|
|
|
<xsl:attribute name="target">
|
|
|
<xsl:value-of select="$next[1]/concat(name(), '_',@pos)"/>
|
|
|
</xsl:attribute>
|
|
|
+ <xsl:attribute name="debug.237" select="1"/>
|
|
|
<y:GenericEdge configuration="com.yworks.edge.framed">
|
|
|
<xsl:comment>mod:<xsl:value-of select="$pos mod 10"/>/<xsl:value-of select=" position() mod 10"/> /<xsl:value-of select=" position() mod 2"/> </xsl:comment>
|
|
|
<y:LineStyle color="{$colors/colors/color[ @pos = $pos mod 10 ]/text()}" type="{$colors/dashed/dash[ @pos = $pos mod 2 ]/text()}" width="{(position() mod 3) + 1}.0"/>
|
|
|
@@ -262,19 +365,28 @@
|
|
|
<xsl:comment>#256 bypassed edge to clarify powiazania for node/name() <xsl:value-of select="local-name()"/> to <xsl:value-of select="../local-name()"/></xsl:comment>
|
|
|
</xsl:template>
|
|
|
|
|
|
+ <xsl:template match="*[@xlink:href and not(@parent) ]" mode="create-edges-BI-wfs" priority="5" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:message>#272 bypassed edges due to not @parent @xlink:href=<xsl:value-of select="@xlink:href"/>; @fid=<xsl:value-of select="@fid"/>;</xsl:message>
|
|
|
+ <xsl:comment>#272 bypassed edges due to not @parent @xlink:href=<xsl:value-of select="@xlink:href"/>; @fid=<xsl:value-of select="@fid"/>;</xsl:comment>
|
|
|
+ </xsl:template>
|
|
|
|
|
|
-
|
|
|
- <xsl:template match="*[@xlink:href]" mode="create-edges-BI-wfs" priority="5" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:template match="*[@xlink:href and @parent ]" mode="create-edges-BI-wfs" priority="5" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
<!--<default_db__x3A__BI_audit_KRS_person:BI_audit_KRS_person
|
|
|
xlink:href="https://biuro.biall-net.pl/wfs/default_db/BI_audit_KRS_person#BI_audit_KRS_person.150746"/>-->
|
|
|
|
|
|
<xsl:param name="pos" required="yes"/>
|
|
|
<xsl:param name="next" required="yes"/>
|
|
|
- <!--<xsl:comment>parent <xsl:value-of select="@parent"/></xsl:comment>-->
|
|
|
+ <xsl:comment>#273 edges *[@xlink:href and @parent] create-edges-BI-wfs
|
|
|
+ parent <xsl:value-of select="@parent"/></xsl:comment>
|
|
|
+ <xsl:message>#273 edges *[@xlink:href and @parent] create-edges-BI-wfs
|
|
|
+ parent <xsl:value-of select="@parent"/></xsl:message>
|
|
|
<xsl:choose>
|
|
|
+ <xsl:when test="@bypass.not-aviable">
|
|
|
+ <xsl:message>#373 skipped edge because of because of <xsl:value-of select="@bypass.not-aviable"/> for @fid=<xsl:value-of select="@fid"/>;/@xlink:href=<xsl:value-of select="@xlink:href"/>; </xsl:message>
|
|
|
+ </xsl:when>
|
|
|
<xsl:when test="../*[@fid = current()/substring-after(@xlink:href,'#')]">
|
|
|
<xsl:element name="edge" namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
-
|
|
|
+ <!--<xsl:attribute name="debug.279" select="1"/>-->
|
|
|
<xsl:attribute name="id">
|
|
|
<xsl:value-of select="generate-id()"/>
|
|
|
</xsl:attribute>
|
|
|
@@ -283,13 +395,26 @@
|
|
|
<xsl:value-of select=" substring-after(replace(@xlink:href,'\.','_'),'#')"/>
|
|
|
</xsl:attribute>
|
|
|
<xsl:attribute name="target">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="@bypass.parent.group.id">
|
|
|
+ <xsl:value-of select="@bypass.parent.group.id"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise><xsl:value-of select="replace(@parent,'\.','_')"/></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
<!--<xsl:value-of select="$next[1]/concat(name(), '_',@pos)"/>-->
|
|
|
- <xsl:value-of select="replace(@parent,'\.','_')"/>
|
|
|
+
|
|
|
</xsl:attribute>
|
|
|
+ <xsl:if test="number($debug) > 4">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="debug.390" select="true()"/>
|
|
|
+ </xsl:if>
|
|
|
<!--<xsl:attribute name="deb.ref" select="../*[@fid = current()/substring-after(@xlink:href,'#')]"/>-->
|
|
|
<y:GenericEdge configuration="com.yworks.edge.framed">
|
|
|
<xsl:comment>mod:<xsl:value-of select="$pos mod 10"/>/<xsl:value-of select=" position() mod 10"/> /<xsl:value-of select=" position() mod 2"/> </xsl:comment>
|
|
|
- <y:LineStyle color="{$colors/colors/color[ @pos = number(substring-after( current()/@fid,'.')) mod 10 ]/text()}" type="{$colors/dashed/dash[ @pos = number(substring-after( current()/@fid,'.')) mod 2 ]/text()}" width="{(position() mod 3) + 1}.0"/>
|
|
|
+ <y:LineStyle width="{(position() mod 3) + 1}.0">
|
|
|
+ <xsl:attribute name="color" select="$colors/colors/object_hex[ @name = substring-before(@fid,'.') or @name='*' ][1]/text()" xpath-default-namespace=""/>
|
|
|
+ <xsl:attribute name="type" select="$colors/colors/dashed/dash[ @pos = ( $pos mod 2 ) ]/text()" xpath-default-namespace=""/>
|
|
|
+ </y:LineStyle>
|
|
|
<y:Arrows source="none" target="standard"/>
|
|
|
<y:EdgeLabel alignment="center" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" horizontalTextPosition="center" iconTextGap="4" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" verticalTextPosition="bottom" visible="true"><xsl:value-of select="../relation_from/text()"/><y:LabelModel>
|
|
|
<y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/>
|
|
|
@@ -321,30 +446,63 @@
|
|
|
<!--<xsl:template match="*[ contains(@parent,'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA')]" mode="create-edges-BI-wfs" priority="9"/>-->
|
|
|
<xsl:template match="*[@parent and not(@xlink:href) and ( matches(@parent,$bypass_nodes_string) or matches(@fid,$bypass_nodes_string) ) and ( not(matches(@parent,$not_bypass_nodes_string)) and not(matches(@parent,$not_bypass_nodes_string)) ) ]" mode="create-edges-BI-wfs" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns" priority="9">
|
|
|
<xsl:message>#322 bypassed from <xsl:value-of select="name()"/> to <xsl:value-of select="@parent"/></xsl:message>
|
|
|
- <xsl:comment>#322 bypassed from <xsl:value-of select="name()"/> to <xsl:value-of select="@parent"/></xsl:comment>
|
|
|
+ <xsl:comment>#322 bypassed from <xsl:value-of select="name()"/> to <xsl:value-of select="@parent"/>
|
|
|
+ calculating grouping type
|
|
|
+ <xsl:copy-of select="grapht:group_childs"/>
|
|
|
+ </xsl:comment>
|
|
|
</xsl:template>
|
|
|
|
|
|
+ <xsl:template match="*[@bypass.group.id]" priority="5" mode="create-edges-BI-wfs" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:comment>#435 bypassed edge by @bypass.group.id=<xsl:value-of select="@bypass.group.id"/> </xsl:comment>
|
|
|
+ <xsl:message>#435 bypassed edge by @bypass.group.id=<xsl:value-of select="@bypass.group.id"/> </xsl:message>
|
|
|
+ </xsl:template>
|
|
|
|
|
|
<xsl:template match="*[@parent and not(@xlink:href)]" priority="5" mode="create-edges-BI-wfs" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
<xsl:param name="pos" required="yes"/>
|
|
|
<xsl:param name="next" required="yes"/>
|
|
|
- <!--<xsl:comment>parent <xsl:value-of select="@parent"/></xsl:comment>-->
|
|
|
+ <xsl:comment>#331 edges *[@parent and not(@xlink:href)]
|
|
|
+ parent <xsl:value-of select="@parent"/></xsl:comment>
|
|
|
+ <xsl:message>#331 edges *[@parent and not(@xlink:href)]
|
|
|
+ parent <xsl:value-of select="@parent"/></xsl:message>
|
|
|
<xsl:element name="edge" namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <!--<xsl:attribute name="debug.334" select="1"/>-->
|
|
|
<xsl:attribute name="id">
|
|
|
<xsl:value-of select="generate-id()"/>
|
|
|
</xsl:attribute>
|
|
|
+ <xsl:if test="number($debug) > 4">
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <xsl:attribute name="debug.454" select="true()"/>
|
|
|
+ </xsl:if>
|
|
|
<xsl:attribute name="source">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="@bypass.parent.current.id">
|
|
|
+ <xsl:value-of select="@bypass.parent.current.id"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="@bypass.group.id">
|
|
|
+ <xsl:value-of select="@bypass.group.id"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise><xsl:value-of select="replace(@fid,'\.','_')"/></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
<!--<xsl:value-of select="concat(name(),'_',@pos)"/>-->
|
|
|
- <xsl:value-of select="replace(@fid,'\.','_')"/>
|
|
|
</xsl:attribute>
|
|
|
<xsl:attribute name="target">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="@bypass.parent.group.id">
|
|
|
+ <xsl:value-of select="@bypass.parent.group.id"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise><xsl:value-of select="replace(@parent,'\.','_')"/></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
<!--<xsl:value-of select="$next[1]/concat(name(), '_',@pos)"/>-->
|
|
|
- <xsl:value-of select="replace(@parent,'\.','_')"/>
|
|
|
+
|
|
|
</xsl:attribute>
|
|
|
<!--<xsl:attribute name="deb.pos" select="number(substring-after(@fid,'.'))"/>-->
|
|
|
<y:GenericEdge configuration="com.yworks.edge.framed">
|
|
|
- <xsl:comment>mod:<xsl:value-of select="$pos mod 10"/>/<xsl:value-of select=" position() mod 10"/> /<xsl:value-of select=" position() mod 2"/> </xsl:comment>
|
|
|
- <y:LineStyle color="{$colors/colors/color[ @pos = number(substring-after( current()/@fid,'.')) mod 10 ]/text()}" type="{$colors/dashed/dash[ @pos = number(substring-after( current()/@fid,'.')) mod 2 ]/text()}" width="{(position() mod 3) + 1}.0"/>
|
|
|
+ <xsl:variable name="modulo" select="$pos mod 10"/>
|
|
|
+ <xsl:comment>modulo = <xsl:value-of select="$modulo"/>; <xsl:value-of select="$pos mod 10"/>/<xsl:value-of select=" position() mod 10"/> /<xsl:value-of select=" position() mod 2"/> </xsl:comment>
|
|
|
+ <y:LineStyle width="{(position() mod 3) + 1}.0">
|
|
|
+ <xsl:attribute name="color" select="$colors/colors/object_hex[ @name = substring-before(@fid,'.') or @name='*' ][1]/text()" xpath-default-namespace=""/>
|
|
|
+ <xsl:attribute name="type" select="$colors/colors/dashed/dash[ @pos = ( $pos mod 2 ) ]/text()" xpath-default-namespace=""/>
|
|
|
+ </y:LineStyle> <!-- number(substring-after( current()/@fid,'.')) -->
|
|
|
<y:Arrows source="none" target="standard"/>
|
|
|
<y:EdgeLabel alignment="center" configuration="AutoFlippingLabel" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" horizontalTextPosition="center" iconTextGap="4" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" verticalTextPosition="bottom" visible="true"><xsl:value-of select="../relation_from/text()"/><y:LabelModel>
|
|
|
<y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/>
|
|
|
@@ -417,7 +575,7 @@
|
|
|
<y:ShapeNode>
|
|
|
<y:Fill color="#FF88AA"/>
|
|
|
<y:Geometry height="120.0" width="500"/>
|
|
|
- <y:NodeLabel width="500" height="120"><html><div
|
|
|
+ <y:NodeLabel width="500" height="121"><html><div
|
|
|
style="font-size:100%;color:blue;">
|
|
|
<xsl:value-of select="Spolka_glowna/text()"/><br>
|
|
|
<!--<xsl:value-of select="Przedmiot_umowy/text()"/><br>-->
|
|
|
@@ -548,7 +706,7 @@
|
|
|
<y:Fill color="#CC00CC"/>
|
|
|
<y:Geometry height="50.0" width="400"/>
|
|
|
<y:NodeLabel width="400" height="30"><html><div
|
|
|
- style="font-size:120%;color:blue;">
|
|
|
+ style="font-size:122%;color:blue;">
|
|
|
<xsl:value-of select="'KW Seller '"/><br>
|
|
|
<xsl:value-of select="Seller_person"/>
|
|
|
</div>
|
|
|
@@ -629,15 +787,93 @@
|
|
|
|
|
|
|
|
|
<xsl:template priority="9" match="*[ not(@xlink:href) and matches(local-name(),$bypass_nodes_string) and ( not(matches(local-name(),$not_bypass_nodes_string)) ) ]" mode="create-nodes-BI-wfs" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
- <xsl:comment>#631 bypassed <xsl:value-of select="name()"/></xsl:comment>
|
|
|
- <xsl:message>#631 bypassed <xsl:value-of select="name()"/></xsl:message>
|
|
|
+ <xsl:comment>#631 bypassed <xsl:value-of select="name()"/>; and fid=<xsl:value-of select="@fid"/>;</xsl:comment>
|
|
|
+ <xsl:message>#631 bypassed <xsl:value-of select="name()"/>; and fid=<xsl:value-of select="@fid"/>;</xsl:message>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="*[grapht:group_childs]" mode="create-nodes-BI-wfs" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns" priority="9">
|
|
|
+ <xsl:comment>#728 match="*[grapht:group_childs]" </xsl:comment>
|
|
|
+ <xsl:variable name="id" select="replace(@fid,'\.','_')"/>
|
|
|
+
|
|
|
+ <!--<data key="d0" xmlns="http://graphml.graphdrawing.org/xmlns"/>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:element name="node" namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:attribute name="id" select="$id"/>
|
|
|
+ <xsl:attribute name="yfiles.foldertype" select="'group'"/>
|
|
|
+ <data key="{$id}_4" xmlns="http://graphml.graphdrawing.org/xmlns"/>
|
|
|
+ <data key="{$id}_6" xmlns="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <y:ProxyAutoBoundsNode>
|
|
|
+ <y:Realizers active="0">
|
|
|
+ <y:GroupNode>
|
|
|
+ <y:Geometry height="239.0" width="152.0" x="477.0" y="413.0"/>
|
|
|
+ <y:Fill color="#CAECFF84" transparent="false"/>
|
|
|
+ <y:BorderStyle color="#666699" type="dotted" width="1.0"/>
|
|
|
+ <y:NodeLabel alignment="right" autoSizePolicy="node_width" backgroundColor="#99CCFF" borderDistance="0.0" fontFamily="Dialog" fontSize="15" fontStyle="plain" hasLineColor="false" height="21.666015625" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#000000" verticalTextPosition="bottom" visible="true" width="152.0" x="0.0" y="0.0"><xsl:value-of select="@fid"/></y:NodeLabel>
|
|
|
+ <y:Shape type="roundrectangle"/>
|
|
|
+ <y:State closed="false" closedHeight="50.0" closedWidth="50.0" innerGraphDisplayEnabled="false"/>
|
|
|
+ <y:Insets bottom="15" bottomF="15.0" left="15" leftF="15.0" right="15" rightF="15.0" top="15" topF="15.0"/>
|
|
|
+ <y:BorderInsets bottom="30" bottomF="29.5" left="16" leftF="16.0" right="70" rightF="70.0" top="68" topF="67.833984375"/>
|
|
|
+ </y:GroupNode>
|
|
|
+ <y:GroupNode>
|
|
|
+ <y:Geometry height="50.0" width="150.0" x="477.0" y="413.0"/>
|
|
|
+ <y:Fill color="#CAECFF84" transparent="false"/>
|
|
|
+ <y:BorderStyle color="#666699" type="dotted" width="1.0"/>
|
|
|
+ <y:NodeLabel alignment="right" autoSizePolicy="node_width" backgroundColor="#99CCFF" borderDistance="0.0" fontFamily="Dialog" fontSize="15" fontStyle="plain" hasLineColor="false" height="21.666015625" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#000000" verticalTextPosition="bottom" visible="true" width="50.0" x="0.0" y="0.0"><xsl:value-of select="@fid"/></y:NodeLabel>
|
|
|
+ <y:Shape type="roundrectangle"/>
|
|
|
+ <y:State closed="true" closedHeight="50.0" closedWidth="50.0" innerGraphDisplayEnabled="false"/>
|
|
|
+ <y:Insets bottom="15" bottomF="15.0" left="15" leftF="15.0" right="15" rightF="15.0" top="15" topF="15.0"/>
|
|
|
+ <y:BorderInsets bottom="0" bottomF="0.0" left="0" leftF="0.0" right="0" rightF="0.0" top="0" topF="0.0"/>
|
|
|
+ </y:GroupNode>
|
|
|
+ </y:Realizers>
|
|
|
+ </y:ProxyAutoBoundsNode>
|
|
|
+ </data>
|
|
|
+
|
|
|
+ <xsl:element name="graph" namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:attribute name="edgedefault" select="'directed'"/>
|
|
|
+ <xsl:attribute name="id" select="concat($id,':')"/>
|
|
|
+ <!--<node id="{$id}::{$id}" yfiles.foldertype="group" xmlns="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <data key="{$id}_4"/>
|
|
|
+ <data key="{$id}_5"/>
|
|
|
+ <data key="{$id}_6">
|
|
|
+ <y:ShapeNode>
|
|
|
+ <y:Geometry height="30.0" width="300.0" x="514.0" y="517.5"/>
|
|
|
+ <y:Fill color="#FFCC00" transparent="false"/>
|
|
|
+ <y:BorderStyle color="#000000" type="line" width="1.0"/> <!-\- raised="false" -\->
|
|
|
+ <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18.1328125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="11.587890625" x="9.2060546875" y="5.93359375"><xsl:value-of select="@fid"/><y:LabelModel>
|
|
|
+ <y:SmartNodeLabelModel distance="4.0"/>
|
|
|
+ </y:LabelModel>
|
|
|
+ <y:ModelParameter>
|
|
|
+ <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/>
|
|
|
+ </y:ModelParameter>
|
|
|
+ </y:NodeLabel>
|
|
|
+ <y:Shape type="rectangle3d"/>
|
|
|
+ </y:ShapeNode>
|
|
|
+ </data>
|
|
|
+
|
|
|
+ </node>-->
|
|
|
+ <xsl:apply-templates mode="create-nodes-BI-wfs" select="grapht:group_childs/*" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:with-param name="grapht:group.id" select="$id"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </xsl:element>
|
|
|
+
|
|
|
+ </xsl:element>
|
|
|
+
|
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="*[ not(@xlink:href)]" mode="create-nodes-BI-wfs" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:param name="grapht:group.id"/>
|
|
|
+ <xsl:comment>#689 match *[ not(@xlink:href)]</xsl:comment>
|
|
|
<xsl:element name="node" namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
<xsl:attribute name="id">
|
|
|
<!--<xsl:value-of select="concat(name(),'_',@pos)"/>-->
|
|
|
- <xsl:value-of select="replace(@fid,'\.','_')"/>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$grapht:group.id"><xsl:value-of select="concat( $grapht:group.id,'::',replace(@fid,'\.','_'))"/></xsl:when>
|
|
|
+ <xsl:otherwise><xsl:value-of select="replace(@fid,'\.','_')"/></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
</xsl:attribute>
|
|
|
<!--<xsl:attribute name="deb.fid" select="@fid"/>-->
|
|
|
<!--<xsl:attribute name="deb.fid2" select=" text()"/>-->
|
|
|
@@ -651,9 +887,47 @@
|
|
|
</xsl:attribute>
|
|
|
</y:Fill><!--<xsl:value-of select="local-name()"/>-->
|
|
|
<y:NodeLabel width="400" height="{ ((count(*[not( local-name()='ID') and not( matches(local-name(),'(S_*)|(A_)|(TERYT.*)'))]) * 18) + 70)}"><html><div
|
|
|
- style="font-size:120%;color:black;">
|
|
|
+ style="font-size:123%;color:black;">
|
|
|
<xsl:value-of select="ID"/><br>
|
|
|
- <xsl:value-of select=" substring(name(),10)"/><br>
|
|
|
+ <xsl:value-of select=" substring(name(),10)"/>.<xsl:value-of select="substring-after(@fid,'.')"/><br>
|
|
|
+ <xsl:for-each select="*[not( local-name()='ID') and not( matches(local-name(),'(S_*)|(A_)|(TERYT.*)'))]" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:value-of select=" substring(local-name(),0,10)"/><xsl:text> : </xsl:text><xsl:value-of select=" substring(.,0,20)"/> <!--<xsl:for-each select="text()"><xsl:value-of select="substring(text(),20)"/></xsl:for-each>--><br>
|
|
|
+ </xsl:for-each>
|
|
|
+ </div>
|
|
|
+ </y:NodeLabel>
|
|
|
+ </y:ShapeNode>
|
|
|
+ </data>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="*[ @xlink:href ]" mode="create-nodes-BI-wfs" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:param name="grapht:group.id"/>
|
|
|
+ <xsl:message>#701 extra node from xlink <xsl:value-of select="@xlink:href"/></xsl:message>
|
|
|
+ <xsl:comment>#701 extra node from xlink <xsl:value-of select="@xlink:href"/></xsl:comment>
|
|
|
+ <xsl:element name="node" namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <xsl:attribute name="id">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$grapht:group.id"><xsl:value-of select="concat( $grapht:group.id,'::',replace(@fid,'\.','_'))"/></xsl:when>
|
|
|
+ <xsl:otherwise><xsl:value-of select="replace(@fid,'\.','_')"/></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:attribute>
|
|
|
+ <!--<xsl:attribute name="deb.fid" select="@fid"/>-->
|
|
|
+ <!--<xsl:attribute name="deb.fid2" select=" text()"/>-->
|
|
|
+ <data key="d0" xmlns="http://graphml.graphdrawing.org/xmlns">
|
|
|
+ <y:ShapeNode>
|
|
|
+ <y:Geometry height="{ ((count(*[not( local-name()='ID') and not( matches(local-name(),'(S_*)|(A_)|(TERYT.*)'))]) * 18) + 70)}" width="600"/><!-- { count(*) * 10} -->
|
|
|
+ <!--<y:Fill color="#CCCCCC"/>-->
|
|
|
+ <y:Fill transparent="false">
|
|
|
+ <xsl:attribute name="color">
|
|
|
+ <xsl:value-of select="$colors/colors/object_hex[ @name = current()/local-name() or @name='*'][1]/text()" xpath-default-namespace=""/>
|
|
|
+ </xsl:attribute>
|
|
|
+ </y:Fill><!--<xsl:value-of select="local-name()"/>-->
|
|
|
+ <y:NodeLabel width="405" height="{ ((count(*[not( local-name()='ID') and not( matches(local-name(),'(S_*)|(A_)|(TERYT.*)'))]) * 18) + 70)}"><html><div
|
|
|
+ style="font-size:123%;color:black;">
|
|
|
+
|
|
|
+ <xsl:value-of select=" substring(local-name(),10)"/>.<xsl:value-of select=" substring-after(substring-after(@xlink:href,'#'),'.')"/><br>
|
|
|
<xsl:for-each select="*[not( local-name()='ID') and not( matches(local-name(),'(S_*)|(A_)|(TERYT.*)'))]" xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
|
|
|
<xsl:value-of select=" substring(local-name(),0,10)"/><xsl:text> : </xsl:text><xsl:value-of select=" substring(.,0,20)"/> <!--<xsl:for-each select="text()"><xsl:value-of select="substring(text(),20)"/></xsl:for-each>--><br>
|
|
|
</xsl:for-each>
|
|
|
@@ -664,6 +938,7 @@
|
|
|
</xsl:element>
|
|
|
</xsl:template>
|
|
|
|
|
|
+
|
|
|
<xsl:template match="//*" mode="create-nodes-wfs">
|
|
|
<xsl:element name="node">
|
|
|
<xsl:attribute name="id">
|
|
|
@@ -674,8 +949,7 @@
|
|
|
<y:Fill color="#CCCCCC"/>
|
|
|
<y:NodeLabel><html><div
|
|
|
style="font-size:120%;color:blue;">
|
|
|
- <xsl:value-of
|
|
|
- select="name()"/>
|
|
|
+ <xsl:value-of select="name()"/><xsl:text> </xsl:text><xsl:value-of select="substring-after(@fid,'\.')"/> (<xsl:value-of select="ID"/>)
|
|
|
</div>
|
|
|
<xsl:for-each select="@*">
|
|
|
<xsl:value-of select="name()"/>
|
|
|
@@ -698,7 +972,7 @@
|
|
|
<y:ShapeNode>
|
|
|
<y:Fill color="#CCCCCC"/>
|
|
|
<y:NodeLabel><html><div
|
|
|
- style="font-size:120%;color:blue;">
|
|
|
+ style="font-size:124%;color:blue;">
|
|
|
<xsl:value-of
|
|
|
select="name()"/>
|
|
|
</div>
|