Presented by Michael Davis & Morgan Bibbs XML & XSL

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

XSL XSLT and XPath 11-Apr-17.
Introduction to XSLT. What is XML? Design Goals of XML XML Format XML Declaration ElementsAttributes.
XSLT & XPATH. From Friday Everything in XML is machine readable Attributes describe elements, so does an element’s place in the tree (context) XML must.
XSL Unit 6 November 2. XSL –eXtensible Stylesheet Language –Basically a stylesheet for XML documents XSL has three parts: –XSLT –XPath –XSL-FO.
Understanding Page Template Components Lila Bronson Training Manager, OmniUpdate, Inc.
Creating New Page and Section Templates Robert Kiffe Senior Web Developer, OmniUpdate, Inc.
ECA 228 Internet/Intranet Design I Intro to XSL. ECA 228 Internet/Intranet Design I XSL basics W3C standards for stylesheets – CSS – XSL: Extensible Markup.
Julien Thibault  HTML is the basic building-blocks of webpages  It is not a language!! (despite its name)  Structure text/media.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
IS432 Semi-Structured Data Lecture 5: XSLT Dr. Gamal Al-Shorbagy.
CIS 451: XSL Dr. Ralph Westfall February, Problems With XML no formatting capabilities contra formatting tags like, etc. in HTML CSS can be used.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
Session II Chapter 2 – Chapter 2 – XSLhttp://
NetTech Solutions Working with Web Elements Lesson 6.
Sheet 1XML Technology in E-Commerce 2001Lecture 7 XML Technology in E-Commerce Lecture 7 XSL Formatting Objects, Java Data Binding.
Company LOGO OODB and XML Database Management Systems – Fall 2012 Matthew Moccaro.
ECA 228 Internet/Intranet Design I XSLT Example. ECA 228 Internet/Intranet Design I 2 CSS Limitations cannot modify content cannot insert additional text.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
The Information School at the University of Washington INFO 440: Information System Design Fall 2003 * Bob Boiko * MSIM Associate Chair XML Transforms.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
 2002 Prentice Hall, Inc. All rights reserved. 1 Chapter 12 – XSL: Extensible Stylesheet Language Transformations (XSLT) Outline 12.1Introduction 12.2Setup.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Building Faculty Directories, Profiles, and More with MultiEdit Robert Kiffe & Bradley Prasuhn Senior Web DeveloperImplementation Manager OmniUpdate, Inc.
Content Management System Copyright © 2005 Liferay, LLC All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
 XSL – Extensible Style Sheet Language  XSLT – XSL Transformations › Used to transform XML documents to other formats,like HTML or other XML documents.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
1 XSLT XSLT (extensible stylesheet language – transforms ) is another language to process XML documents. Originally intended as a presentation language:
Introduction to CSS: Selectors
In this session, you will learn to:
XSLT: The XML transformation language
Product Training Program
CSS Cascading Style Sheets
What is New with the Website?
XML: Extensible Markup Language
This is the cover slide..
XML Related Technologies
Displaying XML Data with XSLT
Chapter Eight Interoperability How to Build a Digital Library
Reference: cit /Lectures/xslt.ppt
Extensible Markup Language XML
ACG 4401 XSLT Extensible Stylesheet Language for Transformations
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
XML Data Introduction, Well-formed XML.
What’s a _resource and What Does It Do?
Customizing Editable Regions and Building Templates
Applying eXtensible Style Sheets (XSL)
Search Web Parts Mike Maadarani MCM Consulting.
XML WITH CSS.
How to Get Your Pages to Publish to PDF
CS 431 – February 28, 2005 Carl Lagoze – Cornell University
WHAT IS XSLT?.
Training & Development
Using Templates and Library Items
XSL XSLT and XPath 24-Feb-19.
More XML XML schema, XPATH, XSLT
New Perspectives on XML
7 September 1999 The Basics of XSLT Assuming a basic knowledge of XML and XML Namespaces Thomas G. Habing Grainger Engineering Library Information Center.
MAKING XSL-PCF PAGES FROM SCRATCH
EDITING EXISTING TEMPLATES
EXTENDING COMPONENTS AND TABLE TRANSFORMATIONS WITH XSL
ASSETS, SNIPPETS & COMPONENTS
Unit 6 - XML Transformations
Presentation transcript:

http://fulbright.uark.edu/departments/biology/directory/webfirst.php Presented by Michael Davis & Morgan Bibbs XML & XSL CASE STUDY: An XML based snippet for one-off manual profile pages.

Digital Design & Development! Before you get started on your own project… Who ya gonna call?? Digital Design & Development!

DEFINING TERMS, PROVIDING CONTEXT XML = eXtensible Markup Language XSL = eXtensible Stylesheet Language Components of XSL: XSLT = transforms XML XPath = navigates XML XQuery = queries XML *W3School s

A note about extensible Markup Language <sea> <hole> <log>Pine</log> <bump></bump> <amphibian></amphibian> <tail></tail> </hole> <log>Oak</log> <bump>Cause: lightning</bump> <amphibian>Tree Frog</amphibian> <tail>At first...</tail> <log>Mangrove</log> <bump>Cause: gator damage</bump> <amphibian>Pig Frog</amphibian> <tail>Not anymore!</tail> </sea> There is no defined syntax for XML You can mix HTML syntax with your own markup As long as the XSL declarations correspond with the XML syntax, you’re good to go

The stylesheet for the previous two documents. OU Templates Files required - file type, purpose, and language File Type Purpose Language Template Image This is what users will see when they select a new page or section to create. GIF TCF Defines new page/section setup form and 
what files to create in a new section. XML TMPL Outlines the PCF page structure, page 
properties, and editable regions.* XSL The stylesheet for the previous two documents. * The file extension PCF is meaningless. Only once the PCF is published does it matter. The file extension upon publish is defined in the stylesheet declaration on the second line of the TMPL document.

Why Snippets? Creating a new template is a large-scale solution for a relatively small-scale problem. XSL snippets allow for easy editing of complex layouts with minimal training required. Our templates are based on XML/XSL for a reason. XML is reliable, tested, simple, and customizable. We should be utilizing the XML/XSL framework of OmniUpdate, and outside of templates, snippets are the best way to do this.

OU snippets Files required - file type, purpose, and language directory-profile-1.inc Snippet source file. XML directory-profile-1.table-transform.xsl Snippet Stylesheet XSL The snippet itself Create a new snippet: name it, 
add to a category, link the .inc file, 
and save. –

DEMO - XSL functionality In our demo, the components of XSL – XSLT, Xquery and Xpath – work together to accomplish the following specific functions and transformations: Query xml elements, attributes, variables Query specific xml paths and to create new variables Dynamically apply classes and other attributes to content and show/hide content based on those xml queries Generate unique IDs to link tabs to tab content

DEMO - XSL elements All XSL elements used: <xsl:template></xsl:template> <xsl:variable /> <xsl:value-of /> <xsl:attribute></xsl:attribute> <xsl:apply-templates /> <xsl:if></xsl:if> <xsl:choose> <xsl:when></xsl:when> <xsl:otherwise></xsl:otherwise> </xsl:choose> “When and “otherwise” must be nested in “choose” to complete the statement.

Top half of XSL stopping after tab list, before tab content DEMO - xsl simplified and color coded Top half of XSL stopping after tab list, before tab content Bright blue = xsl Light green = abbreviated xsl Orange = html 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 <xsl:template match="table[@class='directory-profile-1']" mode=“copy”> <xsl:variable name=“tabs-filled” select=“xml string and conditional statements” /> <xsl:variable name=“total-tabs” select=“function of previous variable” /> <div class=“col-xs-12 col-sm-9”> <div class=“entry-content”> <h3><xsl:value-of select=“xml name string” /></h3> <h4><xsl:value-of select=“xml title string” /></h4> <p><xsl:value-of select=“xml bio info string” /></p> <div id=“tabstrip”> <ul id=“profileTab”> <xsl:attribute name=“class”> <xsl:choose> <xsl:when test=“above variables and conditional statements”>nav nav-pills</xsl:when> <xsl:otherwise>nav nav-tabs</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:for-each select=“xml string with conditional statements”> <li> <xsl:if test=“assign first item active class”>active</xsl:if> <a href=“xsl-generated id”><xsl:value-of select=“xsl string”></a> </li> </xsl:for-each> </ul> Two additional variables for education-filled, website-filled

THANK YOU! Resources OFFICIAL XML SCHEMA https://www.w3.org/2001/XMLSchema DEMO RESOURCES: https://github.com/admonkey/directory-profile.snippet THANK YOU!