logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [BlueXML-user] Xquery: msg#00019

Subject: Re: [BlueXML-user] Xquery
Marc,
it is the main xquery that will be called by the application. This query is presently stored in the database, at /db/bluexml/xquery/agenda.xq. It uses a query parameter, that is the part after it.

As you will see in the agenda xquery, it waits for an xpath parameter :

let $xpath := p:initParam(request:request-parameter("xpath", ""), "/document[(meta/doctype='atlanticevent')and(substring(meta/dtstart,1,4)>'2004')]") let $sortQuery := p:initParam(request:request-parameter("sortQuery", ""), "meta/dtstart descending")

A default one is provided but it will use the second part of the agenda::/document[(meta/doctype='atlanticevent')and(meta/location='1')] if there is one.

Jean-Christophe

Marc Salvetti a écrit :
Hi,

i'm trying to understand what is the word at the beginning of the xquery (agenda), is it the collection ? if so, should i see the collection when i browse with the exist client ?

        <bookmark
            metaShort="atlanticevent"
            viewType="table"
query="agenda::/document[(meta/doctype='atlanticevent')and(meta/location='1')]">
            <title>1</title>
            <!--icon>/content/images/nuvola/16x16/apps/date.png</icon-->
        </bookmark>


Thanks,

Marc


------------------------------------------------------------------------

_______________________________________________
User mailing list
User-E0IXfuzpajFHgg9j4ji3+w@xxxxxxxxxxxxxxxx
http://mlm.triglyphe.com/mailman/listinfo/user


--

Jean-Christophe Kermagoret
jck-Fe0rVDy9n8bGMhJkb3I8aA@xxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>