commit
c6cc4675c5
@ -28,7 +28,7 @@ import org.junit.Test;
|
|||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
|
|
||||||
public class ApacheFOPHeroldTest {
|
public class ApacheFOPHeroldTest {
|
||||||
private String[] inputUrls = { "http://inprogress.baeldung.com/?p=1430","https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html" };
|
private String[] inputUrls = { "http://inprogress.baeldung.com/?p=1430","http://www.baeldung.com/spring-events" };
|
||||||
private String style1 = "src/test/resources/docbook-xsl/fo/docbook.xsl";
|
private String style1 = "src/test/resources/docbook-xsl/fo/docbook.xsl";
|
||||||
private String output_prefix = "src/test/resources/";
|
private String output_prefix = "src/test/resources/";
|
||||||
private String xmlFile = "src/test/resources/input.xml";
|
private String xmlFile = "src/test/resources/input.xml";
|
||||||
|
@ -2,7 +2,7 @@ transformation html2docbook;
|
|||||||
|
|
||||||
section HTML {
|
section HTML {
|
||||||
encoding = "UTF-8";
|
encoding = "UTF-8";
|
||||||
exclude = ["//*[@id='inner-wrapper']/*[position()<7]" , "//*[@class='post-meta']" , "//*[@class='entry-title']","//*[@id='respond']" ,"//*[@id='comments']","//*[@class='post-entries']","//*[@class='social']/../../h3[last()]" ,"//*[@class='social']/.." ];
|
exclude = ["//*[@class='custom-design-100']","//*[@class='custom-design-114']", "//form","//*[@src]","//*[@id='inner-wrapper']/*[position()<7]" , "//*[@class='post-meta']" , "//*[@class='entry-title']","//*[@id='respond']" ,"//*[@id='comments']","//*[@class='post-entries']","//*[@class='social']/../../h3[last()]" ,"//*[@class='social']/.." ];
|
||||||
section-numbering-pattern = "(((\d\.)+)?\d?\.?\p{Z}*).*";
|
section-numbering-pattern = "(((\d\.)+)?\d?\.?\p{Z}*).*";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,6 +329,15 @@
|
|||||||
</xsl:message>
|
</xsl:message>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="screen">
|
||||||
|
<fo:block font-size="9pt" font-family="monospace"
|
||||||
|
white-space-treatment="preserve"
|
||||||
|
linefeed-treatment="preserve"
|
||||||
|
margin-top="0.5em">
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</fo:block>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<!-- ==================================================================== -->
|
<!-- ==================================================================== -->
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user