33
April 05 Prof. Ismael H. F. Santos - [email protected] 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

Embed Size (px)

Citation preview

Page 1: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 1

Módulo II Introdução a XML DTD

Prof. Ismael H F Santos

Page 2: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 2

Ementa

Modulo II – XML DTD XML Validação

DTD DTD x XMLSchema

Page 3: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 3

Linguagem de Programação JAVA Ismael H. F. Santos, Apostila UniverCidade, 2002

Bibliografia

Page 4: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 4

Livros

Core Java 2, Cay S. Horstmann, Gary Cornell Volume 1 (Fundamentos) Volume 2 (Características Avançadas)

Java: Como Programar, Deitel & Deitel Thinking in Patterns with JAVA, Bruce Eckel

Gratuito. http://www.mindview.net/Books/TIJ/

Page 5: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 5

DTD

SOA

Page 6: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 6

DTD Externo SYSTEM

Page 7: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 7

DTD Publico

Page 8: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 8

DTD Interno

Page 9: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 9

DTD Incompleto

Page 10: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 10

DTD exemplo

Page 11: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 11

<!ELEMENT> e #PCDATA

PCDATA - Parsed Character Data Elemento pode conter texto Não pode conter elementos

Page 12: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 12

Seqüências de Elementos-filho

Page 13: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 13

Seleção de um Elemento-filho

Page 14: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 14

Conteúdo Misto

Page 15: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 15

Elementos Vazios e Any

Page 16: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 16

<!ATTLIST>

Page 17: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 17

Exemplos

Page 18: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 18

Tipos de Dados XML

Page 19: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 19

CDATA e NMTOKEN

Page 20: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 20

Seleção

Page 21: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 21

ID

Page 22: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 22

IDREF

Page 23: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 23

IDREFS

Page 24: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 24

Valores Default

Page 25: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 25

<!NOTATION> e tipo NOTATION

Page 26: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 26

<!ENTITY>

Page 27: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 27

Entidades gerais internas

Page 28: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 28

Entidades gerais externas

Page 29: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 29

Entidades externas não processadas

Page 30: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 30

Entidades de parâmetro

Page 31: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 31

Entidades de parâmetro externas

Page 32: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 32

Condicionais

Page 33: April 05 Prof. Ismael H. F. Santos - ismael@tecgraf.puc-rio.br 1 Módulo II Introdução a XML DTD Prof. Ismael H F Santos

April 05 Prof. Ismael H. F. Santos - [email protected] 33

Utilidades dos Condicionais