Gestão e Tratamento de Informação

Size: px
Start display at page:

Download "Gestão e Tratamento de Informação"

Transcription

1 Departamento de Engenharia Informática 2013/2014 Gestão e Tratamento de Informação 1st Project Deadline at 25 Oct :: Online submission at IST/Fénix The SIGMOD Record 1 journal is a quarterly publication of the Special Interest Group on Management of Data of the Association for Computing Machinery (i.e., the ACM SIGMOD 2, which includes researchers that work on the development and application of database technology, supporting a diverse range of data management needs). The XML document available from the Uniform Resource Locator (URL) corresponding to contains a sample from all the articles published in ACM SIGMOD Record. Figure 1 illustrates the contents of the XML document that is available from the above URL. <?xml version='1.0' encoding='utf-8'?> <sigmod> <articles> <article> <title>message Forms in Computer Networks.</title> <initpage>38</initpage> <endpage>42</endpage> <volume>1</volume> <issue>1</issue> <authors> <authorcode>8</authorcode> <authorcode>9</authorcode> </authors> </article> <!-- list of remaining articles --> </articles> <authors> <author code="1">donald J. Hatfield</author> <author code="3">g. A. Gibson</author> <!-- list of remaining authors --> </authors> </sigmod> Figure 1 : Sample from the XML document used in the exercises. Exercise Create an XML Schema for validating the XML document with the sample of articles published on SIGMOD Record. When developing the XML Schema, take the following particular aspects into consideration: Ensure that the developed XML Schema uses global data types, instead of local type definitions encapsulated within the elements, in order to promote modularity and code re- usage. Ensure that the data types for the contents of elements named volume correspond to positive integer numbers record/ IST/DEI Page 1 of 8

2 Ensure that author names contain at least one uppercase letter. Ensure that the attribute named code is of mandatory occurrence in the elements named author. Assume that the elements descending from article can appear with any order Extend the XML Schema from the previous exercise in order to take referential integrity into account, when validating the document. Specifically, verify if the authorcode elements, used in the definition of articles, refer to authors that exist within the XML document. Exercise 2 Create an XML Transformation (i.e., an XSLT document) for representing the XML sample of articles from SIGMOD Record as an XHTML document that can be displayed in a Web browser. The developed XSLT should use structural recursion to process the input XML document, including at least two different templates. The resulting XHTML document should contain one separate table for each volume/issue of the journal, describing the corresponding articles. Each of these XHTML tables should be preceded by a string of the form Papers from issue XX of volume XX, encoding the corresponding volume/issue of the journal, as a description for the table. Each XHTML table should show information related to the titles of papers, their first authors, and the range of pages associated to each article, as three separate columns. The titles for the articles should be presented in uppercase, and the range of pages should be presented as a string of the form [start- page ; end- page] (i.e., present the start and end pages between rectangular brackets, separated by a semi- comma). The name for the author of each article should be presented as a string with the author name, for the case of articles with a single author, or as string of the form Name for First Author et al., for the case of articles with more than one author (i.e., use the suffix et al. in these cases). Exercise 3 Create XPath expressions for addressing each of the following information needs. 1. Find how many articles were published in the first issue of volume 3 for SIGMOD Record. 2. Find the papers related to relational databases (i.e., the papers whose titles contain the word relational together with some variation of the word data). 3. Find the names of all co- authors of E. F. Codd (i.e. the names of all authors who have published at least one article together with the author named E. F. Codd). Only the textual contents corresponding to the author names should be presented, and the answers should use only uppercase letters. 4. Find the title(s) of the paper(s) with the highest number of co- authors. IST/DEI Page 2 of 8

3 Exercise 4 Create XQuery FLWOR expressions for addressing each of the following information needs. Although XPath expressions can be used as part of each answer, note that in this exercise you should always write the queries using XQuery FLWOR expressions, eventually also using XQuery updating expressions whenever the exercise involves updating the XML dataset. 1. Find the name(s) of the author(s) who have written more than one article together with the author named Isabel F. Cruz. 2. Find the top five articles with more pages of content, showing the titles and authors of each of these papers according to the format exemplified bellow. When producing the list, you may ignore all those articles that do not contain information regarding the starting and ending page, and the articles where these elements do not contain an integer value. <papers> <paper title="title for paper 1" authors="author-name-1 and AUTHOR-NAME-2" num-pages="5" /> <paper title="title for paper 1" authors="author-name-1 and AUTHOR-NAME-2" num-pages="4" /> <!-- remaining papers in the list of top five papers --> </papers> Figure 2 : Example of the format produced as output by the XQuery expression. 3. Change the XML dataset in order to explicitly store (i) an attribute associated to the volume elements, encoding the number of issues published in each volume, and (ii) an attribute associated to the issue elements, encoding the number of articles published in each issue number of each volume. 4. Change the XML dataset so as to remove all papers with less than two authors, removing also all authors that have not published any of the papers in the resulting data set. Exercise 5 Consider the following two tree structures (see Figure 3), each representing an XML element encoding information about papers published on ACM SIGMOD Record. Figure 3 : Two example tree structures. IST/DEI Page 3 of 8

