Created on: Sept 1, 2018
Author: mholmes. This transformation is designed to convert a MoEML XHTML5
static site document into a PDF. It converts the document to XSL:FO, validates the FO, and
then the calling ant script uses FOP to generate a PDF.
Include the module containing all the layout and styling information.
This is the identifier for the file. We can get it directly from the html/@id attribute
in the input XHTML file.
The output method is XML (for XSL:FO)..
Root template. Sets up everything.
This processes the metadata in the page header to get the key info.
This transforms html to flow
This transforms list div to a block
This transforms list div[@id]/nav to a block
This transforms list div[@class] to a list-block
This transforms regular div[@class] to a block
This transforms regular div to a block
This transforms regular div[@id]/nav to a block
This transforms navs to blocks
This transforms navs to blocks
This transforms pres to inlines
This transforms spans to inlines
This transforms breaks to blocks
This transforms strongs to inlines
This transforms h1 to inlines
This transforms h2 to inlines
This transforms h3 to inlines
This transforms h4 to inlines
This transforms list h2 to blocks
This transforms list h3 to blocks
This transforms list h4 to blocks
This transforms a to inlines
This template transforms ul elements to list block elements
This template transforms nav/ul elements without attributes to list-block elements
This template transforms div/ul elements to list block elements
This template transforms div/ul elements without attributes to list-block elements
This transforms ul/li to list item-label elements
•
This template transforms li/ul (with id) elements to list-block elements
This template transforms li/ul (with class) elements to list-block elements
This template transforms li/span elements to list-item-body elements
This transforms q to inlines
This transforms blockquotes to inlines
Remove the top banner.
Remove list of documents
Remove see XML
Remove script elements
Remove breadcrumb
Remove send feedback
Remove footer menu
Remove info popup
Remove document mentions and corresponding headings.
Remove person contributions and corresponding headings.
Remove person mentions and corresponding headings.
Remove facsimiles.
Remove link to agas.css from head.
Remove link to agas_embedded.css from head.
Replace link to lightbox.css with link to nav.css.
This template rewrites a local link to make it an external link directing to the MoEML website.
This template rewrites a #reference that does not have a matching id in the document.
This template rewrites the links for graphics to images.
This templates adds tmelhajj to the page credits
•
Programmer:
Tracey El Hajj
This templates adds tmelhajj to the Personography
•
This is the default identity transform.