Skip to content

Commit

Permalink
调整docbook文件路径
Browse files Browse the repository at this point in the history
  • Loading branch information
dram committed May 24, 2020
1 parent 29a55a8 commit 3ba34eb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
docbook-5.1
docbook
docbook-xsl
fonts
*.html
*.pdf
2 changes: 1 addition & 1 deletion fo.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl"/>
<xsl:import href="docbook-xsl/fo/docbook.xsl"/>

<xsl:param name="paper.type" select="'A4'"/>

Expand Down
2 changes: 1 addition & 1 deletion html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl"/>
<xsl:import href="docbook-xsl/html/docbook.xsl"/>

<xsl:output method="html" encoding="UTF-8" indent="yes"/>

Expand Down
2 changes: 1 addition & 1 deletion prettify.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def all_text_nodes(root):
if not nxt.data[0].isspace():
nxt.data = ' ' + nxt.data

rng = lxml.etree.RelaxNG(file="docbook-5.1/rng/docbook.rng")
rng = lxml.etree.RelaxNG(file="docbook/rng/docbook.rng")

rng.assertValid(lxml.etree.fromstring(doc.toxml()))

Expand Down

0 comments on commit 3ba34eb

Please sign in to comment.