《XML技术实务》PPT课件.ppt_第1页
《XML技术实务》PPT课件.ppt_第2页
《XML技术实务》PPT课件.ppt_第3页
《XML技术实务》PPT课件.ppt_第4页
《XML技术实务》PPT课件.ppt_第5页
已阅读5页,还剩40页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

XML技術實務,郭譽申 中央研究院 資訊科學研究所,Outline,XML XML Schema DOM and SAX XPath XSLT XQuery Web Service/SOA WS-BPEL Conclusion,XML Document, 郭譽申 Y. S. Kuo 博士 中央研究院 ,XML Basic Concepts,基本元素 元件(Element) - 一對標記所夾的整個內容 屬性(Attribute) 文字(Text) 語法(Syntax) 層級嵌套(Nested)結構,XML Characteristics,Coding Standard Flexible Data Structures Documents and Data Content and Presentation Separation Declarative Schemas XML Vocabularies XHTML, RosettaNet, UBL, Biztalk, Data Interchange/System Integration,XML Schema ,Element/Attribute Declarations,Element Declaration Taipei Attribute Declaration Global/Local,Data Types,Value Space Lexical Space Literals, e.g. 100, 1.0E2 Facets Aspects that characterize a value space Fundamental Facets, e.g. equal, order, Constraining Facets, e.g. length, pattern, ,Data Types,Simple Type Atomic/List/Union Complex Type Primitive Type Derived Type List, Union, Restriction, Extension Built-In (44)/User-Derived Type,Complex Types,Derivation by Extension Add element and attribute declarations Derivation by Restriction Put constraints on element and attribute declarations,Complex Types,Simple Content Only Text and Attributes, No Element Complex Content Mixed Content Empty Content,Simple Types,Derivation by Restriction Constraining Facets length, minLength, maxLength min(max)Inclusive, min(max)Exclusive totalDigits, fractionDigits pattern enumeration whiteSpace,Defining myInteger, Range 10000-99999 ,Using the Enumeration Facet ,Derivation by List,Derivation by Union,Conclusion,XSD is much richer in semantics than DTD. XSD appears like the declaration part of a programming language. XSD is not hard to learn. XSD is recommended by W3C. XSD will be the standard.,XML Schema versus DTD,Type Systems Built-In Types Type Derivation Content Model Mixed Content Element Occurrences Wildcards Semantic Constraints XSD is much richer in semantics than DTD.,Document Object Model (DOM),Simple API for XML (SAX),XML Document Parsing Document input as stream Events startElement, endElement, Event Handling,XPath,Language for Addressing Parts of an XML Document Declarative Expressions Uses in XSLT, XPointer, XQuery, XPath 1.0, W3C REC., Nov. 1999 XPath 2.0,Location Paths,child:doc/child:chapterposition()=5/child:sectionposition()=2 Node-Sets Relative/Absolute Location Path Location Steps Axis Node Test Predicate,Evaluation Procedure,child:doc/child:chapterposition()=5/child:sectionposition()=2 Each Node in Node-Set as Context Node Node-Set Union Node-Sets into a New Node-Set Context Position / Context Size,Examples,child:text() child:chapter/descendant:para child:node() attribute:* following-sibling:chapterposition()=1 child:paraattribute:type=warning,Path Expressions,Data Types Node-Set (Location Path) Boolean Number String Variable Reference, e.g. $x Function Call, e.g. id(“foo”),XSLT,Document Transformation among XML Vocabularies XSLT is XML-based XSLT is rule and template based XSLT is a declaritve language matching is primary operations also support imperative-like primitives, eg. flow control, sorting, variables,How Does XSLT Work ?,How Does XSLT Work ?,During the transformation: XSLT processor reads both XML and XSLT documents Try to match elements in XML according to rules specified in XSLT If some elements are matched, processor generates result elements according to templates in XSLT After the transformation, you could obtain: a result XML document,XSLT Processing Sequence,Hello, World ! (material), Hello, World ! Kuan-Ta Chen 2001/05/16 ,Source XML,XSL Stylesheet,Hello, World ! result, Hello, World ! Kuan-Ta Chen 2001/05/16,Result XML,Result XML previewed in browser,Web Service/SOA,Support interoperable machine-to-machine interaction over a network. RPC-Oriented (Remote Procedure Call) Message-Oriented REST,Web Service Triad,WS-BPEL (Business Process Execution Language),Process/Workflow Engine for SOA Application Integration Web Service Data Representation Data Types in XML Schemas Process Definitions in XML XML-Based Workflow Management,BPEL versus XPDL,OASIS, IBM, Oracle, Microsoft Narrow Scope Web Service for Appl. Integration XML Schemas as Data Types,WfMC, Many WfMS Vendors Wide Scope API in Multiple Languages Traditional Data Types + XML,BPEL versus XPDL,Block-Structured + Links Transactions Exception Han

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论