4 Compute the similarity (i.e., the number of matching nodes) and the alignment between both trees, using the Simple Tree Matching algorithm, and considering that two nodes can be aligned if they share the same name/content. Present all the calculations involved in finding the number of matching nodes in the trees. Present also the alignment between the trees, with basis on the results from the Simple Tree Matching algorithm. Submitting the project The solutions to the project should be submitted through the Fénix system, in the form of a.zip file containing a PDF report with the solutions for the exercises, as well as individual text files with the solutions for each of the exercises (i.e., documents with the XML, XSD, XSLT or XPath/XQuery code). In the course Webpage, you can find a Microsoft word template for the project report. In the theoretical class following the electronic submission, a printed copy of the report, with the solutions for each exercise, should also be delivered. We will not accept deliveries through e- mail, with reports not conforming to the supplied template, or without the text files with the solutions for the exercises. Good luck! IST/DEI Page 4 of 8

5 Solutions for Exercise 1.1 and 1.2 The schema for validating the XML document is shown bellow. The solution to Exercise 1.2 corresponds to the key and keyref definitions that are included in the definition of the XML element named sigmod. <xsd:schema xmlns:xsd=" <xsd:element name="sigmod"> <xsd:complextype> <xsd:sequence> <xsd:element name="articles"> <xsd:complextype> <xsd:sequence> <xsd:element name="article" type="articletype" minoccurs="1" maxoccurs="unbounded"/> </xsd:sequence> </xsd:element> <xsd:element name="authors" type="authortype" minoccurs="1" maxoccurs="unbounded"> </xsd:element> </xsd:sequence> <xsd:key name="mykey"> <xsd:selector xpath="authors/author" /> <xsd:field /> </xsd:key> <xsd:keyref name="mykeyref" refer="mykey"> <xsd:selector xpath="article/authors" /> <xsd:field xpath="authorcode" /> </xsd:keyref> </xsd:element> <xsd:complextype name="articletype"> <xsd:all> <xsd:element name="title" type="xsd:string" /> <xsd:element name="initpage" type="xsd:string" /> <xsd:element name="endpage" type="xsd:string" /> <xsd:element name="volume" type="xsd:positiveinteger" /> <xsd:element name="issue" type="xsd:string" /> <xsd:element name="authors" type="authortype2"/> </xsd:all> <xsd:simpletype name="uppercasename"> <xsd:restriction base="xsd:string"><xsd:pattern value=".*[a-z].*"/></xsd:restriction> </xsd:simpletype> <xsd:complextype name="authortype"> <xsd:sequence> <xsd:element name="author" minoccurs="0" maxoccurs="unbounded"> <xsd:complextype> <xsd:simplecontent> <xsd:extension base="uppercasename"> <xsd:attribute name="code" type="xsd:integer" use="required" /> </xsd:extension> </xsd:simplecontent> </xsd:element> </xsd:sequence> <xsd:complextype name="authortype2"> <xsd:sequence> <xsd:element name="authorcode" minoccurs="0" maxoccurs="unbounded" type="xsd:string" /> </xsd:sequence> </xsd:schema> IST/DEI Page 5 of 8

