xml.pub.create-package-doc.xpl Maven / Gradle / Ivy
Create a EPUB Package
Document
Files to be included in the publication: content
documents, media
overlay documents and other resources.
If this fileset includes a navigation document, it should be marked with a
role
attribute with value nav
, and this file should be a
content document. At most one navigation document may be specified. If no navigation
document is specified, the content document that contains a
nav[@epub:type='toc']
element is picked. It is an error if there is no such
document.
If the fileset includes a cover-image
,
it should be marked with a role
attribute with value
cover-image
.
Fileset that will make up the primary spine
items.
The order of the spine items is determined by the "source.fileset" input. Items that
are not content
documents are omitted.
If not specified, defaults to all content documents except the navigation
document.
The content documents in "source.fileset" that are not in "spine" and are not the
navigation document become auxiliary spine items.
Sequence of metadata
elements in the OPF namespace from which the metadata
element for the package document will be constructed.
Will be augmented with "duration" metadata that is extracted from the media overlay
documents and other automatically generated metadata.
If not specified, a metadata element with the minimal required metadata will be
included.
Fileset from which to contruct the bindings
element of the package document.
Ignored if compatibility-mode is not true.
Whether to be backward compatible with Open Package Format
2.0.1.
Whether to automatically detect manifest
item properties:
mathml
:
when a document contains instances of MathML markup
remote-resources
:
when a document contains references to other publication resources that are located
outside of the EPUB container
scripted
:
when a document is a scripted
content document (contains scripted content and/or elements from HTML5 forms)
svg
:
when a document is a SVG
content document or contains instances of SVG markup
switch
:
when a document contains epub:switch
elements
The reserved
prefix mappings of the resulting package document. By default, prefixes are
declared systematically.
The base URI of the result document.
The package document.
The result fileset with the package document as single file.
px:set-base-uri
px:add-xml-base
px:normalize-uri
px:fileset-load
px:fileset-join
px:fileset-intersect
px:fileset-diff
px:fileset-create
px:fileset-add-entry
px:fileset-filter-in-memory
px:mediatype-detect
px:assert
px:message
px:epub-landmarks-to-guide
px:epub3-add-navigation-doc
px:epub3-add-mediaoverlays
px:epub3-add-metadata
pxi:epub3-detect-properties
Filter out SMIL files, they are handled separately in px:epub3-add-mediaoverlays
Get content documents
Get navigation document
Get primary spine items
Create manifest
Give files in the "bindings" fileset media-type "application/xhtml+xml"
Add id attributes
Create manifest from fileset
Get spine
Add secondary spine items and sort
Add idref attributes
Create spine from fileset
Add toc attribute
If the navigation document contains landmarks and compatibility-mode is
enabled, generate the guide element based on the landmarks.
Create package document
Minimal required metadata
Unknown
generated-uuid
Generate metadata
textual
unknown
Add metadata
Set navigation document
Add properties of content documents
Add mediaoverlays