1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4                xmlns:gen="dummy-namespace-for-the-generated-xslt">
5
6  <xsl:namespace-alias stylesheet-prefix="gen" result-prefix="xsl"/>
7  <xsl:output method="xml" indent="yes"/>
8  <xsl:template match="/">
9    <gen:stylesheet version="1.0">
10      <gen:output method="xml" indent="yes"/>
11      <gen:template match="@*|node()">
12        <gen:copy>
13          <gen:apply-templates select="@*|node()"/>
14        </gen:copy>
15      </gen:template>
16
17      <gen:template match="//override"/>
18
19      <xsl:apply-templates/>
20    </gen:stylesheet>
21  </xsl:template>
22
23  <xsl:template match="text()"/>
24
25  <xsl:template match="//override">
26    <gen:template>
27      <xsl:attribute name="match"><xsl:value-of select="@xpath"/></xsl:attribute>
28      <xsl:copy-of select="node()/."/>
29    </gen:template>
30  </xsl:template>
31
32</xsl:stylesheet>