XML, XSL, and SOAP Building Object Systems from Documents CSC/ECE 591o Summer 2000 New Web Technologies Technologies under development by the World Wide Web Consortium (W3C)
See http://www.w3.org Standards for Web-based documents XML: Extensible Markup Language XSL: Extensible Stylesheet Language SOAP: Simple Object Access Protocol Other technologies: XML Pointer, XML Fragments, XML Schema, Resource Description Framework (RDF) Copyright 2000, Sandeep Singhal XML, the Extensible Markup
Language Structured meta-data language Derived from SGML (Simple Generalized Markup Language) Same heritage as HTML, so looks similar Used to describe any type of information in a machine-readable way Copyright 2000, Sandeep Singhal
Components of XML DTD (Document Type Definition) Element
Description of valid XML document syntax (elements and structure) XML document component Example: Example: CDATA: Text inside an element Comments: Tags: , , Processing instructions: Copyright 2000, Sandeep Singhal Example XML Document Hello, world!
Copyright 2000, Sandeep Singhal Example DTD Copyright 2000, Sandeep Singhal A More Complex DTD Copyright 2000, Sandeep Singhal
XSL Extensible Stylesheet Language XSL is a language for expressing stylesheets (XSL:T) A language for transforming XML documents An XML vocabulary for specifying formatting semantics (under development)
An XSL stylesheet specifies the presentation of a class of XML documents by describing how an instance of the class is transformed into an XML document that uses the formatting vocabulary Copyright 2000, Sandeep Singhal Thinking of XSL Model the XML document as a tree XSL document is a list of node patterns and actions Search XML tree for matching patterns and apply corresponding actions Result is target document
Copyright 2000, Sandeep Singhal A Simple XSL Example
Copyright 2000, Sandeep Singhal Applying the Example
Document TitleChapter Title
Chapter Title Copyright 2000, Sandeep Singhal
Defining an area of the Tree Types of relationships Child Sibling Parent Descendant Ancestor Root Copyright 2000, Sandeep Singhal Examples of Template
appendix//para (ancestor/child) / (root) id(W11) (any node with ID W11) para (para element that is first child) para[last()=1] (only para child) para[position()>1] (not first para child) para[position() mod 2=1] (odd numbered child para) Copyright 2000, Sandeep Singhal Content Generation Among the things you can do: Generate numbered lists Create XML processing instructions Apply variables and dynamic values
Create comments Sort Copyright 2000, Sandeep Singhal Uses of XSL Convert XML data Into HTML, WML, VoiceXML, etc. One XSL document per target format Single input document
Bridge disparate systems EDI Legacy integration Copyright 2000, Sandeep Singhal SOAP: Simple Object Access Protocol Developed by IBM, Microsoft, Lotus, DevelopMentor, and UserLand Software Lightweight protocol for exchanging
information in a decentralized distributed environment XML description of an RPC call Implementation could be RMI or ActiveX or something else Represents an alternative to IIOP Uses HTTP to transport request/response Copyright 2000, Sandeep Singhal Document Structure
(mandatory) [Describes SOAP message type] (optional): Includes processing instructions for the request (mandatory): Describes the parameters Fault: Includes error codes Copyright 2000, Sandeep Singhal SOAP Example Request HOST /StockQuote HTTP/1.1 Host: www.stockquoteserver.com Content-Type: text/xml; charset=utf-8
Content-Length: nnnn SOAPAction: Some-URI
Copyright 2000, Sandeep Singhal SOAP Example Response HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: nnnn
Copyright 2000, Sandeep Singhal Another SOAP Example
IBMYes Copyright 2000, Sandeep Singhal
Some Other Capabilities Encoding
Can define structures, arrays, enumerations, and other basic data types Transmission Use standard HTTP 1.1 Use HTTP Extension Framework Copyright 2000, Sandeep Singhal
Example: Surgeon fee for hip replacement U.S. Hospital spending is 3 times the global average Source: OECO Health Data, 2011 So who's on my side Policymakers engage in blame shifting to avoid making tough decisions Unlike in other countries, policymakers...
Frank Shipman, Morgan Price, Cathy Marshall, Gene Golovchinsky FX Palo Alto Laboratory Outline Analysis of the correspondence of annotations to citations in legal domain Design of "mark parser" to recognize and rank-order annotations Example use of mark parser results in...
ATI Cleanroom facilities Contact: T.E. Sale, [email protected] Advanced Technology Institute, School of Electronics and Physical Sciences, University of Surrey, Guildford, GU2 7XH ATI Cleanroom facilities Contact: T.E. Sale, [email protected] Advanced Technology Institute, School of Electronics and Physical Sciences, University of...
The Victorian mother of Source B, however, although perhaps secretly proud of his 'manly figure,' conveys her feelings of sadness that her son no longer needs her: 'It is a long while now since he disappeared,' implying the loss is...
Answers on neighboring graphs should be similar. ADS: Remove the comma, remind people that the input is a graph. ?-differential privacy (edge privacy) ... Also, the equations in my copy got messed up but I assume that is a PC...
Ready to download the document? Go ahead and hit continue!