J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

Chungnam National University DataBase System Lab
1 eXtensible Markup Language. XML is based on SGML: Standard Generalized Markup Language HTML and XML are both based on SGML 2 SGML HTMLXML.
1
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialitica in Informatica – Università di Trento.
J0 1 Marco Ronchetti - Web architectures – Laurea Specialistica in Informatica – Università di Trento Java XML parsing.
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialitica in Informatica – Università di Trento.
Introduction to XSL XSL-BASIC ELEMENTS. Transforming XML XSL file 1 XSLT Processor WML fileXSL file 2HTML fileXML file Contenuto Forma Documento.
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Manuscript Central Training Author Center Module 2.
9 Copyright © 2005, Oracle. All rights reserved. Modularizing JavaServer Pages Development with Tags.
Introduction to HTML, XHTML, and CSS
Defining XML The Document Type Definition. Document Type Definition text syntax for defining –elements of XML –attributes (and possibly default values)
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
PP Test Review Sections 6-1 to 6-6
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
XML INTRODUCTION Prepared by Hongming Yu Modified by Fernando Farfán.
Web Development & Design Foundations with XHTML
CIS 670 Fall 2001 (LN 5)1 XML 4 Introduction to XML –XML basics –DTDs –XML and semistructured data 4 Query languages for XML XML-QL, XQL, XSL 4 XML extensions.
Dr. Alexandra I. Cristea XHTML.
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Chapter 12 Working with Forms Principles of Web Design, 4 th Edition.
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Chapter 13 Web Page Design Studio
RefWorks: The Basics October 12, What is RefWorks? A personal bibliographic software manager –Manages citations –Creates bibliogaphies Accessible.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
XML “Trying to wrap your brain around XML is sort of like trying to put an octopus in a bottle. Every time you think you have it under control, a new tentacle.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Introduction to XML XML: basic elements. “Trying to wrap your brain around XML is sort of like trying to put an octopus in a bottle. Every time you think.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
XML What is XML? XML v.s. HTML XML Components Well-formed and Valid Document Type Definition (DTD) Extensible Style Language (XSL) SAX and DOM.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XML Syntax - Writing XML and Designing DTD's
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
CP3024 Lecture 9 XML: Extensible Markup Language.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
1 “Universal Data-Speak”: The eXtensible Markup Language Zack Ives CSE 590DB, Winter 2000 University of Washington 3 January 2000.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
Games: XML Presented by: Idham bin Mat Desa Mohd Sharizal bin Hamzah Mohd Radzuan bin Mohd Shaari Shukor bin Nordin.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
Unit 4 Representing Web Data: XML
XML in Web Technologies
Chapter 7 Representing Web Data: XML
Introduction to XML XML: basic elements.
CSE591: Data Mining by H. Liu
XML and Web Services (II/2546)
Presentation transcript:

J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Trying to wrap your brain around XML is sort of like trying to put an octopus in a bottle. Every time you think you have it under control, a new tentacle shows up. XML has many tentacles, reaching out in all directions. (Dick Baldwin) XML Text for Chapter 1 Text for Chapter 2

J0 2 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento What is XML? eXtensible Markup Language, or XML for short, is a new technology for web applications. XML is a World Wide Web Consortium standard that lets you create your own tags. XML is not a single technology, but a group of related technologies that continually adds new members XML is a lingua-franca that simplifies business-to-business transactions on the web.

