標準XML Schema作成ガイドライン

Similar documents
Testing XML Performance

Microsoft Word - KS-PS-P04-v2_0.doc

改訂履歴 版 更新日 改訂内容 第 1.0 版 2014 年 3 月 初版 第 1.1 版 2015 年 3 月 指定年月日 のデータ型を修正 上記修正に伴う符号化仕様の修正

XMLを基盤とするビジネスプロトコルの動向

CAC

国土数値情報(医療機関)

XML XML (Extensible Markup Language) ISO SGML (Standard Generalized Markup Language) W3C (World Wide Web Consortium) XML 1.0

改定履歴 版 更新日 改定内容 第 1.0 版 2010 年 3 月 初版 第 1.1 版 2011 年 3 月 旧フォーマット ( 統一フォーマット ) から GML 形式への変換作業に伴い, 全体の見直しを実施


改定履歴 版 更新日 改定内容 第 2.1 版 2008 年 3 月 地理情報標準プロファイル (JPGIS)ver.1.0 準拠 第 3.0 版 2010 年 3 月 地理情報標準プロファイル (JPGIS) のバージョンアップに伴う改訂 第 3.1 版 2011 年 3 月 GML 形式への変換

<4D F736F F D208D C8FEE95F181698D8291AC93B998488E9E8C6E97F1816A90BB95698E64976C8F915F76315F312E646F63>

版更新日改定内容 第 1.0 版 2013 年 3 月初版 第 1.1 版 2016 年 1 月座標系を JGD2011/(B,L) に変更 - 2 -

改定履歴 版 更新日 改定内容 第 1.0 版 2013 年 3 月 初版 第 1.1 版 2015 年 1 月 平成 25 年度作成データの公開にあわせて第 1.0 版の誤り ( 符号化仕様 ) を修正 第 1.2 版 2015 年 1 月 平成 26 年土砂災害防止法の改正に対応して 区域区分

スライド タイトルなし

国土数値情報(特殊土壌地帯)

スライド タイトルなし


改定履歴 版 更新日 改定内容 第 1.1 版 2008 年 3 月 地理情報標準プロファイル (JPGIS)ver.1.0 準拠 第 2.0 版 2010 年 3 月 地理情報標準プロファイル (JPGIS) のバージョンアップに伴う改訂 第 2.1 版 2011 年 3 月 GML 形式への変換

WS-I Basic Profile 1.0 の概説

XML Consortium XML XML Consortium Canon, Inc. Yoshikazu Yokomizo XML Consortium HTML CSS1 CSS2 XSL 1.0 XSLT V1.0 XPath 1.0 XML Base XML Sche


XMLテクノロジを使いやすくする

WS-I Basic Profile 1.0 の概説

SysML SysML Requirement Diagram Block Definition Diagram Internal Block Diagram Parametric Diagram Activity Diagram Package Diagram Use Case Diagram S

相続支払い対策ポイント

150423HC相続資産圧縮対策のポイント

ハピタス のコピー.pages

Copyright 2008 All Rights Reserved 2

IT Web NEC Corporation

untitled

オントロジ入門

事例に見るSCORMの・・・

untitled

untitled

スライド 1


<Insert Picture Here>

<4D F736F F D204E30335F8D C8FEE95F181698D7390AD8BE688E6816A90BB95698E64976C8F915F91E6322E3394C52E646F6378>

橡dbweb2002-sato.PDF

JP1/Automatic Job Management System 2 for 活文PDFstaff Option

初心者にもできるアメブロカスタマイズ新2016.pages

untitled

- 2 Copyright (C) All Rights Reserved.

Microsoft Word - KS-PS-L01-v2_1.doc

橡sit nakai-ppt

国土数値情報(局所的大雨)

Word ›žŠpŁÒ-flO“Z

untitled

Copyright All Rights Reserved. -2 -!

ucR/XML: XML によるucR graph のシリアライズ

IPA:セキュアなインターネットサーバー構築に関する調査

ebXMLメッセージ構造\(V 1.0\)

Microsoft Word - 最終版 バックせどりismマニュアル .docx

Microsoft Word - XML.doc

Oracle Web Conferencing Oracle Collaboration Suite 2 (9.0.4) Creation Date: May 14, 2003 Last Update: Jan 21, 2005 Version: 1.21

Copyright 2006 KDDI Corporation. All Rights Reserved page1

() < > </ > / HTML SGML HTML 1.1 DTD DTD ( DTD (prolog) )SGML 1. DTD ( ) 2. DTD <!-- DTD-- > <!ELEMENT MAIL - - ((TO,FROM)?,DATE?,BODY) > <!ELEMENT TO

comtools.book

はじめての帳票作成

Microsoft Word - KS-PS-W05-v3_1.doc

PowerPoint Presentation

Microsoft Word - JPGIS改訂内容一覧.doc

diuser.book

1. 2 DITA UModel UModel Altova [1] UModel UModel UML(Unified Modeling Language) Java C# VB.NET UML UModel UML XML XML [7] chksp

week_17_1.ppt

WS-BPEL ActiveGlobe BizEngine Copyright XML 2

wpEnterpriseSvr.doc

book

WebサービスとCORBA

untitled

untitled

- 2 Copyright (C) All Rights Reserved.

b2bintro.book

橡セキュリティポリシー雛形策定に関する調査報告書

how-to-decide-a-title

() DTD

URL AdobeReader Copyright (C) All Rights Reserved.

Copyright (C) XML Consortium All Rights Reserved 2

untitled

ESA_UI_1110.PDF

Plano-POS Ver1

XML基礎

Core Ethics Vol. Talboks-och punktskriftsbiblioteket TPB DAISY Bookshare BookshareDAISY DAISY DAISYDAISY (Digital Accessible Information System) NGO D

Cosminexus Application Designer操作ガイド

健康保険組合のあゆみ_top

リバースマップ原稿2

XMLとは、eXtensible Markup Languageの略で、拡張可能なマーク付け言語である

Copyright XML 2005,2006 All rights reserved. XML Consortium Web Web Web Web Web Web Web

Solibri Model Checker 9.5 スタードガイド


untitled


ppt

2004 3

Microsoft Word - 00 第Ⅴ編中表紙.doc

untitled

日本オラクルのSOA戦略

分散情報システム構成法

untitled

T - Telecommunication and Internet Protocol Harmonization Over Networks (TIPHON); Service and Network Management Framework; Part 1: Overview and Intro

Transcription:

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