1<?xml version="1.0" encoding="iso-8859-1"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 <xsl:output indent="no" version="1.0" encoding="iso-8859-1"/> 4 <xsl:key name="monthlist" match="/list/month" use="/alias"/> 5 <xsl:template match="month"> 6 <month> 7 <xsl:variable name="value" select="."/> 8 <xsl:for-each select="document('month.xml')"> 9 <xsl:value-of select="key('monthlist', $value)/alias[1]"/> 10 </xsl:for-each> 11 </month> 12 </xsl:template> 13 <xsl:template match="*"> 14 <xsl:copy> 15 <xsl:copy-of select="@*"/> 16 <xsl:apply-templates/> 17 </xsl:copy> 18 </xsl:template> 19</xsl:stylesheet> 20