1:<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 2:<xsl:output method="text"/> 3:<xsl:template match="/"> 4: <xsl:for-each select="/mail_list/file"> 5: <xsl:apply-templates select="document(@name)/entry" /> 6: </xsl:for-each> 7:</xsl:template> 8: 9:<xsl:template match="entry"> 10: <xsl:apply-templates /> 11:</xsl:template> 12: 13:<xsl:template match="name">Name: <xsl:value-of select="." /> 14:</xsl:template> 15: 16:<xsl:template match="address">EMail Address: <xsl:value-of select="." /> 17:</xsl:template> 18:</xsl:stylesheet>