<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes" cdata-section-elements="script"/>
	<!-- 10/25/2012 - method is xml instead of html because in html mode it adds disabled instead of disabled="disabled" 
	                  and if so a double wrap of panel will cause an error -->
<xsl:template match="form">
	<xsl:apply-templates select="node()|@*"/>
</xsl:template>
<xsl:template match="@*[starts-with(name(),'on')]"></xsl:template>
<xsl:template match="span[@class='chars-left']"></xsl:template>
<xsl:template match="script"></xsl:template>
<xsl:template match="*[contains(@style,'display:none')]"></xsl:template>
<xsl:template match="input">
	<xsl:copy>
		<xsl:apply-templates select="node()|@*"/>
		<xsl:attribute name="disabled">disabled</xsl:attribute>
	</xsl:copy>
</xsl:template>
<xsl:template match="textarea">
	<xsl:copy>
		<xsl:attribute name="disabled">disabled</xsl:attribute>
		<xsl:apply-templates select="@*"/>
		<xsl:value-of select="."/><xsl:text> </xsl:text>
	</xsl:copy>
</xsl:template>
<xsl:template match="select">
	<xsl:copy>
		<xsl:attribute name="disabled">disabled</xsl:attribute>
		<xsl:apply-templates select="node()|@*"/>
	</xsl:copy>
</xsl:template>
<xsl:template match="input[@type='button' or @type='submit' or @type='hidden']"></xsl:template>
<xsl:template match="xinput[@type='button' or @type='submit' or @type='hidden']"> <!--  disabled - note sure why this was changing to empty spans -->
	<span></span>
</xsl:template>
<xsl:template match="node()|@*">
	<xsl:copy>
		<xsl:apply-templates select="node()|@*"/>
	</xsl:copy>
</xsl:template>
</xsl:transform>