<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
        <xsl:apply-templates select="node()"/>
    </xsl:template>
    <xsl:template match="UNB0301">
        <xsl:element name="{local-name(.)}">
            <xsl:text>SAXONICA</xsl:text>
        </xsl:element>
    </xsl:template>
    <xsl:template match="node()">
        <xsl:choose>
            <xsl:when test="local-name(.) = '#text'">
                <xsl:value-of select="."/>
            </xsl:when>
            <xsl:when test="local-name(.) = '#comment'"/>
            <!-- to preserve comments, remove the above line and replace with the next three-->
            <!-- <xsl:when test="local-name(.) = '#comment'"> -->
            <!--     <xsl:comment><xsl:value-of select="."/></xsl:comment> -->
            <!-- </xsl:when> -->
            <xsl:otherwise>
                <xsl:element name="{local-name(.)}">
                    <xsl:apply-templates select="node()"/>
                </xsl:element>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
</xsl:stylesheet>
