Commit b0bbb380 authored by Wolfgang's avatar Wolfgang

Update generated xql

parent d545a001
......@@ -21,6 +21,10 @@ import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions";
import module namespace epub="http://www.tei-c.org/tei-simple/xquery/functions/epub";
(: generated template function for element spec: app :)
declare %private function model:template-app($config as map(*), $node as node()*, $params as map(*)) {
<t xmlns=""><pb-popover persistent="{$config?apply-children($config, $node, $params?persistent)}">{$config?apply-children($config, $node, $params?content)}<span slot="alternate">{$config?apply-children($config, $node, $params?alternate)}</span></pb-popover></t>/*
};
(:~
Main entry point for the transformation.
......@@ -542,6 +546,19 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-person"), .)
case element(persName) return
html:inline($config, ., ("tei-persName"), .)
case element(app) return
let $params :=
map {
"content": lem,
"alternate": rdg,
"persistent": true(),
"name": 'pb-popover'
}
let $content :=
model:template-app($config, ., $params)
return
html:inline(map:merge(($config, map:entry("template", true()))), ., ("tei-app"), $content)
case element(exist:match) return
html:match($config, ., .)
case element() return
......
......@@ -23,6 +23,10 @@ import module namespace latex="http://www.tei-c.org/tei-simple/xquery/functions/
declare %private function model:template-teiHeader($config as map(*), $node as node()*, $params as map(*)) {
``[\def\volume{`{string-join($config?apply-children($config, $node, $params?content))}`}]``
};
(: generated template function for element spec: app :)
declare %private function model:template-app($config as map(*), $node as node()*, $params as map(*)) {
<t xmlns=""><pb-popover persistent="{$config?apply-children($config, $node, $params?persistent)}">{$config?apply-children($config, $node, $params?content)}<span slot="alternate">{$config?apply-children($config, $node, $params?alternate)}</span></pb-popover></t>/*
};
(:~
Main entry point for the transformation.
......@@ -537,6 +541,19 @@ declare function model:apply($config as map(*), $input as node()*) {
latex:inline($config, ., ("tei-person"), .)
case element(persName) return
latex:inline($config, ., ("tei-persName"), .)
case element(app) return
let $params :=
map {
"content": lem,
"alternate": rdg,
"persistent": true(),
"name": 'pb-popover'
}
let $content :=
model:template-app($config, ., $params)
return
latex:inline(map:merge(($config, map:entry("template", true()))), ., ("tei-app"), $content)
case element() return
if (namespace-uri(.) = 'http://www.tei-c.org/ns/1.0') then
$config?apply($config, ./node())
......
......@@ -19,6 +19,10 @@ import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace fo="http://www.tei-c.org/tei-simple/xquery/functions/fo";
(: generated template function for element spec: app :)
declare %private function model:template-app($config as map(*), $node as node()*, $params as map(*)) {
<t xmlns=""><pb-popover persistent="{$config?apply-children($config, $node, $params?persistent)}">{$config?apply-children($config, $node, $params?content)}<span slot="alternate">{$config?apply-children($config, $node, $params?alternate)}</span></pb-popover></t>/*
};
(:~
Main entry point for the transformation.
......@@ -524,6 +528,19 @@ declare function model:apply($config as map(*), $input as node()*) {
fo:inline($config, ., ("tei-person"), .)
case element(persName) return
fo:inline($config, ., ("tei-persName"), .)
case element(app) return
let $params :=
map {
"content": lem,
"alternate": rdg,
"persistent": true(),
"name": 'pb-popover'
}
let $content :=
model:template-app($config, ., $params)
return
fo:inline(map:merge(($config, map:entry("template", true()))), ., ("tei-app"), $content)
case element() return
if (namespace-uri(.) = 'http://www.tei-c.org/ns/1.0') then
$config?apply($config, ./node())
......
......@@ -19,6 +19,10 @@ import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions";
(: generated template function for element spec: app :)
declare %private function model:template-app($config as map(*), $node as node()*, $params as map(*)) {
<t xmlns=""><pb-popover persistent="{$config?apply-children($config, $node, $params?persistent)}">{$config?apply-children($config, $node, $params?content)}<span slot="alternate">{$config?apply-children($config, $node, $params?alternate)}</span></pb-popover></t>/*
};
(:~
Main entry point for the transformation.
......@@ -115,16 +119,16 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-formula2"), .)
case element(choice) return
if (sic and corr) then
html:alternate($config, ., ("tei-choice4", "choice"), ., corr[1], sic[1])
html:alternate($config, ., ("tei-choice4", "choice"), ., corr[1], sic[1], map {})
else
if ($parameters?mode='norm' and abbr and expan) then
html:alternate($config, ., ("tei-choice5", "choice"), ., expan[1], abbr[1])
html:alternate($config, ., ("tei-choice5", "choice"), ., expan[1], abbr[1], map {})
else
if (abbr and expan) then
html:alternate($config, ., ("tei-choice6", "choice"), ., abbr[1], expan[1])
html:alternate($config, ., ("tei-choice6", "choice"), ., abbr[1], expan[1], map {})
else
if (orig and reg) then
html:alternate($config, ., ("tei-choice7", "choice"), ., reg[1], orig[1])
html:alternate($config, ., ("tei-choice7", "choice"), ., reg[1], orig[1], map {})
else
$config?apply($config, ./node())
case element(hi) return
......@@ -188,7 +192,7 @@ declare function model:apply($config as map(*), $input as node()*) {
case element(figDesc) return
html:inline($config, ., ("tei-figDesc"), .)
case element(rs) return
html:alternate($config, ., ("tei-rs"), ., ., id(substring-after(@ref, '#'), root($parameters?root))/node())
html:alternate($config, ., ("tei-rs"), ., ., id(substring-after(@ref, '#'), root($parameters?root))/node(), map {})
case element(foreign) return
html:inline($config, ., ("tei-foreign"), .)
case element(fileDesc) return
......@@ -301,7 +305,7 @@ declare function model:apply($config as map(*), $input as node()*) {
case element(titlePage) return
html:block($config, ., css:get-rendition(., ("tei-titlePage")), .)
case element(name) return
html:alternate($config, ., ("tei-name"), ., ., id(substring-after(@ref, '#'), root($parameters?root))/node())
html:alternate($config, ., ("tei-name"), ., ., id(substring-after(@ref, '#'), root($parameters?root))/node(), map {})
case element(front) return
html:block($config, ., ("tei-front"), .)
case element(lg) return
......@@ -408,7 +412,7 @@ declare function model:apply($config as map(*), $input as node()*) {
html:block($config, ., ("tei-argument"), .)
case element(date) return
if (@when) then
html:alternate($config, ., ("tei-date3"), ., ., @when)
html:alternate($config, ., ("tei-date3"), ., ., @when, map {})
else
if (text()) then
html:inline($config, ., ("tei-date4"), .)
......@@ -540,6 +544,19 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-person"), .)
case element(persName) return
html:inline($config, ., ("tei-persName"), .)
case element(app) return
let $params :=
map {
"content": lem,
"alternate": rdg,
"persistent": true(),
"name": 'pb-popover'
}
let $content :=
model:template-app($config, ., $params)
return
html:inline(map:merge(($config, map:entry("template", true()))), ., ("tei-app"), $content)
case element(exist:match) return
html:match($config, ., .)
case element() return
......
......@@ -170,6 +170,7 @@ declare function model:apply($config as map(*), $input as node()*) {
return
typeswitch(.)
case element(article) return
(: Output LaTeX prolog :)
let $params :=
map {
"image-dir": $parameters?image-dir,
......@@ -290,6 +291,7 @@ declare function model:apply($config as map(*), $input as node()*) {
else
latex:inline($config, ., ("tei-emphasis2"), .)
case element(code) return
(: Output inline code example :)
let $params :=
map {
"content": .
......
......@@ -345,7 +345,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......
......@@ -330,7 +330,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
latex:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
latex:link($config, ., ("tei-ref2"), @target, @target, map {})
else
latex:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -330,7 +330,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
fo:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
fo:link($config, ., ("tei-ref2"), @target, @target, map {})
else
fo:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -112,13 +112,13 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-formula2"), .)
case element(choice) return
if (sic and corr) then
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1])
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1], map {})
else
if (abbr and expan) then
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1])
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1], map {})
else
if (orig and reg) then
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1])
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1], map {})
else
$config?apply($config, ./node())
case element(hi) return
......@@ -346,7 +346,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......@@ -406,7 +406,7 @@ declare function model:apply($config as map(*), $input as node()*) {
html:block($config, ., ("tei-argument"), .)
case element(date) return
if (@when) then
html:alternate($config, ., ("tei-date3"), ., ., @when)
html:alternate($config, ., ("tei-date3"), ., ., @when, map {})
else
if (text()) then
html:inline($config, ., ("tei-date4"), .)
......
......@@ -354,7 +354,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......
......@@ -447,7 +447,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
latex:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
latex:link($config, ., ("tei-ref2"), @target, @target, map {})
else
latex:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -350,7 +350,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
fo:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
fo:link($config, ., ("tei-ref2"), @target, @target, map {})
else
fo:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -109,13 +109,13 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-formula2"), .)
case element(choice) return
if (sic and corr) then
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1])
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1], map {})
else
if (abbr and expan) then
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1])
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1], map {})
else
if (orig and reg) then
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1])
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1], map {})
else
$config?apply($config, ./node())
case element(hi) return
......@@ -352,7 +352,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......@@ -412,7 +412,7 @@ declare function model:apply($config as map(*), $input as node()*) {
html:block($config, ., ("tei-argument"), .)
case element(date) return
if (@when) then
html:alternate($config, ., ("tei-date3"), ., ., @when)
html:alternate($config, ., ("tei-date3"), ., ., @when, map {})
else
if (text()) then
html:inline($config, ., ("tei-date4"), .)
......
......@@ -332,7 +332,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......
......@@ -421,7 +421,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
latex:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
latex:link($config, ., ("tei-ref2"), @target, @target, map {})
else
latex:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -322,7 +322,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
fo:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
fo:link($config, ., ("tei-ref2"), @target, @target, map {})
else
fo:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -112,13 +112,13 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-formula2"), .)
case element(choice) return
if (sic and corr) then
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1])
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1], map {})
else
if (abbr and expan) then
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1])
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1], map {})
else
if (orig and reg) then
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1])
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1], map {})
else
$config?apply($config, ./node())
case element(hi) return
......@@ -330,7 +330,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......@@ -390,7 +390,7 @@ declare function model:apply($config as map(*), $input as node()*) {
html:block($config, ., ("tei-argument"), .)
case element(date) return
if (@when) then
html:alternate($config, ., ("tei-date3"), ., ., format-date(xs:date(@when), '[D1o] [MNn] [Y]', (session:get-attribute('lang'), 'en')[1], (), ()))
html:alternate($config, ., ("tei-date3"), ., ., format-date(xs:date(@when), '[D1o] [MNn] [Y]', (session:get-attribute('lang'), 'en')[1], (), ()), map {})
else
if (text()) then
html:inline($config, ., ("tei-date4"), .)
......@@ -522,7 +522,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (parent::person) then
html:inline($config, ., ("tei-persName3"), .)
else
html:alternate($config, ., ("tei-persName4"), ., ., id(substring-after(@ref, '#'), root(.)))
html:alternate($config, ., ("tei-persName4"), ., ., id(substring-after(@ref, '#'), root(.)), map {})
case element(person) return
if (parent::listPerson) then
html:inline($config, ., ("tei-person2"), .)
......@@ -532,12 +532,12 @@ declare function model:apply($config as map(*), $input as node()*) {
if (parent::place) then
html:inline($config, ., ("tei-placeName3"), .)
else
html:alternate($config, ., ("tei-placeName4"), ., ., id(substring-after(@ref, '#'), root(.)))
html:alternate($config, ., ("tei-placeName4"), ., ., id(substring-after(@ref, '#'), root(.)), map {})
case element(orgName) return
if (parent::org) then
html:inline($config, ., ("tei-orgName2"), .)
else
html:alternate($config, ., ("tei-orgName3"), ., ., id(substring-after(@ref, '#'), root(.)))
html:alternate($config, ., ("tei-orgName3"), ., ., id(substring-after(@ref, '#'), root(.)), map {})
case element(correspAction) return
if (@type='sent') then
html:inline($config, ., ("tei-correspAction"), (placeName, ', ', date))
......
......@@ -13,6 +13,8 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace pb='http://teipublisher.com/1.0';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions";
......@@ -351,7 +353,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......
......@@ -13,6 +13,8 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace pb='http://teipublisher.com/1.0';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace latex="http://www.tei-c.org/tei-simple/xquery/functions/latex";
......@@ -344,7 +346,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
latex:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
latex:link($config, ., ("tei-ref2"), @target, @target, map {})
else
latex:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -13,6 +13,8 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace pb='http://teipublisher.com/1.0';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace fo="http://www.tei-c.org/tei-simple/xquery/functions/fo";
......@@ -344,7 +346,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
fo:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
fo:link($config, ., ("tei-ref2"), @target, @target, map {})
else
fo:link($config, ., ("tei-ref3"), ., @target, map {})
......
......@@ -13,6 +13,8 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace pb='http://teipublisher.com/1.0';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions";
......@@ -107,13 +109,13 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-formula2"), .)
case element(choice) return
if (sic and corr) then
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1])
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1], map {})
else
if (abbr and expan) then
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1])
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1], map {})
else
if (orig and reg) then
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1])
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1], map {})
else
$config?apply($config, ./node())
case element(hi) return
......@@ -349,7 +351,7 @@ declare function model:apply($config as map(*), $input as node()*) {
if (not(@target)) then
html:inline($config, ., ("tei-ref1"), .)
else
if (not(text())) then
if (not(node())) then
html:link($config, ., ("tei-ref2"), @target, @target, (), map {})
else
html:link($config, ., ("tei-ref3"), ., @target, (), map {})
......@@ -409,7 +411,7 @@ declare function model:apply($config as map(*), $input as node()*) {
html:block($config, ., ("tei-argument"), .)
case element(date) return
if (@when) then
html:alternate($config, ., ("tei-date3"), ., ., @when)
html:alternate($config, ., ("tei-date3"), ., ., @when, map {})
else
if (text()) then
html:inline($config, ., ("tei-date4"), .)
......
......@@ -117,13 +117,13 @@ declare function model:apply($config as map(*), $input as node()*) {
html:cell($config, ., ("tei-cell"), ., ())
case element(choice) return
if (sic and corr) then
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1])
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1], map {})
else
if (abbr and expan) then
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1])
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1], map {})
else
if (orig and reg) then
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1])
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1], map {})
else
$config?apply($config, ./node())
case element(cit) return
......@@ -144,7 +144,7 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-corr2"), .)
case element(date) return
if (@when) then
html:alternate($config, ., ("tei-date3"), ., ., @when)
html:alternate($config, ., ("tei-date3"), ., ., @when, map {})
else
if (text()) then
html:inline($config, ., ("tei-date4"), .)
......
......@@ -109,13 +109,13 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-formula2"), .)
case element(choice) return
if (sic and corr) then
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1])
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1], map {})
else
if (abbr and expan) then
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1])
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1], map {})
else
if (orig and reg) then
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1])
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1], map {})
else
$config?apply($config, ./node())
case element(hi) return
......@@ -427,7 +427,7 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-title11"), .)
case element(date) return
if (@when) then
html:alternate($config, ., ("tei-date3"), ., ., @when)
html:alternate($config, ., ("tei-date3"), ., ., @when, map {})
else
if (text()) then
html:inline($config, ., ("tei-date4"), .)
......
......@@ -13,10 +13,10 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace vg='http://www.vangoghletters.org/ns/';
declare namespace pb='http://teipublisher.com/1.0';
declare namespace vg='http://www.vangoghletters.org/ns/';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions";
......
......@@ -13,10 +13,10 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace vg='http://www.vangoghletters.org/ns/';
declare namespace pb='http://teipublisher.com/1.0';
declare namespace vg='http://www.vangoghletters.org/ns/';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace latex="http://www.tei-c.org/tei-simple/xquery/functions/latex";
......
......@@ -13,10 +13,10 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace vg='http://www.vangoghletters.org/ns/';
declare namespace pb='http://teipublisher.com/1.0';
declare namespace vg='http://www.vangoghletters.org/ns/';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace fo="http://www.tei-c.org/tei-simple/xquery/functions/fo";
......
......@@ -13,10 +13,10 @@ declare namespace xhtml='http://www.w3.org/1999/xhtml';
declare namespace xi='http://www.w3.org/2001/XInclude';
declare namespace vg='http://www.vangoghletters.org/ns/';
declare namespace pb='http://teipublisher.com/1.0';
declare namespace vg='http://www.vangoghletters.org/ns/';
import module namespace css="http://www.tei-c.org/tei-simple/xquery/css";
import module namespace html="http://www.tei-c.org/tei-simple/xquery/functions";
......@@ -117,13 +117,13 @@ declare function model:apply($config as map(*), $input as node()*) {
html:inline($config, ., ("tei-formula2"), .)
case element(choice) return
if (sic and corr) then
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1])
html:alternate($config, ., ("tei-choice4"), ., corr[1], sic[1], map {})
else
if (abbr and expan) then
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1])
html:alternate($config, ., ("tei-choice5"), ., expan[1], abbr[1], map {})
else
if (orig and reg) then
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1])
html:alternate($config, ., ("tei-choice6"), ., reg[1], orig[1], map {})
else
$config?apply($config, ./node())
case element(hi) return
......@@ -416,7 +416,7 @@ declare function model:apply($config as map(*), $input as node()*) {
html:block($config, ., ("tei-argument"), .)
case element(date) return
if (@when) then
html:alternate($config, ., ("tei-date3"), ., ., @when)
html:alternate($config, ., ("tei-date3"), ., ., @when, map {})
else
if (text()) then
html:inline($config, ., ("tei-date4"), .)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment