xsf@perseus:~/xmpp-hg/extensions$ ./gen.py xep-0371.xml
Building xep-0371.xml: XHTML(ERROR) /
Traceback (most recent call last):
File "./gen.py", line 432, in <module>
main(sys.argv[1:])
File "./gen.py", line 418, in main
buildXEP( xep )
File "./gen.py", line 341, in buildXEP
if buildPDF( xepfilepath, nr ):
File "./gen.py", line 278, in buildPDF
serializeXEPInlineImages("/tmp/xepbuilder", nr, file)
File "./gen.py", line 88, in serializeXEPInlineImages
dom = parse(filename)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1920, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 211, in parseFile
parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
Ash
Looks like an error generating the PDF
Ash
xsltproc parses the file fine
Ash
The XHTML building section is erroring too, and just outputting a single, 0 length, html file.
Ash
If I run the xsltproc commands manually then it works fine.
winfried
Ash: looking into it...
Ash
Thanks winfried :)
Ash
I'm not great with python
Ashhas left
Ashhas joined
winfried
Ash, try what happens if you remove the <interim/> element on line 14 of xep-0371.xml: it its the first commit, but because the xep-0371 says it is interim, the build system tries to revert to a non-interim commit, resulting in unpredictable results... ;-)
Ash
That's made it work! We should add that to the XEP Editor README