Printing v.15 e-Seminar Motke Keshet www.exlibrisgroup.com.

Slides:



Advertisements
Similar presentations
1 XSLT – eXtensible Stylesheet Language Transformations Modified Slides from Dr. Sagiv.
Advertisements

1 Microsoft Access 2002 Tutorial 9 – Automating Tasks With Macros.
INSERT BOOK COVER 1Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
Microsoft Office 2007: Introductory Computer Applications 11.
Word Lesson 8 Increasing Efficiency Using Word
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Automating Tasks With Macros
Rendering XML documents with XSL The most powerful approaches to rendering XML documents involve using XSL (eXtensible Stylesheet Language) XSL enables.
Python and Web Programming
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
Technical Track Session XML Techie Tools Tim Bornholt.
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
Javascript & HTML5 Intro. Why Javascript? Next big thing in online games Flash is slowly on its way out Can be coded via any text editor, flash costs.
Advanced File Processing
Creating a Basic Web Page
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
South Dakota Library Network ALEPH XSL Creator © South Dakota Library Network, 2008 Modified for SDLN Version 16 Last Update: June 2008 South Dakota Library.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
CIS 451: XSL Dr. Ralph Westfall February, Problems With XML no formatting capabilities contra formatting tags like, etc. in HTML CSS can be used.
WORKING WITH XSLT AND XPATH
Lesson No:9 MS-Word Tools, Mail Merge and working with Tables CHBT-01 Basic Micro process & Computer Operation.
Mail merge letters are used to send the same or similar documents to many different people. Since they contain the recipient’s name, address, and other.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Website Development with Dreamweaver
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Editing for the Web TECM 4190 Dr. Lam. What makes a website “good” Write down some characteristics that you consider define a “good” website.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. 2-1 Office PowerPoint 2007 Lab 2 Modifying and Refining a Presentation.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
ECA 228 Internet/Intranet Design I XSLT Example. ECA 228 Internet/Intranet Design I 2 CSS Limitations cannot modify content cannot insert additional text.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
Transforming Documents „a how-to of transforming xml documents“ Lecture on Walter Kriha.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 13 – Advanced.
Copyrighted material John Tullis 10/17/2015 page 1 04/15/00 XML Part 3 John Tullis DePaul Instructor
Advanced File Processing. 2 Objectives Use the pipe operator to redirect the output of one command to another command Use the grep command to search for.
Chapter Five Advanced File Processing Guide To UNIX Using Linux Fourth Edition Chapter 5 Unix (34 slides)1 CTEC 110.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 8 Exchanging Data Between Access and Other Applications Exploring Microsoft Office Access.
Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
XP 1 New Perspectives on XML Binding XML Data with Internet Explorer.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Applying eXtensible Style Sheets (XSL) Ellen Pearlman Eileen Mullin Programming.
Access Chapter 8- Integrating Access with the Internet and other Programs.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
From Baan to Excel, Word, PDF, HTML, XML & Notepad in one click! B2Win 6.0.
Chapter Five Advanced File Processing. 2 Lesson A Selecting, Manipulating, and Formatting Information.
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Chapter 3 Automating Your Work. It is frustrating when you have to type the same passage of text repeatedly. For example your name and address. Word includes.
Prepared by the Academic Faculty Members of IT. Tables Creating Tables. Merging Cells. Splitting Cells. Sorting Tables. Performing Calculations.
B Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Working with PDF and eText Templates.
HTML. HTML: What is it? – HTML stands for Hyper Text Markup Language – An HTML file is a text file containing small markup tags – The markup tags tell.
XML Schema – XSLT Week 8 Web site:
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
ALEPH XSL Templates Edited by Karen Gardner-Athey SUNY OLIS.
HTML CS 4640 Programming Languages for Web Applications
Chapter 2: The Visual Studio .NET Development Environment
Displaying XML Data with XSLT
Human Computer Interaction
IBM Rational Rhapsody Advanced Systems Training v7.5
Chapter Four UNIX File Processing.
Aleph Beginning Circulation
Larry Reaves October 23, 2013 Day 19: Access Chapter 4 Larry Reaves October 23, 2013.
Welcome To Microsoft Word 2016
Presentation transcript:

Printing v.15 e-Seminar Motke Keshet

v.15 Seminar v.15 Printing Old System

v.15 Seminar v.15 Printing Why a New Report System ?

v.15 Seminar v.15 Printing Why XML / XSL ? Built in support of UTF-8 (= any language can be displayed) Fast growing standard – help and support readily available. Regular text file – regular editor (vi, notepad) needed for maintenance. XML contains all potential data from any relevant Z table. Adding data to display trivial. XSL full language and support include files – common blocks can be encapsulated in common functions

v.15 Seminar v.15 Printing XML Background XML – A standard for representing Data and its meaning Like HTML – every data element is surrounded by tags Unlike HTML – the tags are not standard, they are defined by the author of the XML document Unlike HTML – the tags have semantic meaning, no visual meaning, I.e. they say nothing about how the data should be presented.

