Revisions
-
Steve Baskauf revised this gist
Feb 19, 2015 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,14 @@ let $books := <books> <book class="fiction">Book of Strange New Things</book> <book class="nonfiction">Programming Scala</book> <book class="fiction">Absurdistan</book> <book class="nonfiction">Art of R Programming</book> <book class="fiction">I, Robot</book> </books> for $book in $books/book let $title := $book/text()||" " let $class := " "||$book/@class||" " order by $title group by $class return ($class, $title) -
CliffordAnderson created this gist
Feb 18, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ let $books := <books> <book class="fiction">Book of Strange New Things</book> <book class="nonfiction">Programming Scala</book> <book class="fiction">Absurdistan</book> <book class="nonfiction">Art of R Programming</book> <book class="fiction">I, Robot</book> </books> for $book in $books/book let $title := $book/text() let $class := $book/@class order by $title group by $class return ($class, $title)