|
|
@@ -2,7 +2,7 @@
|
|
|
<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="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"
|
|
|
+ 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">
|
|
|
|
|
|
@@ -14,6 +14,49 @@
|
|
|
<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">
|