--- David Sinclair <[EMAIL PROTECTED]> wrote:
> I should probably mention that when I hack round the previous problem by
> putting in a hard coded user, I seem to have another problem.
>
> The doc() function still does not seem to work in model item
> properties. I get the following error:
>
> Type class org.orbeon.oxf.common.ValidationException
> Message null, line -1, column -1 : Failed to load document
> oxf:/xml/user.xml when evaluating
> 'doc('oxf:/xml/user.xml')/user/LDAPUid' : null, line -1, column -1:
> Failed to load document oxf:/xml/user.xml when evaluating
> 'doc('oxf:/xml/user.xml')/user/LDAPUid'
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):
<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.
Dave, let me know if you can sort this out. Otherwise, can you send us the
complete stack trace?
Alex
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user