J0 3 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento XML can reduce system costs In a speech, entitled "Escaping Entropy Death" Phipps (IBM's chief XML and Java evangelist) noted that users are reaching the point where the cost of simply owning some systems is exceeding the value they provide. "The key benefit to IT managers that adopt XML and other non-proprietary standards is that they will greatly reduce the cost of maintaining a computer's systems and will allow them to extend existing systems." "In the next decade, you can't just ask when can you have [a new application]. You also have to ask how much will it cost to own."

J0 4 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Vendor independence in the data-formatting context Phipps went on to say: "Other successful Internet technologies let people run their systems without having to take into account another company's own computer systems, notably: TCP/IP for networking, Java for programming, Web browsers for content delivery. XML fills the data formatting piece of the puzzle. "These technologies do not create dependencies. It means you can build solutions that are completely agnostic about the platforms and software that you use."

J0 5 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Computer people are the world's worst at inventing new jargon. XML people seem to be the worst of the worst in this regard. (Dick Baldwin) XML Jargon DOM SAX JAXP JDOM XQL XML-RPC XSP XML DTD XSL XSLT XML Schema XPath XLink XPointer Related stuff SGML XHTML CSS

J0 6 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento XML per la Web - Introduzione Un documento XML contiene DATI e INFORMAZIONI SUI DATI, non contiene istruzioni su come presentare i dati. La presentazione è delegata ad un documento di stile: XSL. Quindi contentuto and presentatione sono separati: i dati possono essere adattati a DISPOSITIVI DIVERSI. HTML mescola CONTENUTO e PRESENTAZIONE

J0 7 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento What is SGML SGML is an ISO standard (ISO 8879:1986) which provides a formal notation for the definition of generalized markup languages. SGML is not a language in itself. Rather, it is a metalanguage that is used to define other languages. SGML

J0 8 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento An SGML document is really the combination of three parts. Let's refer to the parts as files (but they don't have to be separate physical files). One file contains the content of the document (words, pictures, etc.). This is the part that the author wants to expose to the client. A second file is the DTD that defines the accepted syntax. A third file is a stylesheet that establishes how the content that conforms to the DTD is to be rendered on the output device. This is how the author wants the material to be presented to the client. SGML: the three parts

J0 9 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento HTML implements some of the concepts derived from SGML but in effect the DTD and the Style Sheet are hard-coded into the browser software. Because each browser manufacturer has some flexibility in implementing the intended style, the same document will sometimes look different when rendered with two different browsers. This is a (wanted) shortcoming of HTML. Web page designers are constantly faced with the problem of designing workarounds to compensate for the deficiencies in some versions of some browsers being used to view the page. HTML versus SGML

J0 10 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento What the world needs now is... What the Web community needs is an approach where a standard browser is simply a rendering engine that validates a document according to a given DTD and renders it according to a given stylesheet. A package deal The combination of the document, the DDT, and the stylesheet would constitute a package delivered by a server to the browser. The author of the document would provide the DTD and the stylesheet in addition to the data to be rendered. Then the author could be more confident that it would be rendered properly, especially for complex data. SGML - HTML

J0 11 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento The two extremes With HTML, the DTD and the stylesheet are essentially hard-coded into the browser. With SGML, the processor requires both a DTD and a stylesheet. XML, the middle ground With XML, the DTD is optional but the stylesheet (or some processing mechanism that substitutes for a stylesheet) is required. SGML – HTML - XML

J0 12 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento What is an element? An element is a sequence of characters that begins with a start tag and ends with an end tag and includes everything in between. Text for Chapter 1 What is the content? The characters in between the tags (rendered in green in this presentation) constitute the CONTENT. XML: element, content, and attribute

J0 13 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento An element may include optional attributes The start tag may contain optional attributes. In this example, a single attribute provides the number value for the chapter. Text for Chapter 1 The characters rendered in blue in the above element constitute an attribute. The term attribute is a commonly used term in computer science and usually has about the same meaning, regardless of whether the discussion revolves around XML, Java programming, or database management: Attributes belong to things, or things have attributes. XML: element, content, and attribute

J0 14 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento An XML document must have a root tag. An XML document is an information unit that can be seen in two ways: As a linear sequence of characters that contain characters data and markup. As an abstract data structure that is a tree of nodes. XML: tree structure

J0 15 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento An XML document can contain: Processing Instructions (PI): Comments When a XML document is analyzed, character data within comments or PIs are ignored. The content of comments is ignored, the content of PIs is passed on to applications. XML: additional elements

