Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
1Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
XML Schema

XML Schema

Ratings: (0)|Views: 160 |Likes:
Published by loganathans
XML Schema
XML Schema

More info:

Published by: loganathans on Nov 08, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/06/2011

pdf

text

original

 
TSIW 2006/2007 
XML Schema
Tecnologias de Sistemas de Informação baseados na WEB
4
4 - 2
4 - XML Schema
Warning
!
Authors
"
João Moura Pires (jmp@di.fct.unl.pt)
"
With contributions of 
!
Carlos Damásio (cd@di.fct.unl.pt)
!
Joaquim Aparício (jna@di.fct.unl.pt)
!
Pedro Barahona (pb@di.fct.unl.pt)
!
These slides can be freely used for personal or academic matterswithout permission from the authors, as long as this author list isincluded.
!
The use of these slides for commercial matters is not allowed,unless authorized from the authors.
 
4 - 3
4 - XML Schema
Summary
!
Introduction and Motivation
!
Examples: from a DTD to an XML Schema
!
XML Schemas and namespaces
!
XML Schema components
!
Simple data types
!
Deriving simple data types
!
Content models
!
Primary and foreign keys
!
Schemas in several documents
4 - 4
4 - XML Schema
DTD weaknesses
!
Non-XML syntax
!
DTDs are quite limited regarding data types
!
Limited content model
!
Don’t support the definition of new data types
!
DTD’s are like closed structures
"
The rules of an XML vocabulary are all defined in a single DTD
"
Impossible to reuse existing DTDs and extend them without nameconflicts (no namespace support)
Introduction and Motivation
 
4 - 5
4 - XML Schema
XML Schema goals
!
The main XML Schema goals are to provide a solution for mostof the DTDs weaknesses, namely
"
XML syntax (and not BNF)
"
Better control of the document data types
"
Better control of the document structure
"
Compatibility with namespaces
!
Several consortiums have been proposing schema languages,but so far they lack the official support from W3C.
Introduction and Motivation
4 - 6
4 - XML Schema
What do Schemas provide to XML?
!
Validation
"
More common use
"
Due to the possibility of using extensible complex data types thevalidation of documents can be enhanced.
!
Documentation
"
They provide a formal specification of new vocabularies
"
As schemas are XML documents they can be processed (ex: XSL) for producing documentation of vocabularies in several ways.
!
Querying support
"
New Xpath, XSLT and XQuery specifications will use XML Schemasfor enhancing the performance of some functions (sort, equalitychecks, etc.) by analysing the document data types.
Introduction and Motivation

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->