PHP Classes

File: edit.xsl

Recommend this page to a friend!
  Classes of Herman Veluwenkamp   HV WDDX Metadata   edit.xsl   Download  
File: edit.xsl
Role: Auxiliary data
Content type: text/plain
Description: XSL describing XUL form.
Class: HV WDDX Metadata
Generates XUL and HTML forms based on XML config.
Author: By
Last change:
Date: 20 years ago
Size: 2,030 bytes
 

Contents

Class file image Download
<?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>