CSC503 Exam 2. (AnimalID, VisitDate, OwnerID, AnimalName, OwnerName, AnimalDOB, OwnerPhone, Diagnosis, Cost, VetID, VetName)

Size: px
Start display at page:

Download "CSC503 Exam 2. (AnimalID, VisitDate, OwnerID, AnimalName, OwnerName, AnimalDOB, OwnerPhone, Diagnosis, Cost, VetID, VetName)"

Transcription

1 CSC503 Exam 2 Name: Question 1 Assume that you have the following table: (AnimalID, VisitDate, OwnerID, AnimalName, OwnerName, AnimalDOB, OwnerPhone, Diagnosis, Cost, VetID, VetName) Assume that the following functional dependencies beyond that of the primary key are valid: AnimalID OwnerID, AnimalName, OwnerName, AnimalDOB, OwnerPhone OwnerID OwnerName, OwnerPhone VetID VetName Convert the table into 3NF. Put your answer on the test paper. It s already 1NF To 2NF (AnimalID, OwnerID, AnimalName,OwnerName, AnimalDOB, OwnerPhone) (AnimalID, VisitDate, VetID, VetName, Diagnosis, Cost) To 3NF (AnimalID, OwnerID, AnimalName, AnimalDOB) (OwnerID, OwnerName, OwnerPhone) (VetID, VetName) (AnimalID, VisitDate, VetID, Diagnosis, Cost)

2 Question 2 Use the file q2.sql for this question. me this file in a zip when you turn in your test. Modify the file q2.sql in the following ways: Change the Create Table commands so that primary keys are added to all tables. The primary key for Doctors is DoctorID, the primary key for Patients is PatientID, the primary key for Rooms is RoomID, the primary key for Wards is WardID, and the primary key for Assignments is RoomID and PatientID. Change the Create Table commands so that foreign key constraints are added to the tables. Note that DoctorMentorID must match another DoctorID in the Doctors table (though it could be NULL). Change the Create Table command for Rooms so that all Beds must be either 1 or 2. Change the Create Table command for Wards so that AvailableBeds must be less than or equal to TotalBeds. Change the Create Table command so that deleting a Rooms record will automatically delete all Assignments records with the same RoomID. Add a trigger so that whenever you add a new Rooms record, the value of TotalBeds in the Wards record with the same WardD will be increased by the number of Beds in the new record. Drop Table Assignments; Drop Table Wards; Drop Table Rooms; Drop Table Patients; Drop Table Doctors; Create Table Doctors( DoctorID Integer, DoctorName VARCHAR(20), DoctorPhone CHAR(12), DoctorSpecialty VARCHAR(20), DoctorMentorID Integer, PRIMARY KEY (DoctorID), FOREIGN KEY (DoctorMentorID) REFERENCES Doctors(DoctorID)); Create Table Patients( PatientID Integer, PatientName VARCHAR(20), PatientPhone CHAR(12), DoctorID Integer, PRIMARY KEY (PatientID), FOREIGN KEY (DoctorID) REFERENCES Doctors(DoctorID)); Create Table Rooms( RoomID Integer, WardID Integer, 2

3 RoomType VARCHAR(20), Beds Integer, PRIMARY KEY (RoomID), FOREIGN KEY (WardID) REFERENCES Wards(WardID), CHECK (Beds >= 1 AND Beds <= 2); Create Table Wards( WardID Integer, WardType VARCHAR(20), TotalBeds Integer, AvailableBeds Integer, PRIMARY KEY (WardID), CHECK (AvailableBeds <= TotalBeds)); Create Table Assignments( PatientID Integer, RoomID Integer, AssignDate Date, LeaveDate Date, PRIMARY KEY (RoomID, PatientID), FOREIGN KEY (RoomID) REFERENCES Rooms(RoomID) ON DELETE CASCADE, FOREIGN KEY (PatientID) REFERENCES Patients(PatientID)); create trigger addrooms after insert on Rooms for each row begin update Wards set TotalBeds = TotalBeds + :new.beds where RoomID = :new.roomid; end addrooms; 3

4 Question 3 Use the file q2.sql for this question. Write queries for each part. Put your answers on the test paper. A. Output the name and phone for all doctors with a specialty of either Surgery or Pathology. SELECT DoctorName, DoctorPhone FROM Doctors WHERE DoctorSpecialty = Surgery OR DoctorSpecialty = Pathology ; B. Output the number of doctors with the specialty of Surgeon. SELECT COUNT(*) FROM Doctors WHERE DoctorSpecialty = Surgery ; C. Output the number of rooms in each ward. SELECT WardID, COUNT(*) FROM Rooms GROUP BY WardID; D. Output the number of doctors in each specialty, but only include specialties with more than five doctors. SELECT COUNT(*), DoctorSpecialty FROM Doctors GROUP BY DoctorSpecialty HAVING COUNT(DoctorSpecialty) > 5; E. Output the name and phone numbers for all doctors and patients. SELECT DoctorName, DoctorPhone FROM Doctors UNION SELECT PatientName, PatientPhone FROM Patients; 4

5 F. Output the RoomID, WardID, and RoomType for all Rooms that do not have an Assignment. SELECT RoomID, WardID, RoomType FROM Rooms WHERE RoomID NOT IN (SELECT RoomID FROM Assignments); G. Output the names of all doctors and the name of their mentor. SELECT D1.DoctorName, D2.DoctorName FROM Doctors AS D1, Doctors AS D2 Where D1.MentorID = D2.DoctorID; H. Output the names of all patients and the name of their doctor. SELECT Patients.PatientName, Doctors.DoctorName FROM Patients INNER JOIN Doctors ON Doctors.DoctorID = Patients.DoctorID; I. Output the RoomID, WardID, RoomType, and the PatientID assigned to that that room. Output the room information even if no patient is assigned to that room. SELECT Rooms.RoomID, WardID, RoomType, PatientID FROM Rooms LEFT JOIN Assignments ON Assignments.RoomID = Rooms.RoomID; 5

6 Question 4 Use the file q4.xml for this question. Create a dtd file named q4.dtd that can be used to validate it. Make sure that you enforce primary and foreign key constraints defined in the attributes of the nodes. Include these files in your zip when you turn in this test. <!ELEMENT Data (Wards, Patients, Assignments)> <!ELEMENT Wards (Ward+)> <!ELEMENT Ward (WardID, WardType, TotalBeds, AvailableBeds, Room*)> <!ATTLIST Ward wardid ID #REQUIRED> <!ELEMENT Room (RoomID, Beds)> <!ATTLIST Room roomid ID #REQUIRED> <!ELEMENT Patients (Patient+)> <!ELEMENT Patient (PatientID, PatientName, PatientPhone)> <!ATTLIST Patient patid ID #REQUIRED> <!ELEMENT Assignments (Assignment+)> <!ELEMENT Assignment (PatientID, RoomID, AssignDate, LeaveDate)> <!ATTLIST Assignment patid IDREF #REQUIRED roomid IDREF #REQUIRED> <!ELEMENT WardID (#PCDATA)> <!ELEMENT WardType (#PCDATA)> <!ELEMENT TotalBeds (#PCDATA)> <!ELEMENT AvailableBeds (#PCDATA)> <!ELEMENT RoomID (#PCDATA)> <!ELEMENT Beds (#PCDATA)> <!ELEMENT PatientID (#PCDATA)> <!ELEMENT PatientName (#PCDATA)> <!ELEMENT PatientPhone (#PCDATA)> <!ELEMENT AssignDate (#PCDATA)> <!ELEMENT LeaveDate (#PCDATA)> 6

7 Question 5 Use the files q5.xml and q5.xsd for this question. Include these files in your zip when you turn in this test. Modify the file q5.xsd in the following ways: All patient phones should either be three digits, a dash, three digits, a dash and four digits; or three digits, a dash and four digits. All assign dates and leave dates are in The value of Beds should be either 1 or 2. WardType is Surgery, Medicine, Obstetrics, Pediatrics, or Psychiatry. Patient phones are optional. The WardID of Ward within Wards within Data is a key. The RoomID of Room within Ward within Wards within Data is a key. The PatientID of an Patient within Patients within Data is a key. The PatientID of an Assignment within Assignments within Data is a keyref that matches the relevant key. The RoomID of an Assignment within Assignments within Data is a keyref that matches the relevant key. <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs=" <xs:element name="data"> <xs:element ref="wards"/> <xs:element ref="patients"/> <xs:element ref="assignments"/> <xs:key name="wardkey"> <xs:selector xpath="wards/ward"/> <xs:field xpath="wardid"/> </xs:key> <xs:key name="patientkey"> <xs:selector xpath="patients/patient"/> <xs:field xpath="patientid"/> </xs:key> <xs:keyref name="patfk" refer="patientkey"> <xs:selector xpath="assignments/assignment"/> <xs:field xpath="patientid"/> </xs:keyref> <xs:key name="roomkey"> <xs:selector xpath="wards/ward/room"/> <xs:field xpath="roomid"/> </xs:key> <xs:keyref name="roomfk" refer="roomkey"> <xs:selector xpath="assignments/assignment"/> 7

8 <xs:field xpath="roomid"/> </xs:keyref> <xs:element name="wards"> <xs:element name="ward" maxoccurs="unbounded"> <xs:element name="wardid" type="xs:integer"/> <xs:element name="wardtype"> <xs:simpletype> <xs:restriction base="xs:string"> <xs:enumeration value="surgery"/> <xs:enumeration value="medicine"/> <xs:enumeration value="obstetrics"/> <xs:enumeration value="pediatrics"/> <xs:enumeration value="psychiatry"/> </xs:restriction> </xs:simpletype> <xs:element name="totalbeds" type="xs:integer"/> <xs:element name="availablebeds" type="xs:integer"/> <xs:element ref="room" minoccurs="0" maxoccurs="unbounded"/> <xs:element name="patients"> <xs:element name="patient" maxoccurs="unbounded"> <xs:element name="patientid" type="xs:integer"/> <xs:element name="patientname" type="xs:string"/> <xs:element name="patientphone" type="phone" minoccurs="0"/> <xs:element name="assignments"> <xs:element name="assignment" maxoccurs="unbounded"> <xs:element name="patientid" type="xs:integer"/> <xs:element name="roomid" type="xs:integer"/> <xs:element name="assigndate" type="date"/> <xs:element name="leavedate" type="date" minoccurs="0"/> 8

9 <xs:element name="room"> <xs:element name="roomid" type="xs:integer"/> <xs:element name="beds"> <xs:simpletype> <xs:restriction base="xs:integer"> <xs:enumeration value="1"/> <xs:enumeration value="2"/> </xs:restriction> </xs:simpletype> <xs:simpletype name="phone"> <xs:restriction base="xs:string"> <xs:pattern value="([0-9]{3}-)?[0-9]{3}-[0-9]{4}"/> </xs:restriction> </xs:simpletype> <xs:simpletype name="date"> <xs:restriction base="xs:date"> <xs:mininclusive value=" "/> <xs:maxinclusive value=" "/> </xs:restriction> </xs:simpletype> </xs:schema> 9

10 Question 6 Use the files q5.xml for this question. You will create a file named q6.xslt. Include this file in your zip when you turn in this test. The file should output the WardID, WardType, TotalBeds, and AvailableBeds for all Surgery wards. <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/"> <html> <body> <h2>surgery Wards</h2> <table border="1"> <tr> <th>ward ID</th> <th>ward Type</th> <th>total Beds</th> <th>available Beds</th> </tr> <xsl:for-each select="data/wards/ward[wardtype='surgery']"> <tr> <xsl:value-of select="wardid"/> <xsl:value-of select="wardtype"/> <xsl:value-of select="totalbeds"/> <xsl:value-of select="availablebeds"/> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> 10

11 Question 7 Use the files q5.xml for this question. You will create a file named q7.xslt. Include this file in your zip when you turn in this test. The file should output, for all Assignments, the PatientID, the RoomID, the AssignDate, the LeaveDate, and the PatientName. <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl=" <xsl:template match="/"> <html> <body> <h2>assignments with Patient Names</h2> <table border="1"> <tr> <th>patient ID</th> <th>patient Name</th> <th>room ID</th> <th>assign Date</th> <th>leave Date</th> </tr> <xsl:for-each select="//assignments/assignment"> <tr> <xsl:value-of select="patientid"/> <xsl:choose> <xsl:when test="patientid"> <xsl:variable name="p_id"> <xsl:value-of select="patientid"/> </xsl:variable> <xsl:for-each select="//patients/patient"> <xsl:if test="patientid=$p_id"> <xsl:value-of select="patientname"/> </xsl:if> </xsl:for-each> </xsl:when> <xsl:otherwise>none</xsl:otherwise> </xsl:choose> <xsl:value-of select="roomid"/> <xsl:value-of select="assigndate"/> <xsl:choose> <xsl:when test="leavedate"> <xsl:value-of select="leavedate"/> </xsl:when> <xsl:otherwise>n/a</xsl:otherwise> </xsl:choose> 11

12 </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet> 12

CSC503 Exam 2. Assume that the following functional dependencies beyond that of the primary key are valid:

CSC503 Exam 2. Assume that the following functional dependencies beyond that of the primary key are valid: CSC503 Exam 2 Name: Question 1 Assume that you have the following table: (OrderID, OrderDate, DeliveryDate, CustomerID, CustomerName, CustomerEmail, CustomerCity, CustomerState, CustomerZip, (ProductID,

More information

XML. Document Type Definitions XML Schema. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta

XML. Document Type Definitions XML Schema. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta XML Document Type Definitions XML Schema 1 XML XML stands for extensible Markup Language. XML was designed to describe data. XML has come into common use for the interchange of data over the Internet.

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

Fall, 2005 CIS 550. Database and Information Systems Homework 5 Solutions

Fall, 2005 CIS 550. Database and Information Systems Homework 5 Solutions Fall, 2005 CIS 550 Database and Information Systems Homework 5 Solutions November 15, 2005; Due November 22, 2005 at 1:30 pm For this homework, you should test your answers using Galax., the same XQuery

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

edmr2.0 XML Documentation Last Updated: 5/12/2010

edmr2.0 XML Documentation Last Updated: 5/12/2010 edmr2.0 XML Documentation Last Updated: 5/12/2010 Versions edmr2.0 vs edmr1.0 To differentiate between the old and new edmr versions we have designated the original version as edmr1.0 and the latest version

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

Modelling XML Applications (part 2)

Modelling XML Applications (part 2) Modelling XML Applications (part 2) Patryk Czarnik XML and Applications 2014/2015 Lecture 3 20.10.2014 Common design decisions Natural language Which natural language to use? It would be a nonsense not

More information

XML, DTD, and XML Schema. Introduction to Databases CompSci 316 Fall 2014

XML, DTD, and XML Schema. Introduction to Databases CompSci 316 Fall 2014 XML, DTD, and XML Schema Introduction to Databases CompSci 316 Fall 2014 2 Announcements (Tue. Oct. 21) Midterm scores and sample solution posted You may pick up graded exams outside my office Mean: 83.9

More information

Document erratum applies to QosDevice:1. List other Erratum s or Documents that this change may apply to or have associated changes with

Document erratum applies to QosDevice:1. List other Erratum s or Documents that this change may apply to or have associated changes with Erratum Number: Document and Version: Cross References: QosDevice:1 Erratum Next sequential erratum number Effective Date: July 14, 2006 Document erratum applies to QosDevice:1 List other Erratum s or

More information

Proposal: Codelists 1.0 April 2003

Proposal: Codelists 1.0 April 2003 Proposal: Codelists 1.0 April 2003 Proposal: Codelists / 1.0 / April 2003 1 Document Control Abstract In many cases, there is a need to use sets of pre-defined codes (such as country and currency codes)

More information

Restricting complextypes that have mixed content

Restricting complextypes that have mixed content Restricting complextypes that have mixed content Roger L. Costello October 2012 complextype with mixed content (no attributes) Here is a complextype with mixed content:

More information

CONVERTING CONCEPTUAL MODEL XUML TO XML SCHEMA

CONVERTING CONCEPTUAL MODEL XUML TO XML SCHEMA CONVERTING CONCEPTUAL MODEL XUML TO XML SCHEMA XUEMIN ZHANG School of Computer and Information Science, Hubei Engineering University, Xiaogan 432000, Hubei, China ABSTRACT As XML has become the standard

More information

Week 5 Aim: Description. Source Code

Week 5 Aim: Description. Source Code Week 5 Aim: Write an XML file which will display the Book information which includes the following: 1) Title of the book 2) Author Name 3) ISBN number 4) Publisher name 5) Edition 6) Price Write a Document

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

Schema schema-for-json.xsd

Schema schema-for-json.xsd Schema schema-for-json.xsd schema location: attributeformdefault: elementformdefault: targetnamespace:..\schema-for-json.xsd qualified http://www.w3.org/2015/exi/json Elements Complex types Simple types

More information

DATABASE DESIGN. Fields in database table have a data type. Some of the data types used in database table are explained below.

DATABASE DESIGN. Fields in database table have a data type. Some of the data types used in database table are explained below. DATABASE DESIGN 1. Description A database is a collection of information and is systematically stored in tables in the form of rows and columns. The table in the database has unique name that identifies

More information

Introducing our First Schema

Introducing our First Schema 1 di 11 21/05/2006 10.24 Published on XML.com http://www.xml.com/pub/a/2000/11/29/schemas/part1.html See this if you're having trouble printing code examples Using W3C XML By Eric van der Vlist October

More information

4. Unit: Transforming XML with XSLT

4. Unit: Transforming XML with XSLT Semistructured Data and XML 38 4. Unit: Transforming XML with XSLT Exercise 4.1 (XML to HTML) Write an XSLT routine that outputs the following country data for all countries with more than 1000000inhabitants

More information

Appendix H XML Quick Reference

Appendix H XML Quick Reference HTML Appendix H XML Quick Reference What Is XML? Extensible Markup Language (XML) is a subset of the Standard Generalized Markup Language (SGML). XML allows developers to create their own document elements

More information

Last week we saw how to use the DOM parser to read an XML document. The DOM parser can also be used to create and modify nodes.

Last week we saw how to use the DOM parser to read an XML document. The DOM parser can also be used to create and modify nodes. Distributed Software Development XML Schema Chris Brooks Department of Computer Science University of San Francisco 7-2: Modifying XML programmatically Last week we saw how to use the DOM parser to read

More information

Big Data 9. Data Models

Big Data 9. Data Models Ghislain Fourny Big Data 9. Data Models pinkyone / 123RF Stock Photo 1 Syntax vs. Data Models Physical view Syntax this is text. 2 Syntax vs. Data Models a Logical view

More information

[MS-TSWP]: Terminal Services Workspace Provisioning Protocol. Intellectual Property Rights Notice for Open Specifications Documentation

[MS-TSWP]: Terminal Services Workspace Provisioning Protocol. Intellectual Property Rights Notice for Open Specifications Documentation [MS-TSWP]: Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation ( this documentation ) for protocols,

More information

Markup Languages. Lecture 4. XML Schema

Markup Languages. Lecture 4. XML Schema Markup Languages Lecture 4. XML Schema Introduction to XML Schema XML Schema is an XML-based alternative to DTD. An XML schema describes the structure of an XML document. The XML Schema language is also

More information

Overview of the EU ETS Reporting Language (XETL)

Overview of the EU ETS Reporting Language (XETL) Overview of the EU ETS Reporting Language (XETL) General The EU ETS Reporting Language is an electronic ing language supporting EU ETS Monitoring, Reporting and Validation (MRV) activities such as submitting

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

Big Data Fall Data Models

Big Data Fall Data Models Ghislain Fourny Big Data Fall 2018 11. Data Models pinkyone / 123RF Stock Photo CSV (Comma separated values) This is syntax ID,Last name,first name,theory, 1,Einstein,Albert,"General, Special Relativity"

More information

QosPolicyHolder:1 Erratum

QosPolicyHolder:1 Erratum Erratum Number: Document and Version: Cross References: Next sequential erratum number Effective Date: July 14, 2006 Document erratum applies to the service document QosPolicyHolder:1 This Erratum has

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

MCS-274 Final Exam Serial #:

MCS-274 Final Exam Serial #: MCS-274 Final Exam Serial #: This exam is closed-book and mostly closed-notes. You may, however, use a single 8 1/2 by 11 sheet of paper with hand-written notes for reference. (Both sides of the sheet

More information

Gestão e Tratamento de Informação

Gestão e Tratamento de Informação Departamento de Engenharia Informática 2013/2014 Gestão e Tratamento de Informação 1st Project Deadline at 25 Oct. 2013 :: Online submission at IST/Fénix The SIGMOD Record 1 journal is a quarterly publication

More information

Positioning Additional Constraints

Positioning Additional Constraints Positioning Additional Constraints Issue XML Schema 1.1 allows additional constraints to be imposed on elements and attributes, above and beyond the constraints specified by their data type. Where should

More information

So far, we've discussed the use of XML in creating web services. How does this work? What other things can we do with it?

So far, we've discussed the use of XML in creating web services. How does this work? What other things can we do with it? XML Page 1 XML and web services Monday, March 14, 2011 2:50 PM So far, we've discussed the use of XML in creating web services. How does this work? What other things can we do with it? XML Page 2 Where

More information

XML extensible Markup Language

XML extensible Markup Language extensible Markup Language Eshcar Hillel Sources: http://www.w3schools.com http://java.sun.com/webservices/jaxp/ learning/tutorial/index.html Tutorial Outline What is? syntax rules Schema Document Object

More information

Software Engineering Methods, XML extensible Markup Language. Tutorial Outline. An Example File: Note.xml XML 1

Software Engineering Methods, XML extensible Markup Language. Tutorial Outline. An Example File: Note.xml XML 1 extensible Markup Language Eshcar Hillel Sources: http://www.w3schools.com http://java.sun.com/webservices/jaxp/ learning/tutorial/index.html Tutorial Outline What is? syntax rules Schema Document Object

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

EVALUATION COPY. Contents

EVALUATION COPY. Contents Contents Chapter 1 - Course Introduction... 7 Course Objectives... 8 Course Overview... 10 Using the Workbook... 11 Suggested References... 12 Chapter 2 - Defining New Types Using Schemas... 15 Substitution

More information

/// Rapport. / Testdocumentatie nieuwe versie Register producten en dienstverlening (IPDC)