6 Solution for Exercise 2 <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/"> <html> <head><title>papers published on SIGMOD Record</title></head> <body><ul><xsl:apply-templates /></ul></body> </html> <xsl:template match="sigmod"> <xsl:for-each select="//article[not(volume = following::article/volume)]/volume/text()"> <xsl:variable name="vol" select="." /> <xsl:for-each select="//article[volume=$vol][not(issue = following::article[volume=$vol]/issue)]/issue/text()"> <xsl:variable name="issue" select="." /> <li> Papers from issue <xsl:value-of select="$issue" /> of volume <xsl:value-of select="$vol" /> <br/> <table border="1"> <tr><th>title</th><th>author</th><th>pages</th></tr> <xsl:for-each select="//article[volume=$vol][issue=$issue]"> <tr><xsl:apply-templates /></tr> </xsl:for-each> </table> </li> </xsl:for-each> </xsl:for-each> <xsl:template match="title"> <xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyz'" /> <xsl:variable name="uppercase" select="'abcdefghijklmnopqrstuvwxyz'" /> <td><xsl:value-of select="translate(text(), $smallcase, $uppercase)" /></td> <xsl:template match="authors"> <td> <xsl:variable name="code" select="./authorcode[1]/text()" /> <xsl:choose> <xsl:when test="count(.//authorcode) = 1"> <xsl:value-of select="//author[@code=$code]/text()" /> </xsl:when> <xsl:when test="count(.//authorcode) > 1"> <xsl:value-of select="//author[@code=$code]/text()" /> et al. </xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> </td> <xsl:template match="endpage"> <td><xsl:value-of select="concat('[',../initpage/text(),' ; ', text(), ']')" /></td> <xsl:template match="text()"> </xsl:stylesheet> Solutions for Exercise 3 The four XPath expressions shown below correspond to the solution of each of the proposed exercises. count( doc("sigmod-data.xml")//article[volume=3 and issue=1] ) doc("sigmoddata.xml")/sigmod/articles/article[matches(title/text(),"[rr]elational")][matches(title/text(),"[dd]a ta")] doc("sigmod-data.xml")//author[./text()!="e. F. Codd"] [@code=//article[.//authorcode = //author[text()="e. F. Codd"]/@code] /authors/authorcode]/upper-case(text()) doc("sigmod-data.xml")//article[count(.//authorcode) = max(doc("sigmod-data.xml")//article/count(.//authorcode))]/title IST/DEI Page 6 of 8

