<xsl:apply-templates select="atom:entry/atom:content"/> <xsl:copy-of xmlns:xsl="

Size: px
Start display at page:

Download "<xsl:apply-templates select="atom:entry/atom:content"/> <xsl:copy-of xmlns:xsl="http://www.w3.org/1999/xsl/transform"/>"

Transcription

1 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 <include>. <xsl:stylesheet version="1.0" <xsl:include href="cem1.xsl"/> <xsl:include href="cem2.xsl"/> </xsl:stylesheet> Using XSL <copy-of>, read the data file atom.xml and produce just the contents of the <content> elements of each <entry>. Put a horizontal rule (<hr/>) between each entry, and wrap the whole in a element. <xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:ev=" xmlns:atom=" xmlns:xhtml=" <xsl:template match="atom:feed"> <xsl:apply-templates select="atom:entry/atom:content"/> <xsl:template match="atom:content"> <hr/> <xsl:copy-of select="*"/> </xsl:stylesheet> Do the same thing, but use XSL <attribute> or <element> elements, and the local-name() function, to make a copy of the XHTML elements, but not in the XHTML namespace. You can copy the attributes using (eg) <xsl:copy-of select="@*" xmlns:xsl=" <xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:ev=" xmlns:atom=" xmlns:xhtml=" <xsl:template match="atom:feed"> 1

2 <xsl:apply-templates <xsl:template match="xhtml:*"> <xsl:element name="{local-name()}"> <xsl:copy-of </xsl:element> <xsl:template match="atom:content"> <hr/> <xsl:apply-templates </xsl:stylesheet> select="atom:entry/atom:content"/> select="xhtml:*"/> Using the students.xml data, write out an HTML table listing person's name and the name of their unit. So, for example, from <person xml:id="magi0026" unit="#magi" <title>dr</title> <forename>henry</forename> <name>black</name> <birth> </birth> <phone>278673</phone> <memberof key="staff"/> <memberof key="student2"/> <courses> <course type="pt">german</course> </courses> </person> and <units <unit xml:id="yellow"> <name>yellow College</name> </unit> <unit xml:id="old"> <name>old College</name> </unit> <unit xml:id="futures"> <name>futures Department</name> </unit> <unit xml:id="magic"> <name>museum of Magic</name> </unit> </units> 2

3 you will generate a row containing <Henry Black Museum of Magic> <xsl:template match="/minioxford" <table> <xsl:apply-templates select="people/person"> <xsl:sort select="name"/> </xsl:apply-templates> </table> <xsl:template match="person"> <tr> <xsl:value-of select="forename"/> <xsl:text/> <b> <xsl:value-of select="name"/> </b> <xsl:variable name="unit"> <xsl:value-of select="substring-after(@unit,'#')"/> </xsl:variable> <xsl:for-each select="//unit[@xml:id=$unit]"> <xsl:value-of select="name"/> </tr> Redo the last exercise, but use <key> and the key() function to implement it more elegantly... <xsl:key name="u" match="unit" use="@xml:id" xmlns:xsl=" <xsl:template match="/minioxford"> <table> <xsl:apply-templates select="people/person"> <xsl:sort select="name"/> </xsl:apply-templates> </table> <xsl:template match="person"> <tr> 3

4 <xsl:value-of select="forename"/> <xsl:text/> <b> <xsl:value-of select="name"/> </b> <xsl:for-each <xsl:value-of select="name"/> </tr> If you want to work a bit harder (!), use <key> and the key() function to implement an expansion of the categorisation in the cemetery file. Each <div> has a cryptic set of values in an attribute called decls like this: <div xml:lang="la" decls="#f_s #c_3 #m_i #t_p"... </div> What you need to do is split this into separate parts, strip off the # and use the result (eg f_s ) to look up the corresponding element <category xml:id="f_n" <catdesc>north side</catdesc> </category> and print out the text. This is not easy, as it means implementing a recursive named template. Perhaps like this: <xsl:template match="tei:div" <xsl:call-template name="findlookup"> <xsl:with-param name="d"> <xsl:value-of select="@decls"/> <xsl:template name="findlookup"> <xsl:param name="d"/> <xsl:choose> <xsl:when test="contains($d,' ')"> <xsl:call-template name="lookup"> <xsl:with-param name="code"> <xsl:value-of 4