J0 16 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento An XML document can contain sections used to escape character strings that may contain elements that you do not want to be examined by your XML engine, e.g. special chars (<) or tags: CDATA sections When a XML document is analyzed, character data within a CDATA section are not parsed, by they remain as part of the element content. <![CDATA[ if (arr[indexArr[4] ]>3) System.out.println( ); ]]> XML: CDATA sections Avoid having ]]> in your CDATA section! Note: the element content that are going to be parsed are called PCDATA

J0 17 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento All XML documents must be well-formed XML documents need not be valid, but all XML documents must be well-formed. (HTML documents are not required to be well-formed) There are several requirements for an XML document to be well- formed. Well formed documents

J0 18 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Caution: XML is case sensitive Start and end tags are required To be well-formed, all elements that can contain character data must have both start and end tags. (Empty elements have a different requirement: see later.) For purposes of this explanation, let's just say that the content that we discussed earlier comprises character data. Elements must nest properly If one element contains another element, the entire second element must be defined inside the start and end tags of the first element. Well formed documents

J0 19 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Dealing with empty elements We can deal with empty elements by writing them in either of the following two ways: You will recognize the first format as simply writing a start tag followed immediately by an end tag with nothing in between. The second format is preferable Empty element can contain attributes Note that an empty element can contain one or more attributes inside the start tag: Well formed documents

J0 20 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento No markup characters are allowed For a document to be well-formed, it must not have some characters (entities) in the text data: &. If you need for your text to include the < character you can represent it using < or < or &#x3C instead. All attribute values must be in quotes (apostrophes or double quotes). You can surround the value with apostrophes (single quotes) if the attribute value contains a double quote. An attribute value that is surrounded by double quotes can contain apostrophes. Well formed documents

J0 21 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento XML declaration (optional, but if present MUST be the first element) Optional DTD declaration Optional comments and Processing Instructions The root elements start tag All other elements, comments and PIs The root element closing tag Logical structure of an XML document

J0 22 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Making sense of XML: the Parser XML file Parser Data structure Error if not well-formed

J0 23 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento A parser, in this context, is a software tool that preprocesses an XML document in some fashion, handing the results over to an application program. The primary purpose of the parser is to do most of the hard work up front and to provide the application program with the XML information in a form that is easier to work with. What is a parser?

J0 24 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Making sense of XML:the Parser XML file Parser Data structure SAX API Your program

J0 25 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Tree-based API A tree-based API compiles an XML document into an internal tree structure. This makes it possible for an application program to navigate the tree to achieve its objective. The Document Object Model (DOM) working group at the W3C is developing a standard tree-based API for XML. Event-based API An event-based API reports parsing events (such as the start and end of elements) to the application using callbacks. The application implements and registers event handlers for the different events. Code in the event handlers is designed to achieve the objective of the application. The process is similar (but not identical) to creating and registering event listeners in the Java Delegation Event Model. Tree-based vs Event-based API

J0 26 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento SAX is a set of interface definitions For the most part, SAX is a set of interface definitions. They specify one of the ways that application programs can interact with XML documents. (There are other ways for programs to interact with XML documents as well. Prominent among them is the Document Object Model, or DOM) SAX is a standard interface for event-based XML parsing, developed collaboratively by the members of the XML-DEV mailing list. SAX 1.0 was released on Monday 11 May 1998, and is free for both commercial and noncommercial use. The current version is SAX (released on 29-January 2002) See what is SAX?

J0 27 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Apache Xerces IBM XMLJ4 James Clarks XP OpenXML Oracle XML Parser Sun Microsystem Project X Tim Brays Lark and Larval Some available Parser

J0 28 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento How do you avoid tag conflicts? Since you can define your own tags, if you reuse XML files from other authors you might find tag conflicts. These can be avoided by declaring a namespace as an attribute of the root element: XML: namespaces

J0 29 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento A DTD is usually a file (or several files to be used together) which contains a formal definition of a particular type of document. This sets out what names can be used for elements, where they may occur, and how they all fit together. It's a formal language which lets processors automatically parse a document and identify where every element comes and how they relate to each other, so that stylesheets, navigators, browsers, search engines, databases, printing routines, and other applications can be used. A DTD contain metadata relative to a collection of XML docs. What is a DTD?

