Parameter

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

Parameter

damien.peymirat
Hi all,


   I have done a form to upload documents in eXist database. So I have a processor like this (to insert a document in eXist) :

<p:processor name="oxf:xmldb-insert">
  <p:input name="datasource" href="datasource.xml"/>
  <p:input name="query">
    <xdb:insert collection="/db/sxmldb/test" create-collection="true" resource-id="test3.xml"/>
  </p:input>
  <p:input name="data" href="#test"/>
</p:processor>


However, I would like to enter a collection name in my form (a simple input) and use this name as parameter in the code above.

e.g : <xdb:insert collection=" --parameter-- " ...>

How can I do that ??

Thank you for your answers

Bye

Damien.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Parameter

Ryan Puddephatt
Damien,
        You could use an XSLT processor to create you insert query xml,
whilst merging the collection from your submitted instance. Then just
include the output of the XSLT into the xmldb processor on a @href

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: [hidden email]
>[mailto:[hidden email]]
>Sent: 25 July 2006 16:38
>To: [hidden email]
>Subject: [ops-users] Parameter
>
>Hi all,
>
>
>   I have done a form to upload documents in eXist database.
>So I have a processor like this (to insert a document in eXist) :
>
><p:processor name="oxf:xmldb-insert">
>  <p:input name="datasource" href="datasource.xml"/>
>  <p:input name="query">
>    <xdb:insert collection="/db/sxmldb/test"
>create-collection="true" resource-id="test3.xml"/>
>  </p:input>
>  <p:input name="data" href="#test"/>
></p:processor>
>
>
>However, I would like to enter a collection name in my form (a
>simple input) and use this name as parameter in the code above.
>
>e.g : <xdb:insert collection=" --parameter-- " ...>
>
>How can I do that ??
>
>Thank you for your answers
>
>Bye
>
>Damien.
>
>



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws