I'm trying to call an XML:DB xpl as discribed in http://www.orbeon.com/ops/doc/processors-xmldb#xmldb
following is my xpl <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors"> <p:param name="data" type="output"/> <p:processor name="oxf:xmldb-query"> <p:input name="datasource" href="datasource.xml"/> <p:input name="query"> <xdb:query collection="/db" create-collection="true"> xquery version "1.0"; <files> { for $file in xmldb-query:get-child-collections('/db') order by $file return <file> {$file} </file> } </files> </xdb:query> </p:input> <p:output name="data" ref="output" debug="true"/> </p:processor> When i run the application, i get The prefix "xdb" for element "xdb:query" is not bound Exception. what did i miss here? Regards, Safraz |
Add xmlns:xdb="http://orbeon.org/oxf/xml/xmldb" to the namespace
declarations in p:config. -Stacy ----- Original Message ----- From: safraz <[hidden email]> Date: Wednesday, July 8, 2009 6:16 am Subject: [ops-users] Exception in XML:DB API > > I'm trying to call an XML:DB xpl as discribed in > http://www.orbeon.com/ops/doc/processors-xmldb#xmldb > http://www.orbeon.com/ops/doc/processors-xmldb#xmldb > > following is my xpl > > > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" > xmlns:oxf="http://www.orbeon.com/oxf/processors"> > > <p:param name="data" type="output"/> > > <p:processor name="oxf:xmldb-query"> > <p:input name="datasource" href="datasource.xml"/> > <p:input name="query"> > <xdb:query collection="/db" create-collection="true"> > xquery version "1.0"; > > <files> > { > for $file in xmldb-query:get- > child-collections('/db') > order by $file > return > <file> > {$file} > </file> > } > </files> > > </xdb:query> > </p:input> > <p:output name="data" ref="output" debug="true"/> > </p:processor> > > > When i run the application, i get The prefix "xdb" for element > "xdb:query"is not bound Exception. > > what did i miss here? > > Regards, > Safraz > -- > View this message in context: http://www.nabble.com/Exception-in- > XML%3ADB-API-tp24389594p24389594.html > Sent from the ObjectWeb 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 |
In reply to this post by safraz
Hi Safraz,
You forgot to define the namespace: xmlns:xdb="http://orbeon.org/oxf/xml/xmldb" Regards, Wouter Zelle On Wed, Jul 8, 2009 at 13:16, safraz <[hidden email]> wrote:
-- 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 |