XML Schema 1.0 2006 5 22
1....1 1.1...1 1.2...2 1.3...2 1.4...3 1.5...3 2....5 2.1...5 2.2 XML...7 2.3...8 3....10 3.1...10 3.2...13 4....17 4.1...17 4.2...19 4.3...22 4.4...25 4.5...26 4.6...26 4.7...27 4.8...28 5....30 5.1...30 5.2...31 5.3...31 5.4...32 6....33 6.1...33 6.1.1...33 6.1.2...34 6.2...35 6.2.1...35 6.2.2...35 i
6.2.3...35 6.2.4...36 6.3...36 7....37 7.1 XML Schema...37 1...38 2...42 3...43 ii
1. XML XML XML XML W3C XML Schema XML Schema XML XML Schema XML SchemaW3C XML "XML Schema 1.0" 1 XML XML XML XML XML XML XML 1.1 W3C XML Schema 1.0 XML XML XML1.0 DTD Document Type Definition 1 "Schema Part 1: Structures Second Edition XML Schema" "Part 2: Datatypes Second Edition" 1
1.2 XML W3C XML Schema 1.0 1.3 The Internet Engineering Task Force IETFRFC-2119 2 IETF RFC-2119 MUST SHALL REQUIRED MUST NOT SHALL NOT SHOULD RECOMMENDED SHOULD NOT NOT RECOMMENDED MAY OPTIONAL 1 2 RFC-2119 http://www.ietf.org/rfc/rfc2119.txt 2
1.4 XML Schema 6 1 2 3 4 5 6 7 1.5 3 [ ] "RRRn""RRR" n ATD ATN CTD DOC ELD ETN 3
GNR GXS IND NMS RED SSM STD TDN XML 2 1W3C XML Schema 1.0 XML Schema 4
2. XML 2.1 ER Entity Relationship Diagram UML Unified Modeling Language ER UML ER ER "" "" 5
1 ER "" "" 1 0..* 2 6
Geography Markup Language GML UML Geography Markup Language Annex E "UML-to-GML Application Schema Encoding Rules" 2.2 XML XML Schema ER UML 1 2 3 UML 7
<!-- --> <xsd:element name=""> <xsd:complextype> <xsd:element ref="" maxoccurs="unbounded"/> </xsd:complextype> </xsd:element> <xsd:element name="" type="companytype"/> <xsd:element name="" type="employeetype"/> <xsd:complextype name="companytype"> <xsd:sequence> <xsd:element name="" type="nametype"/> <xsd:element name="" type="addresstype"/> 2 1 <xsd:element name="" maxoccurs="unbounded"/> </xsd:sequence> </xsd:complextype> 3 <xsd:complextype name="employeetype"> <xsd:sequence> <xsd:element name="" type="departmenttype"/> <xsd:element name="" type="nametype"/> <xsd:element name="" type="addresstype"/> </xsd:sequence> </xsd:complextype> <xsd:element name="" type="xsd:string"/> <xsd:element name="" type="xsd:string"/> <xsd:element name="" type="xsd:string"/> <xsd:element name=""> <xsd:complextype> <xsd:sequence> <xsd:element ref="" maxoccurs="unbounded"/> </xsd:sequence> </xsd:complextype> </xsd:element> XML 2.3 2 1 2 8
XML 9
3. 3.1 XML XML Schema XML DocBook DocBook 3 docbook.xsd OASIS (Organization for the Advancement of Structured Information Standards) DocBook Technical Committee DocBook4.2 DTD OASIS http://www.docbook.org/ DTD XML Schema XML Schema 5.0 10
DocBook docbook.xsd DocBook dbhierx.xsd DocBook dbpoolx.xsd DocBook dbnotnx.xsd DocBook 3 DocBook XML.xsd <xsd:element name= type= quotationtype /> <xsd:complextype= quotationtype > <xsd:sequence> <xsd:element name= productinfotype /> </xsd:sequence> <xsd:complextype= productinfotype > <sequence> <xsd:element name= type= productname /> <xsd:element name= type= model /> </xsd:complextype>.xsd <xsd:element name= type= invoicetype /> <xsd:complextype= invoicetype > <xsd:sequence> <xsd:element name= productinfotype /> </xsd:sequence> <xsd:complextype= productinfotype > <sequence> <xsd:element name= type= productname /> <xsd:element name= type= model /> </xsd:complextype> 4 11
XML Schema.xsd <xsd:element name= type= quotationtype /> <xsd:complextype= quotationtype > <xsd:sequence> <xsd:element name= productinfotype /> </xsd:sequence>.xsd <xsd:element name= type= invoicetype /> <xsd:complextype= invoicetype > <xsd:sequence> <xsd:element name= productinfotype /> </xsd:sequence>.xsd <xsd:complextype= productinfotype > <sequence> <xsd:element name= type= productname /> <xsd:element name= type= model /> </xsd:complextype> 5 Open Travel Alliance OTA Extensible Business Reporting Language XBRL 12
3.2 - - - - complextype - - simpletype 6 3 13
/ / 7 XML 14
/ A / / A / / B / / / 8 XML XML XML 15
------- A ------- A B C ------- B ------- ------- C ------- / A / / A / / B / / / / / / 9 16
4. 4.1 XML XML schema [GXS 1] XML XML [GXS 2] XML UTF-8 UTF-8 [GXS 3] W3C XML Schema "xsd" "xs" "xsd" "xs" 17
[GXS 4] [GXS 5] [GXS 6] [GXS 7] elementformdefault="qualified" <xsd:schema> xsd:element form [GXS 8] attributeformdefault="unqualified" XML attributeformdefault "unqualified" 18
[GXS 9] DOCTYPE XML DTD XML Schema DOCTYPE XML Schema DOCTYPE [GXS 10] xml:lang xml:lang [GXS 11] W3C XML Schema <xsd:import/> 4.2 19
[GXS 12] (/**/ "<>" ) [GXS 13] 20
(3.2 3 ) 21
4.3 XML Schema [SSM 1] 22
SchemaA.xsd <xsd:include schemalocation= SchemaB.xsd /> SchemaB.xsd <xsd:include schemalocation= SchemaC.xsd /> SchemaC.xsd <xsd:include schemalocation= SchemaA.xsd /> 10 SchemaA.xsd <xsd:include schemalocation= SchemaB.xsd /> SchemaB.xsd <xsd:include schemalocation= SchemaA.xsd /> 11 [SSM 2] 23
[SSM 3] A B X AB A X <xsd:include schemalocation= A /> <xsd:include schemalocation= B /> A <xsd:element name= B > <xsd:element ref= A /> </xsd:element> B <xsd:element name= A > </xsd:element> 12 A B [SSM 4] XML Schema 24
[SSM 5] namespace 4.4 [NMS 1] URI URI (Uniform Resource Identifiers) [NMS 2] [NMS 3] 25
4.5 [GXS 14] XML xsd:annotation [GXS 15] 4.6 XML XML [DOC 1] xsd:annotation xsd:documentation 26
[DOC 2] xsd:annotation XML xsd:annotation [DOC 3] xsd:appinfo xsd:appinfo xsd:annotation 4.7 XML 27
[GXS 16] Dublin Core Metadata Element Set http://dublincore.org/documents/dces/ 4.8 [IND 1] [IND 2] XML 28
[IND 3] xsi:schemalocation XML xsi:schemalocation xsi:schemalocation 29
5. 5.1 [GNR 1] [GNR 2] [GNR 3] [GNR 4] ID Num xsd:annotation [GNR 5] 30
5.2 [ETN 1] UpperCamelCase UpperCamelCase XML <ProfitAndLossAccount> <profitandlossaccount> 5.3 [TDN 1] " Type" " Type" [TDN 2] 31
5.4 [ATN 1] XML XML 32
6. 6.1 XML Schema XML Schema xsd:anytype xsd:restriciton xsd:extension 6.1.1 [STD 1] xs:union 1 xs:union [STD 2] xsd:pattern XML Schema XML Schema ^/ XML Schema [STD 3] xsd:enumeration enumeration 33
6.1.2 [CTD 1] xsd:anytype XML Schema anytype anytype [CTD 2] <xsd:complextype/> W3C XML Schema 1.0 [CTD 3] [CTD 4] xsd:any [CTD 5] minoccurs="0" maxoccurs="0" XML Schema maxoccurs minoccurs minoccurs="0" maxoccurs="0" 34
[CTD 6] xsd:all xsd:all 6.2 6.2.1 6.2.2 6.2.3 [ELD 1] substitutiongroup [ELD 2] abstract 35
abstract substitution 6.2.4 XML [RED 1] XML 6.3 [ATD 1] [ATD 2] xsd:anyattribute 36
7. 7.1 XML Schema [GXS 17] xsd:redefine 37
1 [ATD] ATD1 ATD2 xsd:anyattribute [ATN] ATN1 [CTD] CTD1 xsd:anytype CTD2 <xsd:complextype/> CTD3 CTD4 xsd:any CTD5 minoccurs="0" maxoccurs="0" CTD6 xsd:all [DOC] DOC1 xsd:annotation xsd:documentation DOC2 xsd:annotation DOC3 xsd:appinfo [ELD] ELD1 substitutiongroup ELD2 abstract [ETN] UpperCamelCase ETN1 38
[GNR] GNR1 GNR2 GNR3 GNR4 GNR5 [GXS] XML GXS1 XML GXS2 XML UTF-8 GXS3 W3C XML Schema "xsd" "xs" GXS4 GXS5 GXS6 GXS7 elementformdefault="qualified" GXS8 attributeformdefault="unqualified" GXS9 DOCTYPE XML DTD GXS10 xml:lang GXS11 GXS12 GXS13 GXS14 GXS15 GXS16 39
GXS17 xsd:redefine [IND] IND1 IND2 XML IND3 xsi:schemalocation [NMS] NMS1 URI NMS2 NMS3 [RED] RED1 [SSM] SSM1 SSM2 SSM3 SSM4 SSM5 namespace 40
[STD] STD1 xs:union STD2 xsd:pattern XML Schema STD3 xsd:enumeration [TDN] TDN1 " Type" TDN2 41
2 XML Schema OASIS Universal Business Language (UBL) Naming and Design Rules http://www.oasis-open.org/committees/download.php/10323/cd-ubl-ndr-1.0rev1c.pdf UN/CEFACT XML Naming and Design Rules http://www.disa.org/cefact-groups/atg/downloads/naminganddesignrules_1.1a.pdf Federal XML Naming and Design Rules http://xml.coverpages.org/federal-ndr-20050609.pdf e-government Schema Guidelines for XML http://www.govtalk.gov.uk/documents/schema-guidelines-3_1.pdf 42
3 News Markup Language (NewsML) 1.2 2003 10 1 XML URLhttp://www.newsml.org/pages/spec_main.php DocBook 4.2 2002 6 URLhttp://www.docbook.org/xsd/4.2/index.html OASIS DocBook Technical Committee DocBook4.2 DTD OASIS DTD XML Schema XML Schema 5.0 MARC21 1.1 2003 8 4 XML URLhttp://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd 43
Microsoft Office 2003 XML Reference Schemas 4 DataDiagramML Visio InfoPath FDS InfoPath SpareadSheetML Excel WordprocessingML Word 2005 1 14 Office XML URLhttp://www.microsoft.com/downloads/details.aspx?FamilyId=FE118952-3547-420A-A412-00A2662442D9&displaylang=en Geography Markup Language (GML) 3.1 2004 1 1 URLhttp://portal.opengis.org/files/?artifact_id=4700 Synchronized Multimedia Integration Language (SMIL) 2.0 2005 1 7 XML URLhttp://www.w3.org/2001/SMIL20/schemas.zip Mathematical Markup Language (MathML) 2.0 2001 2 21 XML URLhttp://www.w3.org/Math/XMLSchema/mathml2/ 44
Systems Biology Markup Language (SBML) Level2, Version1 2005 3 22 XML URLhttp://heanet.dl.sourceforge.net/sourceforge/sbml/sbml-level-2-v1-sche ma.zip Chemical Markup Language CML 2.1.1 2003 7 15 URLhttp://www.xml-cml.org/dtdschema/ Extensible 3D (X3D) 3.0 2003 9 16 3D VRML XML URLhttp://www.web3d.org/specifications/x3d-3.0.xsd LandXML 1.0 2002 6 URLhttp://landxml.org/schema/landxml-1.0/LandXML-1.0.xsd 45
extensible Business Reporting Language XBRL 2.0 2001 12 14 XML URL http://www.xbrl.org/specrecommendations/ http://www.xbrl.org/taxonomy/int/fr/ias/ci/pfs/2002-11-15/samples.htm extensible Business Reporting Language XBRL 2.1 2003 12 31 XML URL http://www.xbrl.org/specrecommendations/ http://xbrl.iasb.org/int/fr/ifrs/gp/2004-11-15/ Financial Products Markup Language (FpML) 4.0 2004 4 2 URLhttp://www.fpml.org/spec/2004/rec-fpml-4-0-2004-04-02/xml.zip 46
Electric Business XML Collaboration Protocol Profile and Agreement (ebxml CPPA) 2.0 2004 4 24 XML URLhttp://www.oasis-open.org/committees/ebxml-cppa/schema/ Universal Business Language (UBL) 1.0 2004 11 8 URLhttp://www.ibiblio.org/bosak/ubl/cd-UBL-1.0.zip Human Resource XML (HR-XML) 2004-08 2004 8 URLhttp://www.hr-xml.org/channels/projects_main.cfm Open Travel Alliance (OTA) 2004B 2004 12 03 URLhttp://www.opentravel.org/ota_downloads_form.cfm 47
TravelXML 1.1 2004 2 16 URLhttp://www.xmlconsortium.org/wg/TravelXML/data/TravelXML1_1_1- Rec.pdf ACORD Life & Annuity (2.12.00) Property & Casualty (1.7) Reinsurance (2004-2) 2005 3 URLhttp://www.acord.org/standards/download_standards.aspx Job Definition Format (JDF) 1.2 2005 3 URLhttp://www.cip4.org/Schema/JDFSchema_1_2.zip 48
Copyright 2006, Oracle. All rights reserved. Oracle JD Edwards PeopleSoft Siebel 49