Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <h1>Zespoly</h1>
- <xsl:apply-templates select="./ZESPOLY/ROW"/>
- <xsl:call-template name="cos"/>
- </xsl:template>
- <xsl:template match="ROW">
- <p>
- <xsl:value-of select="position()"/>
- .
- <xsl:value-of select=".//NAZWA"/>
- </p>
- </xsl:template>
- <xsl:template name="cos">
- <xsl:for-each select="//ROW">
- <p>
- <h2><xsl:value-of select=".//NAZWA"/></h2>
- <h2><xsl:value-of select=".//ADRES"/></h2>
- </p>
- </xsl:for-each>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement