|
|
@@ -16,13 +16,42 @@
|
|
|
<xsl:apply-templates/>
|
|
|
</xsl:variable>
|
|
|
<xsl:for-each select="$joins2ways/item">
|
|
|
- <xsl:sort select="number(@ID_Way)"/>
|
|
|
+ <!--<xsl:sort select="number(@ID_Way)"/>-->
|
|
|
<xsl:copy-of select="."/>
|
|
|
</xsl:for-each>
|
|
|
</joins2ways_z_ID_Way>
|
|
|
</xsl:template>
|
|
|
<xsl:template match="item">
|
|
|
- <item>
|
|
|
+ <xsl:variable name="item" select="."/>
|
|
|
+ <xsl:variable name="ID_Point" select="$points2joins/points2joins/item[text()= current()/@id]/@id"/>
|
|
|
+ <xsl:variable name="items">
|
|
|
+ <xsl:for-each select="item">
|
|
|
+ <item>
|
|
|
+ <xsl:copy-of select="$item/@*"/>
|
|
|
+ <xsl:attribute name="ID_Way" select="$ways_2ID_Way/ways_2ID_Way/item[@id=current()/text()]/text()"/>
|
|
|
+ <xsl:if test="$ID_Point">
|
|
|
+ <xsl:attribute name="ID_Point" select="$points2joins/points2joins/item[text()= current()/@id]/@id"/>
|
|
|
+ </xsl:if>
|
|
|
+ <xsl:attribute name="item_copied_pos" select="position()"/>
|
|
|
+ <xsl:for-each select="$item/item">
|
|
|
+ <xsl:element name="item">
|
|
|
+ <xsl:attribute name="id" select="@id"/>
|
|
|
+ <xsl:attribute name="ID_WAY" select="$ways_2ID_Way/ways_2ID_Way/item[@id=current()/text()]/text()"/>
|
|
|
+ <xsl:copy-of select="text()"/>
|
|
|
+ </xsl:element>
|
|
|
+ </xsl:for-each>
|
|
|
+ </item>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:for-each-group select="$items/item" group-by="@ID_Way">
|
|
|
+ <item>
|
|
|
+ <xsl:copy-of select="@*"/>
|
|
|
+ <!--<xsl:attribute name="ID_Way_count" select="$ID_Way_count"/>-->
|
|
|
+ <xsl:copy-of select="item"/>
|
|
|
+ </item>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ <!--<item>
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
<xsl:if test="$ways_2ID_Way/ways_2ID_Way/item[@id=current()/item[1]/text()]/text()">
|
|
|
<xsl:attribute name="ID_Way" select="$ways_2ID_Way/ways_2ID_Way/item[@id=current()/item[1]/text()]/text()"/>
|
|
|
@@ -37,7 +66,10 @@
|
|
|
<xsl:copy-of select="text()"/>
|
|
|
</xsl:element>
|
|
|
</xsl:for-each>
|
|
|
- </item>
|
|
|
+
|
|
|
+ </item>-->
|
|
|
+ <!-- dorzucenie do joins sztucznie joinow jako ze pochodza z innych ID_Way -->
|
|
|
+
|
|
|
</xsl:template>
|
|
|
|
|
|
</xsl:stylesheet>
|