diff --git a/modules/intermediate_format/preprocessing.xqm b/modules/intermediate_format/preprocessing.xqm index 95628d8a354f534140c8c3130779314ff7f07db8..d8cf6670d914467c79522f569d71e4e7e339709a 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"}{} } )