egroupware_official/etemplate/templates/default/test.xsl
Ralf Becker c9170e138e added xslt_widget: renders html via Seek3r/ceb's xslt-templates
Example is the tpl etemplates.xslt_widget.test with the xslt-file etemplate/templates/default/test.xsl
2002-09-29 22:27:18 +00:00

26 lines
819 B
XML

<!-- $Id$ -->
<xsl:template match="PHPGW">
<xsl:value-of select="label"/>
<input>
<xsl:attribute name="name"><xsl:value-of select="name"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="value"/></xsl:attribute>
<xsl:choose>
<xsl:when test="readonly!=0">
<xsl:attribute name="READONLY"/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="statustext!=''">
<xsl:attribute name="onFocus">self.status='<xsl:value-of select="statustext"/>'; return true;</xsl:attribute>
<xsl:attribute name="onBlur">self.status=''; return true;</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="attr/class!=''">
<xsl:attribute name="class"><xsl:value-of select="attr/class"/></xsl:attribute>
</xsl:when>
</xsl:choose>
</input>
</xsl:template>