-
144
pages
-
English
-
Documents
Description
XQuery TutorialPeter Fankhauser, Fraunhofer IPSIPeter.Fankhauser@ipsi.fhg.dePhilip Wadler, Avaya Labswadler@avaya.comAcknowledgementsThis tutorial is joint work with:Mary Fernandez (AT&T)Gerald Huck (IPSI/Infonyte)Ingo Macherius (IPSI/)Thomas Tesch (IPSI/Infonyte)Jerome Simeon (Lucent)The W3C XML Query Working GroupDisclaimer: This tutorial touches on open issues of XQuery.Other members of the XML Query WG may disagree with ourview.GoalsAfter this tutorial, you should understand• Part I XQuery expressions, types, and laws• Part II XQuery laws and XQuery core• Part III XQuery processing model• Part IV XQuery type system and XML Schema• Part V Type inference and type checking• Part VI Where to go for more information“Where a mathematical reasoning can be had, it’s asgreat folly to make use of any other, as to grope for athing in the dark, when you have a candle standing byyou.”— ArbuthnotPart IXQuery by exampleXQuery by exampleTitles of all books published before 2000/BOOKS/BOOK[@YEAR < 2000]/TITLEYear and title of all books published before 2000for $book in /BOOKS/BOOKwhere $book/@YEAR < 2000return { $book/@YEAR, $book/TITLE } Books grouped by authorfor $author in distinct(/BOOKS/BOOK/AUTHOR) return{/BOOKS/BOOK[AUTHOR = $author]/TITLE} Part I.1XQuery data modelSome XML dataAbiteboul Buneman Suciu< ...
-
Publié par
-
Langue
English