diff -r dee5afe5301f -r 3f74d0d4af4c doc/src/snippets/patternist/introAcneRemover.xq --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/src/snippets/patternist/introAcneRemover.xq Thu Apr 08 14:19:33 2010 +0300 @@ -0,0 +1,8 @@ + + The following skin care products have shipped, ordered by shipping date(oldest first): + { + for $i in doc("myOrders.xml")/orders/order[@product = "Acme Skin Care"] + order by xs:date($i/@shippingDate) descending + return $i + } +