-
Notifications
You must be signed in to change notification settings - Fork 21
XProcExtensions
DAISY Pipeline 2 supports a number of extensions to XProc, in the form of extension attributes. They have the namespace http://www.daisy.org/ns/pipeline/xproc
. Some are applicable only to scripts and are meant to provide metadata about the script, such as data types for option. Some other, like px:message
, are applicable everywhere.
We also list some standard XProc elements and attributes that are treated specially by DAISY Pipeline.
This attribute is used to annotate an XProc pipeline with information about how different steps in that pipeline relate to each other in terms of time it takes to complete them. This information is used to provide progress indication of jobs. For each step, the fraction relative to its current subpipeline can be expressed with a decimal number between 0 and 1 (.666
), a percentage (66%
), or a fraction (2/3
).
The px:progress
attribute is supported on the following elements:
-
p:group
(except within ap:try
) p:choose
p:when
p:otherwise
p:try
p:for-each
p:viewport
- a standard step (
p:foo
) - a user defined step
The px:progress
attribute supports variable substitution via the curly brackets syntax from attribute value templates in XSLT, e.g. px:progress="{$some-var}"
. This way progress information can even be determined dynamically during step execution.
A simple example:
<p:label-elements match="..." attribute="..." label="..." px:progress="1/3"/>
<p:for-each px:progress="2/3">
<p:xslt px:progress="1/2">
...
</p:xslt>
<p:choose px:progress="1/2">
<p:when test="">
<p:add-attribute match="..." attribute-name="..." attribute-value="..." px:progress="1/4"/>
<p:delete match="..." px:progress="3/4"/>
</p:when>
<p:otherwise>
<p:identity/>
</p:otherwise>
</p:choose>
</p:for-each>
- Home
- Download
-
Help
-
User Guide
- Installation
- Desktop Application
- Web Application
- Pipeline as a Service
- Command Line
-
Scripts
- DAISY 2.02 Validator
- DAISY 2.02 to EPUB 3
- DAISY 3 to DAISY 2.02
- DAISY 3 to EPUB 3
- DTBook Validator
- DTBook to DAISY 3
- DTBook to EPUB3
- DTBook to HTML
- DTBook to ODT
- DTBook to PEF
- DTBook to RTF
- DTBook to ZedAI
- EPUB 2 to EPUB 3
- EPUB 3 Enhancer
- EPUB 3 Validator
- EPUB 3 to DAISY 2.02
- EPUB 3 to DAISY 3
- EPUB 3 to PEF
- EPUB to DAISY
- HTML to DTBook
- HTML to EPUB3
- HTML to PEF
- NIMAS Fileset Validator
- ZedAI to EPUB 3
- ZedAI to HTML
- ZedAI to PEF
- API Documentation
- Issue Tracker
- Troubleshooting
- Forum
- [[Contact|mailto:[email protected]]]
-
User Guide
- Contribute
- DAISY Home