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]

default attribute values?


Is there a way to ignore an attribute or give it a default value if one
wasn't set?

For example I have
<text name='n' value'x'/>
and want to output
<input type='text' name='n' value='x'/>
but also want to allow for cases where size and/or maxlength attributes are
passed through such as
<input type='text' name='n' value='x' size='10' maxlength='20'/>
.

Right now I'm producing
<input type='text' name='n' value='x' size='' maxlength=''/>
which obviously is not producing very nice output.

Thanks.


Don't dream it. Be it.

;):):-):):-):):-)8')
Michael McGlothlin <mogmios@mlug.missouri.edu>
http://kavlon.org/projects/


 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]