<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes"/> <xsl:template match="/"> <OscarFavorites Year="2000"> <xsl:for-each select="/MovieList/Movie[Award/@From='Oscar']"> <Winner Category="{Award/@Category}"> <xsl:value-of select="@Title"/> </Winner> </xsl:for-each> </OscarFavorites> </xsl:template> </xsl:stylesheet> |