5 select="substring-after(substring-before($d,' '),'#')"/> <xsl:call-template name="findlookup"> <xsl:with-param name="d"> <xsl:value-of select="substring-after($d,' ')"/> </xsl:when> <xsl:otherwise> <xsl:call-template name="lookup"> <xsl:with-param name="code"> <xsl:value-of select="substring-after($d,'#')"/> </xsl:otherwise> </xsl:choose> <xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:tei=" <xsl:key name="code" match="tei:category" <xsl:template match="/tei:teicorpus"> <head> <title>protestant Cemetery Catalogue </title> </head> <ul> <xsl:apply-templates select=".//tei:tei" mode="toc"> <xsl:sort <xsl:sort select=".//tei:person[1]//tei:surname"/> </xsl:apply-templates> </ul> <xsl:apply-templates select="tei:tei"> <xsl:sort </xsl:apply-templates> <h2>list of surnames</h2> <ul> <xsl:for-each select=".//tei:surname"> <xsl:sort select="."/> <li> <a <xsl:value-of select="."/> </a> </li> </ul> <xsl:template match="tei:emph"> 5

6 <i> </i> <xsl:template match="tei:hi"> <b> </b> <xsl:template match="tei:tei"> <div> <a </div> <xsl:template match="tei:tei" mode="toc"> <li> <a <xsl:value-of </a>: <xsl:value-of select=".//tei:person[1]//tei:surname"/> [<xsl:value-of </li> <xsl:template match="tei:div"> <xsl:call-template name="lookupdecls"/> <blockquote> <xsl:for-each select="tei:ab"> <xsl:number level="any"/>: <br/> </blockquote> <xsl:template match="tei:persname"> <b> <xsl:value-of select="tei:surname"/>, <xsl:value-of select="tei:forename"/> </b> <xsl:template match="tei:person"> <p> <xsl:apply-templates select="tei:persname"/> </p> <ul> <li>died <xsl:call-template name="showdate"> <xsl:with-param name="date"> <xsl:value-of </li> <li>born <xsl:call-template name="showdate"> <xsl:with-param name="date"> <xsl:value-of </li> 6

7 </ul> <xsl:template name="showdate"> <xsl:param name="date"/> <xsl:value-of select="substring-before($date,'-')"/> <xsl:template match="tei:particdesc"> <xsl:variable name="c"> <xsl:value-of select="count(tei:person)"/> </xsl:variable> <xsl:choose> <xsl:when test="$c=1"> </xsl:when> <xsl:when test="$c=2"> <xsl:apply-templates select="tei:person[1]"/> <p>there is one other person commemorated.</p> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="tei:person[1]"/> <p>there are <xsl:value-of select="$c - 1"/> other people commemorated.</p> </xsl:otherwise> </xsl:choose> <xsl:template match="tei:filedesc"/> <xsl:template name="lookupdecls"> <xsl:call-template name="findlookup"> <xsl:with-param name="d"> <xsl:value-of select="@decls"/> <xsl:template name="findlookup"> <xsl:param name="d"/> <xsl:choose> <xsl:when test="contains($d,' ')"> <xsl:call-template name="lookup"> <xsl:with-param name="code"> <xsl:value-of select="substring-after(substring-before($d,' '),'#')"/> <xsl:call-template name="findlookup"> <xsl:with-param name="d"> <xsl:value-of select="substring-after($d,' ')"/> </xsl:when> <xsl:otherwise> <xsl:call-template name="lookup"> <xsl:with-param name="code"> <xsl:value-of select="substring-after($d,'#')"/> 7

8 </xsl:otherwise> </xsl:choose> <xsl:template name="lookup"> <xsl:param name="code"/> <xsl:for-each select="key('code',$code)"> <xsl:value-of <xsl:value-of select="tei:catdesc"/> <br/> </xsl:stylesheet> 8

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

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

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

XSLT is... XML XSLT XSL-FO XPath

XSLT is... XML XSLT XSL-FO XPath XSLT XSLT is... XML XSLT XSL-FO XPath Назначение XSLT XML XML Назначение XSLT XML HTML Сервер Браузер Назначение XSLT XML HTML Сервер Браузер Declaration

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

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

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

Extensions to XSLT 1.0, and XSLT 2.0

Extensions to XSLT 1.0, and XSLT 2.0 ... Extensions A typical problem: XSLT 1.0 does not have any way of finding the current date and time. However, some XSLT 1.0 processors allow you to use extensions to XSLT 1.0. The EXSLT initiative http://www.exslt.org/

More 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

XSL Transformation (XSLT) XSLT Processors. Example XSLT Stylesheet. Calling XSLT Processor. XSLT Structure

XSL Transformation (XSLT) XSLT Processors. Example XSLT Stylesheet. Calling XSLT Processor. XSLT Structure Transformation (T) SOURCE The very best of Cat Stevens UK 8.90 1990 Empire Burlesque Bob

More 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

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

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

XSL extensible Style Language" DOCUMENTS MULTIMEDIA! Transforming documents using! XSLT" XSLT processor" XSLT stylesheet"

XSL extensible Style Language DOCUMENTS MULTIMEDIA! Transforming documents using! XSLT XSLT processor XSLT stylesheet DOCUMENTS MULTIMEDIA! Transforming documents using! XSLT" XSL extensible Style Language"!" A family of languages for defining document transformation and presentation" XSL XSLT XSL-FO Christine Vanoirbeek"

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

Advanced XSLT. Web Data Management and Distribution. Serge Abiteboul Ioana Manolescu Philippe Rigaux Marie-Christine Rousset Pierre Senellart

Advanced XSLT. Web Data Management and Distribution. Serge Abiteboul Ioana Manolescu Philippe Rigaux Marie-Christine Rousset Pierre Senellart Advanced XSLT Web Data Management and Distribution Serge Abiteboul Ioana Manolescu Philippe Rigaux Marie-Christine Rousset Pierre Senellart Web Data Management and Distribution http://webdam.inria.fr/textbook

More information

Advanced XSLT. Web Data Management and Distribution. Serge Abiteboul Philippe Rigaux Marie-Christine Rousset Pierre Senellart

Advanced XSLT. Web Data Management and Distribution. Serge Abiteboul Philippe Rigaux Marie-Christine Rousset Pierre Senellart Advanced XSLT Web Data Management and Distribution Serge Abiteboul Philippe Rigaux Marie-Christine Rousset Pierre Senellart http://gemo.futurs.inria.fr/wdmd January 15, 2010 Gemo, Lamsade, LIG, Télécom

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

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

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

XSLT. Patryk Czarnik. XML and Applications 2014/2015 Lecture

XSLT. Patryk Czarnik. XML and Applications 2014/2015 Lecture XSLT Patryk Czarnik XML and Applications 2014/2015 Lecture 10 15.12.2014 XSLT where does it come from? XSL Extensible Stylesheet Language Presentation of XML documents by transformation XSLT XSL Transformations

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

XSLT program. XSLT elements. XSLT example. An XSLT program is an XML document containing

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

Introduction to XSLT

Introduction to XSLT Introduction to XSLT Justin Tilton, Chief Executive Officer instructional media + magic, inc. at the JA-SIG Conference Vancouver, BC Sunday, June 9, 2002 The Abstract Looking for a methodology to quickly

More 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

Sample Text Point Instruction

Sample Text Point Instruction TSMAD29/DIPWG7 11.11B Paper for Consideration by TSMAD/DIPWG Potential Adjustments to S-100 Part 9 Portrayal - Text Styles. Submitted by: CARIS Executive Summary: This paper discusses the introduction

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

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

info-h-509 xml technologies Lecture 5: XSLT Stijn Vansummeren February 14, 2017

info-h-509 xml technologies Lecture 5: XSLT Stijn Vansummeren February 14, 2017 info-h-509 xml technologies Lecture 5: XSLT Stijn Vansummeren February 14, 2017 lecture outline 1 How XML may be rendered in Web Browsers 2 Syntax and Semantics of XSLT 3 How XPath is used in XSLT 1 our

More information

XPath and XSLT without the pain!

XPath and XSLT without the pain! XPath and XSLT without the pain! Bertrand Delacrétaz ApacheCon EU 2007, Amsterdam bdelacretaz@apache.org www.codeconsult.ch slides revision: 2007-05-04 Goal Learning to learn XPath and XSLT because it

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

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

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

XSLT. December 16, 2008

XSLT. December 16, 2008 XSLT December 16, 2008 XML is used in a large number of applications, either data-centric (semi-structured databases), or document-centric (Web publishing). In either case, there is a need for transforming

More information

WebSphere DataPower SOA Appliances and XSLT (Part 2 of 2) - Tips and Tricks

WebSphere DataPower SOA Appliances and XSLT (Part 2 of 2) - Tips and Tricks IBM Software Group WebSphere DataPower SOA Appliances and XSLT (Part 2 of 2) - Tips and Tricks Hermann Stamm-Wilbrandt (stammw@de.ibm.com) DataPower XML Compiler Developer, L3 8 July 2010 WebSphere Support

More information

Web Data Management XSLT. Philippe Rigaux CNAM Paris & INRIA Saclay

Web Data Management XSLT. Philippe Rigaux CNAM Paris & INRIA Saclay http://webdam.inria.fr Web Data Management XSLT Serge Abiteboul INRIA Saclay & ENS Cachan Ioana Manolescu INRIA Saclay & Paris-Sud University Philippe Rigaux CNAM Paris & INRIA Saclay Marie-Christine Rousset

More information

Introduction to XSLT

Introduction to XSLT Introduction to XSLT Justin Tilton, Chief Executive Officer instructional media + magic, inc. at the JA-SIG Conference Destin, Florida December 2, 2001 The Abstract Looking for a methodology to quickly

More information

XSL and OU Campus. OmniUpdate User Training Conference OmniUpdate, Inc Flynn Road, Suite 100 Camarillo, CA 93012

XSL and OU Campus. OmniUpdate User Training Conference OmniUpdate, Inc Flynn Road, Suite 100 Camarillo, CA 93012 XSL and OU Campus 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 800.362.2605 805.484.9428

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

INTERNET & WEB APPLICATION DEVELOPMENT SWE 444. Fall Semester (081) Module 4 (III): XSL

INTERNET & WEB APPLICATION DEVELOPMENT SWE 444. Fall Semester (081) Module 4 (III): XSL INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 4 (III): XSL Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals alfy@kfupm.edu.sa

More 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

White Paper. XML-Based Export and Import of Objects Using XSLT. Fabasoft Folio 2017 R1 Update Rollup 1

White Paper. XML-Based Export and Import of Objects Using XSLT. Fabasoft Folio 2017 R1 Update Rollup 1 White Paper XML-Based Export and Import of Objects Using XSLT Fabasoft Folio 2017 R1 Update Rollup 1 Copyright Fabasoft R&D GmbH, Linz, Austria, 2018. All rights reserved. All hardware and software names

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

XSDs: exemplos soltos

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

More information

Developing High-Quality XSLT Stylesheets

Developing High-Quality XSLT Stylesheets XSLT and XQuery September 13, 2018 Developing High-Quality XSLT Stylesheets Priscilla Walmsley, Datypic, Inc. Class Outline Introduction...2 Clarity...8 Modularity... 11 Robustness...27 Other Improvements...35

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

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

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 Version 2.0 is Turing-Complete: A Purely Transformation Based Proof

XSLT Version 2.0 is Turing-Complete: A Purely Transformation Based Proof XSLT Version 2.0 is Turing-Complete: A Purely Transformation Based Proof Ruhsan Onder and Zeki Bayram Department of Computer Engineering/Internet Technologies Research Center Eastern Mediterranean University

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

You need to install this note if you want to enable consolidation in Embedded Model for BPC NW 10.1 in Support Package 08 Patch01.

You need to install this note if you want to enable consolidation in Embedded Model for BPC NW 10.1 in Support Package 08 Patch01. SAP Note 2218894 - Consolidation in embedded model bug fixing - CPMBPC Version 3 Validity: 04.12.2015 - active Language English Header Data Released On 14.12.2015 07:43:43 Release Status Released for Customer

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

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

store process communicate

store process communicate store process communicate 2011-10-04 store as XML communicate using HTML and CSS process with XSL

More information

XSLT Transformations of XML Documents

XSLT Transformations of XML Documents XSLT Transformations of XML Documents Patryk Czarnik Institute of Informatics University of Warsaw XML and Modern Techniques of Content Management 2012/13 1 Introduction 2 Templates matching Control flow

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

Computer Science E-259

Computer Science E-259 Computer Science E-259 XML with Java Lecture 4: XPath 1.0 (and 2.0) and XSLT 1.0 (and 2.0) 21 February 2007 David J. Malan malan@post.harvard.edu 1 Computer Science E-259 Last Time DOM Level 3 JAXP 1.3

More information

Chapter 1. DocBook XSL

Chapter 1. DocBook XSL Chapter 1. DocBook XSL Bob Stayton $Id: publishing.xml,v 1.4 2002/06/03 19:26:58 xmldoc Exp $ Copyright 2000 Bob Stayton Table of Contents Using XSL tools to publish DocBook documents... 1 XSLT engines...

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

Programming issues 5.1 CONTROL STATEMENTS

Programming issues 5.1 CONTROL STATEMENTS C H A P T E R 5 Programming issues 5.1 Control statements 110 5.2 Combining stylesheets with include and import 126 5.3 Named templates 132 5.4 Debugging 133 5.5 Extensions to XSLT 143 5.6 Numbers and

More information

Sub Templates in Oracle BI Publisher. An Oracle White Paper Aug 2009

Sub Templates in Oracle BI Publisher. An Oracle White Paper Aug 2009 Sub Templates in Oracle BI Publisher An Oracle White Paper Aug 2009 Sub Templates in Oracle BI Publisher Overview... 3 Introduction... 3 RTF Sub Template... 3 When to Use RTF Sub Template:... 4 1. To re-use

More information

Custom Tables with the LandXML Report Extension David Zavislan, P.E.

Custom Tables with the LandXML Report Extension David Zavislan, P.E. December 2-5, 2003 MGM Grand Hotel Las Vegas Custom Tables with the LandXML Report Extension David Zavislan, P.E. CV41-2 Learn some basic concepts of LandXML and the extensible Stylesheet Language (XSL)

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

XSLT 3.0 Testbed. Tony Graham Mentea 13 Kelly s Bay Beach Skerries, Co Dublin Ireland

XSLT 3.0 Testbed. Tony Graham Mentea 13 Kelly s Bay Beach Skerries, Co Dublin Ireland XSLT 3.0 Testbed Tony Graham Mentea 13 Kelly s Bay Beach Skerries, Co Dublin Ireland info@mentea.net http://www.mentea.net Version 1.0 15 February 2014 2014 Mentea XSLT 3.0 Testbed XSLT 3.0 Testbed xsl:attribute-set

More information

IBM Research Report. Using XSLT to Detect Cycles in a Directed Graph

IBM Research Report. Using XSLT to Detect Cycles in a Directed Graph RC23144 (W0403-066) March 9, 2004 Computer Science IBM Research Report Using XSLT to Detect Cycles in a Directed Graph David Marston IBM Research Division Thomas J. Watson Research Center One Rogers Street

More information

XPath Quick Reference

XPath Quick Reference XPath Quick Reference Node Types Nodes can be of the following types: NodeType root element attribute text cornrnent processing narnespace Name Element name Attribute name Processing instruction target

More information

Presentation. Separating Content and Presentation Cascading Style Sheets (CSS) XML and XSLT

Presentation. Separating Content and Presentation Cascading Style Sheets (CSS) XML and XSLT Presentation Separating Content and Presentation Cascading Style Sheets (CSS) XML and XSLT WordPress Projects Theme Generators WYSIWYG editor Look at tools to support generation of themes Design a new

More information

RXSLT Examples. Sam Wilmott August 3, 2006

RXSLT Examples. Sam Wilmott   August 3, 2006 RXSLT Examples Sam Wilmott sam@wilmott.ca www.wilmott.ca August 3, 2006 The following examples are all the examples in the XSLT 1.0 specification, each followed by the corresponding RXSLT program or program

More information

Roxen CMS 5.4. XSLT Tutorial

Roxen CMS 5.4. XSLT Tutorial Roxen CMS 5.4 XSLT Tutorial 2014-03-11 www.roxen.com Roxen Internet Software AB 2011 Roxen Internet Software AB. All rights reserved. Under the copyright laws, this document may not be copied, in whole

More information

XML. <subtitle>xslt (cont)</subtitle> <author>prof. Dr. Christian Pape</author>

XML. <subtitle>xslt (cont)</subtitle> <author>prof. Dr. Christian Pape</author> XML xslt (cont) prof. Dr. Christian Pape Content Expressions and Functions Copying nodes Using variables and parameters Conditional Processing XSLT 5-2 Expressions

More information

Deliverable 5.2 Annex B Implementing the MESMA Metadata Profile on GeoNetwork 2.6.0

Deliverable 5.2 Annex B Implementing the MESMA Metadata Profile on GeoNetwork 2.6.0 Deliverable 5.2 Annex B Implementing the MESMA Metadata Profile on GeoNetwork 2.6.0 WP Leader: Gerry Sutton Coastal & Marine Resource Centre, University College Cork (Partner 8, UCC Cork, Ireland) Author:

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

A Trend Micro White Paper May 2017

A Trend Micro White Paper May 2017 >> ... 4... 4... 4... 6... 6... 7... 7... 16... 16... 22... 26... 32... 39... 44... 46 WRITTEN BY: Brian Gorenc, Abdul-Aziz Hariri, and Jasiel Spelman of the Trend Micro Zero Day Initiative Page 2 of 46

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

Print & Page Layout Community W3C

Print & Page Layout Community W3C @ W3C Tony Graham Chair http://www.w3.org/community/ppl/ public-ppl@w3.org @pplcg irc://irc.w3.org:6665/#ppl Version 1.0 14 February 2014 2014 Mentea @ W3C 5 Survey 8 Decision making in XSL-FO processing

More information

Dynamic Indexing with XSL

Dynamic Indexing with XSL In content is generally displayed in a static format. This means that the content entered never changes unless it is updated manually. When a page is transformed, the data entered on the page is visible.

More information

Changes to the Results Page XSLT Stylesheet

Changes to the Results Page XSLT Stylesheet Changes to the Results Page XSLT Stylesheet Changes coded by Sam Cook, Public Services Librarian, Allen Library, University of Hartford For questions about implementation and modification of code, feel

More information

Übung 5 Klaus Schild,

Übung 5 Klaus Schild, Übung 5 1 Übung 5 Fragen zur Vorlesung XSLT? XSLT in Depth XSLT Programming Musterfragen Musterlösung XSLT for transformation from content to presentation 2 XSLT in Depth 3 Valid XSLT

More information

XML Where Angels Fear To Tread: SB/MVC on the Server

XML Where Angels Fear To Tread: SB/MVC on the Server XML Where Angels Fear To Tread: SB/MVC on the Server Introduction Michael Corning, Microsoft Corporation This session is a follow-on to "XML for the Criminally Insane: An Introduction to the Schema- Based/Model-View-Controller

More information

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

Activity Report 10, XML Project

Activity Report 10, XML Project Activity Report 10, XML Project 2006-02-24 XML Project by Yushi KOMACHI In the last Plenary, XML Project reported: Considering the comment of project editors, the XML project is developing a simplified

More information

How to Create XSLT Functions that Manipulate Functions

How to Create XSLT Functions that Manipulate Functions How to Create XSLT Functions that Manipulate Functions (a.k.a. Higher-Order Functions) Roger L. Costello September 2010 Introduction A powerful programming technique is to create functions that can accept

More information

Semantic Web. XSLT: XML Transformation. Morteza Amini. Sharif University of Technology Fall 95-96

Semantic Web. XSLT: XML Transformation. Morteza Amini. Sharif University of Technology Fall 95-96 ه عا ی Semantic Web XSLT: XML Transformation Morteza Amini Sharif University of Technology Fall 95-96 Outline Fundamentals of XSLT XPath extensible Stylesheet Language Cocoon 2 XSLT XSLT stands for extensible

More information

Improving Existing XSLT Stylesheets. Improving Existing XSLT Stylesheets Priscilla Walmsley

Improving Existing XSLT Stylesheets. Improving Existing XSLT Stylesheets Priscilla Walmsley Improving Existing XSLT Stylesheets 19 September 2013 Improving Existing XSLT Stylesheets Priscilla Walmsley Datypic, Inc. Attribution- Noncommercial-Share Alike 3.0 Unported License www.xmlsummerschool.com

More information

DocBook Transclusion. Inline reference. Table of Contents. 09 December 2010

DocBook Transclusion. Inline reference. Table of Contents. 09 December 2010 09 December 2010 This version: http://docbook.org/docs/transclusion/2010-12-09/ Latest version: http://docbook.org/docs/transclusion/ Author: Jirka Kosek, Table of Contents Inline reference...

More information

Introduction to XSLT

Introduction to XSLT Summer School 2011 1/59 Introduction to XSLT TEI@Oxford July 2011 Summer School 2011 2/59 Publishing XML files using XSLT Our work will be divided into four parts Basic XSLT Target: make HTML from TEI

More information

DocBook: A Case Study and Anecdotes. Norman Walsh Sun Microsystems, Inc.

DocBook: A Case Study and Anecdotes. Norman Walsh Sun Microsystems, Inc. DocBook: A Case Study and Anecdotes Norman Walsh Sun Microsystems, Inc. Background What is DocBook? A DocBook Document DocBook History DocBook s Purpose 2 / 30 What is DocBook? DocBook is an XML vocabulary

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

Open Geospatial Consortium

Open Geospatial Consortium Open Geospatial Consortium Publication Date: 2014-03-10 Approval Date: 2014-03-30 Posted Date: 2014-04-15 Reference number of this document: OGC 14-009r1 External Reference URL for this document: http://www.opengeospatial.net/doc/per/owc-json

More information

Presentation of XML Documents

Presentation of XML Documents Presentation of XML Documents Patryk Czarnik Institute of Informatics University of Warsaw XML and Modern Techniques of Content Management 2012/13 Stylesheets Separating content and formatting Separation

More information

Manipulating 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 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 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 and Databases. Outline XML. XML, typical usage scenario XML. 1. extensible Stylesheet Language X M L. Sebastian Maneth NICTA and UNSW

XML and Databases. Outline XML. XML, typical usage scenario XML. 1. extensible Stylesheet Language X M L. Sebastian Maneth NICTA and UNSW Outline XML and Databases 1. extensible Stylesheet Language Transformations (XSLT) 2. Templates (match pattern action) Lecture 11 XSLT Stylesheets and Transforms Sebastian Maneth NICTA and UNSW 3. Default

More information

Compilers and Language Processing Tools

Compilers and Language Processing Tools Compilers and Language Processing Tools Summer Term 2011 Prof. Dr. Arnd Poetzsch-Heffter Software Technology Group TU Kaiserslautern c Prof. Dr. Arnd Poetzsch-Heffter 1 Content of Lecture 1. Introduction

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

A Guide for Designing Your Own Dyamic SiteMason Templates. Creating. SiteMason Templates

A Guide for Designing Your Own Dyamic SiteMason Templates. Creating. SiteMason Templates A Guide for Designing Your Own Dyamic SiteMason Templates Creating SiteMason Templates 2 Creating SiteMason Templates (c) 2003 Monster Labs, Inc. Current Version: February 6, 2003 Manual Version 1.0 3

More information

MASTER OF SCIENCE THESIS

MASTER OF SCIENCE THESIS MASTER OF SCIENCE THESIS XML to RDBMS By Magnus Karlsson (mka@corus.se) Stockholm, September 2000 Supervisor: Torbjörn Ryeng and Peter Monthan Corus Technologies AB Birger Jarlsgatan 20, 11434 Stockholm

More information

Comp 336/436 - Markup Languages. Fall Semester Week 9. Dr Nick Hayward

Comp 336/436 - Markup Languages. Fall Semester Week 9. Dr Nick Hayward Comp 336/436 - Markup Languages Fall Semester 2018 - Week 9 Dr Nick Hayward DEV Week assessment Course total = 25% project outline and introduction developed using a chosen markup language consider and

More information

Translating XSLT into XQuery

Translating XSLT into XQuery Translating into Albin Laga, Praveen Madiraju, Darrel A. Mazzari and Gowri Dara Department of Mathematics, Statistics, and Computer Science Marquette University P.O. Box 1881, Milwaukee, WI 53201 albin.laga,

More information