The xtpxlib-container component contains the following support (pipelines and/or libraries) for XProc 1.0:
3.1 XProc (1.0) library: container.mod.xpl
File: xplmod/container.mod/container.mod.xpl
XProc library with steps for handling xtpxlib containers.
Prefix | Namespace URI |
---|
xtlcon | http://www.xtpxlib.nl/ns/container |
Step | Description |
---|
xtlcon:container-to-disk | Writes the contents of a container to disk. |
xtlcon:container-to-zip | Writes the contents of a container to a zip file. |
xtlcon:directory-to-container | Reads a directory into a container. All XML files will be read into the container, all other files will be included/referenced as external contents. |
xtlcon:zip-to-container | Reads a zip file into a container. All XML files will be read into the container, all other files will be included/referenced as external contents. |
3.1.1 Step: xtlcon:container-to-disk
Writes the contents of a container to disk.
Port | Type | Primary? | Description |
---|
source | in | yes | The container to process. |
result | out | yes | The input container, but with changes that reflect the writing process. |
Option | Rq? | Default | Description |
---|
href-fop-config | | resolve-uri('../../../xtpxlib-common/data/fop-default-config.xml', static-base-uri()) | Optional reference to an Apache FOP configuration file. Must be absolute! When not present a default file will be used. |
href-target | | '' | Base path where to write the container. When you specify this it will have precedence over a /*/@href-target-path. |
indent-xml | | false() | Whether to indent the XML we create or not. |
remove-target | | true() | Whether to attempt to remove the target directory before writing. |
3.1.2 Step: xtlcon:container-to-zip
Writes the contents of a container to a zip file.
Port | Type | Primary? | Description |
---|
source | in | yes | The container to process. |
result | out | yes | The input container, but with all the changes in links, paths, etc. |
Option | Rq? | Default | Description |
---|
href-fop-config | | '' | Optional reference to an Apache FOP configuration file. Must be absolute! When not present a default file will be used. |
href-target-zip | |
| Base path where to write the container. When you specify this it will have precedence over /*/@href-target-zip. |
indent-xml | | false() | Whether to indent the XML we create or not. |
3.1.3 Step: xtlcon:directory-to-container
Reads a directory into a container. All XML files will be read into the container, all other files will be included/referenced as external contents.
Port | Type | Primary? | Description |
---|
result | out | yes | The output container. |
Option | Rq? | Default | Description |
---|
add-document-target-paths | | true() | Adds (relative) source paths as the target paths to the individual documents. |
href-source-directory | yes |
| Reference to the directory to read. |
href-target-path | | '' | Optional target path to record on the container. |
3.1.4 Step: xtlcon:zip-to-container
Reads a zip file into a container. All XML files will be read into the container, all other files will be included/referenced as external contents.
Port | Type | Primary? | Description |
---|
result | out | yes | The output container. |
Option | Rq? | Default | Description |
---|
add-document-target-paths | | true() | Adds source paths as the target paths to the individual documents. |
href-source-zip | yes |
| Reference to the zip file to read. |
href-target-path | | '' | Optional target path to record on the container. |