The XQuery engine in WebLogic 8.1 supports the August 2002 version of the XQuery spec.
The "order by" clause was introduced in the November 2002 version.
In the August 2002 version sorting is done using the "sort by" expression.
(http://www.w3.org/TR/2002/WD-xquery-20020816/#id-sort-expressions)

So this query should produce the desired result:

<DataSet> {
    for $a in $this//DataItem
    return
        <DataItem> {
            $a/*
        } </DataItem>
    sort by (Name)
} </DataSet>

Cheers,
Till

-----Original Message-----
From: Vineet Bhatia [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 9:23 AM
To: [email protected]
Subject: XQuery Order by support in xmlbeans

Is this supported in XMLBeans weblogic 8.1 sp4?

    <DataSet>
    {
    for $a in //DataItem
    order by $a/Name
    return
    <DataItem>
        {$a/*}
    </DataItem>
    }
    </DataSet>

I didn't get any help from BEA's xmlbeans forum.
I want to sort the xmlbean by $a/Name.
This works on saxon's xquery implementation.

Thanks in advance.
- vineet



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to