xml metadata project (xslt and xsl-fo transformations of xml metadata files)

10
APPLYING XSLT AND XSL-FO TRANSFORMATION STYLESHEETS TO XML FILES COMBINED WITH XINCLUDE MAY 2015 Developer: Marina Georgieva

Upload: marina-georgieva

Post on 17-Aug-2015

82 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

A P P LY I N G XSLT A N D XSL-FO

T R A N S F O R M AT I O N S T Y L E S H E E T S T O

XML F I L E S C O M B I N E D W I T H

XINCLUDE

MAY 2015

Developer:

Marina Georgieva

Page 2: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

ABOUT THE PROJECT

Brief description

Replicates a digital collection

Uses Metadata Object Description Schema

(MODS) by Library of Congress

MODS is metadata schema encoded in XML

Transforms the XML records into HTML

webpage using XLST stylesheet

Transforms the XML records into PDF

document using XSL-FO stylesheet

Proves that the same XML content can be

displayed in multiple visual appearances by

applying different stylesheets

Page 3: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

The replica of the small digital collection was

accomplished by:

• Creating MODS metadata records

• Encoding them in XML

• Verifying them against MODS schema

• Combining the single XML records in one file

using XInclude

• Encoding 3 different XSL files (stylesheets)

• Developing 3 different transformation

scenarios for multiple outputs of the same

content

• Running the different scenario transformations

which resulted in completely different output

appearance of the data

THE PROJECT OVERVIEW

Page 4: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

THE TRANSFORMATION PROCESS

Page 5: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

THE TRANSFORMATION STEPS

15 individual MODS records were encoded in XML

XInclude combines all the XML MODS records in one file

XSL stylesheets were encoded in XML for 3 transformations

XSLT and XSL-FO transformations were run

The result:

2 HTML pages and1 PDF file

Same content

Absolutely different designs

Page 6: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

THE OUTPUT TRANSFORMATION SCENARIO 1

• HTML5 webpage

• Data displayed in a

table format

• CSS controls the styling

of the webpage

• Inline style tags within

the XSL stylesheet

control the appearance

of the font (bold, italic,

etc.)

• Liquid layout of the

HTML page allows

adjustability to any

screen size

Page 7: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

• HTML5 webpage

• Data displayed in a list

format

• CSS controls the styling

of the webpage

• Inline style tags within

the XSL stylesheet

control the appearance

of the font (bold, italic,

etc.)

• Liquid layout of the

HTML page allows

adjustability to any

screen size

THE OUTPUT TRANSFORMATION SCENARIO 2

Page 8: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

THE OUTPUT TRANSFORMATION SCENARIO 3

• PDF file

• Data displayed in a list format

• Inline style tags within the XSL

stylesheet control the appearance

of the document (borders, font,

colors, etc.)

• No external CSS file

• Footer with the page numbers

and the title of the collection

added for more convenience

• Few fonts work in this particular

document due to the Cyrillic

script.

• The font used here is tahoma

Page 9: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

FINAL WORDS

• MODS records encoded in XML are

convenient for most digital

collections

• The XML encoded metadata can be

displayed in multiple ways

• No need to change the original

metadata – simply apply different

stylesheets

• Applying multiple XSL stylesheets to

the metadata records guarantees

diverse interfaces

• Convenient representation of the

metadata both in print (PDF) and

online (HTML) formats

stylesheet 1 stylesheet 2

Page 10: XML Metadata Project (XSLT and XSL-FO transformations of XML metadata files)

Brief video presentation of the XML METADATA PROJECT is available at this address

https://www.youtube.com/watch?v=AUmK7as4RU4&feature=youtu.be

THE END

Marina Georgieva Copyright 2015

All rights reserved.