Sample Relational Database Modern Information Systems
|
|
- Dennis Cox
- 6 years ago
- Views:
Transcription
1 Sample Relational Database Modern Information Systems WT 20xx/20xx Name Matriculation# audiobook-library (idea from audiobook-library Graz-Mariahilf) Table of Contents: Database Schema:... 2 Practical implementation of the database with mysql... 3 Inserting Test Data with PHP and HTML... 4 Database Queries(PHP)... 7 XSL Transformation with XSLT Page 1
2 Database Schema: Domains: ATitle string; AAuthor string; AYearPublication integer; ASpeaker string; AType string; APublishing string; AISBN integer; BBegin date; BEnd date; Cid integer; CFirstName string; CLastName string; CDateBirth date; CCity string; CPostcode integer; CAddress string; articles title articles author articles year of publication articles speaker articles type articles publishing articles international standard book number borrowings begin date borrowings end date customers id customers firstname customers lastname customers date of birth customer city customer postcode customers address Relations Relation: article(aisbn, atitle, aauthor, ayearpublication, aspeaker, atype, apublishing) Relation: borrowing(aisbn, cid, bbegin, bend) Relation: customer(cid, cfirstname, clastname, cdatebirth, ccity, cpostcode, caddress) Page 2
3 Practical implementation of the database with mysql Relation CREATE TABLE Article( AISBN VARCHAR(17) NOT NULL, ATitle VARCHAR(50) NOT NULL, AAuthor VARCHAR(50) NOT NULL, AYearPublication INTEGER, ASpeaker VARCHAR(50), AType VARCHAR(20) NOT NULL, APublishing VARCHAR(50), PRIMARY KEY(AISBN) ); CREATE TABLE Customer( Cid INTEGER NOT NULL AUTO_INCREMENT, CFirstName VARCHAR(50) NOT NULL, CLastName VARCHAR(50) NOT NULL, CDateBirth DATE, CCity VARCHAR(50) NOT NULL, CPostcode INTEGER NOT NULL, CAddress VARCHAR(50) NOT NULL, PRIMARY KEY(Cid) ); CREATE TABLE Borrowing( AISBN VARCHAR(17) NOT NULL, CId INTEGER NOT NULL, BBegin INTEGER NOT NULL, BEnd INTEGER, PRIMARY KEY(AISBN, Cid, BBegin), FOREIGN KEY(AISBN)REFERENCES Article(AISBN), FOREIGN KEY(Cid) REFERENCES Customer(Cid) ); Page 3
4 Inserting Test Data with PHP and HTML #PHP script handling the values of article_form <? /* this script will handle the variables passed from the insert_article_form.php file */ /* declare some relevant variables */ PRINT "<html>"; PRINT "<head><title>insert New Article</title></head>"; PRINT "<body>"; $atitle = $_POST["atitle"]; $aauthor = $_POST["aauthor"]; $ayearpublication = $_POST["ayearpublication"]; $aspeaker = $_POST["aspeaker"]; $atype = $_POST["atype"]; $apublishing = $_POST["apublishing"]; $aisbn = $_POST["aisbn"]; /* MySQL table created to store the data */ $tablename = "article"; // make connection to the databse require("connect.php"); $today = date("y-m-d"); PRINT "Today is: $today.<br>"; PRINT "<hr>"; PRINT "You issued the following INSERT query:<br>"; PRINT "<ul>"; PRINT "<li>title of the Article: <em>$atitle</em>"; PRINT "<li>author of the Article: <em>$aauthor</em>"; PRINT "<li>year of Publication: <em>$ayearpublication</em>"; PRINT "<li>speaker of the Article: <em>$aspeaker</em>"; PRINT "<li>publishing: <em>$apublishing</em>"; PRINT "<li>isbn: <em>$aisbn</em>"; PRINT "</ul>"; PRINT "<hr>"; /* Insert information into table */ $query = "INSERT INTO $tablename VALUES('$aisbn', '$atitle', '$aauthor', '$ayearpublication', '$aspeaker', '$atype', '$apublishing')"; // Fehler $result = MYSQL_QUERY($query); Page 4
5 PRINT "Database server response:<br>"; if($result!= 0){ $affected_rows = mysql_affected_rows(); PRINT "<strong>query OK. Rows affected $affected_rows</strong>"; else{ PRINT "<strong>query FAILED. ".'Ungültige Abfrage: '. mysql_error(). "</strong>"; PRINT "<hr>"; PRINT "<a href=\"insert_article.html\">new article</a><br>"; PRINT "<a href=\"main.html\">back</a>"; PRINT "</body>"; PRINT "</html>"; // close connection to the database require("disconnect.php");?> #inserting a new customer <? /* this script will handle the variables passed from the insert_customer.html file */ /* declare some relevant variables */ PRINT "<html>"; PRINT "<head><title>insert New Customer</title></head>"; PRINT "<body>"; $cfirstname = $_POST["cfirstname"]; $clastname = $_POST["clastname"]; $cdatebirth = $_POST["cdatebirth"]; $ccity = $_POST["ccity"]; $cpostcode = $_POST["cpostcode"]; $caddress = $_POST["caddress"]; /* MySQL table created to store the data */ $tablename = "customer"; // make connection to the databse require("connect.php"); $today = date("y-m-d"); PRINT "Today is: $today.<br>"; PRINT "<hr>"; PRINT "You issued the following INSERT query:<br>"; PRINT "<ul>"; PRINT "<li>customer first name: <em>$cfirstname</em>"; Page 5
6 PRINT "<li>customer last name: <em>$clastname</em>"; PRINT "<li>customer date of birth (YYYYMMDD): <em>$cdatebirth</em>"; PRINT "<li>customer city: <em>$ccity</em>"; PRINT "<li>customer postcode: <em>$cpostcode</em>"; PRINT "<li>customer address: <em>$caddress</em>"; PRINT "</ul>"; PRINT "<hr>"; /* Insert information into table */ $query = "INSERT INTO $tablename VALUES(NULL, '$cfirstname', '$clastname', '$cdatebirth', '$ccity', '$cpostcode', '$caddress')"; $result = MYSQL_QUERY($query); PRINT "Database server response:<br>"; if($result!= 0){ $affected_rows = mysql_affected_rows(); PRINT "<strong>query OK. Rows affected $affected_rows</strong>"; else{ PRINT "<strong>query FAILED. ".'Ungültige Abfrage: '. mysql_error(). "</strong>"; PRINT "<hr>"; PRINT "<a href=\"insert_customer.html\">new customer</a><br>"; PRINT "<a href=\"main.html\">back</a>"; PRINT "</body>"; PRINT "</html>"; // close connection to the database require("disconnect.php");?> Page 6
7 Database Queries(PHP) Find all articles borrowed by a specific customer... <? /* this script find the data of the chosen article of find_article_form */ PRINT "<html>"; PRINT "<head><title>find Article by chosen Customer</title></head>"; PRINT "<body>"; /* declare some relevant variables */ $cid = $_POST["cid"]; // make connection to the databse require("connect.php"); $query = "SELECT article.aid, article.atitle, article.aauthor FROM article, borrowing WHERE article.aid = borrowing.aid and borrowing.cid='$cid'"; $result = MYSQL_QUERY($query); /* How many rows in the result? */ $number = MYSQL_NUMROWS($result); $i = 0; if($number == 0){ PRINT "No Articles borrowed by this customer"; elseif ($number > 0){ PRINT "<table border = 1>"; PRINT "<tr>"; PRINT "<td>aid</td>"; PRINT "<td>atitle</td>"; PRINT "<td>aauthor</td>"; PRINT "</tr>"; while($i < $number) { $aid = mysql_result($result, $i, "AId"); $atitle = mysql_result($result, $i, "ATitle"); $aauthor = mysql_result($result, $i, "AAuthor"); PRINT "<tr>"; PRINT "<td>$aid</td>"; PRINT "<td>$atitle</td>"; PRINT "<td>$aauthor</td>"; PRINT "</tr>"; $i++; Page 7
8 PRINT "</table>"; PRINT "<p>"; PRINT "<a href=\"main.html\">back</a>"; PRINT "</body>"; PRINT "</html>"; // close connection to the database require("disconnect.php");?> Find all customers by a specific borrowed article... <? /* this script find the data of the chosen article of find_customer_form */ PRINT "<html>"; PRINT "<head><title>find Customer by chosen article</title></head>"; PRINT "<body>"; /* declare some relevant variables */ $aid = $_POST["aid"]; // make connection to the databse require("connect.php"); $query = "SELECT customer.cid, customer.cfirstname, customer.clastname FROM customer, borrowing WHERE customer.cid = borrowing.cid and borrowing.aid='$aid'"; $result = MYSQL_QUERY($query); /* How many rows in the result? */ $number = MYSQL_NUMROWS($result); $i = 0; if($number == 0){ PRINT "No Customer borrowed this book"; elseif ($number > 0){ PRINT "<table border = 1>"; PRINT "<tr>"; PRINT "<td>cid</td>"; PRINT "<td>cfirstname</td>"; PRINT "<td>clastname</td>"; PRINT "</tr>"; while($i < $number) { Page 8
9 $cid = mysql_result($result, $i, "CId"); $cfirstname = mysql_result($result, $i, "CFirstName"); $clastname = mysql_result($result, $i, "CLastName"); PRINT "<tr>"; PRINT "<td>$cid</td>"; PRINT "<td>$cfirstname</td>"; PRINT "<td>$clastname</td>"; PRINT "</tr>"; $i++; PRINT "</table>"; PRINT "<p>"; PRINT "<a href=\"main.html\">back</a>"; PRINT "</body>"; PRINT "</html>"; // close connection to the database require("disconnect.php");?> Get a list of most borrowed articles. <? /* this script makes a list with the most borrowed articles */ PRINT "<html>"; PRINT "<head><title>find most borrowed articles</title></head>"; PRINT "<body>"; // make connection to the databse require("connect.php"); $query = "SELECT article.aid, article.atitle, article.aauthor, article.aspeaker FROM article, borrowing WHERE article.aid = borrowing.aid Group by article.aid Having COUNT(*) > 2"; $result = MYSQL_QUERY($query); /* How many rows in the result? */ $number = MYSQL_NUMROWS($result); $i = 0; if ($number == 0){ PRINT "<CENTER>"; PRINT "<P>"; Page 9
10 PRINT "No borrowed articles in the database"; PRINT "</CENTER>"; ELSEIF ($number == 1){ PRINT "<CENTER>"; PRINT "<P>"; PRINT "Only too low frequently borrowed articles in the database"; PRINT "</CENTER>"; ELSEIF ($number > 1){ PRINT "<CENTER>"; PRINT "<P>"; PRINT "Articles: $number"; PRINT "<BR>"; PRINT "<table border = 1>"; PRINT "<tr>"; PRINT "<td>aid</td>"; PRINT "<td>atitle</td>"; PRINT "<td>aauthor</td>"; PRINT "<td>aspeaker</td>"; PRINT "</tr>"; while ($i < $number) { $aid = mysql_result($result, $i, "AId"); $atitle = mysql_result($result, $i, "ATitle"); $aauthor = mysql_result($result, $i, "AAuthor"); $aspeaker = mysql_result($result, $i, "ASpeaker"); PRINT "<tr>"; PRINT "<td>$aid</td>"; PRINT "<td>$atitle</td>"; PRINT "<td>$aauthor</td>"; PRINT "<td>$aspeaker</td>"; PRINT "</tr>"; $i++; PRINT "</table>"; PRINT "</CENTER>"; PRINT "<hr>"; PRINT "<a href = \"main.html\">back</a>"; PRINT "</body>"; PRINT "</html>"; // close connection to the database require("disconnect.php");?> Page 10
11 XSL Transformation with XSLT Clientside <?php header("content-type: text/xml"); /*this script will create a list of borrowings */ /* declare some relevant variables */ // make connection to the databse require("connect.php"); /* Select the data from the database */ $query = "select customer.cfirstname, customer.clastname, article.atitle, article.atype, borrowing.bbegin, borrowing.bend from customer, article, borrowing where customer.cid = borrowing.cid and article.aisbn = borrowing.aisbn"; $result = MYSQL_QUERY($query); /* How many rows in the result? */ $number = MYSQL_NUMROWS($result); /* Print these results into an XML file*/ $i = 0; $content.= "<?xml-stylesheet type=\"text/xsl\" href=\"kidsstyle.xsl"?>\n"; $content.= "<!-- all borrowings -->\n"; $content.= "<borrowings>\n"; if ($number > 0){ while ($i < $number){ $cfirstname = mysql_result($result, $i, "cfirstname"); $clastname = mysql_result($result, $i, "clastname"); $atitle = mysql_result($result, $i, "atitle"); $bbegin = mysql_result($result, $i, "bbegin"); $bend = mysql_result($result, $i, "bend"); $content.= "\n"; $content.= "<borrowing bbegin = \"$bbegin\" bend = \"$bend\">\n"; $content.= "<customer>$cfirstname</customer>\n"; $content.= "<customer>$clastname</customer>\n"; $content.= "<article>$atitle</article>\n"; Page 11
12 $content.= "\n"; $content.= "\n"; $i++; $content.= "</borrowings>\n"; echo $content; // close connection to the database require("disconnect.php");?> Serverside <?php /* this script will creating the list of borrowings in correct style */ /* declare some relevant variables */ // make connection to the databse require("connect.php"); /* Select the data from the database */ $query = "select customer.cfirstname, customer.clastname, article.atitle, article.atype, borrowing.bbegin, borrowing.bend from customer, article, borrowing where customer.cid = borrowing.cid and article.aisbn = borrowing.aisbn"; $result = MYSQL_QUERY($query); /* How many rows in the result? */ $number = MYSQL_NUMROWS($result); /* Print these results into an XML file*/ $i = 0; $content = "<"; $content.= "?xml version=\"1.0\" encoding=\"utf-8\"?"; $content.= ">\n"; $content.= "<!-- all borrowings -->\n"; $content.= "<borrowings>\n"; if ($number > 0){ while ($i < $number){ $cfirstname = mysql_result($result, $i, "cfirstname"); Page 12
13 $clastname = mysql_result($result, $i, "clastname"); $atitle = mysql_result($result, $i, "atitle"); $bbegin = mysql_result($result, $i, "bbegin"); $bend = mysql_result($result, $i, "bend"); $content.= "\n"; $content.= "<borrowing bbegin = \"$bbegin\" bend = \"$bend\">\n"; $content.= "<customer>$cfirstname</customer>\n"; $content.= "<customer>$clastname</customer>\n"; $content.= "<article>$atitle</article>\n"; $content.= "\n"; $i++; $content.= "</borrowings>\n"; $file = fopen("tmp.xml", "w"); fwrite ($file, $content); fclose($file); // close connection to the database require("disconnect.php"); $xml = new DomDocument; $xml->load('tmp.xml'); $xsl = new DomDocument; $xsl->load('kidsstyle.xsl'); /* Create an XSLT processor */ $proc = new XsltProcessor; $proc->importstylesheet($xsl); /* Perform the transformation */ $html = $proc->transformtoxml($xml); /* Detect errors */ if (!$html) die('xslt processing error: '.libxml_get_last_error()); /* Output the resulting HTML */ echo $html;?> #created XML file with exported data <?xml version="1.0" encoding="utf-8"?> <!-- all borrowings --> Page 13
14 <borrowings> <borrowing bbegin = " " bend = " "> <customer>ingrid</customer> <customer>reip</customer> <article>die Nadel</article> <borrowing bbegin = " " bend = " "> <customer>ingrid</customer> <customer>reip</customer> <article>mathematik erleben</article> <borrowing bbegin = " " bend = " "> <customer>ingrid</customer> <customer>reip</customer> <article>wie immer Chefsache</article> <borrowing bbegin = " " bend = " "> <customer>michael</customer> <customer>reip</customer> <article>die Nadel</article> <borrowing bbegin = " " bend = " "> <customer>michael</customer> <customer>reip</customer> <article>ich hab die Unschuld kotzen sehen</article> <borrowing bbegin = " " bend = " "> <customer>michael</customer> <customer>reip</customer> <article>der Schatten des Windes</article> <borrowing bbegin = " " bend = " "> <customer>markus</customer> <customer>muster</customer> <article>die Nadel</article> <borrowing bbegin = " " bend = " "> <customer>markus</customer> Page 14
15 <customer>muster</customer> <article>wie immer Chefsache</article> <borrowing bbegin = " " bend = " "> <customer>robert</customer> <customer>flocker</customer> <article>die Nadel</article> <borrowing bbegin = " " bend = " "> <customer>robert</customer> <customer>flocker</customer> <article>wie immer Chefsache</article> </borrowings> #stylesheet printstyle similar kidsstyle <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:fo=" <xsl:template match="/"> <html> <body> <table> <tr> <td><strong>first Name</strong></td> <td><strong>last Name</strong></td> <td><strong>article</strong></td> <td><strong>borrowed on</strong></td> </tr> <xsl:apply-templates/> </table> </body> </html> </xsl:template> <xsl:template match="borrowing"> <xsl:apply-templates/> </xsl:template> <xsl:template match="borrowing"> <tr> <xsl:apply-templates/> <td><xsl:value-of select="@bbegin"/></td> Page 15
16 <td><xsl:value-of </tr> </xsl:template> <xsl:template match="customer"> <td> <xsl:value-of select="."/> </td> </xsl:template> <xsl:template match="article"> <td><xsl:value-of select="."/></td> </xsl:template> </xsl:stylesheet> Page 16
Sample Relational Database
Sample Relational Database Student: Alexander Rudolf Gruber MNr: 9812938 Table of Contents 1 Database Schema:... 2 2 Practical implementation of the database with mysql... 3 3 Inserting Test Data with
More information<?xml version = 1.0 encoding= windows-874?> <?xml-stylesheet type= text/css href= #xmldocs?> <style id= xmldocs > element-name{ } </style>
XML Displaying Displaying XML: CSS A modern web browser and a cascading style sheet (CSS) may be used to view XML as if it were HTML A style must be defined for every XML tag, or the browser displays it
More informationXSLT (part I) Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 22
1 / 22 XSLT (part I) Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 22 1 Introduction 2 Templates 3 Attributes 4 Copy of elements 5 Exercises 4 / 22 What is XSLT? XSLT is a (Turing
More informationXSL Languages. Adding styles to HTML elements are simple. Telling a browser to display an element in a special font or color, is easy with CSS.
XSL Languages It started with XSL and ended up with XSLT, XPath, and XSL-FO. It Started with XSL XSL stands for EXtensible Stylesheet Language. The World Wide Web Consortium (W3C) started to develop XSL
More informationXML PRESENTATION OF DOCUMENTS
Network Europe - Russia - Asia of Masters in Informatics as a Second Competence 159025-TEMPUS-1-2009-1-FR-TEMPUS-JPCR Sergio Luján Mora Department of Software and Computing Systems University of Alicante
More informationXML and XSLT. XML and XSLT 10 February
XML and XSLT XML (Extensible Markup Language) has the following features. Not used to generate layout but to describe data. Uses tags to describe different items just as HTML, No predefined tags, just
More informationBuilding Dynamic Forms with XML, XSLT
International Journal of Computing and Optimization Vol. 2, 2015, no. 1, 23-34 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.12988/ijco.2015.517 Building Dynamic Forms with XML, XSLT Dhori Terpo University
More informationExam : Title : XML 1.1 and Related Technologies. Version : DEMO
Exam : 000-142 Title : XML 1.1 and Related Technologies Version : DEMO 1. XML data is stored and retrieved within a relational database for a data-centric application by means of mapping XML schema elements
More informationXSLT. Lecture 38. Robb T. Koether. Mon, Apr 21, Hampden-Sydney College. Robb T. Koether (Hampden-Sydney College) XSLT Mon, Apr 21, / 26
XSLT Lecture 38 Robb T. Koether Hampden-Sydney College Mon, Apr 21, 2014 Robb T. Koether (Hampden-Sydney College) XSLT Mon, Apr 21, 2014 1 / 26 1 XSLT 2 Running XSLT 3 XSLT Files 4 Output Modes 5 XSLT
More informationCOP 4814 Florida International University Kip Irvine XSLT. Updated: 2/9/2016 Based on Goldberg, Chapter 2. Irvine COP 4814
COP 4814 Florida International University Kip Irvine XSLT Updated: 2/9/2016 Based on Goldberg, Chapter 2 XSL Overview XSL Extensible Stylesheet Language A family of languages used to transform and render
More informationEXAM XML 1.1 and Related Technologies TYPE: DEMO
IBM EXAM - 000-142 XML 1.1 and Related Technologies TYPE: DEMO http://www.examskey.com/000-142.html 1 Question: 1 XML data is stored and retrieved within a relational database for a data-centric application
More informationSection 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 informationXML. Objectives. Duration. Audience. Pre-Requisites
XML XML - extensible Markup Language is a family of standardized data formats. XML is used for data transmission and storage. Common applications of XML include business to business transactions, web services
More informationStyle Sheet A. Bellaachia Page: 22
Style Sheet How to render the content of an XML document on a page? Two mechanisms: CSS: Cascading Style Sheets XSL (the extensible Style sheet Language) CSS Definitions: CSS: Cascading Style Sheets Simple
More informationXML Wrap-up. CS 431 March 1, 2006 Carl Lagoze Cornell University
XML Wrap-up CS 431 March 1, 2006 Carl Lagoze Cornell University XSLT Processing Model Input XSL doc parse Input XML doc parse Parsed tree serialize Input XML doc Parsed tree Xformed tree Output doc (xml,
More informationPHP Development - Introduction
PHP Development - Introduction Php Hypertext Processor PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many
More information8/1/2016. XSL stands for EXtensible Stylesheet Language. CSS = Style Sheets for HTML XSL = Style Sheets for XML. XSL consists of four parts:
XSL stands for EXtensible Stylesheet Language. CSS = Style Sheets for HTML XSL = Style Sheets for XML http://www.w3schools.com/xsl/ kasunkosala@yahoo.com 1 2 XSL consists of four parts: XSLT - a language
More informationExcel 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 informationThe main Topics in this lecture are:
Lecture 15: Working with Extensible Markup Language (XML) The main Topics in this lecture are: - Brief introduction to XML - Some advantages of XML - XML Structure: elements, attributes, entities - What
More information4. 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 informationIntroduction to XSLT. Version 1.0 July nikos dimitrakas
Introduction to XSLT Version 1.0 July 2011 nikos dimitrakas Table of contents 1 INTRODUCTION... 3 1.1 XSLT... 3 1.2 PREREQUISITES... 3 1.3 STRUCTURE... 3 2 SAMPLE DATA... 4 3 XSLT... 6 4 EXAMPLES... 7
More informationXSLT 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 informationDisplay the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China
PharmaSUG China 2018 Paper CD-72 Display the XML Files for Disclosure to Public by Using User-defined XSL Zhiping Yan, BeiGene, Beijing, China Huadan Li, BeiGene, Beijing, China ABSTRACT US Food and Drug
More informationstore process communicate
store process communicate 2011-10-04 store as XML communicate using HTML and CSS process with XSL
More informationExcel 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 informationXSL Concepts: Conditions and Loops. Robert Kiffe, Senior Web Developer OmniUpdate, Inc.
XSL Concepts: Conditions and Loops Robert Kiffe, Senior Web Developer OmniUpdate, Inc. Quick XSL Recap Conditional Statements If Choose XPath Conditional Loops For-Each For-Each-Group Apply-Templates Activities!
More informationWhat is MySQL? [Document provides the fundamental operations of PHP-MySQL connectivity]
What is MySQL? [Document provides the fundamental operations of PHP-MySQL connectivity] MySQL is a database. A database defines a structure for storing information. In a database, there are tables. Just
More informationXSLT. Announcements (October 24) XSLT. CPS 116 Introduction to Database Systems. Homework #3 due next Tuesday Project milestone #2 due November 9
XSLT CPS 116 Introduction to Database Systems Announcements (October 24) 2 Homework #3 due next Tuesday Project milestone #2 due November 9 XSLT 3 XML-to-XML rule-based transformation language Used most
More informationXPath and XSLT. Overview. Context. Context The Basics of XPath. XPath and XSLT. Nodes Axes Expressions. Stylesheet templates Transformations
XPath and XSLT Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@imap.pitt.edu http://www.sis.pitt.edu/~spring Context The Basics of XPath Nodes
More informationMore XML Schemas, XSLT, Intro to PHP. CS174 Chris Pollett Oct 15, 2007.
More XML Schemas, XSLT, Intro to PHP CS174 Chris Pollett Oct 15, 2007. Outline XML Schemas XSLT PHP Overview of data types There are two categories of data types in XML Schemas: simple types -- which are
More informationProcessing XML using PHP
Processing XML using PHP Barry Cornelius Computing Services, University of Oxford Date: 8th November 2002; first created 4th November 2002 http://users.ox.ac.uk/~barry/papers/ mailto:barry.cornelius@oucs.ox.ac.uk
More informationWeb Technologies for Bioinformatics. Ken Baclawski
Web Technologies for Bioinformatics Ken Baclawski Data Formats Flat files Spreadsheets Relational databases Web sites XML Documents Flexible very popular text format Self-describing records XML Documents
More informationProof Of Concept: XSLTProcessor extension
Proof Of Concept: XSLTProcessor extension Marcin Kurzyna February 24, 2008 Synopsis Proof Of Concept idea is to check whether it's possible to provide custom (identified by prefix) processing tags to XSL
More informationINLS 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 informationUnit 27 Web Server Scripting Extended Diploma in ICT
Unit 27 Web Server Scripting Extended Diploma in ICT Dynamic Web pages Having created a few web pages with dynamic content (Browser information) we now need to create dynamic pages with information from
More informationAuthor: Irena Holubová Lecturer: Martin Svoboda
NPRG036 XML Technologies Lecture 6 XSLT 9. 4. 2018 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/172-nprg036/ Lecture Outline XSLT Principles Templates Instructions
More informationxmlns:gu="http://www.gu.au/empdtd" xmlns:uky="http://www.uky.edu/empdtd">
Namespaces Namespaces An XML document may use more than one DTD or schema Since each structuring document was developed independently, name clashes may appear The solution is to use a different prefix
More informationBirkbeck (University of London)
Birkbeck (University of London) MSc Examination Department of Computer Science and Information Systems Internet and Web Technologies (COIY063H7) 15 Credits Date of Examination: 13 June 2017 Duration of
More informationHTML. HTML: logical structure
Web 应用基础 HTML HTML: logical structure HTML html head body frameset title meta base p div hn table ol/ul frame div span p tr li
More informationGestã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 informationXML. XML Namespaces, XML Schema, XSLT
XML XML Namespaces, XML Schema, XSLT Contents XML Namespaces... 2 Namespace Prefixes and Declaration... 3 Multiple Namespace Declarations... 4 Declaring Namespaces in the Root Element... 5 Default Namespaces...
More informationSystems Programming & Scripting
Systems Programming & Scripting Lecture 19: Database Support Sys Prog & Scripting - HW Univ 1 Typical Structure of a Web Application Client Internet Web Server Application Server Database Server Third
More informationXSL Elements. xsl:copy-of
XSL Elements The following elements are discussed on this page: xsl:copy-of xsl:value-of xsl:variable xsl:param xsl:if xsl:when xsl:otherwise xsl:comment xsl:import xsl:output xsl:template xsl:call-template
More informationExtensible Markup Stylesheet Transformation (XSLT)
Extensible Markup Stylesheet Transformation (XSLT) Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept. of Computer Engineering Khon Kaen University 1 Overview Terms: XSL, XSLT, XSL-FO Value
More informationLars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web
Course on XML and Semantic Web Technologies, summer term 2012 0/44 XML and Semantic Web Technologies XML and Semantic Web Technologies I. XML / 5. XML Stylesheet Language Transformations (XSLT) Lars Schmidt-Thieme
More informationBPM 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 informationThe <schema> Element. <?xml version="1.0"?> <xs:schema>... </xs:schema>
DTD: Example
More informationTechnology for the Rest of Us: XML. May 26, 2004 Columbus, Ohio
Technology for the Rest of Us: XML May 26, 2004 Columbus, Ohio Ron Gilmour Science & Technology Coordinator Hodges Library, University of Tennesee at Knoxville gilmour@lib.utk.edu Presentation Materials
More informationXSLT program. XSLT elements. XSLT example. An XSLT program is an XML document containing
XSLT CPS 216 Advanced Database Systems Announcements (March 24) 2 Homework #3 will be assigned next Tuesday Reading assignment due next Wednesday XML processing in Lore (VLDB 1999) and Niagara (VLDB 2003)
More informationIELM 511 Information Systems Design Labs 5 and 6. DB creation and Population
IELM 511 Information Systems Design Labs 5 and 6. DB creation and Population In this lab, your objective is to learn the basics of creating and managing a DB system. One way to interact with the DBMS (MySQL)
More informationWeb development using PHP & MySQL with HTML5, CSS, JavaScript
Web development using PHP & MySQL with HTML5, CSS, JavaScript Static Webpage Development Introduction to web Browser Website Webpage Content of webpage Static vs dynamic webpage Technologies to create
More informationXML, XPath, and XSLT. Jim Fawcett Software Modeling Copyright
XML, XPath, and XSLT Jim Fawcett Software Modeling Copyright 1999-2017 Topics XML is an acronym for extensible Markup Language. Its purpose is to describe structured data. XPath is a language for navigating
More informationSemi-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 informationImplementing a Data-Driven Courseware System with SAS
Implementing a Data-Driven Courseware System with SAS Don Boudreaux, SAS Institute Inc., Austin, TX ABSTRACT This investigation presents a courseware system that is designed to facilitate the development
More informationTwo hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science. Date: Tuesday 20 th May 2008.
COMP60370 Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE M.Sc. in Advanced Computer Science Semi-Structured Data and the Web Date: Tuesday 20 th May 2008 Time: 09:45 11:45 Please answer
More information4. 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 informationXML and Databases XSLT Stylesheets and Transforms
XML and Databases XSLT Stylesheets and Transforms Kim.Nguyen@nicta.com.au Lecture 11 1 / 38 extensible Stylesheet Language Transformations Outline 1 extensible Stylesheet Language Transformations 2 Templates
More informationWeb Programming. Dr Walid M. Aly. Lecture 10 PHP. lec10. Web Programming CS433/CS614 22:32. Dr Walid M. Aly
Web Programming Lecture 10 PHP 1 Purpose of Server-Side Scripting database access Web page can serve as front-end to a database Ømake requests from browser, Øpassed on to Web server, Øcalls a program to
More informationXSLT: How Do We Use It?
XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman 1 XSLT: Agenda Introduction & Terminology XSLT Walkthrough Client-Side XSLT/XHTML Server-Side XSLT/XHTML More Creative Server-Side XSLT 2 XSLT:
More informationCopyright 2005, by Object Computing, Inc. (OCI). All rights reserved. Database to Web
Database To Web 10-1 The Problem Need to present information in a database on web pages want access from any browser may require at least HTML 4 compatibility Want to separate gathering of data from formatting
More informationOPEN 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 informationBuilding an E-mini Trading System Using PHP and Advanced MySQL Queries ( ) - Contributed by Codex-M
Building an E-mini Trading System Using PHP and Advanced MySQL Queries (2009-11-10) - Contributed by Codex-M This article shows illustrative examples of how PHP and some advanced MySQL queries can be used
More information/Users/ekrimmel/Desktop/_potential/Zex site/assignment_8_common_functions.php Page 1 of 6
/Users/ekrimmel/Desktop/_potential/Zex site/assignment_8_common_functions.php Page 1 of 6 1 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 39 40
More informationHypermedia and the Web XSLT and XPath
Hypermedia and the Web XSLT and XPath XSLT Extensible Stylesheet Language for Transformations Compare/contrast with CSS: CSS is used to change display characteristics of primarily HTML documents. But,
More informationManipulating XML Trees XPath and XSLT. CS 431 February 18, 2008 Carl Lagoze Cornell University
Manipulating XML Trees XPath and XSLT CS 431 February 18, 2008 Carl Lagoze Cornell University XPath Language for addressing parts of an XML document XSLT Xpointer XQuery Tree model based on DOM W3C Recommendation
More informationChapter 6 Part2: Manipulating MySQL Databases with PHP
IT215 Web Programming 1 Chapter 6 Part2: Manipulating MySQL Databases with PHP Jakkrit TeCho, Ph.D. Business Information Technology (BIT), Maejo University Phrae Campus Objectives In this chapter, you
More informationFeratel - Schema.org Mapping
Feratel - Schema.org Mapping Zaenal Akbar October 15, 2014 Copyright 2014 STI INNSBRUCK www.sti-innsbruck.at Outline Introduction Mapping Feratel XML to Schema.org Implementation Demo Discussion www.sti-innsbruck.at
More informationChapter. Accessing MySQL Databases Using PHP
Chapter 12 Accessing MySQL Databases Using PHP 150 Essential PHP fast Introduction In the previous chapter we considered how to create databases using MySQL. While this is useful, it does not enable us
More informationComp 519: Web Programming Autumn 2015
Comp 519: Web Programming Autumn 2015 Advanced SQL and PHP Advanced queries Querying more than one table Searching tables to find information Aliasing tables PHP functions for using query results Using
More informationXML 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 informationPHP Tutorial 6(a) Using PHP with MySQL
Objectives After completing this tutorial, the student should have learned; The basic in calling MySQL from PHP How to display data from MySQL using PHP How to insert data into MySQL using PHP Faculty
More information10 Things You Can Do in 10 Minutes With The Toolkit. Darryl Hopkins Nilufer Uslu Avectra
10 Things You Can Do in 10 Minutes With The Toolkit Darryl Hopkins Nilufer Uslu Avectra Introduction Purpose What is the Toolkit? Agenda 10 Exercises in 10 Minutes Conclusion Questions Purpose Quick and
More informationFunctions & Conditional Statements
Functions & Conditional Statements OmniUpdate User Training Conference 2015 OmniUpdate, Inc. 1320 Flynn Road, Suite 100 Camarillo, CA 93012 OmniUpdate, Inc. 1320 Flynn Road, Suite 100 Camarillo, CA 93012
More informationIntroduction to XSLT. Version 1.3 March nikos dimitrakas
Introduction to XSLT Version 1.3 March 2018 nikos dimitrakas Table of contents 1 INTRODUCTION... 3 1.1 XSLT... 3 1.2 PREREQUISITES... 3 1.3 STRUCTURE... 3 2 SAMPLE DATA... 4 3 XSLT... 6 4 EXAMPLES... 7
More informationPHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008.
PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. Outline. How cookies work. Cookies in PHP. Sessions. Databases. Cookies. Sometimes it is useful to remember a client when it comes
More informationCreate Basic Databases and Integrate with a Website Lesson 3
Create Basic Databases and Integrate with a Website Lesson 3 Combining PHP and MySQL This lesson presumes you have covered the basics of PHP as well as working with MySQL. Now you re ready to make the
More informationOracle Application Server 10g Oracle XML Developer s Kit Frequently Asked Questions September, 2005
Oracle Application Server 10g Oracle XML Developer s Kit Frequently Asked Questions September, 2005 This FAQ addresses frequently asked questions relating to the XML features of Oracle XML Developer's
More informationEMC InfoArchive Documentum Connector
EMC InfoArchive Documentum Connector Version 3.2 User Guide EMC Corporation Corporate Headquarters Hopkinton, MA 01748-9103 1-508-435-1000 www.emc.com Legal Notice Copyright 2015 EMC Corporation. All Rights
More informationOverview of MySQL Structure and Syntax [2]
PHP PHP MySQL Database Overview of MySQL Structure and Syntax [2] MySQL is a relational database system, which basically means that it can store bits of information in separate areas and link those areas
More informationUnderstanding Page Template Components. Brandon Scheirman Instructional Designer, OmniUpdate
Understanding Page Template Components Brandon Scheirman Instructional Designer, OmniUpdate Where do PCFs come from??.pcf .PCF Agenda Implementation Process Terminology used in Template Development Hands-on
More informationXML. COSC Dr. Ramon Lawrence. An attribute is a name-value pair declared inside an element. Comments. Page 3. COSC Dr.
COSC 304 Introduction to Database Systems XML Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca XML Extensible Markup Language (XML) is a markup language that allows for
More informationXML and Databases. Lecture 11 XSLT Stylesheets and Transforms. Sebastian Maneth NICTA and UNSW
XML and Databases Lecture 11 XSLT Stylesheets and Transforms Sebastian Maneth NICTA and UNSW CSE@UNSW -- Semester 1, 2010 Outline 1. extensible Stylesheet Language Transformations (XSLT) 2. Templates:
More informationIBM WebSphere software platform for e-business
IBM WebSphere software platform for e-business XML Review Cao Xiao Qiang Solution Enablement Center, IBM May 19, 2001 Agenda What is XML? Why XML? XML Technology Types of XML Documents DTD XSL/XSLT Available
More informationBeyond the Wizards: Understanding Your Code..NETand XML. Niel M. Bornstein
Beyond the Wizards: Understanding Your Code.NETand XML Niel M. Bornstein Chapter CHAPTER 7 7 Transforming XML with XSLT You now know how to read XML from a variety of data sources and formats, write XML
More informationWeb Systems Nov. 2, 2017
Web Systems Nov. 2, 2017 Topics of Discussion Using MySQL as a Calculator Command Line: Create a Database, a Table, Insert Values into Table, Query Database Using PhP API to Interact with MySQL o Check_connection.php
More informationWeek 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 informationGenerating 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 informationThe 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 informationAlpha College of Engineering and Technology. Question Bank
Alpha College of Engineering and Technology Department of Information Technology and Computer Engineering Chapter 1 WEB Technology (2160708) Question Bank 1. Give the full name of the following acronyms.
More information205CDE Developing the Modern Web. Assignment 2 Server Side Scripting. Scenario D: Bookshop
205CDE Developing the Modern Web Assignment 2 Server Side Scripting Scenario D: Bookshop Introduction This assignment was written using PHP programming language for interactions with the website and the
More informationMultimedia im Netz Online Multimedia Winter semester 2015/16
Multimedia im Netz Online Multimedia Winter semester 2015/16 Tutorial 05 Minor Subject Ludwig-Maximilians-Universität München Online Multimedia WS 2015/16 - Tutorial 05 (NF) - 1 Today s Agenda Discussion
More information<xsl:apply-templates select="atom:entry/atom:content"/> <xsl:copy-of xmlns:xsl="http://www.w3.org/1999/xsl/transform"/>
Split one of your gravestone XSL stylesheets into two parts, one with templates about persons, the other with templates about inscriptions. Have a third template which pulls them together, using .
More informationXML Extensible Markup Language
XML Extensible Markup Language Generic format for structured representation of data. DD1335 (Lecture 9) Basic Internet Programming Spring 2010 1 / 34 XML Extensible Markup Language Generic format for structured
More informationWHITE 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 informationBurrows & Langford Chapter 9 page 1 Learning Programming Using Visual Basic.NET
Burrows & Langford Chapter 9 page 1 CHAPTER 9 ACCESSING DATA USING XML The extensible Markup Language (XML) is a language used to represent data in a form that does not rely on any particular proprietary
More informationXSLT XML. Incremental Maintenance of Materialized XML Views Defined by XSLT DEWS2004 I-5-04
DEWS2004 I-5-04 XSLT XML 305 8573 1 1 1 305 8573 1 1 1 E-mail: syusaku@kde.is.tsukuba.ac.jp, {ishikawa,kitagawa}@is.tsukuba.ac.jp XML XML XSLT XML XML XSLT XML XML XUpdate XSLT XML XML XML XSLT XUpdate
More informationPaper for Consideration by the S-100 Working Group. S-100 Portrayal Support for Lua
S100WG02-10.8 Paper for Consideration by the S-100 Working Group S-100 Portrayal Support for Lua Submitted by: Executive Summary: Related Documents: Related Projects: SPAWAR Atlantic This paper describes
More informationM275 - Web Development using PHP and MySQL
Arab Open University Faculty of computer Studies M275 - Web Development using PHP and MySQL Chapter 6 Flow Control Functions in PHP Summary This is a supporting material to chapter 6. This summary will
More informationEfficiency in the XML Era
Efficiency in the XML Era Pete Ryland Copyright 2003 Pete Ryland Historically, web content, no matter how it is generated, is sent to a client as HTML. Many sites use XML and XSL to separate
More informationGenerating Web Pages Using XSLT
Generating Web Pages Using XSLT 238 XSLT for Data Interchange 239 6.1.xml: An Employee List Document
More information