| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:p5yed="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/yed/p5yed.xsd"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java"
- xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0"
- xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:y="http://www.yworks.com/xml/graphml"
- xmlns:yed="http://www.yworks.com/xml/yed/3" exclude-result-prefixes="xs yed" version="2.0">
-
- <xsl:import href="p5yed.y.import.xsl"/>
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
- <xsl:param name="yed:basedir"/>
- <xsl:include href="p5yed.yed.graphml.node.xsl"/>
- <xsl:include href="p5yed.yed.colors.xsl"/>
-
-
-
- <xsl:variable name="yed:portgraphics.id" select="'d1'"/>
- <xsl:variable name="yed:portgeometry.id" select="'d2'"/>
- <xsl:variable name="yed:portuserdata.id" select="'d3'"/>
- <xsl:variable name="yed:attr.name.url.id" select="'d4'"/>
- <xsl:variable name="yed:for.node.attr.name.description.id" select="'d5'"/>
- <xsl:variable name="yed:for.node.yfiles.type.id" select="'d6'"/>
- <xsl:variable name="yed:for.graphml.resources.id" select="'d7'"/>
- <xsl:variable name="yed:for.edge.attr.name.url.id" select="'d8'"/>
- <xsl:variable name="yed:for.edge.attr.name.description.id" select="'d9'"/>
- <xsl:variable name="yed:for.edge.edgegraphics.id" select="'d10'"/>
- <xsl:template mode="yed:graphml" match="*">
- <graphml xmlns="http://graphml.graphdrawing.org/xmlns"
- xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java"
- xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0"
- xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3"
- xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
- <!--Created by yEd 3.18.1-->
- <key attr.name="Description" attr.type="string" for="graph" id="d0"/>
- <key for="port" id="{$yed:portgraphics.id}" yfiles.type="portgraphics"/>
- <key for="port" id="{$yed:portgeometry.id}" yfiles.type="portgeometry"/>
- <key for="port" id="{$yed:portuserdata.id}" yfiles.type="portuserdata"/>
- <key attr.name="url" attr.type="string" for="node" id="{$yed:attr.name.url.id}"/>
- <key attr.name="description" attr.type="string" for="node"
- id="{$yed:for.node.attr.name.description.id}"/>
- <key for="node" id="{$yed:for.node.yfiles.type.id}" yfiles.type="nodegraphics"/>
- <key for="graphml" id="{$yed:for.graphml.resources.id}" yfiles.type="resources"/>
- <key attr.name="url" attr.type="string" for="edge" id="{$yed:for.edge.attr.name.url.id}"/>
- <key attr.name="description" attr.type="string" for="edge" id="{$yed:for.edge.attr.name.description.id}"/>
- <key for="edge" id="{$yed:for.edge.edgegraphics.id}" yfiles.type="edgegraphics"/>
- <graph edgedefault="directed" id="G">
- <data key="d0"/>
- <xsl:for-each-group select=".//*[@p5yed:clousure.from.len = '1']" group-by="@p5yed:edge.source"><!-- Sciezki 1 rysujemy -->
- <xsl:apply-templates mode="yed:graphml.nodes" select=".">
- <xsl:with-param name="position" select="position()"/>
- </xsl:apply-templates>
- </xsl:for-each-group>
- <xsl:for-each-group select=".//*[@p5yed:clousure.from.len = '1']" group-by="concat(@p5yed:edge.source,':',@p5yed:node)"> <!-- Sciezki 1 rysujemy -->
- <xsl:apply-templates mode="yed:graphml.edge" select=".">
- <xsl:with-param name="position" select="position()"/>
- </xsl:apply-templates>
- </xsl:for-each-group>
- </graph>
- <data key="{$yed:for.graphml.resources.id}">
- <y:Resources/>
- </data>
- </graphml>
- </xsl:template>
-
- <xsl:template mode="yed:graphml.nodes" match="*[@p5yed:edge.source]"
- xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
- <xsl:param name="yed:graphml.nodes.fix" select="@p5yed:edge.source"/>
- <node id="{$yed:graphml.nodes.fix}" xmlns="http://graphml.graphdrawing.org/xmlns">
- <data key="{$yed:for.node.attr.name.description.id}"/>
- <data key="{$yed:for.node.yfiles.type.id}">
- <y:GenericNode configuration="BevelNode2">
- <!--<y:Geometry height="30.0" width="45.0" x="471.5" y="193.00000000000023"/>-->
- <!--<y:Fill color="#FF9900" transparent="false"/>-->
- <xsl:apply-imports/>
- <y:BorderStyle hasColor="false" type="line" width="1.0"/>
- <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="16.7060546875" xml:space="preserve" y="5.93359375">
- <xsl:value-of select="@p5yed:node.from.nodegraphics.text"/>
- <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:GenericNode>
- </data>
- </node>
- <!--<node id="{@p5yed:node}" xmlns="http://graphml.graphdrawing.org/xmlns">
- <data key="{$yed:for.node.attr.name.description.id}"/>
- <data key="{$yed:for.node.yfiles.type.id}">
- <y:GenericNode configuration="BevelNode2">
- <!-\-<y:Geometry height="30.0" width="45.0" x="471.5" y="193.00000000000023"/>-\->
- <!-\-<y:Fill color="#FF9900" transparent="false"/>-\->
- <xsl:apply-imports/>
- <y:BorderStyle hasColor="false" type="line" width="1.0"/>
- <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="16.7060546875" xml:space="preserve" y="5.93359375">
- <xsl:value-of select="@p5yed:node.from.nodegraphics.text"/>
- <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:GenericNode>
- </data>
- </node>-->
-
- </xsl:template>
-
- <xsl:template mode="yed:graphml.edge" match="*[@p5yed:edge.source]"
- xpath-default-namespace="http://graphml.graphdrawing.org/xmlns">
- <xsl:param name="position" required="yes"/>
- <edge id="e{$position}" xmlns="http://graphml.graphdrawing.org/xmlns"> <!-- source="n0" target="n1" -->
- <xsl:apply-imports/>
- <data key="{$yed:for.edge.attr.name.description.id}"/>
- <data key="{$yed:for.edge.edgegraphics.id}">
- <y:PolyLineEdge>
- <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
- <y:LineStyle color="#000000" type="line" width="1.0"/>
- <y:Arrows source="none" target="standard"/>
- <y:BendStyle smoothed="false"/>
- </y:PolyLineEdge>
- </data>
- </edge>
- <xsl:choose>
- <xsl:when test="following::*[@p5yed:edge.source = current()/@p5yed:node][1]"/>
- <xsl:when test="preceding::*[@p5yed:edge.source = current()/@p5yed:node][1]"/>
- <xsl:otherwise>
- <xsl:message>#100 adding missing current()/@p5yed:node=<xsl:value-of select="@p5yed:node"/>; by @p5yed:edge.source</xsl:message>
- <xsl:apply-templates mode="yed:graphml.nodes" select=".">
- <xsl:with-param name="yed:graphml.nodes.fix" select="@p5yed:node"/>
- </xsl:apply-templates>
-
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
-
-
- <xsl:template mode="yed:graphml.edge" match="*|text()|comment()"/>
-
- </xsl:stylesheet>
|