<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output encoding="UTF-8" method="html"/>

    <xsl:strip-space elements="*"/>

    <!-- process classification element -->
    <xsl:template match="classification">
        <div class="classification2" name="classification">

                <xsl:attribute name="id">
                    <xsl:value-of select="concat('facet-div-', @name)" />
                </xsl:attribute>

                <xsl:attribute name="title">
                    <xsl:value-of select="@title"/>
                </xsl:attribute>

                <xsl:attribute name="root-category">
                    <xsl:value-of select="@root-category"/>
                </xsl:attribute>

                <xsl:attribute name="display-type">
                    <xsl:value-of select="@display-type"/>
                </xsl:attribute>

                <div class="titlebox">
                    <span class="classificationtitle">
                        <xsl:value-of select="@title"/>
                    </span>
                </div>
                <div class="valuebox">
                    <xsl:attribute name="id">
                        <xsl:value-of select="concat(@name, '-value_id')" />
                    </xsl:attribute>
                </div>
        </div>
    </xsl:template>

</xsl:stylesheet>