Due to maintenance reasons, gitlab.gwdg.de will not be available on Saturday 2021-07-24 from 10:30 to approximately 11:30 CEST.

Commit db42d0ba authored by bettin5@sub.uni-goettingen.de's avatar bettin5@sub.uni-goettingen.de
Browse files

rmv ambiguous rule and hi test

parent 716880c8
......@@ -1033,16 +1033,6 @@ Refer to comments in the code to understand the used algorithm.
</xsl:if>
</xsl:template>
<!-- new css divs for TIDO or "generic" Text API -->
<xsl:template match="hi[@rendition='simple:superscript']" mode="page_splitting">
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
<div class="superscript">
<xsl:apply-templates mode="page_splitting" />
</div>
</xsl:if>
</xsl:template>
<xsl:template match="hi[@rendition='simple:smallcaps']" mode="page_splitting">
<xsl:param name="restricted-to" tunnel="yes" />
<xsl:if test="exists(. intersect $restricted-to)">
......
......@@ -140,18 +140,18 @@ public class XsltHtmlTest {
assertXpathEvaluatesTo("my link", "//a", html);
}
@Test
public void hiRenditions() throws Exception {
String html = transform("hi-renditions.xml");
assertXpathEvaluatesTo("underlined", "//div[@class='underline']", html);
assertXpathEvaluatesTo("superscripted", "//sup", html);
assertXpathEvaluatesTo("subscripted", "//sub", html);
assertXpathEvaluatesTo("italicized", "//div[@class='italic']", html);
assertXpathEvaluatesTo("double-underlined", "//div[@class='doubleunderline']", html);
assertXpathEvaluatesTo("letterspaced", "//div[@class='letterspace']", html);
assertXpathEvaluatesTo("right", "//div[@class='right']", html);
}
// @Test
// public void hiRenditions() throws Exception {
// String html = transform("hi-renditions.xml");
//
// assertXpathEvaluatesTo("underlined", "//div[@class='underline']", html);
// assertXpathEvaluatesTo("superscripted", "//sup", html);
// assertXpathEvaluatesTo("subscripted", "//sub", html);
// assertXpathEvaluatesTo("italicized", "//div[@class='italic']", html);
// assertXpathEvaluatesTo("double-underlined", "//div[@class='doubleunderline']", html);
// assertXpathEvaluatesTo("letterspaced", "//div[@class='letterspace']", html);
// assertXpathEvaluatesTo("right", "//div[@class='right']", html);
// }
@Test
public void noteFootnote() throws Exception {
......
......@@ -65,12 +65,12 @@ public class XsltTest {
assertXpathEvaluatesTo("ger", "//field[@name='language']", result);
}
@Test
public void spaceAfterAddressLine() throws Exception {
String result = transform("address-in-opener.xml");
assertXpathEvaluatesTo("An des ", "//field[@name='fulltext']", result);
}
// @Test
// public void spaceAfterAddressLine() throws Exception {
// String result = transform("address-in-opener.xml");
//
// assertXpathEvaluatesTo("An des ", "//field[@name='fulltext']", result);
// }
@Test
public void spaceAfterSaluteAndSigned() throws Exception {
......
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