Hello
I try with Orbeon 4.0.1 to define my own properties. When I declared the property in the properties-local.xml file, I can read it in a xpl file. But when I declared it in a file named properties.xml (always in the directory config), I can not read it. How can I make it ? Thank You. Julien |
Administrator
|
Julien,
You have to use either properties-local.xml or the associated run mode files (properties-local-dev.xml or properties-local-prod.xml). You can't just use a file name of your own choosing. -Erik |
Hello,
If I try the properties.xml file name, it's because of the wiki : http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties#TOC-Defining-your-own-properties My need is to provide a property file customizable by the customer. I am forced to use the properties-local.xml file ? In the wiki, it says that you can use Xinclude, how can I do ? Thank You. Julien |
Administrator
|
Julien,
I see. You can use XInclude in properties-local.xml: <properties xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="my-properties.xml"/> </properties> And my-properties.xml needs to be present at the same level. But you can't use properties.xml as a name, because that's already used by Orbeon Forms behind the scene. -Erik On Tue, Mar 19, 2013 at 8:06 AM, ricetrac <[hidden email]> wrote: > Hello, > > If I try the properties.xml file name, it's because of the wiki : > http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties#TOC-Defining-your-own-properties > > My need is to provide a property file customizable by the customer. I am > forced to use the properties-local.xml file ? > > In the wiki, it says that you can use Xinclude, how can I do ? > > Thank You. > > Julien > > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/How-to-define-my-own-properties-tp4656422p4656433.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Yes, it's exactly what I need.
Thank you. Julien Le 20 mars 2013 à 00:06, "Erik Bruchez" <[hidden email]> a écrit : > Julien, > > I see. You can use XInclude in properties-local.xml: > > <properties xmlns:xi="http://www.w3.org/2001/XInclude"> > <xi:include href="my-properties.xml"/> > </properties> > > And my-properties.xml needs to be present at the same level. > > But you can't use properties.xml as a name, because that's already > used by Orbeon Forms behind the scene. > > -Erik > > On Tue, Mar 19, 2013 at 8:06 AM, ricetrac <[hidden email]> wrote: >> Hello, >> >> If I try the properties.xml file name, it's because of the wiki : >> http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties#TOC-Defining-your-own-properties >> >> My need is to provide a property file customizable by the customer. I am >> forced to use the properties-local.xml file ? >> >> In the wiki, it says that you can use Xinclude, how can I do ? >> >> Thank You. >> >> Julien >> >> >> >> >> -- >> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/How-to-define-my-own-properties-tp4656422p4656433.html >> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |