|
|
@@ -14,18 +14,14 @@
|
|
|
|
|
|
<xsl:template match="joins2ways">
|
|
|
<joins2ways_z_ID_Way>
|
|
|
- <xsl:variable name="joins2ways">
|
|
|
+ <!--<xsl:variable name="joins2ways">
|
|
|
<xsl:apply-templates/>
|
|
|
- </xsl:variable>
|
|
|
- <xsl:for-each select="$joins2ways/item">
|
|
|
- <xsl:copy-of select="."/>
|
|
|
- <xsl:result-document href="joins2ways_z_ID_Way/joins2ways_z_ID_Way.{@id}.{@ID_Way}.xml">
|
|
|
- <joins2ways_z_ID_Way>
|
|
|
- <xsl:attribute name="id" select="@id"/>
|
|
|
- <xsl:copy-of select="."/>
|
|
|
- </joins2ways_z_ID_Way>
|
|
|
- </xsl:result-document>
|
|
|
- </xsl:for-each>
|
|
|
+ </xsl:variable>-->
|
|
|
+ <!-- <xsl:for-each select="$joins2ways/item">-->
|
|
|
+ <!-- <xsl:copy-of select="."/>-->
|
|
|
+
|
|
|
+ <!--</xsl:for-each>-->
|
|
|
+ <xsl:apply-templates/>
|
|
|
</joins2ways_z_ID_Way>
|
|
|
</xsl:template>
|
|
|
<xsl:template match="item">
|
|
|
@@ -43,7 +39,7 @@
|
|
|
<xsl:attribute name="item_copied_pos" select="position()"/>
|
|
|
<!-- moze miec wiecej punktow-->
|
|
|
<xsl:for-each select="$points2joins/points2joins/item[text()= $id]">
|
|
|
- <Points><xsl:value-of select=" text()"/></Points>
|
|
|
+ <Points><xsl:value-of select=" @id"/></Points>
|
|
|
</xsl:for-each>
|
|
|
|
|
|
<xsl:for-each select="$item/item">
|
|
|
@@ -57,6 +53,7 @@
|
|
|
</xsl:for-each>
|
|
|
</xsl:variable>
|
|
|
|
|
|
+ <xsl:variable name="items_grouped">
|
|
|
<xsl:for-each-group select="$items/item" group-by="@ID_Way">
|
|
|
<item>
|
|
|
<xsl:copy-of select="@*"/>
|
|
|
@@ -65,7 +62,14 @@
|
|
|
<xsl:copy-of select="Points"/>
|
|
|
</item>
|
|
|
</xsl:for-each-group>
|
|
|
-
|
|
|
+ </xsl:variable>
|
|
|
+ <xsl:copy-of select="$items_grouped"/>
|
|
|
+ <xsl:result-document href="joins2ways_z_ID_Way/joins2ways_z_ID_Way.{@id}.{@ID_Way}.xml">
|
|
|
+ <joins2ways_z_ID_Way>
|
|
|
+ <xsl:attribute name="id" select="@id"/>
|
|
|
+ <xsl:copy-of select="$items_grouped"/>
|
|
|
+ </joins2ways_z_ID_Way>
|
|
|
+ </xsl:result-document>
|
|
|
|
|
|
</xsl:template>
|
|
|
|