<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="xul_elements.xsl"/>
<xsl:output method="xml" indent="yes" omit-xml-declaration ="yes"/>
<xsl:param name="action"/>
<xsl:param name="title"/>
<xsl:template match="data/struct">
<vbox flex="1" style="overflow: auto;">
<groupbox>
<caption label="Details"/>
<grid id="form-input" flex="1">
<columns><column flex="0" class="description"/><column flex="1"/><column flex="0"/></columns>
<rows>
<xsl:for-each select="var/struct">
<row>
<xsl:attribute name="id"><xsl:value-of select="var[@name='name']/string"/>_row</xsl:attribute>
<label class="description"><xsl:value-of disable-output-escaping="true" select="var[@name='description']/string"/></label>
<xsl:call-template name="element"/>
<!-- VALIDATION ERROR MESSAGE CHECK-->
<label class="message">
<xsl:attribute name="id"><xsl:value-of select="var[@name='name']/string"/>_message</xsl:attribute>
<xsl:if test="var[@name='validation-error']">
<xsl:attribute name="class">formError</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="var[@name='validation-error']/string"/>
</xsl:attribute>
</xsl:if>
</label>
</row>
</xsl:for-each>
</rows>
</grid>
</groupbox>
</vbox>
<vbox class="buttons">
<hbox>
<button id="button_command" type="normal" label="apply" oncommand="validate('{$action}');"/>
</hbox>
</vbox>
</xsl:template>
</xsl:stylesheet>
|