7 Solution for Exercise 4.1 let $doc := doc("sigmod-data.xml") let $code := $doc/sigmod/authors/author[text()="isabel F. let $articles := $doc//article[./authors/authorcode = $code] let $coauthors := for $a in $articles//authorcode where count($articles[.//authorcode = $a]) > 1 return $a/text() return $doc//author[@code!= $code Solution for Exercise 4.2 <articles> { let $articles := let $doc := doc("sigmod-data.xml") for $a in $doc//article[matches(endpage/text(),"^[0-9]+$")] [matches(initpage/text(),"^[0-9]+$")] let $pages := $a/endpage - $a/initpage + 1 let $authors := string-join($doc//author[@code = $a//authorcode/text()]/upper-case(.), " and ") order by $pages descending return <article title="{$a/title}" authors="{$authors}" numpages="{$pages}" /> return $articles[position() < 6] } </articles> Solution for Exercise 4.3 copy $doc := doc("sigmod-data.xml") modify ( for $a in $doc//volume let $num-issues := count($doc//article[volume=$a]//issue) return insert node attribute num-issues {$num-issues} into $a, for $a in distinct-values($doc//volume), $b in $doc//article[volume=$a]/issue let $num-articles := count($doc//article[volume=$a][issue=$b]) return insert node attribute num-articles {$num-articles} into $b ) return $doc Solution for Exercise 4.4 let $newdoc := copy $doc := doc("sigmod-data.xml") modify delete node $doc//article[count(.//authorcode) < 2] return $doc return copy $doc := doc("sigmod-data.xml") modify ( delete node $doc//article[count(.//authorcode) < 2], for $a in $doc//author where count($newdoc//article[.//authorcode=$a/@code]) < 1 return delete node $a ) return $doc Solution for Exercise 5 The number of matching nodes between both trees is 8. Descendants from paper title year journal authors publisher pages 0 title journal year authors pages IST/DEI Page 7 of 8

8 Descendants from title XML XML 0 1 Descendants from year Descendants from journal volume issue title vol/issue title 0 2 Descendants from title TXML TXML 0 1 Descendants from authors inácio et al. inácio rodrigo santos Descendants from pages s The aligned nodes between both trees are as follows: A:paper B:paper A:title B:title A:XML B:XML A:journal B:journal A:title B:title A:TXML B:TXML A:authors B:authors A:pages B:pages IST/DEI Page 8 of 8

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 12. 01. 2016 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

XML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior

XML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior XML Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior XML INTRODUCTION 2 THE XML LANGUAGE XML: Extensible Markup Language Standard for the presentation and transmission of information.

More information

XSDs: exemplos soltos

XSDs: exemplos soltos XSDs: exemplos soltos «expande o tipo base»

More information

Gestão e Tratamento de Informação

Gestão e Tratamento de Informação Departamento de Engenharia Informática 2010/2011 Gestão e Tratamento de Informação 2nd Project Deadline at 04 Nov. 2011 :: Online submission at IST/Fénix A part of the MONDIAL 1 XML dataset, covering the

More information

CountryData Technologies for Data Exchange. Introduction to XML

CountryData 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 information

XML. XML Namespaces, XML Schema, XSLT

XML. 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 information

WHITE PAPER. Query XML Data Directly from SQL Server Abstract. DilMad Enterprises, Inc. Whitepaper Page 1 of 32

WHITE PAPER. Query XML Data Directly from SQL Server Abstract. DilMad Enterprises, Inc. Whitepaper Page 1 of 32 WHITE PAPER Query XML Data Directly from SQL Server 2000 By: Travis Vandersypen, President of DilMad Enterprises, Inc. Abstract XML is quickly becoming the preferred method of passing information, not

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 28. 10. 2016 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

XML. COSC Dr. Ramon Lawrence. An attribute is a name-value pair declared inside an element. Comments. Page 3. COSC Dr.

XML. 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 information

EXAM XML 1.1 and Related Technologies TYPE: DEMO

EXAM 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 information

Overview. Introduction to XML Schemas. Tutorial XML Europe , Berlin. 1 Introduction. 2 Concepts. 3 Schema Languages.

Overview. Introduction to XML Schemas. Tutorial XML Europe , Berlin. 1 Introduction. 2 Concepts. 3 Schema Languages. Introduction to XML Schemas Tutorial XML Europe 2001 21.5.2001, Berlin Ulrike Schäfer. www.infotakt.de. slide 1 Overview 1 Introduction q Why are Schemas? 2 Concepts q What are schemas? 3 Schema Languages

More information

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1

Copyright 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 information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 23. 10. 2015 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 10. 01. 2017 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

Exam : Title : XML 1.1 and Related Technologies. Version : DEMO

Exam : 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 information

Author: Irena Holubová Lecturer: Martin Svoboda

Author: 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 information

An alternative approach to store electronic data: the role of XML

An alternative approach to store electronic data: the role of XML An alternative approach to store electronic data: the role of XML Leuven 2003 FOR $l IN document( wwwestvipvpt/biblioteca/bdbiblioxml ) //livro WHERE $l/editora/nome = FCA AND $l/ano > 1995 RETURN $l/autor

More information

Semi-structured Data 11 - XSLT

Semi-structured Data 11 - XSLT Semi-structured Data 11 - XSLT Andreas Pieris and Wolfgang Fischl, Summer Term 2016 Outline What is XSLT? XSLT at First Glance XSLT Templates Creating Output Further Features What is XSLT? XSL = extensible

More information

Information Systems. DTD and XML Schema. Nikolaj Popov

Information Systems. DTD and XML Schema. Nikolaj Popov Information Systems DTD and XML Schema Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline DTDs Document Type Declarations

More information

XSLT and Structural Recursion. Gestão e Tratamento de Informação DEI IST 2011/2012

XSLT and Structural Recursion. Gestão e Tratamento de Informação DEI IST 2011/2012 XSLT and Structural Recursion Gestão e Tratamento de Informação DEI IST 2011/2012 Outline Structural Recursion The XSLT Language Structural Recursion : a different paradigm for processing data Data is

More information

III General Acknowledgement message. Acknow. Workgroup Document version: A. Version 5.0 SECTION

III General Acknowledgement message. Acknow. Workgroup Document version: A. Version 5.0 SECTION 1 2 3 4 5 SECTION III General Acknowledgement Message Acknow 6 Version 5.0 Edig@s 7 8 9 10 EASEE-gas/Edig@s Workgroup Document version: A ACKNOW Version 5.0 / 2010-02-17 III - 1 11 COPYRIGHT & LIABILITY

More information

/home/karl/desktop/case 1/openesb/Case1XSLT/src/Case1.wsdl

/home/karl/desktop/case 1/openesb/Case1XSLT/src/Case1.wsdl Case1.wsdl /home/karl/desktop/case 1/openesb/Case1XSLT/src/Case1.wsdl 43 In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is

More information

HR-XML Schema Extension Recommendation, 2003 February 26

HR-XML Schema Extension Recommendation, 2003 February 26 HR-XML Schema Extension Recommendation, 2003 February 26 This version: HRXMLExtension.doc Previous version: HRXMLExtension-1_0.doc Editor: Paul Kiel, HR-XML, paul@hr-xml.org Authors: Paul Kiel, HR-XML,

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 24. 6. 2015 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will not

More information

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. 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 information

More 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. 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 information

Creating Coverage Zone Files

Creating Coverage Zone Files APPENDIXC The following sections describe the Coverage Zone file elements and provide several Coverage Zone file examples: Coverage Zone File Elements, page C-1 Zero-IP Based Configuration, page C-2 Coverage

More information

XSL Elements. xsl:copy-of

XSL 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 information

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web

Lars 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 information

XML Schema Design Rules and Conventions (DRC) Interim Update For the Exchange Network

XML Schema Design Rules and Conventions (DRC) Interim Update For the Exchange Network XML Schema Design Rules and Conventions (DRC) Interim Update For the Exchange Network Version: 1.1 DEPRECATED Revision Date: 04/06/2006 APRIL 6, 2006 PREPARED BY WINDSOR SOLUTIONS, INC ACKNOWLEDGEMENTS

More information

Introduction to XSLT. Version 1.0 July nikos dimitrakas

Introduction 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 information

XSLT: How Do We Use It?

XSLT: 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 information

CA Data Protection. Account Import XML Schema Guide. Release 15.0

CA Data Protection. Account Import XML Schema Guide. Release 15.0 CA Data Protection Account Import XML Schema Guide Release 15.0 This Documentation, which includes embedded help systems and electronically distributed materials (hereinafter referred to as the Documentation

More information

XPath and XSLT. Overview. Context. Context The Basics of XPath. XPath and XSLT. Nodes Axes Expressions. Stylesheet templates Transformations

XPath 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 information

Extensible Markup Stylesheet Transformation (XSLT)

Extensible 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 information

XML 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 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 information

Gestão e Tratamento de Informação

Gestão e Tratamento de Informação Departamento de Engenharia Informática 2010/2011 Gestão e Tratamento de Informação 2nd Project Deadline at 04 Nov. 2011 :: Online submission at IST/Fénix A part of the MONDIAL 1 XML dataset, covering the

More information

~ Ian Hunneybell: DIA Revision Notes ~

~ 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 information

XML. Objectives. Duration. Audience. Pre-Requisites

XML. 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 information

UBL Naming and Design Rules Checklist

UBL Naming and Design Rules Checklist UBL Naming And Design Rules Checklist Page 1 2004-09-03 UBL Naming and Design Rules Checklist This document is a subset of the UBL Naming and Design Rules Master Document. It reflects the rules used to

More information

ENTSO-E ACKNOWLEDGEMENT DOCUMENT (EAD) IMPLEMENTATION GUIDE

ENTSO-E ACKNOWLEDGEMENT DOCUMENT (EAD) IMPLEMENTATION GUIDE 1 ENTSO-E ACKNOWLEDGEMENT DOCUMENT (EAD) 2014-01-16 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 Table of Contents 1 OBJECTIVE... 5 2 THE ACKNOWLEDGEMENT

More information

XML Query Reformulation for XPath, XSLT and XQuery

XML Query Reformulation for XPath, XSLT and XQuery XML Query Reformulation for XPath, XSLT and XQuery (Sven.Groppe@deri.org, http://members.deri.at/~sveng/) Tutorial at DBA 2006/Innsbruck 2/17/2006 1:29:13 Copyright 2006 Digital Enterprise Research Institute.

More information

How to Make Your Data Available through the EN Browser

How to Make Your Data Available through the EN Browser How to Make Your Data Available through the EN Browser 1 Overview Making your data available through the EN Browser can be completed in 3 steps. This document guides you through these steps. 2 Step 1:

More information

Part 2: XML and Data Management Chapter 6: Overview of XML

Part 2: XML and Data Management Chapter 6: Overview of XML Part 2: XML and Data Management Chapter 6: Overview of XML Prof. Dr. Stefan Böttcher 6. Overview of the XML standards: XML, DTD, XML Schema 7. Navigation in XML documents: XML axes, DOM, SAX, XPath, Tree

More information

Computer Science E-259

Computer 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 information

XML DTDs and Namespaces. CS174 Chris Pollett Oct 3, 2007.

XML DTDs and Namespaces. CS174 Chris Pollett Oct 3, 2007. XML DTDs and Namespaces CS174 Chris Pollett Oct 3, 2007. Outline Internal versus External DTDs Namespaces XML Schemas Internal versus External DTDs There are two ways to associate a DTD with an XML document:

More information

[MS-WORDLFF]: Word (.xml) Co-Authoring File Format in Document Lock Persistence Structure

[MS-WORDLFF]: Word (.xml) Co-Authoring File Format in Document Lock Persistence Structure [MS-WORDLFF]: Word (.xml) Co-Authoring File Format in Document Lock Persistence Structure Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes

More information

Birkbeck (University of London)

Birkbeck (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 information

XML and Databases XSLT Stylesheets and Transforms

XML 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 information

Display the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China

Display 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 information

Sticky and Proximity XML Schema Files

Sticky and Proximity XML Schema Files APPENDIX B Sticky and Proximity XML Schema Files This appendix describes how you can use the two XML schema files, included with the GSS, to describe and validate the sticky XML and proximity XML output

More information

XSL Concepts: Conditions and Loops. Robert Kiffe, Senior Web Developer OmniUpdate, Inc.

XSL 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

Oracle B2B 11g Technical Note. Technical Note: 11g_005 Attachments. Table of Contents

Oracle B2B 11g Technical Note. Technical Note: 11g_005 Attachments. Table of Contents Oracle B2B 11g Technical Note Technical Note: 11g_005 Attachments This technical note lists the attachment capabilities available in Oracle B2B Table of Contents Overview... 2 Setup for Fabric... 2 Setup

More information

Dr. Awad Khalil. Computer Science & Engineering department

Dr. Awad Khalil. Computer Science & Engineering department Dr. Awad Khalil Computer Science & Engineering department Outline Introduction Structured Data Semi-structured Data Unstructured data XML Hierarchical (Tree) Data Model XML Document Types XML DTD (Document

More information

XML and Content Management

XML and Content Management XML and Content Management Lecture 3: Modelling XML Documents: XML Schema Maciej Ogrodniczuk, Patryk Czarnik MIMUW, Oct 18, 2010 Lecture 3: XML Schema XML and Content Management 1 DTD example (recall)

More information

XML Schema Profile Definition

XML Schema Profile Definition XML Schema Profile Definition Authors: Nicholas Routledge, Andrew Goodchild, Linda Bird, DSTC Email: andrewg@dstc.edu.au, bird@dstc.edu.au This document contains the following topics: Topic Page Introduction

More information

Style Sheet A. Bellaachia Page: 22

Style 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 information

Querying XML Data. Querying XML has two components. Selecting data. Construct output, or transform data

Querying XML Data. Querying XML has two components. Selecting data. Construct output, or transform data Querying XML Data Querying XML has two components Selecting data pattern matching on structural & path properties typical selection conditions Construct output, or transform data construct new elements

More information

XSLT (part I) Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 22

XSLT (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 information

Displaying Discussion Threads on WebCenter Pages

Displaying Discussion Threads on WebCenter Pages TechNote Oracle WebCenter Displaying Discussion Threads on WebCenter Pages January 2008 A discussion service is a very efficient collaboration tool that allows users to exchange ideas organized by topics

More information

Week 2: Lecture Notes. DTDs and XML Schemas

Week 2: Lecture Notes. DTDs and XML Schemas Week 2: Lecture Notes DTDs and XML Schemas In Week 1, we looked at the structure of an XML document and how to write XML. I trust you have all decided on the editor you prefer. If not, I continue to recommend

More information

XML and Semantic Web Technologies. II. XML / 5. XML Stylesheet Language Transformations (XSLT)

XML and Semantic Web Technologies. II. XML / 5. XML Stylesheet Language Transformations (XSLT) XML and Semantic Web Technologies XML and Semantic Web Technologies II. XML / 5. XML Stylesheet Language Transformations (XSLT) Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL)

More information

XSLT. Announcements (October 24) XSLT. CPS 116 Introduction to Database Systems. Homework #3 due next Tuesday Project milestone #2 due November 9

XSLT. 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 information

HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the <mymadeuptag> element and generally do their best

HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the <mymadeuptag> element and generally do their best 1 2 HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the element and generally do their best when dealing with badly placed HTML elements. The

More information

!" DTDs rely on a mechanism based on the use of. !" It is intended to specify cross references" !" Reference to a figure, chapter, section, etc.!

! DTDs rely on a mechanism based on the use of. ! It is intended to specify cross references ! Reference to a figure, chapter, section, etc.! MULTIMEDIA DOCUMENTS! XML Schema (Part 2)"!" DTDs rely on a mechanism based on the use of attributes (ID et IDREF) to specify links into documents"!" It is intended to specify cross references"!" Reference

More information

A namespace prefix is defined with a xmlns attribute using the syntax xmlns:prefix="uri".

A namespace prefix is defined with a xmlns attribute using the syntax xmlns:prefix=uri. Question 1 XML Syntax and Basics (a) What are 'namespaces' used for in relation to XML and how are they applied to an XML document?(2 marks) Namespaces are used to avoid element name conflicts when using/mixing

More information

COP 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. 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 information

4. Unit: Transforming XML with XSLT

4. Unit: Transforming XML with XSLT Semistructured Data and XML 28 4. Unit: Transforming XML with XSLT Exercise 4.1 (XML to HTML) Write an XSLT routine performing the following task: Map the following country data for each country to an

More information

RDB2XSD: AUTOMATIC SCHEMA MAPPING FROM RDB INTO XML

RDB2XSD: AUTOMATIC SCHEMA MAPPING FROM RDB INTO XML RDB2XSD: AUTOMATIC SCHEMA MAPPING FROM RDB INTO XML 1 LARBI ALAOUI, 2 OUSSAMA EL HAJJAMY, 3 MOHAMED BAHAJ 1 International University of Rabat, 11100 Sala Al Jadida, Morocco 2, 3 University Hassan I, FSTS

More information

Software User Manual

Software User Manual Software User Manual for A lightweight and modular expert system shell for the usage in decision support system Version 1.7 Revision history Version Date Description Author 1.0 29.04.2011 Initial revision

More information

:38:00 1 / 14

:38:00 1 / 14 In this course you will be using XML Editor version 12.3 (oxygen for short from now on) for XML related work. The work includes writing XML Schema files with corresponding XML files, writing

More information

Introduction to XSLT. Version 1.3 March nikos dimitrakas

Introduction 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 information

Session [2] Information Modeling with XSD and DTD

Session [2] Information Modeling with XSD and DTD Session [2] Information Modeling with XSD and DTD September 12, 2000 Horst Rechner Q&A from Session [1] HTML without XML See Code HDBMS vs. RDBMS What does XDR mean? XML-Data Reduced Utilized in Biztalk

More information

Excel to XML v4. Version adds two Private Data sets

Excel to XML v4. Version adds two Private Data sets Excel to XML v4 Page 1/6 Excel to XML v4 Description Excel to XML will let you submit an Excel file in the format.xlsx to a Switch flow were it will be converted to XML and/or metadata sets. It will accept

More information

XML and XSLT. XML and XSLT 10 February

XML 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 information

- XML. - DTDs - XML Schema - XSLT. Web Services. - Well-formedness is a REQUIRED check on XML documents

- XML. - DTDs - XML Schema - XSLT. Web Services. - Well-formedness is a REQUIRED check on XML documents Purpose of this day Introduction to XML for parliamentary documents (and all other kinds of documents, actually) Prof. Fabio Vitali University of Bologna Introduce the principal aspects of electronic management

More information

Content Submission Guidelines

Content Submission Guidelines Content Submission Guidelines EPUB2/3 and PDF Introduction Key Features Content Submission Procedure Metadata EPUB file PDF file Cover file Introduction The PUBlizard Reader also fully supports legacy

More information

Excel to XML v3. Compatibility Switch 13 update 1 and higher. Windows or Mac OSX.

Excel to XML v3. Compatibility Switch 13 update 1 and higher. Windows or Mac OSX. App documentation Page 1/5 Excel to XML v3 Description Excel to XML will let you submit an Excel file in the format.xlsx to a Switch flow where it will be converted to XML and/or metadata sets. It will

More information

XSLT Programming Constructs

XSLT Programming Constructs XSLT Programming Constructs Contents 1. Procedural programming in XSLT 2. Defining named template rules 3. Parameterizing XSLT style sheets 2 1. Procedural Programming in XSLT Declarative vs. procedural

More information

XML Wrap-up. CS 431 March 1, 2006 Carl Lagoze Cornell University

XML 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 information

Introduction to XML DTD

Introduction to XML DTD Introduction to XML DTD What is a DTD? 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

More information

INLS 760 Web Databases Lecture 12 XML, XPATH, XSLT

INLS 760 Web Databases Lecture 12 XML, XPATH, XSLT 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: http://www.w3schools.com/ and from

More information

Section A: Multiple Choice

Section A: Multiple Choice Section A: Multiple Choice Question 1 Each item has only one correct answer. Two marks for each correct answer, zero marks for each incorrect answer. Use the supplied sheet to record a single response

More information

Cisco Unified IP Phone Services XML Schema File

Cisco Unified IP Phone Services XML Schema File APPENDIXB Cisco Unified IP Phone Services XML Schema File These sections provide details about the XML schema supported on Cisco Unified IP Phones: Updated XML Parser and Schema Enforcement CiscoIPPhone.xsd

More information

Contents. 1 Introduction Basic XML concepts Historical perspectives Query languages Contents... 2

Contents. 1 Introduction Basic XML concepts Historical perspectives Query languages Contents... 2 XML Retrieval 1 2 Contents Contents......................................................................... 2 1 Introduction...................................................................... 5 2 Basic

More information

SuccessMaker Data Services API Guide

SuccessMaker Data Services API Guide SuccessMaker 7.0.1 Data Services API Guide Document last updated August 2014 Copyright 2011 2014 Pearson Education, Inc. or one or more of its direct or indirect affiliates. All rights reserved. Pearson

More information

XSLT (part II) Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 19

XSLT (part II) Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 19 1 / 19 XSLT (part II) Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 19 1 Introduction 2 Variables, conditional constructs and iterations 3 Sorting and grouping 4 Named templates

More information

<?xml version = 1.0 encoding= windows-874?> <?xml-stylesheet type= text/css href= #xmldocs?> <style id= xmldocs > element-name{ } </style>

<?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 information

Advanced Studies in IT CT433 Exam Q&A

Advanced 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 information

The Transformation Language XSL

The Transformation Language XSL Chapter 8 The Transformation Language XSL 8.1 XSL: Extensible Stylesheet Language developed from CSS (Cascading Stylesheets) scripting language for transformation of data sources to HTML or any other optical

More information

8/1/2016. XSL stands for EXtensible Stylesheet Language. CSS = Style Sheets for HTML XSL = Style Sheets for XML. XSL consists of four parts:

8/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 information

The main problem of DTD s...

The main problem of DTD s... The main problem of DTD s... They are not written in XML! Solution: Another XML-based standard: XML Schema For more info see: http://www.w3.org/xml/schema XML Schema (W3C) Thanks to Jussi Pohjolainen TAMK

More information

Burrows & Langford Appendix D page 1 Learning Programming Using VISUAL BASIC.NET

Burrows & Langford Appendix D page 1 Learning Programming Using VISUAL BASIC.NET Burrows & Langford Appendix D page 1 APPENDIX D XSLT XSLT is a programming language defined by the World Wide Web Consortium, W3C (http://www.w3.org/tr/xslt), that provides the mechanism to transform a

More information

asexml SCHEMA CHANGE REQUEST

asexml SCHEMA CHANGE REQUEST asexml SCHEMA CHANGE REQUEST PREPARED BY: PIUS KURIAN, PAUL SPAIN DOCUMENT REF: CR 39 VERSION: 1.1 DATE: 10 AUG 2010 DRAFT/FINAL DRAFT Austrol on En;?rgy Mo rket O perotor ltd ABN 9J. 072 o o 327 W"l.-.w.oemo.cr.:m.ou

More information

CS561 Spring Mixed Content

CS561 Spring Mixed Content Mixed Content DTDs define mixed content by mixing #PCDATA into the content model DTDs always require mixed content to use the form (#PCDATA a b )* the occurrence of elements in mixed content cannot be

More information

ITU-T X Common vulnerabilities and exposures

ITU-T X Common vulnerabilities and exposures International Telecommunication Union ITU-T X.1520 TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU (01/2014) SERIES X: DATA NETWORKS, OPEN SYSTEM COMMUNICATIONS AND SECURITY Cybersecurity information exchange

More information

DBMaker. XML Tool User's Guide

DBMaker. XML Tool User's Guide DBMaker XML Tool User's Guide CASEMaker Inc./Corporate Headquarters 1680 Civic Center Drive Santa Clara, CA 95050, U.S.A. www.casemaker.com www.casemaker.com/support Copyright 1995-2003 by CASEMaker Inc.

More information

Chapter 3 Brief Overview of XML

Chapter 3 Brief Overview of XML Slide 3.1 Web Serv vices: Princ ciples & Te echno ology Chapter 3 Brief Overview of XML Mike P. Papazoglou & mikep@uvt.nl Slide 3.2 Topics XML document structure XML schemas reuse Document navigation and

More information

7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language

7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language 7.1 Introduction - SGML is a meta-markup language - Developed in the early 1980s; ISO std. In 1986 - HTML was developed using SGML in the early 1990s - specifically for Web documents - Two problems with

More information

The main Topics in this lecture are:

The 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 information