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]

generic template - possible?


I am somewhat new to XSL.  I am trying to write a template that will
convert xhtml forms to wml forms. 
I want to write a generic conversion that will convert:

<FORM method=GET action="http://www.google.com/search";>
<INPUT TYPE=text name=q size=12 maxlength=255 value=""> 
<INPUT type=submit name=btnG VALUE=" Google ">
</FORM>
 
to:

<input name="q" size="12" maxlength="255">
<do type="accept" label="Google"> 


And also convert:

<input size=30 name=p>
<input type=submit value=Search>

to:
<input name="p" size="30">
<do type="accept" label="Search">


Is this possible to do with one template??  I just don't seem to know
how to approach this.  Can anybody help?

Jacob Glenn



 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]