Alessandro Vernet wrote:
<>
Mmmh, that is strange. I cannot reproduce the problem here. I tried to modify
the "XForms Text Controls" example, and added this to the XForms model
(form.xml):
Alex,
I have managed to reproduce the problem in the example by changing the xforms-model to be xpl instead of just xml. I have attached my model. A strange thing is that the output from this xpl pasted into an xml file works fine as the model! Very confusing...
<xforms:bind nodeset="/form/text" calculate="string(doc('oxf:/examples/xforms/xforms-text/example-descriptor.xml')/example-descriptor/title)"/>
This is loading the example title from another file in the first text field, and it works fine. Note that you can also have a relative URL when you call doc(). For instance, in the above case I could simply have doc('example-descriptor.xml') as example-descriptor.xml is in the same directory as form.xml.
I have tried using a relative url but this didnt work either.
Dave, let me know if you can sort this out. Otherwise, can you send us the complete stack trace?
Alex
I can send you a stack trace if you still cant reproduce it but I am pretty sure that you will be able to if you use my model.
David Sinclair.
form.xpl
Description: audio/mpegurl
