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>
<xsl:template match="note[@type='com']">
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
......@@ -35,6 +35,13 @@ public class XsltTest {
System.out.println(outputBaos.toString());
}
@Test
public void note_removeIfIsAComment() throws Exception {
String result = transform("note-comment.xml");
assertXpathEvaluatesTo("before-note after-note", "//field[@name='fulltext']", result);
}
@Test
public void twoLinebreaks_replaceWithSpaces() throws Exception {
String result = transform("linebreaks-two.xml");
......
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
</teiHeader>
<text xml:id="my_id" xml:lang="ger">
<body>
<div>
<p>before-note<note type="com">A note.</note> after-note</p>
</div>
</body>
</text>
</TEI>
\ 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