Skip to Content
XQuery: The XML Query Language
book

XQuery: The XML Query Language

by Michael Brundage
February 2004
Intermediate to advanced
544 pages
9h 55m
English
Addison-Wesley Professional
Content preview from XQuery: The XML Query Language

Appendix E. Grammar

Introduction

This appendix provides an EBNF grammar for the XQuery language. This grammar differs from the official one printed in the standard only in presentation (for example, some names have been changed and some productions cleaned up to make the grammar easier to read).

XQuery borrows two definitions from the XML 1.0 and XML Names specifications: Char and NCName. Because these definitions involve large character tables, I didn't include them here but instead refer you to the URLs in the grammar below.

The XQuery grammar requires that characters be recognized and parsed differently in certain contexts (i.e., a context-sensitive lexer). For example, within element or attribute content, characters are parsed differently than ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XQuery from the Experts: A Guide to the W3C XML Query Language

XQuery from the Experts: A Guide to the W3C XML Query Language

Howard Katz - Editor, Don Chamberlin, Denise Draper, Mary Fernández, Michael Kay, Jonathan Robie, Michael Rys, Jérôme Siméon, Jim Tivy, Philip Wadler
Querying XML

Querying XML

Jim Melton, Stephen Buxton
XSLT and XPATH: A Guide to XML Transformations

XSLT and XPATH: A Guide to XML Transformations

John Robert Gardner, Zarella L. Rendon

Publisher Resources

ISBN: 0321165810Purchase book