This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How do i specify maxlenght and size for an input box????
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 01 May 2002 13:31:36 +0200
- Subject: Re: [xsl] How do i specify maxlenght and size for an input box????
- References: <OFD6848D20.3E30D156-ONE5256BAC.003613AB@itsindia.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello Suman,
your code would result in theory in
<input maxlength=""3""/>, which is not well-formed XML of xourse. I
think removing " should solve your problems. And you can write the
attributes as you did it with the type-attribute:
<input type="text" name="txtFaxofAddr"
onBlur="javascript:verifyText(this)" maxlength="3" size="3"
value="{value}"/>
The last one 'value' is a so called "attribute value template" (AVT).
Regards,
Joerg
> <input type="text">
> <xsl:attribute name="name">txtFaxofAddr</xsl:attribute>
> <xsl:attribute name="value"><xsl:value-of select
> ="value"></xsl:value-of></xsl:attribute>
> <xsl:attribute name="onBlur">'verifyText(this);'</xsl:attribute>
> <xsl:attribute name="maxlength">"3"</xsl:attribute>
> <xsl:attribute name="size">"3"</xsl:attribute>
> </input>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list