Re: XForms to XHTML (Was: xforms in xhtml, styled using xsl?)

AndrewWatt2001@aol.com wrote:

> In a message dated 21/08/2002 16:23:37 GMT Daylight Time, 
> roger.perttu@easit.se writes:
>
>
>> I'm trying to learn xforms and I need some XSLT sample templates that
>> can convert any xform to simple xhtml. I've used Google without luck.
>>
>> thanks,
>> Roger P
>
>
>
> Roger,
>
> Just curiosity but why do want to convert an XForms document to an 
> XHTML one? What workflow do you have in mind?

We are using MS asp to create HTML forms from JavaScript objects:

<%= LABEL_USER_LNAME %><br>
<input class="FixedSize" type="text" size="20" maxlength="50" 
tabindex="0" <%= FormClass.nameValue(Case1.User, "LName", 
Case1.User.LName) %> onChange="Case1User.fieldChanged();"><br>
<%= LABEL_USER_PHONE0 %><br>
<input class="FixedSize" type="text" size="20" maxlength="50" 
tabindex="0" <%= FormClass.nameValue(Case1.User, "Phone0", 
Case1.User.Phone[0]) %> onChange="Case1User.fieldChanged();"><br>

It's a total mess of data, meta data and web design. I intend to 
represent the objects using XML and use XSLT to create the HTML forms. I 
could invent my own data/meta data representation but I guess I could 
use the relevant parts of  XForms.

>
>
> Or is it a learning process for you to informally map XForms 
> structures to more conventional HTML/XHTML forms?

Yes, that too.

>
>
> Andrew Watt

Received on Thursday, 22 August 2002 08:51:28 UTC