<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xdif="http://www.wa5znu.org/2006/04/xdif/">

  <xsl:output method="xml" indent="yes"/>

 <!-- By default, recursively copy everything through (http://hacks.oreilly.com/pub/h/2638) -->

  <xsl:template match="@*|node( )">
    <xsl:copy>
      <xsl:apply-templates select="@*|node( )"/>
    </xsl:copy>
  </xsl:template>

 
  <xsl:template match="*[@use]">
    <xsl:copy-of select="/xdif:log/xdif:definitions/*[name()=name(current()) and @id=current()/@use]" />
  </xsl:template>

</xsl:stylesheet>



