From 3deab9dc7e2360ecb6253e7b91449aebea626262 Mon Sep 17 00:00:00 2001 From: Michelle Rodzis <rodzis@sub.uni-goettingen.de> Date: Fri, 2 Nov 2018 09:47:43 +0100 Subject: [PATCH] Place editorial notes where they are encoded (closes bibliothek-der-neologie/print#26) --- modules/intermediate_format/preprocessing.xqm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/intermediate_format/preprocessing.xqm b/modules/intermediate_format/preprocessing.xqm index 95628d8..d8cf667 100644 --- a/modules/intermediate_format/preprocessing.xqm +++ b/modules/intermediate_format/preprocessing.xqm @@ -50,9 +50,7 @@ declare function pre:preprocessing-textNode element{$node/name()}{ $node/@*, pre:preprocessing-textNode($node/node()), - element{"editorial-notes"}{ - $node//note[@type eq "editorial-commentary"] - } + element{"editorial-notes"}{} } ) @@ -165,11 +163,7 @@ declare function pre:preprocessing element{$node/name()}{ $node/@*, pre:preprocessing($node/node(), $replace-whitespace), - element{"editorial-notes"}{ - for $editorial-note in $node//note[@type eq "editorial-commentary"] - return - pre:default-element( $editorial-note, pre:preprocessing($editorial-note/node(), $replace-whitespace) ) - } + element{"editorial-notes"}{} } ) -- GitLab