INLS 760 Web Databases Lecture 12 XML, XPATH, XSLT
|
|
- Julia Edwards
- 6 years ago
- Views:
Transcription
1 INLS 760 Web Databases Lecture 12 XML, XPATH, XSLT Robert Capra Spring 2013 Note: These lecture notes are based on the tutorials on XML, XPath, and XSLT at W3Schools: and from the book, XML in a Nutshell, 3 rd Edition, by Harold and Means. 1
2 HTML HTML <html> <head> <title>chaucer DOM Example</title> </head> <body> <h1>the Canterbury Tales</h1> <h2>by Geoffrey Chaucer</h2> <table> <tr> <td>whan that Aprill</td> <td>with his shoures soote</td> </tr> <tr> <td>the droghte of March</td> <td>hath perced to the roote</td> </tr> </table> <body> </html> 1. Hierarchical structure 2. Common understanding of tags TITLE text: Chaucer DOM Example HEAD H1 text: The Canterbury Tales TR TR H2 text: By Geoffrey Chaucer TBODY BODY TD TD TD TD TABLE 2
3 EXtensible Markup Language (XML) <?xml version="1.0" encoding="iso "?> <release> <title>punch the Clock</title> <artist>elvis Costello and The Attractions</artist> <date><day>5</day> <month>august</month> <year>1983</year> </date> <label>f-beat/columbia</label> </release> lect10/music1.xml 1. Data description language 2. Hierarchical structure 3. Tags and meanings are NOT pre-defined 3
4 Viewing XML documents Current versions of Firefox and Internet Explorer will display XML documents Documents are parsed and may generate errors Ex: lect10/music0.xml 4
5 XHTML HTML <HTML> <body> <h1>title</h1> <p> This is a paragraph <ul> <li>item 1 <li>item 2 </ul> <hr> <b><u>bold underline</b></u> regular text </html> lect10/bad.html XHTML <html> <body> <h1>title</h1> <p> This is a paragraph </p> <ul> <li>item 1</li> <li>item 2</li> </ul> <hr /> <b><u>bold underline</u></b> regular text </body> </html> 5
6 Valid XML Documents XML documents are stricter than HTML Balanced tags/closing tags required Case-sensitive Proper nesting DTDs and XML Schemas XML documents must conform to a DTD or XML Schema 6
7 XML Attributes HTML: <a href="lect10.pdf">lect 10</a> <form name="fred"> XML: <fruit type="tropical"> <name>papaya</name> </fruit> Attributes are used less often in XML than in HTML: <fruit> <type>tropical</type> <name>papaya</name> </fruit> However, id attributes are good for having an easy way to access an element (i.e. using getelementbyid) 7
8 Child Nodes and Rich Structure <article> <title></title> <authors> <author> <firstname></firstname> <lastname></lastname> </author> <author> <firstname></firstname> <lastname></lastname> </author> </authors> <abstract></abstract> <body> <section> <subsect></subsect> </section> <section></section> </body> <references> <reference> <authors></authors> <title></title> <publication> </publication> <year></year> </reference> </references> </article> 8
9 XML Namespaces <apple> <color>red</color> <name>macintosh</name> <size>medium</size> <country>usa<country> </apple> <apple> <color>red</color> <name>macintosh</name> <size>medium</size> <country>usa<country> <havested>may<harvested> <orchard>apple Farms</orchard> </apple> <apple> <color>red</color> <name>macintosh</name> <size>medium</size> <country>usa<country> </apple> <apple> <color>red</color> <name>macintosh</name> <size>medium</size> <country>usa<country> <processor>intel</processor> <screen>17in</screen> </apple> What if we tried to combine these in the same XML document? 9
10 General form: Namespace syntax xmlns:prefix="uri" Example: xmlns:fred=" The URI can reference a location where information about the namespace (such as a DTD or XML Schema) is located, but XML does not rely on that being the case. 10
11 Namespaces <frt:apple xmlns:frt=" <frt:color>red</frt:color> <frt:name>macintosh</frt:name> <frt:size>medium</frt:size> <frt:country>usa</frt:country> <frt:havested>may</frt:harvested> <frt:orchard>apple Farms</frt:orchard> </frt:apple> <cmp:apple xmlns:cmp=" <cmp:color>red</cmp:color> <cmp:name>macintosh</cmp:name> <cmp:size>medium</cmp:size> <cmp:country>usa</cmp:country> <cmp:processor>intel</cmp:processor> <cmp:screen>17in</cmp:screen> </cmp:apple> 11
12 Default Namespaces <apple xmlns=" <color>red</color> <name>macintosh</name> <size>medium</size> <country>usa</country> <havested>may</harvested> <orchard>apple Farms</orchard> <apple> <apple xmlns:cmp=" <color>red</color> <name>macintosh</name> <size>medium</size> <country>usa</country> <processor>intel</processor> <screen>17in</screen> </apple> Using the default namespace syntax shown here, you do NOT need to include the prefix in the child elements 12
13 XML-based Languages VoiceXML WML RSS MathML SVG Many many others 13
14 SVG XML Examples RDF RSS VoiceXML 14
15 Is XML a Database? Pros Cons 15
16 Storing XML Documents From Elmasri, p : Using a DBMS to store documents as text. then use keyword indexing/processing Using a DBMS to store the document contents as data elements. requires a schema and mapping Designing a specialized system for storing native XML data Creating or publishing customized XML documents form preexisting relational databases 16
17 MySQL XML Support MySQL dump XML output option dump.html#option_mysqldump_xml Load XML (in MySQL 6) 17
18 XML Tutorials W3Schools Intro Tree Validation Viewing 18
19 XPath XPath is a way to specify a particular node in an XML document 19
20 XPath Resources Chapter 9, XML in a Nutshell, 3 rd ed. by E.R. Harold, W.S. Means UNC Library Electronic Access XPath Tutorial, W3Schools RIT IT722 Zvon XpathTutorial TopXML Copyright 2007, Robert G. Capra III 20
21 XPath <?xml version="1.0" encoding= ISO ?> <collection> <release country="usa"> <title>look Sharp!</title> <artist>joe Jackson</artist> <date>1979</date> <label>a&m</label> </release> <release> <title>night and Day</title> <artist>joe Jackson</artist> <date>1982</date> <label>a&m</label> </release> </collection> Node Relationships 1. Parent 2. Children 3. Siblings 4. Ancestors 5. Decendants Xpath Node Types 1. Element 2. Attribute 3. Text 4. Namespace 5. Processing-Instruction 6. Comment 7. Document (root) 21
22 Document node XPath <?xml version="1.0" encoding= ISO ?> <collection> <release country="usa"> <title>look Sharp!</title> <artist>joe Jackson</artist> <date>1979</date> <label>a&m</label> </release> <release> <title>night and Day</title> <artist>joe Jackson</artist> <date>1982</date> <label>a&m</label> </release> </collection> Attribute node Element node 22
23 XPath Tree <?xml version="1.0" encoding="iso "?> <?xml-stylesheet type="text/xsl" href="music1.xsl"?> <collection> <release country="usa"> <title>look Sharp!</title> <artist>joe Jackson</artist> <date><month>april</month><year>1979</year></date> <label>a&m</label> </release> <release> <title>night and Day</title> <artist>joe Jackson</artist> <date><year>1982</year></date> </release> </collection> <release>..</release> Root node <collection>..</collection> Root node: / Root element: collection <?xml-stylesheet?> <release>..</release> <title>.. </title> <artist>.. </artist> <date>.. </date> <label>.. </label> <title>.. </title> <artist>.. </artist> <date>.. </date> <month>.. </month> <year>.. </year> <year>.. </year> 23
24 XPath Selection General/examples.html 24
25 XPath Location Path Basics <?xml version="1.0" encoding="iso "?> <?xml-stylesheet type="text/xsl" href="music1.xsl"?> <collection> <release country="usa"> <title>look Sharp!</title> <artist>joe Jackson</artist> <date><month>april</month><year>1979</year></date> <label>a&m</label> </release> <release> <title>night and Day</title> <artist>joe Jackson</artist> <date><year>1982</year></date> </release> </collection> Root node / selects the root node, regardless of context node element_node selects child elements of the current node that have that name //foo selects all foo nodes in the document, regardless of context node. current (context) node.. parent of current node <release>.. </release> <collection>.. </collection> <?xml-stylesheet?> <release>.. selects all attribute nodes named foo in the current context [foo] select using predicate foo <title>.. </title> <artist>.. </artist> <date>.. </date> <label>.. </label> <title>.. </title> <artist>.. </artist> <date>.. </date> 25
26 Exensible Stylesheet Language (XSL) CSS for XML documents QTP: HTML tags are defined, XML tags are created by users. How to create a stylesheet for XML? 26
27 XSL Transformations (XSLT) Very powerful XSLT provides a way to transform one XML document into another XML document or into some other format (such as HTML) Allows manipulation of XML elements Uses XPath Supported by Firefox, IE, other browsers 27
28 XSLT Resources Chapter 8, XML in a Nutshell, 3 rd ed. by E.R. Harold, W.S. Means UNC Library Electronic Access XSLT Tutorial, W3Schools Zvon XpathTutorial TopXML 28
29 XSLT Examples XML file <?xml version="1.0" encoding="iso "?> <?xml-stylesheet type="text/xsl" href="music1.xsl"?> <collection> <release country="usa"> <title>look Sharp!</title> <artist>joe Jackson</artist> <date> <month>april</month> <year>1979</year> </date> <label>a&m</label> </release> <release> <title>night and Day</title> <artist>joe Jackson</artist> <date> <year>1982</year> </date> </release> </collection> stylesheet link lect10/music1.xml 29
30 XSLT Example 1 Simple stylesheet lect10/music1.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="release"> <text>fred</text> </xsl:template> Template rule Template </xsl:stylesheet> Traverses the XML document Looks at every node If node matches the template rule, then process and output the template 30
31 XSLT Example 2 Match eats the node it matches i.e. child nodes do not get templates applied to them <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="collection"> <b>fred</b> </xsl:template> <xsl:template match="artist"> <b>ethel</b> </xsl:template> </xsl:stylesheet> lect10/music2.xsl 31
32 XSLT Example 1 Revisited lect10/music1.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="release"> <b>fred</b> </xsl:template> </xsl:stylesheet> Differences in XSLT processors (e.g. IE & Firefox) text/xsl vs. application/xsl-xml Default processing rules Try: match on collection, release, artist in both IE and Firefox 32
33 XSLT Example 3 value-of Value-of returns the value of the entire node specified by the select <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="date"> <b> <xsl:value-of select="."/> </b> </xsl:template> </xsl:stylesheet> lect10/music3.xsl 33
34 XSLT Example 4 Order of Eval By default, XSLT looks for matches using a preorder traversal of the XML Tree lect10/music4.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match= text( )"> <b> <xsl:value-of select="."/> </b> </xsl:template> </xsl:stylesheet> Selects any node with text QTP: What if match= date/text( )? 34
35 XSLT Ex. 5 Change Order Use apply-templates to change the evaluation order Applies all the templates to the children of the current node; optional select to filter children <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="date"> <i> <xsl:value-of select="month"/> </i> <b> <xsl:value-of select="year"/> </b> </xsl:template> lect10/music5.xsl <xsl:template match="release"> <xsl:apply-templates select="date"/> </xsl:template> </xsl:stylesheet> 35
36 Ex. 6 More Apply Templates Use apply-templates to change the evaluation order Applies all the templates to the children of the current node; optional select to filter children lect10/music6.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="* /"> <p> <b> <xsl:value-of select="."/> </b> </p> <xsl:apply-templates/> </xsl:template> </xsl:stylesheet> 36
37 XSLT Ex. 7 Create HTML <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="collection"> <html> <h1>my CD Collection</h1> <table border="1"> <xsl:apply-templates/> </table> </html> </xsl:template> <xsl:template match="release"> <tr> <td> <xsl:value-of select="title"/> </td> <td> <xsl:value-of select="artist"/> </td> </tr> </xsl:template> </xsl:stylesheet> lect10/music7.xsl Use apply-templates to control the evaluation order and placement in a template 37
38 XSLT Ex. 8 for-each for-each iterates through a set of nodes <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/"> <html> <xsl:for-each select="//date"> <p><b> <xsl:value-of select="year"/> </b></p> </xsl:for-each> </html> </xsl:template> </xsl:stylesheet> lect10/music8.xsl 38
39 Default rules Resources XML in a Nutshell, 3rd ed., section 8.7 Harold and Means, O'Reilly, xample73_ch2.html MIME type for stylesheet XML in a Nutshell, 3rd ed., section 8.3 Harold and Means, O'Reilly,
40 XSLT Examples XML file <?xml version="1.0" encoding="iso "?> <?xml-stylesheet type="text/xsl" href="music1.xsl"?> <collection> <release country="usa"> <title>look Sharp!</title> <artist>joe Jackson</artist> <date> <month>april</month> <year>1979</year> </date> <label>a&m</label> </release> <release> <title>night and Day</title> <artist>joe Jackson</artist> <date> <year>1982</year> </date> </release> </collection> lect10/music1.xml type is important IE: "text/xsl" Firefox: "application/xml" Eventually: "application/xslt+xml" This affects the application of the DEFAULT RULES 40
41 XSLT lect12/foo.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template <text><xsl:value-of select="."/></text> </xsl:template> <xsl:template match="artist"> <b>foo</b> </xsl:template> </xsl:stylesheet> Default rules Two important ones: 1. For text nodes 2. For root/element nodes See XML in a Nutshell, section
XSL Languages. Adding styles to HTML elements are simple. Telling a browser to display an element in a special font or color, is easy with CSS.
XSL Languages It started with XSL and ended up with XSLT, XPath, and XSL-FO. It Started with XSL XSL stands for EXtensible Stylesheet Language. The World Wide Web Consortium (W3C) started to develop XSL
More informationXML. Objectives. Duration. Audience. Pre-Requisites
XML XML - extensible Markup Language is a family of standardized data formats. XML is used for data transmission and storage. Common applications of XML include business to business transactions, web services
More informationxmlns:gu="http://www.gu.au/empdtd" xmlns:uky="http://www.uky.edu/empdtd">
Namespaces Namespaces An XML document may use more than one DTD or schema Since each structuring document was developed independently, name clashes may appear The solution is to use a different prefix
More informationPresentation. Separating Content and Presentation Cascading Style Sheets (CSS) XML and XSLT
Presentation Separating Content and Presentation Cascading Style Sheets (CSS) XML and XSLT WordPress Projects Theme Generators WYSIWYG editor Look at tools to support generation of themes Design a new
More informationXSLT. Lecture 38. Robb T. Koether. Mon, Apr 21, Hampden-Sydney College. Robb T. Koether (Hampden-Sydney College) XSLT Mon, Apr 21, / 26
XSLT Lecture 38 Robb T. Koether Hampden-Sydney College Mon, Apr 21, 2014 Robb T. Koether (Hampden-Sydney College) XSLT Mon, Apr 21, 2014 1 / 26 1 XSLT 2 Running XSLT 3 XSLT Files 4 Output Modes 5 XSLT
More informationComp 336/436 - Markup Languages. Fall Semester Week 9. Dr Nick Hayward
Comp 336/436 - Markup Languages Fall Semester 2018 - Week 9 Dr Nick Hayward DEV Week assessment Course total = 25% project outline and introduction developed using a chosen markup language consider and
More informationXML: Extensible Markup Language
XML: Extensible Markup Language CSC 375, Fall 2015 XML is a classic political compromise: it balances the needs of man and machine by being equally unreadable to both. Matthew Might Slides slightly modified
More informationComputer Science E-259
Computer Science E-259 XML with Java Lecture 4: XPath 1.0 (and 2.0) and XSLT 1.0 (and 2.0) 21 February 2007 David J. Malan malan@post.harvard.edu 1 Computer Science E-259 Last Time DOM Level 3 JAXP 1.3
More informationXSLT (part I) Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 22
1 / 22 XSLT (part I) Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 22 1 Introduction 2 Templates 3 Attributes 4 Copy of elements 5 Exercises 4 / 22 What is XSLT? XSLT is a (Turing
More informationTransformation mit XSLT/XPath
Transformation mit XSLT/XPath Seminar Dokumentenverarbeitung Sommersemester 2002 Jörn Clausen Transformation mit XSLT/XPath p.1/10 Technikalitäten Dateien in /vol/lehre/dokumentenverarbeitung/ Environment
More informationThe <schema> Element. <?xml version="1.0"?> <xs:schema>... </xs:schema>
DTD: Example
More informationCOPYRIGHTED MATERIAL. Contents. Part I: Introduction 1. Chapter 1: What Is XML? 3. Chapter 2: Well-Formed XML 23. Acknowledgments
Acknowledgments Introduction ix xxvii Part I: Introduction 1 Chapter 1: What Is XML? 3 Of Data, Files, and Text 3 Binary Files 4 Text Files 5 A Brief History of Markup 6 So What Is XML? 7 What Does XML
More informationCopyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML
Chapter 7 XML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML
More information<?xml version = 1.0 encoding= windows-874?> <?xml-stylesheet type= text/css href= #xmldocs?> <style id= xmldocs > element-name{ } </style>
XML Displaying Displaying XML: CSS A modern web browser and a cascading style sheet (CSS) may be used to view XML as if it were HTML A style must be defined for every XML tag, or the browser displays it
More informationXML Extensible Markup Language
XML Extensible Markup Language Generic format for structured representation of data. DD1335 (Lecture 9) Basic Internet Programming Spring 2010 1 / 34 XML Extensible Markup Language Generic format for structured
More informationExtensible Markup Stylesheet Transformation (XSLT)
Extensible Markup Stylesheet Transformation (XSLT) Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept. of Computer Engineering Khon Kaen University 1 Overview Terms: XSL, XSLT, XSL-FO Value
More informationThe main Topics in this lecture are:
Lecture 15: Working with Extensible Markup Language (XML) The main Topics in this lecture are: - Brief introduction to XML - Some advantages of XML - XML Structure: elements, attributes, entities - What
More informationExam : Title : XML 1.1 and Related Technologies. Version : DEMO
Exam : 000-142 Title : XML 1.1 and Related Technologies Version : DEMO 1. XML data is stored and retrieved within a relational database for a data-centric application by means of mapping XML schema elements
More informationXSL Transformation (XSLT) XSLT Processors. Example XSLT Stylesheet. Calling XSLT Processor. XSLT Structure
Transformation (T) SOURCE The very best of Cat Stevens UK 8.90 1990 Empire Burlesque Bob
More informationWeb Programming Paper Solution (Chapter wise)
What is valid XML document? Design an XML document for address book If in XML document All tags are properly closed All tags are properly nested They have a single root element XML document forms XML tree
More informationXPath and XSLT. Overview. Context. Context The Basics of XPath. XPath and XSLT. Nodes Axes Expressions. Stylesheet templates Transformations
XPath and XSLT Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@imap.pitt.edu http://www.sis.pitt.edu/~spring Context The Basics of XPath Nodes
More informationW3C XML XML Overview
Overview Jaroslav Porubän 2008 References Tutorials, http://www.w3schools.com Specifications, World Wide Web Consortium, http://www.w3.org David Hunter, et al.: Beginning, 4th Edition, Wrox, 2007, 1080
More informationXML. Jonathan Geisler. April 18, 2008
April 18, 2008 What is? IS... What is? IS... Text (portable) What is? IS... Text (portable) Markup (human readable) What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future)
More information7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML
7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML is a markup language,
More informationXSLT: How Do We Use It?
XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman 1 XSLT: Agenda Introduction & Terminology XSLT Walkthrough Client-Side XSLT/XHTML Server-Side XSLT/XHTML More Creative Server-Side XSLT 2 XSLT:
More informationChapter 13 XML: Extensible Markup Language
Chapter 13 XML: Extensible Markup Language - Internet applications provide Web interfaces to databases (data sources) - Three-tier architecture Client V Application Programs Webserver V Database Server
More informationXML and XSLT. XML and XSLT 10 February
XML and XSLT XML (Extensible Markup Language) has the following features. Not used to generate layout but to describe data. Uses tags to describe different items just as HTML, No predefined tags, just
More information8/1/2016. XSL stands for EXtensible Stylesheet Language. CSS = Style Sheets for HTML XSL = Style Sheets for XML. XSL consists of four parts:
XSL stands for EXtensible Stylesheet Language. CSS = Style Sheets for HTML XSL = Style Sheets for XML http://www.w3schools.com/xsl/ kasunkosala@yahoo.com 1 2 XSL consists of four parts: XSLT - a language
More informationIntroduction to XSLT
Introduction to XSLT Justin Tilton, Chief Executive Officer instructional media + magic, inc. at the JA-SIG Conference Vancouver, BC Sunday, June 9, 2002 The Abstract Looking for a methodology to quickly
More informationDisplay the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China
PharmaSUG China 2018 Paper CD-72 Display the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China ABSTRACT US Food and Drug
More informationB.V.Patel Institute of Business Management, Computer & Information Technology, UTU
B.C.A (Semester 4) Teaching Schedule 030010408 exentisible Markup Language OBJECTIVE: To introduce the concept of creating, validating, parsing, formatting, transforming and linking the well formatted
More informationXML Data Management. 5. Extracting Data from XML: XPath
XML Data Management 5. Extracting Data from XML: XPath Werner Nutt based on slides by Sara Cohen, Jerusalem 1 Extracting Data from XML Data stored in an XML document must be extracted to use it with various
More informationExtensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013
Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline Introduction XML Structure Document Type Definition (DTD) XHMTL Formatting XML CSS Formatting XSLT Transformations
More informationManipulating XML Trees XPath and XSLT. CS 431 February 18, 2008 Carl Lagoze Cornell University
Manipulating XML Trees XPath and XSLT CS 431 February 18, 2008 Carl Lagoze Cornell University XPath Language for addressing parts of an XML document XSLT Xpointer XQuery Tree model based on DOM W3C Recommendation
More informationSemantic Web. XSLT: XML Transformation. Morteza Amini. Sharif University of Technology Fall 95-96
ه عا ی Semantic Web XSLT: XML Transformation Morteza Amini Sharif University of Technology Fall 95-96 Outline Fundamentals of XSLT XPath extensible Stylesheet Language Cocoon 2 XSLT XSLT stands for extensible
More informationbut XML goes far beyond HTML: it describes data
The XML Meta-Language 1 Introduction to XML The father of markup languages: XML = EXtensible Markup Language is a simplified version of SGML Originally created to overcome the limitations of HTML the HTML
More informationCSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML
CSI 3140 WWW Structures, Techniques and Standards Representing Web Data: XML XML Example XML document: An XML document is one that follows certain syntax rules (most of which we followed for XHTML) Guy-Vincent
More informationEXAM XML 1.1 and Related Technologies TYPE: DEMO
IBM EXAM - 000-142 XML 1.1 and Related Technologies TYPE: DEMO http://www.examskey.com/000-142.html 1 Question: 1 XML data is stored and retrieved within a relational database for a data-centric application
More informationXSL Elements. xsl:copy-of
XSL Elements The following elements are discussed on this page: xsl:copy-of xsl:value-of xsl:variable xsl:param xsl:if xsl:when xsl:otherwise xsl:comment xsl:import xsl:output xsl:template xsl:call-template
More informationCopyright 2005, by Object Computing, Inc. (OCI). All rights reserved. Database to Web
Database To Web 10-1 The Problem Need to present information in a database on web pages want access from any browser may require at least HTML 4 compatibility Want to separate gathering of data from formatting
More informationXSLT program. XSLT elements. XSLT example. An XSLT program is an XML document containing
XSLT CPS 216 Advanced Database Systems Announcements (March 24) 2 Homework #3 will be assigned next Tuesday Reading assignment due next Wednesday XML processing in Lore (VLDB 1999) and Niagara (VLDB 2003)
More informationXSLT. Announcements (October 24) XSLT. CPS 116 Introduction to Database Systems. Homework #3 due next Tuesday Project milestone #2 due November 9
XSLT CPS 116 Introduction to Database Systems Announcements (October 24) 2 Homework #3 due next Tuesday Project milestone #2 due November 9 XSLT 3 XML-to-XML rule-based transformation language Used most
More informationINFO/CS 4302 Web Informa6on Systems
INFO/CS 4302 Web Informa6on Systems FT 2012 Week 5: Web Architecture: Structured Formats Part 3 (XML Manipula6ons) (Lecture 8) Theresa Velden RECAP XML & Related Technologies overview Purpose Structured
More informationIntroduction to XSLT
Introduction to XSLT Justin Tilton, Chief Executive Officer instructional media + magic, inc. at the JA-SIG Conference Destin, Florida December 2, 2001 The Abstract Looking for a methodology to quickly
More informationCOMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018)
COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2018) RAMANA ISUKAPALLI RAMANA@CS.COLUMBIA.EDU 1 LECTURE-1 Course overview See http://www.cs.columbia.edu/~ramana Overview of HTML Formatting, headings,
More informationDelivery Options: Attend face-to-face in the classroom or via remote-live attendance.
XML Programming Duration: 5 Days US Price: $2795 UK Price: 1,995 *Prices are subject to VAT CA Price: CDN$3,275 *Prices are subject to GST/HST Delivery Options: Attend face-to-face in the classroom or
More informationComp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward
Comp 336/436 - Markup Languages Fall Semester 2017 - Week 4 Dr Nick Hayward XML - recap first version of XML became a W3C Recommendation in 1998 a useful format for data storage and exchange config files,
More informationDHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI
DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI Department of Information Technology IT6801 SERVICE ORIENTED ARCHITECTURE Anna University 2 & 16 Mark Questions & Answers Year / Semester: IV / VII Regulation:
More informationXML, XPath, and XSLT. Jim Fawcett Software Modeling Copyright
XML, XPath, and XSLT Jim Fawcett Software Modeling Copyright 1999-2017 Topics XML is an acronym for extensible Markup Language. Its purpose is to describe structured data. XPath is a language for navigating
More informationPresentation 19: XML technologies part 2: XSL, XSLT, XSL-FO, XPath & XML Programming
Presentation 19: XML technologies part 2: XSL, XSLT, XSL-FO, XPath & XML Programming Outline XML recap Formatting CSS or XSL? XPath XSL/XSLT XSL-FO XML Programming Slide 2 XML markup recap XML based on
More informationXML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11
!important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... 7:4 @import Directive... 9:11 A Absolute Units of Length... 9:14 Addressing the First Line... 9:6 Assigning Meaning to XML Tags...
More informationXML and Databases XSLT Stylesheets and Transforms
XML and Databases XSLT Stylesheets and Transforms Kim.Nguyen@nicta.com.au Lecture 11 1 / 38 extensible Stylesheet Language Transformations Outline 1 extensible Stylesheet Language Transformations 2 Templates
More informationINTERNET & WEB APPLICATION DEVELOPMENT SWE 444. Fall Semester (081) Module 4 (III): XSL
INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 4 (III): XSL Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals alfy@kfupm.edu.sa
More informationXSL Concepts: Conditions and Loops. Robert Kiffe, Senior Web Developer OmniUpdate, Inc.
XSL Concepts: Conditions and Loops Robert Kiffe, Senior Web Developer OmniUpdate, Inc. Quick XSL Recap Conditional Statements If Choose XPath Conditional Loops For-Each For-Each-Group Apply-Templates Activities!
More information~ Ian Hunneybell: DIA Revision Notes ~
XML is based on open standards, and is text-based, thereby making it accessible to all. It is extensible, thus allowing anyone to customise it for their own needs, to publish for others to use, and to
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid= 2465 1
More informationIntroduction to XSLT. Version 1.0 July nikos dimitrakas
Introduction to XSLT Version 1.0 July 2011 nikos dimitrakas Table of contents 1 INTRODUCTION... 3 1.1 XSLT... 3 1.2 PREREQUISITES... 3 1.3 STRUCTURE... 3 2 SAMPLE DATA... 4 3 XSLT... 6 4 EXAMPLES... 7
More informationComp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward
Comp 336/436 - Markup Languages Fall Semester 2018 - Week 4 Dr Nick Hayward XML - recap first version of XML became a W3C Recommendation in 1998 a useful format for data storage and exchange config files,
More informationCopyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1
Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.
More informationDelivery Options: Attend face-to-face in the classroom or remote-live attendance.
XML Programming Duration: 5 Days Price: $2795 *California residents and government employees call for pricing. Discounts: We offer multiple discount options. Click here for more info. Delivery Options:
More informationXML. COSC Dr. Ramon Lawrence. An attribute is a name-value pair declared inside an element. Comments. Page 3. COSC Dr.
COSC 304 Introduction to Database Systems XML Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca XML Extensible Markup Language (XML) is a markup language that allows for
More informationHypermedia and the Web XSLT and XPath
Hypermedia and the Web XSLT and XPath XSLT Extensible Stylesheet Language for Transformations Compare/contrast with CSS: CSS is used to change display characteristics of primarily HTML documents. But,
More informationComputer Science E-259
Computer Science E-259 XML with Java Lecture 5: XPath 1.0 (and 2.0) and XSLT 1.0 (and 2.0), Continued 22 October 2007 David J. Malan malan@post.harvard.edu 1 Computer Science E-259 Last Time CSS Level
More information6/3/2016 8:44 PM 1 of 35
6/3/2016 8:44 PM 1 of 35 6/3/2016 8:44 PM 2 of 35 2) Background Well-formed XML HTML XSLT Processing Model 6/3/2016 8:44 PM 3 of 35 3) XPath XPath locates items within an XML file It relies on the XML
More informationXML and Databases. Lecture 11 XSLT Stylesheets and Transforms. Sebastian Maneth NICTA and UNSW
XML and Databases Lecture 11 XSLT Stylesheets and Transforms Sebastian Maneth NICTA and UNSW CSE@UNSW -- Semester 1, 2010 Outline 1. extensible Stylesheet Language Transformations (XSLT) 2. Templates:
More informationIntroduction to XSLT. Version 1.3 March nikos dimitrakas
Introduction to XSLT Version 1.3 March 2018 nikos dimitrakas Table of contents 1 INTRODUCTION... 3 1.1 XSLT... 3 1.2 PREREQUISITES... 3 1.3 STRUCTURE... 3 2 SAMPLE DATA... 4 3 XSLT... 6 4 EXAMPLES... 7
More informationAuthor: Irena Holubová Lecturer: Martin Svoboda
NPRG036 XML Technologies Lecture 6 XSLT 9. 4. 2018 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/172-nprg036/ Lecture Outline XSLT Principles Templates Instructions
More informationXML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.
XML 2 APPLIATION hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: How to create an XML document. The role of the document map, prolog, and XML declarations. Standalone declarations.
More informationWeb Programming. Meta-markup Languages
Web Programming Lecture 6 Introduction to XML Meta-markup Languages A markup language allows the user to identify individual elements of a document, e.g., what is a paragraph, a heading, or an unordered
More informationXML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena
XML Applications Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena Outline XHTML XML Schema XSL & XSLT Other XML Applications 2 XHTML HTML vs. XML HTML Presentation
More informationApplied Databases. Sebastian Maneth. Lecture 18 XPath and XSLT. University of Edinburgh - March 23rd, 2017
Applied Databases Lecture 18 XPath and XSLT Sebastian Maneth University of Edinburgh - March 23rd, 2017 2 Outline Lecture 19 (Monday March 27th): Recap / Exam preparation Lecture 20 (Monday March 27th):
More informationLars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web
Course on XML and Semantic Web Technologies, summer term 2012 0/44 XML and Semantic Web Technologies XML and Semantic Web Technologies I. XML / 5. XML Stylesheet Language Transformations (XSLT) Lars Schmidt-Thieme
More informationCSC Web Technologies, Spring Web Data Exchange Formats
CSC 342 - Web Technologies, Spring 2017 Web Data Exchange Formats Web Data Exchange Data exchange is the process of transforming structured data from one format to another to facilitate data sharing between
More information9/2/2010. Today s lecture. Advanced databases and data models: Theme2: Query languages. Semi-structured data - properties. Types of query languages
Today s lecture Advanced databases and data models: Theme2: Query languages Lena Strömbäck ifferent kinds of query languages Languages Lorel XPath XQuery SPARQL Transformation of data XSL FOR XML ata guides
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2411 1 Extensible
More informationIntroduction to XML. An Example XML Document. The following is a very simple XML document.
Introduction to XML Extensible Markup Language (XML) was standardized in 1998 after 2 years of work. However, it developed out of SGML (Standard Generalized Markup Language), a product of the 1970s and
More informationXML. XML Namespaces, XML Schema, XSLT
XML XML Namespaces, XML Schema, XSLT Contents XML Namespaces... 2 Namespace Prefixes and Declaration... 3 Multiple Namespace Declarations... 4 Declaring Namespaces in the Root Element... 5 Default Namespaces...
More informationBirkbeck (University of London)
Birkbeck (University of London) MSc Examination Department of Computer Science and Information Systems Internet and Web Technologies (COIY063H7) 15 Credits Date of Examination: 13 June 2017 Duration of
More informationCOMP9321 Web Application Engineering. Extensible Markup Language (XML)
COMP9321 Web Application Engineering Extensible Markup Language (XML) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442
More informationStructured documents
Structured documents An overview of XML Structured documents Michael Houghton 15/11/2000 Unstructured documents Broadly speaking, text and multimedia document formats can be structured or unstructured.
More informationCountryData Technologies for Data Exchange. Introduction to XML
CountryData Technologies for Data Exchange Introduction to XML What is XML? EXtensible Markup Language Format is similar to HTML, but XML deals with data structures, while HTML is about presentation Open
More informationXML Wrap-up. CS 431 March 1, 2006 Carl Lagoze Cornell University
XML Wrap-up CS 431 March 1, 2006 Carl Lagoze Cornell University XSLT Processing Model Input XSL doc parse Input XML doc parse Parsed tree serialize Input XML doc Parsed tree Xformed tree Output doc (xml,
More informationUser Interaction: XML and JSON
User Interaction: XML and JSON Asst. Professor Donald J. Patterson INF 133 Fall 2011 1 What might a design notebook be like? Cooler What does a design notebook entry look like? HTML and XML 1989: Tim Berners-Lee
More informationIntroduction to XML. M2 MIA, Grenoble Université. François Faure
M2 MIA, Grenoble Université Example tove jani reminder dont forget me this weekend!
More informationDITA 1.3 Feature Article A Brief Introduction to XSL for Processing DITA Content
DITA 1.3 Feature Article A Brief Introduction to XSL for Processing DITA Content An OASIS DITA Adoption Technical Committee Publication Chunk1739435240 iii Contents Chunk1739435240 Part I What is XSL?
More informationXML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.
XML 2 APPLIATION hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: How to create an XML document. The role of the document map, prolog, and XML declarations. Standalone declarations.
More informationBuilding Dynamic Forms with XML, XSLT
International Journal of Computing and Optimization Vol. 2, 2015, no. 1, 23-34 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.12988/ijco.2015.517 Building Dynamic Forms with XML, XSLT Dhori Terpo University
More informationExtensions to XSLT 1.0, and XSLT 2.0
... Extensions A typical problem: XSLT 1.0 does not have any way of finding the current date and time. However, some XSLT 1.0 processors allow you to use extensions to XSLT 1.0. The EXSLT initiative http://www.exslt.org/
More informationStyle Sheet A. Bellaachia Page: 22
Style Sheet How to render the content of an XML document on a page? Two mechanisms: CSS: Cascading Style Sheets XSL (the extensible Style sheet Language) CSS Definitions: CSS: Cascading Style Sheets Simple
More informationBurrows & Langford Chapter 9 page 1 Learning Programming Using Visual Basic.NET
Burrows & Langford Chapter 9 page 1 CHAPTER 9 ACCESSING DATA USING XML The extensible Markup Language (XML) is a language used to represent data in a form that does not rely on any particular proprietary
More informationXML PRESENTATION OF DOCUMENTS
Network Europe - Russia - Asia of Masters in Informatics as a Second Competence 159025-TEMPUS-1-2009-1-FR-TEMPUS-JPCR Sergio Luján Mora Department of Software and Computing Systems University of Alicante
More informationCOP 4814 Florida International University Kip Irvine XSLT. Updated: 2/9/2016 Based on Goldberg, Chapter 2. Irvine COP 4814
COP 4814 Florida International University Kip Irvine XSLT Updated: 2/9/2016 Based on Goldberg, Chapter 2 XSL Overview XSL Extensible Stylesheet Language A family of languages used to transform and render
More informationWhat is XML? XML is designed to transport and store data.
What is XML? XML stands for extensible Markup Language. XML is designed to transport and store data. HTML was designed to display data. XML is a markup language much like HTML XML was designed to carry
More informationTechnology for the Rest of Us: XML. May 26, 2004 Columbus, Ohio
Technology for the Rest of Us: XML May 26, 2004 Columbus, Ohio Ron Gilmour Science & Technology Coordinator Hodges Library, University of Tennesee at Knoxville gilmour@lib.utk.edu Presentation Materials
More informationIntroduction to XML (Extensible Markup Language)
Introduction to XML (Extensible Markup Language) 1 History and References XML is a meta-language, a simplified form of SGML (Standard Generalized Markup Language) XML was initiated in large parts by Jon
More informationCS6501 IP Unit IV Page 1
CS6501 Internet Programming Unit IV Part - A 1. What is PHP? PHP - Hypertext Preprocessor -one of the most popular server-side scripting languages for creating dynamic Web pages. - an open-source technology
More informationMore XML Schemas, XSLT, Intro to PHP. CS174 Chris Pollett Oct 15, 2007.
More XML Schemas, XSLT, Intro to PHP CS174 Chris Pollett Oct 15, 2007. Outline XML Schemas XSLT PHP Overview of data types There are two categories of data types in XML Schemas: simple types -- which are
More informationAdvanced Studies in IT CT433 Exam Q&A
Advanced Studies in IT CT433 Exam Q&A Dr. Axel Polleres www.deri.ie Copyright 2008 Digital Enterprise Research Institute. All rights reserved. XML Know what is well-formed XML, valid XML Well-formed: Close
More informationGenerating Web Pages Using XSLT
Generating Web Pages Using XSLT 238 XSLT for Data Interchange 239 6.1.xml: An Employee List Document
More informationTranslating XSLT into XQuery
Translating into Albin Laga, Praveen Madiraju, Darrel A. Mazzari and Gowri Dara Department of Mathematics, Statistics, and Computer Science Marquette University P.O. Box 1881, Milwaukee, WI 53201 albin.laga,
More information