This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
generic template - possible?
- From: "Jacob P. Glenn" <jpglenn2 at hotmail dot com>
- To: <XSL-List at lists dot mulberrytech dot com>
- Date: Tue, 16 Apr 2002 02:40:04 -0400
- Subject: [xsl] generic template - possible?
- Reply-to: xsl-list at lists dot mulberrytech dot com
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