Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <answer>
- <xsl:apply-templates select="/COLLECTIONS/FRIENDS/FRIEND"/>
- </answer>
- </xsl:template>
- <!-- FRIEND -->
- <xsl:template match="FRIEND">
- <xsl:element name="{@NAME}">
- <xsl:apply-templates select="/COLLECTIONS/CATALOG/CD[@ID = current()/DISK/@ID]"/>
- </xsl:element>
- </xsl:template>
- <!-- CD -->
- <xsl:template match="CD">
- <OWNS>
- <xsl:value-of select="current()/TITLE/text()"/> (<xsl:value-of select="current()/ARTIST"/>)
- </OWNS>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement