Commit 03ff7971 authored by Dennis Neumann's avatar Dennis Neumann
Browse files

Ignore note commentaries in fulltext

parent 903cc960
......@@ -34,4 +34,7 @@
<xsl:text> </xsl:text>
<xsl:template match="note[@type='com']">
\ No newline at end of file
......@@ -35,6 +35,13 @@ public class XsltTest {
public void note_removeIfIsAComment() throws Exception {
String result = transform("note-comment.xml");
assertXpathEvaluatesTo("before-note after-note", "//field[@name='fulltext']", result);
public void twoLinebreaks_replaceWithSpaces() throws Exception {
String result = transform("linebreaks-two.xml");
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="">
<text xml:id="my_id" xml:lang="ger">
<p>before-note<note type="com">A note.</note> after-note</p>
\ No newline at end of file
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