Skip to content
Snippets Groups Projects
Commit 413da5bc authored by Jakob Schmidt's avatar Jakob Schmidt
Browse files

Restriktion auf tei:date bei date:printDate entfernt (bspw für tei:change)

parent 734143da
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ declare function date:format-date($date as xs:date, $picture as xs:string, $lang
: @param $get-language-string a callback function that is expected to return a localized string for a given term
: @return text
:)
declare function date:printDate($date as element(tei:date)?, $lang as xs:string, $get-language-string as function(xs:string, xs:string*) as xs:string, $get-picture-string as function(empty()) as xs:string) as xs:string? {
declare function date:printDate($date as element()?, $lang as xs:string, $get-language-string as function(xs:string, xs:string*) as xs:string, $get-picture-string as function(empty()) as xs:string) as xs:string? {
if($date) then (
let $picture-string := $get-picture-string() (: if($lang = 'de') then '[D]. [MNn] [Y]' else '[MNn] [D], [Y]':)
let $notBefore := if($date/@notBefore) then date:getCastableDate(data($date/@notBefore),false()) else()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment