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