v.15 Seminar v.15 Printing XML Example <?xml-stylesheet href="pres.xsl" type="text/xsl" encoding="utf-8" ?> John Smith 15/4/1975 George Dupont 17/6/1985

v.15 Seminar v.15 Printing XSL Background We use another standard / language – XSL – to convert the XML data to HTML presentation. XSL syntax is based on XML – tags everywhere. Here is a small XSL program for converting our XML example to HTML:

v.15 Seminar v.15 Printing XSL Example <xsl:stylesheet xmlns:xsl=" version="1.0"> First Name: Last Name: Birth Date:

v.15 Seminar v.15 Printing And the combination gives

v.15 Seminar v.15 Printing How Is It Combined You run an XSL parser called saxon, as follows: Saxon –o output.html input.xml input.xsl And get in output.html the previous slide.

v.15 Seminar v.15 Printing A closer look Let’s look at the following: We tell XSL to go through all the “employee” records, and for each of them display: Literally ‘ First Name: ’ The actual value of the current Literally ‘ That is: we combine: literal values, including HTML elements, Values to be taken from the contents of the XML file. First Name:

v.15 Seminar v.15 Printing A Broader View So, if we can add HTML elements to the rendering, we can do anything HTML we want, such as presenting data in grids, deciding on fonts and sizes etc. More than that: XSL also contains functions. So it is possible to encapsulate report sections that appear more than once (e.g. Sublibrary address, patron address, bib-info etc.) in functions and invoke them whenever they are needed.

v.15 Seminar v.15 Printing XSL in Aleph The report data in Aleph (starting 15.2) are contained in XML files. For each report an XSL file is defined (=Template). This template determines: what fields of the XML are part of the report how they should be displayed.

v.15 Seminar v.15 Printing XSL in Aleph – Cont’ In addition, there are several XSL files which are common to all reports, and they are referred to by all the specific XSL templates. They contain definitions for the rendering of common report blocks such as the standard salutations, signatures, sublibrary address, patron address etc. In principle the system librarian can maintain (=translate, add/remove fields etc.) without actually knowing XSL, and rely on the patterns found in Aleph default XSLs.

v.15 Seminar v.15 Printing Report Generation clientserver DBtables translation XML Query XML XSL Parser + HTML

v.15 Seminar v.15 Printing A Report Sublib Address Bib-info Header

v.15 Seminar v.15 Printing Its XML

v.15 Seminar v.15 Printing <xsl:stylesheet xmlns:xsl=" version="1.0"> Its XSL (Part 1)

v.15 Seminar v.15 Printing Its XSL (Cont’)

v.15 Seminar v.15 Printing Comments ‘header-gen’, ‘sublib-address’, ‘display-gen’ are XSL functions that handle the actual display All of them are implemented in funcs.xsl or one of the XSL files included in it All specific templates contain the line ‘ ’ so they all can invoke the common functions. Now to Customization …

v.15 Seminar v.15 Printing Customization There are 2 basic customization: Changing (or translating) labels Adding or removing data (=Z table columns etc.) A more advanced customization - layout change – will be explained later.

v.15 Seminar v.15 Printing Changing Labels Since the XSL file is a regular ASCII file you just edit it and make the changes you want.

v.15 Seminar v.15 Printing Removing Fields Examine the following snippet: To remove a field, e.g z68-doc-number, simply delete the lines from ‘ ’ To ‘ ’ that contain it (= The blue lines)

v.15 Seminar v.15 Printing Adding Fields To add a field, “cut and paste” the same range of lines, then change “label” and “value” accordingly. E.g:

v.15 Seminar v.15 Printing Changing Relative Position The data will be displayed in the order it appears in the XSL file. So to change the order in print, simply change the order in the XSL.

v.15 Seminar v.15 Printing Clarifying Some Terms Each XML section can be displayed in one of three layouts: Free Grid Split

v.15 Seminar v.15 Printing Free Layout

v.15 Seminar v.15 Printing Split Layout

v.15 Seminar v.15 Printing Grid Layout

v.15 Seminar v.15 Printing Common Funcs - 1

v.15 Seminar v.15 Printing Common Funcs : Comment The function ‘display-gen’ is responsible for displaying most of the data in non-grid format. There are, however several options for displaying: Display the label only if there is data attached to it (default) Display the label even without data Display the data right justified (numbers) Display barcode with special barcode font And several combinations In order to implement all options, display-gen can be invoked using arguments. Since most of the times only the default is used, it is usually called with just the 2 basic Arguments, namely ‘label’ and ‘value’.

v.15 Seminar v.15 Printing Aleph Reports Environment Server All XSL templates are stored in the server in /usm01/form_LNG. After any change you have to run: util I 6 This prepares a package to be downloaded when the client start running. To tell ALEPH to use XSL for printing, edit: aleph/a50_5/usm50/tab/form_print_method Client All XSL templates are downloaded to alephcom\files\USM50\Print Templates\LNG The XSL parser (saxon) is in alephcom\bin