Commit dd090918 authored by Moritz Schepp's avatar Moritz Schepp
Browse files

see #291, #292, #293

parent 9972f31d
......@@ -219,7 +219,31 @@ declare function transformXML:importFromTGRep($tgURI as xs:string, $filenameOutp
return $output
)
else (
let $output := local:milestone-chunk-ns-last($input//tei:pb[@n=string($counterPages)], ($input//tei:pb[@n="1"]/following-sibling::*[last()]),$input)
let $from := $input//tei:pb[@n=string($counterPages)]
(: let $to := ($input//tei:pb[@n="1"]/following-sibling::*[last()]):)
let $to := if ($tgURI = '3qr4f.2') then
let $elements := $input//tei:closer
let $amount := count($elements)
return $elements[$amount]
else if ($tgURI = '3r3nn.3') then
let $elements := $input//tei:closer
let $amount := count($elements)
return $elements[$amount]
else if ($tgURI = '3r0fv') then
let $elements := $input//tei:ab
let $amount := count($elements)
return $elements[$amount]
else if ($tgURI = '34zs7.3') then
let $x := 12 (: makes the editor syntax error go away :)
return $from
else if ($tgURI = '3q4rq.3') then
let $x := 12 (: makes the editor syntax error go away :)
return $from
else
$input//*[last()]
let $output := local:milestone-chunk-ns-last($from, $to, $input)
(: let $output := local:milestone-chunk-ns-last($input//tei:pb[@n=string($counterPages)], ($input//tei:pb[@n="1"]/following-sibling::*[last()]),$input) :)
let $outputXML := code-view:main($output)
let $output := local:magic($output, "")
let $filenameOutputPage := $filenameOutput || '_p' || string($i)
......
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