Mdulo II XML Processing XSLT SAX e DOM
- Slides: 30
Módulo II XML Processing: XSLT, SAX e DOM Prof. Ismael H F Santos April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 1
Ementa n Modulo II – XML Processing n April 05 XML Processing - XSLT Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 2
Bibliografia n Linguagem de Programação JAVA n April 05 Ismael H. F. Santos, Apostila Univer. Cidade, 2002 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 3
Livros n Core Java 2, Cay S. Horstmann, Gary Cornell Volume 1 (Fundamentos) n Volume 2 (Características Avançadas) n Java: Como Programar, Deitel & Deitel n Thinking in Patterns with JAVA, Bruce Eckel n Gratuito. http: //www. mindview. net/Books/TIJ/ n April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 4
SOA April 05 XML Processing Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 5
Onde usar XML? April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 6
Visualização em um browser n Folha de estilo: conjunto de regras para formatar ou transformar as informações de um documento XML n CSS - Cascading Style Sheets n Transformação visando apresentação visual n Aplicação do estilo em tempo de execução no cliente April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 7
Visualização em um browser n XSLT - e. Xtensible Stylesheet Language n Transformação em texto, HTML ou outro formato n Aplicação em tempo real ou prévia (no servidor) n Se não estiver associado a uma folha de estilo, o documento XML não tem uma "aparência" definida n n April 05 Internet Explorer e outros mostram a árvore-fonte XML Netscape mostra apenas os nós de texto Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 8
XLink April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 9
Exemplos de XLink April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 10
XPointer April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 11
Como produzir XML April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 12
Como manipular XML? n Há duas APIs padrão para manipular (interpretar, gerar, extrair dados e tratar eventos) arquivos XML: n n W 3 C Document Object Model (W 3 C DOM) Simple API for XML (SAX) n Servem a finalidades diferentes n Implementações disponíveis em várias linguagens n SAX oferece métodos que respondem a eventos produzidos durante a leitura do documento n notifica quando um elemento abre, quando fecha, etc. n DOM monta uma árvore, que permite a navegação na estrutura do documento n propriedades dos objetos podem ser manipuladas April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 13
Leitura de XML com SAX April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 14
Criação de documentos com DOM (1) April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 15
Criação de documentos com DOM (2) April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 16
XPath April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 17
XSLT April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 18
XSLT: documento-fonte (1) April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 19
XSLT: folha de estilos (2) April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 20
XSLT: documento-resultado (3) April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 21
XLink, XPointer e XQuery April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 22
XSL-FO April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 23
XSL-FO: menor documento April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 24
XHTML April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 25
SVG April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 26
Exemplo SVG April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 27
Algumas outras linguagens XML April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 28
Ferramentas XML April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 29
Conclusões April 05 Prof. Ismael H. F. Santos - ismael@tecgraf. puc-rio. br 30
- Sax prof
- Xml dom sax
- Xml dom sax
- Nnn side xxl
- Dom and sax difference
- Sax and dom
- 자바 sax xml 파싱
- Mdulo
- Xml dom defines a standard way for
- Zenetr
- Php xml dom
- Gonewdoc
- Xml dom
- Michael kay xslt
- Xslt stands for
- Xslt stands for _____.
- Nancy hallberg
- Xquery vs xslt
- Xsd vs xslt
- Position() in xslt
- Lern sax
- Sax time series
- Sax nnn
- Saax installation
- Sax vs jaxb
- Phm sax
- Ally skills workshop
- Desy sax
- Sax
- Sax
- Gonzalez