<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE stylesheet [
<!ENTITY % w3centities-f PUBLIC "-//W3C//ENTITIES Combined Set//EN//XML"
"http://www.w3.org/2003/entities/2007/w3centities-f.ent">
%w3centities-f;
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:param name = "title" />
<xsl:output method="xml" indent="yes"  omit-xml-declaration="yes"/>
<xsl:template match="/bonsole_window">
<bonsole_window>
<xsl:apply-templates select="message"/>
<h1><xsl:value-of select="$title"/></h1>
<xsl:apply-templates select="*[not(self::message)]"/>
</bonsole_window>
</xsl:template>
<xsl:template match="base">
<xsl:copy-of select="."/>
</xsl:template>
<xsl:template match="progress">
<xsl:copy-of select="."/>
<!-- <progress><xsl:copy-of select="@*"/><xsl:copy-of select="text"/></progress> -->
</xsl:template>
<xsl:template match="message">
<message><xsl:copy-of select="@*" /><xsl:copy-of select="*|text()" /></message>
</xsl:template>
<xsl:template match="file">
<file>
<xsl:copy-of select="@*" />
<xsl:copy-of select="*" />
</file>
</xsl:template>
<xsl:template match="a">
<xsl:copy-of select="." />
</xsl:template>
<xsl:template match="edit">

  <xsl:copy-of select="." />
  
</xsl:template>
<xsl:template match="checkbox">

<xsl:copy-of select="." />

</xsl:template>
<xsl:template match="form">

<xsl:copy-of select="." />

</xsl:template>
<xsl:template match="/internal_window">
<xsl:copy-of select="." />
</xsl:template>
<xsl:template match="/internal_struct">
<xsl:copy-of select="." />
</xsl:template>
<xsl:template match="/internal_window/debug_info">
<xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>