/// Rapport. / Testdocumentatie nieuwe versie Register producten en dienstverlening (IPDC) /// Rapport / Testdocumentatie nieuwe versie Register producten en dienstverlening (IPDC) / Maart 2017 www.vlaanderen.be/informatievlaanderen Informatie Vlaanderen /// Aanpassingen aan de webservices Dit

More information

Allegato: AgibilitaRequest_V.1.1.xsd

Allegato: AgibilitaRequest_V.1.1.xsd Allegato: AgibilitaRequest_V.1.1.xsd

More information

OPEN Replication Architecture

OPEN Replication Architecture OPEN Replication Architecture May 12, 2016 Who is NTI? - 25+ year old Privately Held Company - Inventors of NonStop Data Protection for the NonStop - Development and Support Offices in USA and Ireland

More information

Technical requirements

Technical requirements ANNEX 1: TECHNICAL REQUIREMENTS Technical requirements 1. Introduction... 2 2. Overview of the import formalities section of the market access database... 2 2.1. Architecture... 2 2.2. The dataset... 2

More information

Author: Irena Holubová Lecturer: Martin Svoboda

Author: Irena Holubová Lecturer: Martin Svoboda A7B36XML, AD7B36XML XML Technologies Lecture 5 XML Schema 31. 3. 2017 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/2016-2-a7b36xml/ Lecture Outline XML schema

More information

Configuring a WMS Feature Source

