summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/patternist/introAcneRemover.xq
blob: 4e6ee8044165ebe2868e34804378b9ad747a1ce6 (plain)
1
2
3
4
5
6
7
8
<result>
    <para>The following skin care products have shipped, ordered by shipping date(oldest first):</para>
    {
        for $i in doc("myOrders.xml")/orders/order[@product = "Acme Skin Care"]
        order by xs:date($i/@shippingDate) descending
        return $i
    }
</result>