




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
XML技術(shù)實(shí)務(wù)中央研究院OutlineXMLXMLSchemaDOMandSAXXPathXSLTXQueryWebService/SOAWS-BPELConclusionXMLDocument<?xmlversion=“1.0”encoding=“UTF-8”?><簡歷><姓名>郭譽(yù)申</姓名><姓名語言=“英文”>Y.S.Kuo</姓名><教育程度>博士</教育程度><服務(wù)單位>中央研究院</服務(wù)單位></簡歷>XMLCharacteristicsCodingStandardFlexibleDataStructuresDocumentsandDataContentandPresentationSeparationDeclarativeSchemasXMLVocabulariesXHTML,RosettaNet,UBL,Biztalk,…DataInterchange/SystemIntegration
XMLSchema<xs:elementname="簡歷"><xs:complexType><xs:sequence><xs:elementname="姓名"maxOccurs="unbounded"><xs:complexType><xs:attributename=“語言“type=“string”/></xs:complexType></xs:element><xs:elementname="教育程度“type=“string”/><xs:elementname=“服務(wù)單位“minOccurs="0"/></xs:sequence></xs:complexType></xs:element>Element/AttributeDeclarationsElementDeclaration<xsd:elementname="city"type="string“/><city>Taipei</city>AttributeDeclaration<xsd:attributename=“country”type=“NMTOKEN”use=“required”/>Global/LocalDataTypesSimpleTypeAtomic/List/UnionComplexTypePrimitiveTypeDerivedTypeList,Union,Restriction,ExtensionBuilt-In(44)/User-DerivedTypeComplexTypesDerivationbyExtensionAddelementandattributedeclarationsDerivationbyRestrictionPutconstraintsonelementandattributedeclarations<complexTypename="Address"><sequence><elementname=“l(fā)abel"type="string"/><elementname="street"type="string"/><elementname="city"type="string"/></sequence><attributename=“country”type=“NMTOKEN”use=“required”/></complexType>
<complexTypename="Items"><elementname=“item“type=“Item”minOccurs=“0“maxOccurs="unbounded"></element></complexType><complexTypename="ConfirmedItems"><restrictionbase="Items"><elementname="item"type=“Item”minOccurs="1"maxOccurs="unbounded"></element></complexType>ComplexTypesSimpleContentOnlyTextandAttributes,NoElementComplexContentMixedContent<complexTypemixed=“true”> <complexContent>EmptyContentDefiningmyInteger,Range10000-99999
<xsd:simpleTypename="myInteger"><xsd:restrictionbase="xsd:integer"> <xsd:minInclusivevalue="10000"/> <xsd:maxInclusivevalue="99999"/></xsd:restriction></xsd:simpleType>
UsingtheEnumerationFacet<xsd:simpleTypename="USState"><xsd:restrictionbase="xsd:string"> <xsd:enumerationvalue="AK"/> <xsd:enumerationvalue="AL"/> <xsd:enumerationvalue="AR"/> <!--andsoon...--></xsd:restriction></xsd:simpleType>
DerivationbyList<xsd:simpleType name="listOfMyIntType"> <xsd:listitemType="myInteger"/></xsd:simpleType>
ConclusionXSDismuchricherinsemanticsthanDTD.XSDappearslikethedeclarationpartofaprogramminglanguage.XSDisnothardtolearn.XSDisrecommendedbyW3C.XSDwillbethestandard.XMLSchemaversusDTDTypeSystemsBuilt-InTypesTypeDerivationContentModelMixedContentElementOccurrencesWildcardsSemanticConstraintsXSDismuchricherinsemanticsthanDTD.DocumentObjectModel(DOM)
XPathLanguageforAddressingPartsofanXMLDocumentDeclarativeExpressionsUsesinXSLT,XPointer,XQuery,…XPath1.0,W3CREC.,Nov.1999XPath2.0LocationPathschild::doc/child::chapter[position()=5]/child::section[position()=2]Node-SetsRelative/AbsoluteLocationPathLocationStepsAxisNodeTestPredicatePathExpressionsDataTypesNode-Set(LocationPath)BooleanNumberStringVariableReference,e.g.$xFunctionCall,e.g.id(“foo”)XSLTDocumentTransformationamongXMLVocabulariesXSLTisXML-basedXSLTisruleandtemplatebasedXSLTisadeclaritvelanguagematchingisprimaryoperationsalsosupportimperative-likeprimitives,eg.flowcontrol,sorting,variablesHowDoesXSLTWork?HowDoesXSLTWork?Duringthetransformation:XSLTprocessorreadsbothXMLandXSLTdocumentsTrytomatchelementsinXMLaccordingtorulesspecifiedinXSLTIfsomeelementsarematched,processorgeneratesresultelementsaccordingtotemplatesinXSLTAfterthetransformation,youcouldobtain:aresultXMLdocumentXSLTProcessingSequenceHello,World!(material)<?xmlversion="1.0"?><xslTutorial><title>Hello,World!</title><author>Kuan-TaChen</author><date>2001/05/16</date></xslTutorial><xsl:stylesheetversion="1.0“
xmlns:xsl=""><xsl:templatematch="/"><H1><xsl:value-ofselect="http://title"/></H1><H2><xsl:value-ofselect="http://author"/></H2><H3><xsl:value-ofselect="http://date"/></H3></xsl:template></xsl:stylesheet>SourceXMLXSLStylesheetHello,World![result]<?xmlversion="1.0"encoding="UTF-16"?><H1>Hello,World!</H1><H2>Kuan-TaChen</H2><H3>2001/05/16</H3>ResultXMLResultXMLpreviewedinbrowserWebService/SOASupportinteroperablemachine-to-machineinteractionoveranetwork.RPC-Oriented(RemoteProcedureCall)Message-OrientedRESTWebServiceTriadWS-BPEL(BusinessProcessExecutionLanguage)Process/WorkflowEngineforSOAApplicationIntegrationWebServiceDataRepresentationDataTypesinXMLSchemasProcessDefinitionsinXMLXML-BasedWorkflowManagementBPELversusXPDLOASIS,IBM,Oracle,MicrosoftNarrowScopeWebServiceforAppl.IntegrationXMLSchemasasDataTypesWfMC,ManyWfMSVendorsWideScopeAPIinMultipleLanguagesTraditionalDataTypes+XMLBPELvers
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 初中物理實(shí)驗(yàn)操作規(guī)范與心得
- 基于SDN的IP+光智能協(xié)同系統(tǒng):架構(gòu)實(shí)現(xiàn)與應(yīng)用
- 汽車維修作業(yè)安全規(guī)范范本
- 幼兒園個(gè)案行為觀察記錄分析報(bào)告
- 電商平臺(tái)客服工作操作手冊
- 銷售團(tuán)隊(duì)激勵(lì)與管理實(shí)務(wù)指南
- 工商業(yè)用電擴(kuò)容申請規(guī)范與操作指南
- 校準(zhǔn)證書編寫及確認(rèn)流程標(biāo)準(zhǔn)范本
- 小學(xué)三年級(jí)語文期末考核綜合試卷
- 高中生物實(shí)驗(yàn)操作規(guī)范與考核標(biāo)準(zhǔn)
- 文明友善主題班會(huì)課件
- 反恐單位視頻管理制度
- 酒店眾籌項(xiàng)目方案
- 可信數(shù)據(jù)空間解決方案星環(huán)科技
- 《高齡臥床高危靜脈血栓栓塞癥防治中國專家共識(shí)》解讀
- 高一上學(xué)期《早讀是需要激情的!》主題班會(huì)課件
- 頂板在線監(jiān)測管理制度
- 我國公務(wù)員制度中存在的問題及對策
- 《小狗錢錢》完整版
- 《酒類鑒賞威士忌》課件
- 各種奶茶配方資料
評(píng)論
0/150
提交評(píng)論