[xsl] generic template - possible?

Subject: [xsl] generic template - possible?
From: "Jacob P. Glenn" <jpglenn2@xxxxxxxxxxx>
Date: Tue, 16 Apr 2002 02:40:04 -0400
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


Current Thread