Exception in XML:DB API

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

Exception in XML:DB API

safraz
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
Reply | Threaded
Open this post in threaded view
|

Re: Exception in XML:DB API

stacyladnier
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
Reply | Threaded
Open this post in threaded view
|

Re: Exception in XML:DB API

Wouter Zelle
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:

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




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