| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?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:bp="https://procesy5.pl/biale_plamy-schema.xsd"
- xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:p5_default_db="https://biuro.biall-net.pl/wfs/default_db"
- exclude-result-prefixes="xs"
- version="2.0">
-
-
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
-
- <xsl:param name="plamy_prefix" />
- <xsl:param name="PE_fixings.xml" select="concat('PE_fixings',$plamy_prefix,'.xml')"/>
- <xsl:param name="PE_fixings" select=" doc($PE_fixings.xml)"/>
-
- <xsl:param name="edge_paths_with_PE_controll_paths_temp" select="'edge_paths_with_PE_controll_paths_temp'"/>
- <!-- <xsl:param name="edge_paths_with_PE_controll_paths_temp_fixed" select="'edge_paths_with_PE_controll_paths_temp_fixed'"/>
-
- <xsl:template match="edge_joins_filled_paths" mode="edge_paths_with_PE_controll_paths_temp_fixed">
- <xsl:apply-templates mode="edge_paths_with_PE_controll_paths_temp_fixed"></xsl:apply-templates>
- </xsl:template>
-
- <xsl:template match="item" mode="edge_paths_with_PE_controll_paths_temp_fixed">
- <xsl:result-document href="{$edge_paths_with_PE_controll_paths_temp_fixed}/edge_paths_with_PE_controll.xsl.{@id}.xml'">
- <xsl:variable name="edge_paths_with_PE_controll" select="doc(concat($edge_paths_with_PE_controll_paths_temp,'/edge_paths_with_PE_controll.xsl.',@id,'.xml'))"/>
- <xsl:apply-templates select="$edge_paths_with_PE_controll" mode="edge_paths_with_PE_controll_paths_temp_fixed_contr"/>
- </xsl:result-document>
- </xsl:template>
-
- <xsl:template mode="edge_paths_with_PE_controll_paths_temp_fixed" match="edge_paths_with_PE_controll_fixed">
- <edge_paths_with_PE_controll_fixed>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="edge_paths_with_PE_controll_paths_temp_fixed_contr"/>
- </edge_paths_with_PE_controll_fixed>
-
- </xsl:template>
-
- <xsl:template mode="edge_paths_with_PE_controll_paths_temp_fixed_contr" match="Path|EdgeWayJoinsPair|edge_joins_filled_paths_xml|asText_XMl">
- <xsl:element name="{name()}">
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates mode="edge_paths_with_PE_controll_paths_temp_fixed_contr"/>
- </xsl:element>
- </xsl:template>
-
- <xsl:template mode="edge_paths_with_PE_controll_paths_temp_fixed_contr" match="LineString">
- <xsl:choose>
- <xsl:when test="$PE_fixings/wfs:FeatureCollection//p5_default_db:ID_Join[ text()=current()/@ID_Join and not(parent::node()/p5_default_db:the_geom/gml:Point)]">
- <edge_paths_with_PE_fixed>
- <xsl:message terminate="no">Found Join fixed @ID_Join=<xsl:value-of select="@ID_Join"/>;</xsl:message>
- <xsl:attribute name="debug" select="'point removed and detected in PE_fixings.xml'"/>
- <xsl:copy-of select="@*"/>
- </edge_paths_with_PE_fixed>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>-->
-
-
- <xsl:template match="PE_candidates_dump">
- <PE_candidates_dump>
- <xsl:apply-templates/>
- </PE_candidates_dump>
- </xsl:template>
-
- <xsl:template match="LINESTRING">
- <LINESTRING>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </LINESTRING>
- </xsl:template>
-
-
- <xsl:template match="bp:Path_Point">
- <xsl:choose>
- <xsl:when test="$PE_fixings/wfs:FeatureCollection//p5_default_db:ID_Join[ text()=current()/@ID_Join and not(parent::node()/p5_default_db:the_geom/gml:Point)]">
- <edge_paths_with_PE_fixed>
- <xsl:message terminate="no">Found Join fixed @ID_Join=<xsl:value-of select="@ID_Join"/>;</xsl:message>
- <xsl:attribute name="debug" select="'point removed and detected in PE_fixings.xml'"/>
- <xsl:copy-of select="@*"/>
- </edge_paths_with_PE_fixed>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- </xsl:stylesheet>
|