This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How do i specify maxlenght and size for an input box????


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]