<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" />

<xsl:template match="/">  
  <xsl:for-each select="/main/a[2]/b/c/d[1]" > <!-- Edit this line and put in an
                                     absolute XPath expression. This will
                                     select the nodes from which the
                                     relative paths will 'start' 
                                     -->
   
   BASE NODE--<xsl:copy-of select="." />--END BASE NODE
   
   --START-RELATIVE-MATCHES--
   <xsl:for-each select="./e" > <!-- EDIT this line and put in a relative
                                     XPath expression. The
                                     next block then iterates through all
                                     the selected nodes, and copies them
                                     to output. -->
    RELATIVE-MATCH--<xsl:copy-of select="." />--RELATIVE-MATCH
   </xsl:for-each>
   --END RELATIVE-MATCHES--
  </xsl:for-each>
</xsl:template>

<xsl:template match="text()|@*" ></xsl:template> <!-- override builtin 
                                                      template that copies 
                                                      over text and 
                                                      attribute nodes -->

</xsl:stylesheet>


