Information Technology — Database Languages — SQL — Part 14: XML
Total Page:16
File Type:pdf, Size:1020Kb
WG3:SIA-010 H2-2003-427 ISO/IEC JTC 1/SC 32 Date: 2003-12-29 WD ISO/IEC 9075-14:2007 (E) ISO/IEC JTC 1/SC 32/WG 3 United States of America (ANSI) Information technology Ð Database languages Ð SQL Ð Part 14: XML-Related Specifications (SQL/XML) Technologies de l©informationÐ Langages de base de données — SQL — Partie 14: Specifications à XML (SQL/XML) Document type: International Standard Document subtype: Working Draft (WD) Document stage: (2) WD under Consideration Document language: English PDF rendering performed by XEP, courtesy of RenderX, Inc. Copyright notice This ISO document is a working draft or a committee draft and is copyright-protected by ISO. While the reproduction of working drafts or committee drafts in any form for use by participants in the ISO standards development process is permitted without prior permission from ISO, neither this document nor any extract from it may be reproduced, stored or transmitted in any form for any other purpose without prior written permission from ISO. Requests for permission to reproduce for the purpose of selling it should be addressed as shown below or to ISO©s member body in the country of the requester. ANSI Customer Service Department 25 West 43rd Street, 4th Floor New York, NY 10036 Tele: 1-212-642-4980 Fax: 1-212-302-1286 Email: [email protected] Web: www.ansi.org Reproduction for sales purposes may be subject to royalty payments or a licensing agreement. Violaters may be prosecuted. Contents Page Foreword. ix Introduction. x 1 Scope. 1 2 Normative references. 3 2.1 JTC1 standards. 3 2.2 Other international standards. 3 3 Definitions, notations and conventions. 5 3.1 Definitions. 5 3.1.1 Definitions taken from XML. 5 3.1.2 Definitions taken from XML Schema. 5 3.1.3 Definitions provided in Part 14. 5 3.2 Notation. 7 4 Concepts. 9 4.1 Data types. 9 4.1.1 Naming of predefined types. 9 4.1.2 Comparison and ordering. 9 4.2 XML. 9 4.2.1 Characteristics of XML values. 9 4.2.2 XML comparison and assignment. 10 4.2.3 Operations involving XML values. 10 4.2.4 Registered XML Schemas. 11 4.3 Data analysis operations (involving tables). 12 4.3.1 Aggregate functions. 13 4.4 SQL-invoked routines. 13 4.4.1 Routine descriptors. 13 4.5 SQL-statements. 13 4.5.1 SQL-statements classified by function. 13 4.5.1.1 SQL-session statements. 13 4.6 Basic security model. 14 4.6.1 Privileges. 14 4.7 SQL-sessions. 14 4.7.1 SQL-session properties. 14 4.8 XML namespaces. 15 4.9 Overview of mappings. 15 4.9.1 Mapping SQL character sets to Unicode. 16 4.9.2 Mapping SQL <identifier>s to XML. 16 Contents iii WD ISO/IEC 9075-14:2007 (E) 4.9.3 Mapping SQL data types to XML. 17 4.9.4 Mapping values of SQL data types to XML. 18 4.9.5 Visibility of columns, tables, and schemas in mappings from SQL to XML. 19 4.9.6 Mapping an SQL table to XML. 19 4.9.7 Mapping an SQL schema to XML. 20 4.9.8 Mapping an SQL catalog to XML. 20 4.9.9 Mapping Unicode to SQL character sets. 21 4.9.10 Mapping XML Names to SQL. 21 5 Lexical elements. 23 5.1 <token> and <separator>. 23 5.2 Names and identifiers. 25 6 Scalar expressions. 27 6.1 <data type>. ..