Given by Lukasz Beca at Tango Group Internal Technology Seminars on April 16 99. Foils prepared May 19 99
Outside Index
Summary of Material
Motivation and Goals |
XML Overview |
XML Basic Concepts |
XML Schema |
XSL |
XML Tools |
Languages Based on XML |
Future |
XML Resources
|
Outside Index Summary of Material
April 16 99 |
Lukasz Beca |
NPAC, Syracuse University |
Motivation and Goals |
XML Overview |
XML Basic Concepts |
XML Schema |
XSL |
XML Tools |
Languages Based on XML |
Future |
XML Resources
|
Better search results |
Presenting various views for the same data |
Integration of data from different sources |
Easy use over the Internet |
Easy application development that process documents |
Documents readable by humans |
Documents easy to create |
Interchange of data |
Extensible Markup Language - Subset of Standard Generalized Markup Language (SGML) |
Universal format for describing structured data on the Web |
Specification developed by World Wide Web Consortium (W3C) supervised by XML Working Group |
Elements |
Attributes |
Documents |
Document Object Model |
Namespaces |
Data Islands |
Format: start tag, end tag, and data |
The tags describe the data contained between tags |
The data within the tags is the value of the element |
<title>The Fish Slapping Dance</title> |
<dance>The Fish Slapping Dance</dance> |
Attributes associate name-value pairs with elements |
Attributes may appear only within start-tags and empty-element tags |
<size unit="KB"</size> |
Document is an XML element that can (or not) contain other nested XML elements |
<clip> |
<title>The Fish Slapping Dance<title> |
<authors>Monty Python</authors> |
<format>avi</format> |
<size unit="KB"</size> |
<priceinfo> |
<regprice unit="US dollars"ᡇ</regprice> |
<ourpriceᡂ</ourprice> |
</priceinfo> |
</clip> |
Well-formed document: obeys the syntax of XML |
Valid documents: a well-formed document that contains a proper document type declaration and obeys the constraints of that declaration |
Describes logical structure of document and the way a document is accessed and manipulated |
Defines naming convention for document components |
Enables straightforward access to the document components |
Implemented by the tools that enable manipulation of XML documents |
Collection of related XML elements and attributes |
Mechanism for solving elements and attributes name conflicts |
<title>The Fish Slapping Dance</title> |
<title>Mr</title> |
<ClipInfo:title>The Fish Slapping Dance</title> |
<PersonInfo:title>Mr</title> |
XML code embedded in an HTML page |
Enables integration of XML with HTML page (XML data can be accessed by scripts) |
Contains well-formed XML document withing <XML> </XML> tags |
<XML ID="clipXML"> |
<clip> |
<title>The Fish Slapping Dance</title> |
<size unit="KB"</size> |
</clip> |
</XML> |
clipXML.documentElement.childNodes.item(0).text |
Grammar for tag language |
Defines the rules governing the relations between elements and attributes using XML syntax |
Enables element and attribute typing and assigning default values |
Provides extensibility: authors can add their own elements and attributes to XML Schema documents |
Used for:
|
Association with XML document: |
<clip xmlns="x-schema:clipSchema.xml"> |
<Schema xmlns="urn:schemas-npac-edu:clip-data" |
xmlns:dt="urn:schemas-microsoft-com:datatypes"> |
<AttributeType name="unit" dt:type="string" required="yes"/> |
<ElementType name="title" content="textOnly" |
dt:type="string"/> |
<ElementType name="size" content="textOnly" dt:type="int"> |
<attribute type="unit"/> |
</ElementType> |
<ElementType name="clip" content="eltOnly"> |
<element type="title"/> |
<element type="size"/> |
</ElementType> |
</Schema> |
Enables display of XML by transforming XML into structure suitable for display, for example HTML |
XSL transformations can be executed on the server to provide HTML documents for older browsers |
Provides mechanisms for transformation of XML data from one schema to another |
Enables converting XML documents through querying, sorting, and filtering |
Association with XML document: |
<?xml-stylesheet type="text/xsl"href="mystyle.xsl"?> |
Contain a template of the desired result structure |
Identify data in the source document to insert into the template |
Example: fragments of HMTL, define how elements of XML document should be transformed into HTML document |
Simple query language for identifying nodes in an XML document |
Identify nodes depending on:
|
|
Resource Description Framework (RDF) standard for metadata exchange, enables better content searching on the Web |
Synchronized Multimedia Integration Language (SMIL) enables simple authoring of TV-like multimedia presentations such as training courses on the Web |
Scalable Vector Graphics (SVG) - a language for describing two-dimensional graphics in XML |
Parsers, used for accessing, analyzing and transforming XML documents (Sun, Microsoft, IBM)
|
Editors, used for creating XML content (Microsoft, IBM) |
Java APIs for XML (Sun) |
Completion of XML-related specifications:
|
XML as a standard format for data storage and Internet delivery |
Proliferation of XML-based languages for various industry and research domains |
|
InternetExplorer 5.0 and XML/XSL tutorials: |
http://msdn.microsoft.com/xml/ |
Specifications: |
http://www.w3c.org |
More tutorials and informations for developers: |
http://www.zdnet.com/devhead/filters/xml/ |
http://www.xml.com |