| 12345678910111213141516171819202122232425 |
- <?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"
- exclude-result-prefixes="xs"
- version="2.0">
- <xsl:param name="ways_2ID_Way.xml" select="'ways_2ID_Way.xml'"/>
- <xsl:variable name="ways_2ID_Way" select="doc($ways_2ID_Way.xml)"/>
-
- <xsl:template match="joins2ways">
- <joins2ways_z_ID_Way>
- <xsl:apply-templates/>
- </joins2ways_z_ID_Way>
- </xsl:template>
- <xsl:template match="item">
- <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()"/>
- </xsl:if>
- <xsl:copy-of select="item"/>
- </item>
- </xsl:template>
-
- </xsl:stylesheet>
|