<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="ALLOW-PUBLISH-SETTINGS-MANAGEMENT">
</xsl:template>

<xsl:template match="ALLOW-PUBLISH-SETTINGS-MANAGEMENT">
	<fieldset class="sb-form-fieldset">
		<legend class="sb-label-toolbar-title"><xsl:value-of select="@TITLE"/></legend>
		<xsl:apply-templates select="CONTROL[@NAME='isPublicationSettingsManagementAllowed']" mode="TITLE-RIGHT">
			<xsl:with-param name="onChange">self.sbApplyChangesObject.registerChange();</xsl:with-param>
		</xsl:apply-templates>
	</fieldset>
</xsl:template>

<xsl:template match="PUBLISH-MODES-MANAGEMENT">
	<fieldset class="sb-form-fieldset">
		<legend class="sb-label-toolbar-title"><xsl:value-of select="@TITLE"/></legend>
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<xsl:for-each select="CONTROL">
				<tr>
					<xsl:attribute name="class">
						<xsl:choose>
							<xsl:when test="position() mod 2 = 0">sb-formview-alternaterow</xsl:when>
							<xsl:otherwise>sb-formview-row</xsl:otherwise>
						</xsl:choose>
					</xsl:attribute>
					<td style="padding: 0px 0px 8px 0px;">
						<xsl:apply-templates select="." mode="TITLE-RIGHT">
							<xsl:with-param name="onChange">self.sbApplyChangesObject.registerChange();</xsl:with-param>
						</xsl:apply-templates>
					</td>
				</tr>
			</xsl:for-each>
		</table>
	</fieldset>
</xsl:template>

</xsl:stylesheet>