1<?xml version="1.0"?> 2<xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4 5<xsl:template match="frame"> 6 <div> 7 <xsl:apply-templates select="$g.doc.root/document/header"/> 8 <xsl:apply-templates select="$g.doc.root/document"/> 9 </div> 10</xsl:template> 11 12 13<xsl:template match="header"> 14 <xsl:text>header #1 in module #4;</xsl:text> 15</xsl:template> 16 17 18<xsl:template match="header[logo]"> 19 <xsl:text>header #2 in module #4;</xsl:text> 20</xsl:template> 21 22</xsl:stylesheet> 23