Use xsltproc instead of fop to generate XSL-FO

pull/237/head
Francis Lachapelle 2017-07-05 10:44:27 -04:00
parent 5aa74ca0ad
commit 43d85f8bc4
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,8 @@ all: $(patsubst %.asciidoc,%.pdf,$(wildcard *.asciidoc))
%.pdf : %.asciidoc
asciidoc -a docinfo1 -b docbook -d book -o $<.docbook $<
fop -c fonts/fop-config.xml -xsl docbook/xsl/sogo-fo.xsl -xml $<.docbook -pdf $@
xsltproc -o $<.fo docbook/xsl/sogo-fo.xsl $<.docbook
fop -c fonts/fop-config.xml $<.fo -pdf $@
clean:
rm *.asciidoc.docbook *.pdf
rm -f *.asciidoc.fo *.asciidoc.docbook *.pdf

View File

@ -121,9 +121,9 @@
</xsl:choose>
</xsl:template>
<xsl:template name="next.itemsymbol">
<xsl:param name="itemsymbol" select="'default'"/>
<xsl:param name="itemsymbol" select="'square'"/>
<xsl:choose>
<xsl:otherwise>square</xsl:otherwise>
<xsl:when test="$itemsymbol='square'">square</xsl:when>
</xsl:choose>
</xsl:template>