XPL and Xquery

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

XPL and Xquery

Lomobob
Hi all,

I would like a better understanding to the following example:

It's written that you have to define the datasource like this:
<datasource>
<driver-class-name>org.exist.xmldb.DatabaseImpl</driver-class-name>
<uri>xmldb:exist://localhost:9999/exist/xmlrpc</uri>
<username>admin</username>
<password>admin</password>
</datasource>
you and then use it with this line
<p:input name="datasource" href="datasource.xml"/>
So I guess that the xml is stored in a file named datasource.xml, but where am I suppose to put the xml file ? In the same location as the xpl file ? in the resources/config/ folder ? Elsewhere ?

Also, in the line 
<xdb:query collection="/db/orbeon/blog-example/blogs" create-collection="true">
What is the "create-collection" attribute for ?

One more last, in the query/update/insert examples, I would like to be sure that : -> 
collection="/db/orbeon/blog-example/blogs" -> blogs is a file without extension in exist ?
<xdb:update collection="/db/orbeon/bizdoc-example"> -> bizdoc-example is also a file without extension in exist ?
<xdb:insert collection="/db/ops/dmv-example"/> -> dmv-example is a file (as the 2 before), and with the line
<p:input name="data" href="#document-info"/> -> we try to add the data #document-info at the end of the file ?
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: XPL and Xquery

Alessandro  Vernet
Administrator
Hi Lomobob,

We haven't used those processors in a long while and I'm not sure to have a quick answer for you. Out of curiosity, what is it that you where trying to achieve using those processors? (I am asking as there might be another way to achieve the same goal.)

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: XPL and Xquery

Lomobob
Hi Alex,

We'd like to find a way to have a unique URL entry that could redirect automatically to the good form, and some info for that are on the eXist database. I'm sure there is another way, but I think it would be very interesting for us to achieve using this processor, maybe for another purpose later.

By the way, another question: I have the feeling that any change on Orbeon and/or eXist is instantly working, except for the change in properties-local.xml, am I wrong ? Is there some documentation on the subject, like in what cases do we need to restart tomcat ?

Thanks

On Wed, Sep 10, 2014 at 12:06 AM, Alessandro Vernet <[hidden email]> wrote:
Hi Lomobob,

We haven't used those processors in a long while and I'm not sure to have a
quick answer for you. Out of curiosity, what is it that you where trying to
achieve using those processors? (I am asking as there might be another way
to achieve the same goal.)

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/XPL-and-Xquery-tp4658937p4658940.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
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].

--
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].