The xtpxlib-xoffice component contains the following XSLT modules.

Module/PipelineDescription
excel-conversions.mod.xslExcel data specific conversions
xoffice.mod.xslLibrary with support code for the MS Office file handling.

5.1 XSLT (3.0): excel-conversions.mod.xsl

File: xslmod/excel-conversions.mod.xsl

Excel data specific conversions

PrefixNamespace URI
xtlxohttp://www.xtpxlib.nl/ns/xoffice
VariableTypeValueDescription
xtlxo:excel-start-datexs:datexs:date('1900-01-01')
FunctionDescription
xtlxo:excel-date-to-xs-date()Converts an Excel date integer into an xs:date.
xtlxo:xs-date-to-excel-date()Converts an xs:date into an Excel date integer.

5.1.1 Function: xtlxo:excel-date-to-xs-date() as xs:date

Converts an Excel date integer into an xs:date.

ParameterTypeDescription
excel-valuexs:integerThe Excel date integer to convert.

5.1.2 Function: xtlxo:xs-date-to-excel-date() as xs:integer

Converts an xs:date into an Excel date integer.

ParameterTypeDescription
datexs:dateThe xs:date to convert.

5.2 XSLT (2.0): xoffice.mod.xsl

File: xslmod/xoffice.mod.xsl

Library with support code for the MS Office file handling.

Depends on the following XSLT modules from the xtpxlib-common component:

Yet largely undocumented. Use at your own risk.

PrefixNamespace URI
xtlxohttp://www.xtpxlib.nl/ns/xoffice
VariableTypeValueDescription
xtlxo:relationship-type-commentsxs:string'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments'
xtlxo:relationship-type-core-propertiesxs:string'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties'
xtlxo:relationship-type-custom-propertiesxs:string'http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties'
xtlxo:relationship-type-extended-propertiesxs:string'http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties'
xtlxo:relationship-type-main-documentxs:string'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument'
xtlxo:relationship-type-shared-stringsxs:string'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings'
Named templateDescription
xtlxo:get-properties

5.2.1 Named template: xtlxo:get-properties

ParameterTypeRq?DefaultDescription
extracted-office-xmlelement(xtlcon:document-container) 

5.2.2 Function: xtlxo:doc-href() as xs:string

ParameterTypeDescription
href-partsxs:string+

5.2.3 Function: xtlxo:get-file-root() as element()?

ParameterTypeDescription
extracted-office-xmlelement(xtlcon:document-container)
href-partsxs:string+
is-mandatoryxs:boolean

5.2.4 Function: xtlxo:get-file-root-from-relationship-id() as element()?

ParameterTypeDescription
extracted-office-xmlelement(xtlcon:document-container)
basefile-hrefxs:string
relationship-idxs:string
is-mandatoryxs:boolean

5.2.5 Function: xtlxo:get-file-root-from-relationship-type() as element()?

ParameterTypeDescription
extracted-office-xmlelement(xtlcon:document-container)
basefile-hrefxs:string
relationship-typexs:string
is-mandatoryxs:boolean

5.2.6 Function: xtlxo:get-file-root-relationship() as element(mso-rels:Relationships)?

ParameterTypeDescription
extracted-office-xmlelement(xtlcon:document-container)
basefile-hrefxs:string
is-mandatoryxs:boolean

5.2.7 Function: xtlxo:get-href() as xs:string

ParameterTypeDescription
elmelement()

5.2.8 Function: xtlxo:get-rels-href() as xs:string

ParameterTypeDescription
basefile-hrefxs:string