From 65692fe3bc7f27fca82607e3f27eed15fe927e09 Mon Sep 17 00:00:00 2001 From: Wolfgang Meier Date: Wed, 11 Oct 2023 14:35:30 +0000 Subject: [PATCH] docx import now requires ext-docx module --- odd/configuration.xml | 3 +++ templates/basic/resources/odd/configuration.xml | 4 ++++ transform/docx-tei.xql | 6 +++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/odd/configuration.xml b/odd/configuration.xml index d684cf8d0..8e27152b8 100644 --- a/odd/configuration.xml +++ b/odd/configuration.xml @@ -16,4 +16,7 @@ false() "11pt" + + + diff --git a/templates/basic/resources/odd/configuration.xml b/templates/basic/resources/odd/configuration.xml index f291eaaf3..63e6de84f 100644 --- a/templates/basic/resources/odd/configuration.xml +++ b/templates/basic/resources/odd/configuration.xml @@ -23,4 +23,8 @@ + + + + diff --git a/transform/docx-tei.xql b/transform/docx-tei.xql index 3d19e19cb..4fa58e296 100644 --- a/transform/docx-tei.xql +++ b/transform/docx-tei.xql @@ -35,6 +35,10 @@ import module namespace css="http://www.tei-c.org/tei-simple/xquery/css"; import module namespace tei="http://existsolutions.com/xquery/functions/tei"; +import module namespace ext-docx="http://www.tei-c.org/tei-simple/xquery/functions/docx"; + +import module namespace global="http://www.tei-c.org/tei-simple/config" at "../modules/config.xqm"; + (: generated template function for element spec: r :) declare %private function model:template-r6($config as map(*), $node as node()*, $params as map(*)) { {$config?apply-children($config, $node, $params?content)} @@ -79,7 +83,7 @@ declare function model:transform($options as map(*), $input as node()*) { let $output := model:apply($config, $input) return - tei:finish($config, $output) + ext-docx:finish($config, $output) ) };