XSF Editor Team - 2016-01-21

  1. Ash

    Anyone seen this error before?

  2. Ash

    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

  3. Ash

    Looks like an error generating the PDF

  4. Ash

    xsltproc parses the file fine

  5. Ash

    The XHTML building section is erroring too, and just outputting a single, 0 length, html file.

  6. Ash

    If I run the xsltproc commands manually then it works fine.

  7. winfried

    Ash: looking into it...

  8. Ash

    Thanks winfried :)

  9. Ash

    I'm not great with python

  10. 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... ;-)

  11. Ash

    That's made it work! We should add that to the XEP Editor README

  12. winfried

    ;-) yeah, it is easy to forget...