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
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
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
THE TRANSFORMATION PROCESS
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
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
• 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
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
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
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.