mirror of https://github.com/tLDP/python-tldp
run the xinclude first, then validate document
This commit is contained in:
parent
efebc78a63
commit
2a0e383c26
|
@ -72,14 +72,6 @@ class Docbook5XML(BaseDoctype, SignatureChecker):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@depends(graph, chdir_output)
|
@depends(graph, chdir_output)
|
||||||
def validate_source(self):
|
|
||||||
'''consider lxml.etree and other validators'''
|
|
||||||
s = '''"{config.docbook5xml_jing}" \\
|
|
||||||
"{config.docbook5xml_rngfile}" \\
|
|
||||||
"{source.filename}"'''
|
|
||||||
return self.shellscript(s)
|
|
||||||
|
|
||||||
@depends(graph, validate_source)
|
|
||||||
def make_xincluded_source(self):
|
def make_xincluded_source(self):
|
||||||
s = '''"{config.docbook5xml_xmllint}" > "{output.validsource}" \\
|
s = '''"{config.docbook5xml_xmllint}" > "{output.validsource}" \\
|
||||||
--nonet \\
|
--nonet \\
|
||||||
|
@ -88,6 +80,14 @@ class Docbook5XML(BaseDoctype, SignatureChecker):
|
||||||
"{source.filename}"'''
|
"{source.filename}"'''
|
||||||
return self.shellscript(s)
|
return self.shellscript(s)
|
||||||
|
|
||||||
|
@depends(graph, make_xincluded_source)
|
||||||
|
def validate_source(self):
|
||||||
|
'''consider lxml.etree and other validators'''
|
||||||
|
s = '''"{config.docbook5xml_jing}" \\
|
||||||
|
"{config.docbook5xml_rngfile}" \\
|
||||||
|
"{output.validsource}"'''
|
||||||
|
return self.shellscript(s)
|
||||||
|
|
||||||
@depends(graph, make_xincluded_source)
|
@depends(graph, make_xincluded_source)
|
||||||
def copy_static_resources(self):
|
def copy_static_resources(self):
|
||||||
source = list()
|
source = list()
|
||||||
|
|
Loading…
Reference in New Issue