properties-local.xml

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

properties-local.xml

Lomobob
Hi all, is there a way to use variables in the properties-local.xml file, for example going from this:

<property as="xs:string" name="username-exist" value="user"/>
<property as="xs:string" name="psd-exist" value="foo"/>
<property as="xs:anyURI" name="oxf.fr.persistence.exist.exist-uri" value="http://user:foo@localhost:8080/exist/rest/db/orbeon/fr"/>

to this:

<property as="xs:string" name="username-exist" value="user"/>
<property as="xs:string" name="psd-exist" value="foo"/>
<property as="xs:anyURI" name="oxf.fr.persistence.exist.exist-uri" value="http://%username-exist%:%psd-exist%@localhost:8080/exist/rest/db/orbeon/fr"/>

where %username-exist% and %psd-exist%  would be the variables ? If so, what is the correct syntax ?

Thanks.


--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: properties-local.xml

Erik Bruchez
Administrator
This is not supported in general, and by oxf.fr.persistence.exist.exist-uri in particular.

(Some properties, in particular for simple processes, support XPath templates. Those can call the xxf:property() function to read other properties.)

-Erik