Martin,
Does your model generate an "instance" output, and/or a "data" output?
In your stylesheet, <xsl:value-of select="/config/idx_qa_percentage"/> applies to the main input of the XSLT view, which can either be fed by the "data" output of the model if present, or by the "instance" output of the model if the "data" output is missing.
On the other hand, the XForms controls of the view necessarily operate on the XForms instance. By default, the XForms instance contains only the default values that you declare in your XForms model. If the user submits a form, the instance will be updated. But how do you get to update an XForms instance independently from user input? You have two ways:
1. In your page model, declare an "instance" output, and, possibly conditionally, generate or update the appropriate instance document on that output. This will update the instance used by the view.
2. In the Page Flow, in an action result, you have the opportunity to update the destination page's XForms instance. The BizDoc examples illustrates this.
I hope this helps,
-Erik
Martin Cosgrave wrote:
Hi there
I have the following view.xsl, for a model generated out of a sql database. I can verify that the instance has been populated because the xsl:value-of gives me the correct result, but the form fields do not contain the data. What have I done wrong?
Cheers, Martin
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="2.0"> <head> <title>Configuration Interface</title> </head> <body> <xsl:value-of select="/config/idx_qa_percentage"/> <table> <xforms:group> <tr> <td align="right">Index QA %age</td> <td> <xforms:input ref="/config/idx_qa_percentage"/> </td> </tr> <tr> <td align="right">Image QA %age</td> <td><xforms:input ref="/config/img_qa_percentage"/></td> </tr> <tr> <td align="right"><xforms:submit><xforms:label>Update configuration</xforms:label></xforms:submit></td> </tr> </xforms:group> </table> </body> </html>
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user
