Merge pull request #91 from Doha2012/master

Modify PDF style
This commit is contained in:
Eugen 2014-12-04 23:21:07 +02:00
commit c6cc4675c5
3 changed files with 11 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import org.junit.Test;
import org.w3c.dom.Document;
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 output_prefix = "src/test/resources/";
private String xmlFile = "src/test/resources/input.xml";

View File

@ -2,7 +2,7 @@ transformation html2docbook;
section HTML {
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}*).*";
}

View File

@ -329,6 +329,15 @@
</xsl:message>
</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>