Configuring a WMS Feature Source Configuring a WMS Feature Source Overview This document describes how to specify additional configuration options for a MapGuide WMS feature source (i.e., configuring the GetMap request that is generated

More information

An XML Description Language for Web-based Network Simulation

An XML Description Language for Web-based Network Simulation An XML Description Language for Web-based Network Simulation R. Canonico, D. Emma, G. Ventre Università di Napoli "Federico II", Dipartimento di Informatica e Sistemistica Via Claudio, 21 I-80125 Napoli

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

Goal DTD. <!ATTLIST CD id ID #REQUIRED. <!ATTLIST Track disk ( ) '1'>

Goal DTD. <!ATTLIST CD id ID #REQUIRED. <!ATTLIST Track disk ( ) '1'> Goal Build a web site for a company that sells CD over the web Desing a XML application for capturing CD information Title, author, band, price, category, songs The web site should allow browsing by category

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

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

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

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

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

Brief guide for XML, XML Schema, XQuery for YAWL data perspective

Brief guide for XML, XML Schema, XQuery for YAWL data perspective Brief guide for XML, XML Schema, XQuery for YAWL data perspective Carmen Bratosin March 16, 2009 1 Data perspective in YAWL YAWL engine files are XML based. Therefore, YAWL uses XML for data perspective

More information

Messages are securely encrypted using HTTPS. HTTPS is the most commonly used secure method of exchanging data among web browsers.

Messages are securely encrypted using HTTPS. HTTPS is the most commonly used secure method of exchanging data among web browsers. May 6, 2009 9:39 SIF Specifications SIF Implementation Specification The SIF Implementation Specification is based on the World Wide Web Consortium (W3C) endorsed Extensible Markup Language (XML) which

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

Technical requirements

Technical requirements ANNEX 1 Technical requirements 1. INTRODUCTION...2 2. OVERVIEW OF THE APPLIED TARIFFS SECTION OF THE MARKET ACCESS DATABASE...3 Architecture...3 The dataset...3 Principle...3 Naming 4 Content 4 The public

More information

Performing XML Data Validation in the Global Force Management Data Initiative

Performing XML Data Validation in the Global Force Management Data Initiative Performing XML Data Validation in the Global Force Management Data Initiative by Frederick S. Brundick ARL-TR-4742 March 2009 Approved for public release; distribution unlimited. NOTICES Disclaimers The

More information

Semantic Web. XML and XML Schema. Morteza Amini. Sharif University of Technology Fall 94-95

Semantic Web. XML and XML Schema. Morteza Amini. Sharif University of Technology Fall 94-95 ه عا ی Semantic Web XML and XML Schema Morteza Amini Sharif University of Technology Fall 94-95 Outline Markup Languages XML Building Blocks XML Applications Namespaces XML Schema 2 Outline Markup Languages

More information

Computer Science 425 Fall 2006 Second Take-home Exam Out: 2:50PM Wednesday Dec. 6, 2006 Due: 5:00PM SHARP Friday Dec. 8, 2006

Computer Science 425 Fall 2006 Second Take-home Exam Out: 2:50PM Wednesday Dec. 6, 2006 Due: 5:00PM SHARP Friday Dec. 8, 2006 Computer Science 425 Fall 2006 Second Take-home Exam Out: 2:50PM Wednesday Dec. 6, 2006 Due: 5:00PM SHARP Friday Dec. 8, 2006 Instructions: This exam must be entirely your own work. Do not consult with

More information

7.1. Redovna datoteka sa slogovima koji se odnose na kupnje i prodaje valuta na tržištu stranih sredstava plaćanja

7.1. Redovna datoteka sa slogovima koji se odnose na kupnje i prodaje valuta na tržištu stranih sredstava plaćanja 7. XSD datoteke za dostavu podataka 7.1. Redovna datoteka sa slogovima koji se odnose na kupnje i prodaje valuta na tržištu stranih sredstava plaćanja

More information

ADT 2005 Lecture 7 Chapter 10: XML

ADT 2005 Lecture 7 Chapter 10: XML ADT 2005 Lecture 7 Chapter 10: XML Stefan Manegold Stefan.Manegold@cwi.nl http://www.cwi.nl/~manegold/ Database System Concepts Silberschatz, Korth and Sudarshan The Challenge: Comic Strip Finder The Challenge:

More information

AlwaysUp Web Service API Version 11.0

AlwaysUp Web Service API Version 11.0 AlwaysUp Web Service API Version 11.0 0. Version History... 2 1. Overview... 3 2. Operations... 4 2.1. Common Topics... 4 2.1.1. Authentication... 4 2.1.2. Error Handling... 4 2.2. Get Application Status...

More information

XML Schema Element and Attribute Reference

XML Schema Element and Attribute Reference E XML Schema Element and Attribute Reference all This appendix provides a full listing of all elements within the XML Schema Structures Recommendation (found at http://www.w3.org/tr/xmlschema-1/). The

More information

SMKI Repository Interface Design Specification TPMAG baseline submission draft version 8 September 2015

SMKI Repository Interface Design Specification TPMAG baseline submission draft version 8 September 2015 SMKI Repository Interface Design Specification DCC Public Page 1 of 21 Contents 1 Introduction 3 1.1 Purpose and Scope 3 1.2 Target Response Times 3 2 Interface Definition 4 2.1 SMKI Repository Portal

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

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

BPM Multi Line Container in Integration Process

BPM Multi Line Container in Integration Process BPM Multi Line Container in Integration Process Applies to: SAP XI 3.0. For more information, visit the SOA Management homepage. Summary The requirement is that individual employee details are to for a

More information

Qualys Cloud Platform (VM, PC) v8.x API Release Notes

Qualys Cloud Platform (VM, PC) v8.x API Release Notes API Release Notes Version 8.18.1 March 19, 2019 This new version of the Qualys Cloud Platform (VM, PC) includes improvements to the Qualys API. You ll find all the details in our user guides, available

More information

XML-Schema Quick Start * Draft

XML-Schema Quick Start * Draft XML-Schema (quick start) XML-Schema Quick Start * Draft 2011-01 XML-Schema (quick start) XML-Schema is a World Wide Web Consortium (W3C) specification for an XML application that is used to validate/constrain

More information

Privacy and Personal Data Collection Disclosure. Legal Notice

Privacy and Personal Data Collection Disclosure. Legal Notice Privacy and Personal Data Collection Disclosure Certain features available in Trend Micro products collect and send feedback regarding product usage and detection information to Trend Micro. Some of this

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

Extensible Markup Language Processing

Extensible Markup Language Processing CHAPTER 2 Revised: June 24, 2009, This chapter describes the Extensible Markup Language (XML) process in the Common Object Request Broker Architecture (CORBA) adapter. XML and Components Along with XML,

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

XML Technologies. Doc. RNDr. Irena Holubova, Ph.D. Web pages:

XML Technologies. Doc. RNDr. Irena Holubova, Ph.D. Web pages: XML Technologies Doc. RNDr. Irena Holubova, Ph.D. holubova@ksi.mff.cuni.cz Web pages: http://www.ksi.mff.cuni.cz/~holubova/nprg036/ Outline Introduction to XML format, overview of XML technologies DTD

More information

XML. Structure of XML Data XML Document Schema Querying and Transformation Application Program Interfaces to XML Storage of XML Data XML Applications

XML. Structure of XML Data XML Document Schema Querying and Transformation Application Program Interfaces to XML Storage of XML Data XML Applications Chapter 10: XML XML Structure of XML Data XML Document Schema Querying and Transformation Application Program Interfaces to XML Storage of XML Data XML Applications Introduction XML: Extensible Markup

More information

UCSD s Personalization Engine: Local Customizations to COEUS

UCSD s Personalization Engine: Local Customizations to COEUS : Coeus User Group Meeting New Orleans, Louisiana March 31, 2008 Presented by: Mojgan Amini maamini@ucsd.edu Robert Dias rdias@ucsd.edu University of California, San Diego Page 1 of 8 1 Personalization

More information

UPDATES TO THE LRIT SYSTEM. Report of the Drafting Group

UPDATES TO THE LRIT SYSTEM. Report of the Drafting Group E SUB-COMMITTEE ON NAVIGATION, COMMUNICATIONS AND SEARCH AND RESCUE 5th session Agenda item 4 21 ebruary 2018 Original: ENGLISH DISCLAIMER As at its date of issue, this document, in whole or in part, is

More information

Introduction Syntax and Usage XML Databases Java Tutorial XML. November 5, 2008 XML

Introduction Syntax and Usage XML Databases Java Tutorial XML. November 5, 2008 XML Introduction Syntax and Usage Databases Java Tutorial November 5, 2008 Introduction Syntax and Usage Databases Java Tutorial Outline 1 Introduction 2 Syntax and Usage Syntax Well Formed and Valid Displaying

More information

XML Schema. Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 28

XML Schema. Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 28 1 / 28 XML Schema Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 28 1 Introduction 2 Elements 3 Simple and complex types 4 Attributes 5 Groups and built-in 6 Import of other schemes

More information

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!   We offer free update service for one year PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : I10-002 Title : XML Master: Professional V2 Vendors : XML Master Version

More information

Advanced XQuery and XSLT

Advanced XQuery and XSLT NPRG036 XML Technologies Lecture 9 Advanced XQuery and XSLT 30. 4. 2018 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/172-nprg036/ Lecture Outline XQuery Update

More information

Information Document Wind and Solar Power Forecasting ID # R

Information Document Wind and Solar Power Forecasting ID # R Information Documents are not authoritative. Information Documents are for information purposes only and are intended to provide guidance. In the event of any discrepancy between an Information Document

More information

Copyright 2005, by Object Computing, Inc. (OCI). All rights reserved. Database to Web

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

Big Data for Engineers Spring Data Models

Big Data for Engineers Spring Data Models Ghislain Fourny Big Data for Engineers Spring 2018 11. Data Models pinkyone / 123RF Stock Photo CSV (Comma separated values) This is syntax ID,Last name,first name,theory, 1,Einstein,Albert,"General, Special

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

DFP Mobile Ad Network and Rich Media API

DFP Mobile Ad Network and Rich Media API DFP Mobile Ad Network and Rich Media API v2.0, 12 June 2012 Background DFP Mobile is adopting a single open API for integrating with all ad networks and rich media vendors. This has the following benefits:

More information

Chapter 11 XML Data Modeling. Recent Development for Data Models 2016 Stefan Deßloch

Chapter 11 XML Data Modeling. Recent Development for Data Models 2016 Stefan Deßloch Chapter 11 XML Data Modeling Recent Development for Data Models 2016 Stefan Deßloch Motivation Traditional data models (e.g., relational data model) primarily support structure data separate DB schema

More information

Advanced XSLT editing: Content query web part (CQWP) Dolev Raz SharePoint top soft Soft.co.il

Advanced XSLT editing: Content query web part (CQWP) Dolev Raz SharePoint top soft Soft.co.il Advanced XSLT editing: Content query web part (CQWP) Dolev Raz SharePoint Implementer @ top soft dolev_r@top- Soft.co.il About Me Dolev Raz 22 years-old Live in Qiriyat Ono Works in Logic trough Top Soft

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

Using and defining new simple types. Basic structuring of definitions. Copyright , Sosnoski Software Solutions, Inc. All rights reserved.

Using and defining new simple types. Basic structuring of definitions. Copyright , Sosnoski Software Solutions, Inc. All rights reserved. IRIS Web Services Workshop II Session 1 Wednesday AM, September 21 Dennis M. Sosnoski What is XML? Extensible Markup Language XML is metalanguage for markup Enables markup languages for particular domains

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

Generating Variants Using XSLT Tutorial

Generating Variants Using XSLT Tutorial Table of Contents 1. Overview... 1 2. About this tutorial... 1 3. Setting up the pure::variants project... 1 4. Setting up the feature model... 3 5. Setting up the family model... 4 6. Setting up the XSLT

More information

PESC Compliant JSON Version /19/2018. A publication of the Technical Advisory Board Postsecondary Electronic Standards Council

PESC Compliant JSON Version /19/2018. A publication of the Technical Advisory Board Postsecondary Electronic Standards Council Version 0.5.0 10/19/2018 A publication of the Technical Advisory Board Postsecondary Electronic Standards Council 2018. All Rights Reserved. This document may be copied and furnished to others, and derivative

More information