1 <?xml version="1.0"?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 4 <!-- Filename: EmbeddedType.xsl --> 5 <!-- Explicitly only matches on /list so we don't get top-level PI's --> 6 <xsl:template match="/list"> 7 <embedded-type> 8 <xsl:apply-templates select="item"/> 9 </embedded-type> 10 </xsl:template> 11 12 <xsl:template match="item"> 13 <xsl:copy-of select="."/> 14 </xsl:template> 15 16 </xsl:stylesheet>