IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  Sorting by a criterion

    Posted Wed September 05, 2001 03:44 PM

    I have a question about sorting documents in Tamino. Sorting by a single node works OK. But if I need to specify a criterion to choose a node for sorting…

    For example,


    2
    3
    1

    And now I need to query all the documents and sort them by prioprity of type B.

    I think the query string should look like this

    document sortby (priority[@type=“B”])

    The grammar for X-Query permits such a query. But Tamino internal error occurs (INOXIE8357).

    Does it mean that this version of Tamino (2.3.1.1) cannot help me here?

    Thanks for answers in advance


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: Sorting by a criterion

    Posted Thu September 06, 2001 09:51 AM

    Hello Alexander,

    The correct query will be:
    document sortby (priority[/@type=“B”])

    I did the same thing and it is working.


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: Sorting by a criterion

    Posted Thu September 06, 2001 11:07 AM

    Unfortunately, Natalia, your query is not working.

    If you begin predicate expression with “/”, it means that you specify absolute path to a node. The node after slash is considered as a root node. An attribute can never be a root node in XML. That is why no node will be chosen for sorting.

    Tamino does not sign an error but It does not return the result needed either. All documents are in default order (sorted by ino:id).


    #webMethods
    #Tamino
    #API-Management


  • 4.  RE: Sorting by a criterion

    Posted Mon September 17, 2001 11:05 PM

    Just a quick check - do you have the index type of the element set to standard or standard text - you get some really odd behaviours if you haven’t.

    Ken R.


    #webMethods
    #Tamino
    #API-Management


  • 5.  RE: Sorting by a criterion

    Posted Tue September 18, 2001 02:18 AM

    From what I have read what you are trying to do is not possible at this stage. The query originally specified returns no errors but also does not sort.

    Cheers
    Daniel


    #API-Management
    #webMethods
    #Tamino


  • 6.  RE: Sorting by a criterion

    Posted Tue September 18, 2001 09:21 AM

    As I read in SAGSIS this feature has not been implemented yet :(. They promise it will be possible in future versions, may be in Newcastle.


    #API-Management
    #webMethods
    #Tamino