The xtpxlib-xoffice component contains the following XProc 3.0 pipelines:
Module/Pipeline | Description |
---|---|
create-docx.xpl | Takes as input the same kind of (unspecified) XML as create by docx-to-xml.xpl and tries to turn this into a Word file. Unfinished and experimental (for instance: tables are not (yet) supported)! |
docx-to-xml.xpl | Extracts the contents of a Word (.docx ) file in a more useable XML format (unspecified). Somewhat experimental and unfinished! |
modify-xlsx.xpl | Takes an input/template Excel (.xlsx ) and a modification specification and from this creates a new modified Excel file that merges these two sources. |
xlsx-to-xml.xpl | Extracts the contents of an Excel (.xlsx ) file in a more useable XML format. |
create-docx.xpl
File: xpl3/create-docx.xpl
Type: xtlxo:create-docx
Takes as input the same kind of (unspecified) XML as create by docx-to-xml.xpl
and tries to turn this into a Word file. Unfinished and experimental (for instance: tables are not (yet) supported)!
Port | Type | Primary? | Description |
---|---|---|---|
source | in | yes | The XML to convert into .docx . |
result | out | yes | The output is identical to the input but with @timestamp , @docx-href-in and @docx-href-out added to the root element. |
Option | Type | Rq? | Default | Description |
---|---|---|---|---|
docx-href-in | xs:string | yes |
| URI of the input (template) .docx file to process |
docx-href-out | xs:string | yes |
| URI of the output .docx file. |
docx-to-xml.xpl
File: xpl3/docx-to-xml.xpl
Type: xtlxo:docx-to-xml
Extracts the contents of a Word (.docx
) file in a more useable XML format (unspecified). Somewhat experimental and unfinished!
Port | Type | Primary? | Description |
---|---|---|---|
result | out | yes | The resulting XML document. |
Option | Type | Rq? | Default | Description |
---|---|---|---|---|
xlsx-href | xs:string | yes |
| Document reference of the .docx file to process (must have file:// in front). |
modify-xlsx.xpl
File: xpl3/modify-xlsx.xpl
Type: 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 | Type | Rq? | Default | Description |
---|---|---|---|---|
xlsx-href-in | xs:string | yes |
| URI of the input (template) .xlsx file to process |
xlsx-href-out | xs:string | yes |
| URI of the output .xlsx file. |
xlsx-to-xml.xpl
File: xpl3/xlsx-to-xml.xpl
Type: xtlxo:xlsx-to-xml
Extracts the contents of an Excel (.xlsx
) file in a more useable XML format.
Port | Type | Primary? | Description |
---|---|---|---|
result | out | yes | The resulting XML document. |
Option | Type | Rq? | Default | Description |
---|---|---|---|---|
xlsx-href | xs:string | yes |
| Document reference of the .xlsx file to process (must have file:// in front). |