W3C home > Mailing lists > Public > www-forms@w3.org > August 2002

RE: xslt stylesheet for xforms to xhtml

From: Bernhard Zwischenbrugger <datenkueche2001@yahoo.de>
Date: Fri, 30 Aug 2002 11:09:49 +0200 (CEST)
Message-ID: <20020830090949.20908.qmail@web21206.mail.yahoo.com>
To: Robert Trybis <rt@cygnets.co.uk>
Cc: www-forms@w3.org

I'm working on that.
I use libxslt with some exslt extrensions
(http://www.exslt.org).

It will work this way
=====================
Generate XHTML:
xhtml/xforms + instancedata.xml --xslt->
xhtml/javascript

The Browser will submit XML to the Webserver!!!!

Here some pseudo code:

// Javascript generated by XSLT
function submit()
{
xmlToPost='<?xml version="1.0" encoding="utf-8"?>
<test>
	<name>'+document.formXY.fieldXY.value+'</name>
</test>';
docuemnt.hiddenform.textareaXY.value=xmlToPost;
document.hiddenform.submit();
}
// End Javascript generated by XSLT	


###xslt############
<xsl:template match="//xforms:secret" mode="all">
        <xsl:value-of select="xforms:caption"/>:<br/>
        <input type="password" name="{@ref}
value="{myexslt:getInstanceData(@ref)}"/><br/>
</xsl:template>

---------------------

I will not support the full XForms standard, but if
you want, I can start a SourceForge Project.

Hope you get an idea of the thing I try to develop.

Bernhard
http://datenkueche.com



__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de
Received on Friday, 30 August 2002 05:09:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:51 GMT