The xtpxlib-xoffice component contains the following XProc 1.0 library modules:
Module/Pipeline | Description |
---|---|
excel.mod.xpl | Conversions for Excel (.xlsx ) files. |
word.mod.xpl | Conversions for Word (.docx ) documents. |
excel.mod.xpl
File: xplmod/excel.mod/excel.mod.xpl
Conversions for Excel (.xlsx
) files.
Prefix | Namespace URI |
---|---|
xtlxo | http://www.xtpxlib.nl/ns/xoffice |
Step | Description |
---|---|
xtlxo:extract-xlsx | Extracts the contents of an Excel (.xlsx ) file in a more useable XML format. |
xtlxo:modify-xlsx | Takes an input/template Excel (.xlsx ) and a modification specification and from this creates a new modified Excel file that merges these two sources. |
xtlxo:extract-xlsx
Extracts the contents of an Excel (.xlsx
) file in a more useable XML format.
Port | Type | Primary? | Description |
---|---|---|---|
result | out | yes | The resulting XML representation of the Excel file. |
Option | Rq? | Default | Description |
---|---|---|---|
xlsx-href | yes |
| Document reference of the .xlsx file to process (must have file:// in front). |
xtlxo:modify-xlsx
Takes an input/template Excel (.xlsx
) and a modification specification and from this creates a new modified Excel file that merges these two sources.
Port | Type | Primary? | Description |
---|---|---|---|
source | in | yes | The modification specification. |
result | out | yes | The output is identical to the input but with @timestamp , @xlsx-href-in and @xlsx-href-out added to the root element. |
Option | Rq? | Default | Description |
---|---|---|---|
xlsx-href-in | yes |
| URI of the input (template) .xlsx file to process |
xlsx-href-out | yes |
| URI of the output .xlsx file. |
word.mod.xpl
File: xplmod/word.mod/word.mod.xpl
Conversions for Word (.docx
) documents.
Prefix | Namespace URI |
---|---|
xtlxo | http://www.xtpxlib.nl/ns/xoffice |
Step | Description |
---|---|
xtlxo:create-docx | Turns Word XML (back) into a Word .docx file, using a template file. |
xtlxo:extract-docx | Extracts the contents of a Word file in a more useable XML format. |
xtlxo:create-docx
Turns Word XML (back) into a Word .docx
file, using a template file.
The input must be in the format the xtlxo:extract-docx
pipeline creates.
Port | Type | Primary? | Description |
---|---|---|---|
source | in | yes | The Word XML that must be converted to .docx format. |
result | out | yes | The document-container (see xtpxlib-container) as written to the final Word file. |
Option | Rq? | Default | Description |
---|---|---|---|
result-docx-href | yes |
| Document reference where to write the resulting .docx file (must have file:// in front). |
template-docx-href | yes |
| Document reference of the template .docx file to use (must have file:// in front). |
xtlxo:extract-docx
Extracts the contents of a Word file in a more useable XML format.
Port | Type | Primary? | Description |
---|---|---|---|
result | out | yes | The resulting XML representation of the Word file. |
Option | Rq? | Default | Description |
---|---|---|---|
docx-href | yes |
| Document reference of the .docx file to process (must have file:// in front). |