Excerpt from a generic XSLT style sheet for rapid forms rendering.
- By Mike Mannion
- October 16, 2000
Enterprise Java
Rapid GUI Development for the Web: Exploiting Java, XML, and XSLT
Mike Mannion
Listing 1. Excerpt from a generic XSLT style sheet for rapid forms rendering.
<?xml version="1.0" ?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
version="1.0">
<! FORM >
<xsl:template match="Form">
<table border="0" cellPadding="0"
cellSpacing="0" width="464">
<tr>
<td bgColor="#ffffcc" colSpan="2"
height="40" vAlign="top"
align="center">
<strong>
<font color="#336633" face="arial"
size="5">
<xsl:value-of select="@label"/>
</font>
</strong>
</td>
</tr>
</table>
<xsl:apply-templates/>
</xsl:template>
<! ACTION >
<xsl:template match="Action">
<br>
<input type="submit">
<xsl:attribute name="name">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="@label"/>
</xsl:attribute>
</input>
</br>
</xsl:template>
:
:
</xsl:stylesheet>