J0 30 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento A DTD can be external or internal to a document. Where are the DTDs? Internal DTD External DTD URL Broadly and publicly available

J0 31 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento DTD Markup: ELEMENT ? Zero or one + One or more * Zero or more, sequence | or (not xor!)

J0 32 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento <!ATTLIST Product Name CDATA #IMPLIED Rev CDATA #FIXED 1.0 Code CDATA #REQUIRED Pid ID #REQUIRED Series IDREF Status (InProduction|Obsolete) InProduction > DTD Markup: ATTLIST TYPES: CDATA character data ID Unique key IDREF Foreign Key (…|…) Enumeration DEFAULT: #IMPLIED optional, no default #FIXED optional, default supplied. If present must match default #REQUIRED must be provided

J0 33 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Entities are a sort of macro General Entity External Parsed Entity &content &author Parameter Entity DTD Markup: ENTITY Internal at the DTD External to the DTD

J0 34 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento a valid XML document is one that conforms to an existing DTD in every respect. For example... Unless the DTD allows an element with the name "color", an XML document containing an element with that name is not valid according to that DTD (but it might be valid according to some other DTD). An invalid XML document can be a perfectly good and useful XML document. Valid documents

J0 35 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Validity is not a requirement of XML Because XML does not require a DTD, in general, an XML processor cannot require validation of the document. Many very useful XML documents are not valid, simply because they were not constructed according to an existing DTD. To make a long story short, validation against a DTD can often be very useful, but is not required. Valid documents

J0 36 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Constraing &ValidatingXML XML fileDTD file Validating Parser Validation

J0 37 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Constraing & Validating XML XML fileXML Schema Validation Validating Parser DTD is not XML DTD is not powerful enough (e.g. at least 3, no more than 5)

J0 38 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Transforming XML XML fileXSL file XSLT Processor XML file

J0 39 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento XSL is complex (much more complex than XML). Designing an XSL stylesheet, to be used by a rendering engine to properly render an XML document, can be a daunting task. Microsoft has developed an XSL debugger, and has made it freely available for downloading. XSL is complex

J0 40 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Apache Xalanhttp://xml.apache.orghttp://xml.apache.org James Clarks XThttp:// Lotus XSL Processor Oracle XSL Processorhttp://technet.oracle.com/tech/xmlhttp://technet.oracle.com/tech/xml Keith Viscos XSL:P Michael Kays SAXONhttp://users.iclway.co.uk/mhkay/saxonhttp://users.iclway.co.uk/mhkay/saxon Some availableXSLT processors

J0 41 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Transforming XML XSL file 1 XSLT Processor WML fileXSL file 2HTML fileXML file Contenuto Forma Documento

J0 42 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Transforming XML XSLT Processor XSL fileHTML file 1XML file 2 Contenuto Forma Documento XML file 1HTML file 2

J0 43 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento XML Enabled HTTP ServerClient DocumentServerHTTPServer XSLTProcessor HTTP request StylesheetServer Get document XML document Get SS XSL stylesheet XML + XSL HTML document HTML document

J0 44 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Apache Cocoon Enhydra Application Server Bluestone XML Serverhttp:// SAXON Publishing frameworks

J0 45 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Il sito degli standard Info e links su SGML e XML Lista di prodotti XML Useful references

J0 46 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Test Page What you see is what you get! HANDS ON! - Esempio1 XML

J0 47 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento HANDS ON! - Esempio1 XSL a

J0 48 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento HANDS ON! - Esempio1 XSL b

J0 49 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Letus use the Apache XSLT processor: Xalan. 1) Get Xalan from xml.apache.org/xalan/index.html 2 )SetCLASSPATH=%CLASSPATH%;…/xalan.jar; …/xerces.jar 3) xalan –IN testPage.xml –XSL testPage.xsl –O out.html HANDS ON! - Esempio1 Xalan

J0 50 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento Test Page What you see is what you get! HANDS ON! - Esempio1 Output HTML