Java Reference
In-Depth Information
<INPUT type="text" name="year">
<xsl:attribute name="value">
<xsl:value-of select="Year"/>
</xsl:attribute>
</INPUT>
</TD>
</TR>
<TR>
<TD>Make</TD>
<TD>
<INPUT type="text" name="make">
<xsl:attribute name="value">
<xsl:value-of select="Make"/>
</xsl:attribute>
</INPUT>
</TD>
</TR>
<TR>
<TD>Model</TD>
<TD>
<INPUT type="text" name="model">
<xsl:attribute name="value">
<xsl:value-of select="Model"/>
</xsl:attribute>
</INPUT>
</TD>
</TR>
<TR>
<TD COLSPAN="2">
<INPUT type="submit" value="CLICK HERE TO SUBMIT CHANGES"/>
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
This stylesheet generates the form shown in Figure 15-4 . It uses the same <xsl:value-of> tags to
get the data from the XML file, but this time it wraps them in an HTML form, using the
<xsl:attribute> tag, so that rather than just displaying the vehicle data, the stylesheet uses the
data to preload a form.
Search WWH ::




Custom Search