Skip to content
Snippets Groups Projects
Commit bfc4bd1c authored by Michelle Rodzis's avatar Michelle Rodzis
Browse files

deleted unused variables, added types

parent d8ab15a5
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@ xquery version "3.0";
: @author Uwe Sikora
:)
module namespace whitespace="http://bdn-edition.de/intermediate_format/whitespace_handling";
import module namespace pre="http://bdn-edition.de/intermediate_format/preprocessing" at "preprocessing.xqm";
declare default element namespace "http://www.tei-c.org/ns/1.0";
......@@ -31,7 +30,6 @@ declare default element namespace "http://www.tei-c.org/ns/1.0";
declare function whitespace:text
( $text as text()*, $escape-char as xs:string? ) as text()* {
let $normalized := normalize-space($text)
let $whitespace-node := $text[matches(., "[\s\n\r\t]") and normalize-space(.) = ""]
let $single-whitespace-between-nodes := $text = ' '
return
......@@ -61,7 +59,7 @@ declare function whitespace:text
: @author Uwe Sikora
:)
declare function whitespace:escape-text
( $text, $escape as xs:string ) as text()* {
($text as text()*, $escape as xs:string) as text()* {
text {replace($text, '[\s]+', $escape)}
};
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