tfi.write(etree.tostring(self._doc,encoding='UTF-8',pretty_print=False))
tfi.close()
# cmd = ["saxon-xslt-xinclude","-o",outfile,infile,style_xslt]
- cmd = ["xsltproc","--xinclude","--output",outfile,style+"docbook.xsl",infile]
+ cmd = ["xsltproc","--xinclude","--output",outfile,style+"docbook.xhtml5.xsl",infile]
retcode = subprocess.call(cmd)
if retcode:
print 'Error: '+' '.join(cmd)+' Returncode ['+str(retcode)+']'
def publish(self):
ssh_cmd(self._output,"mkdir -p")
publish(self._tmptarget, self._output)
- for res in ["css","images","js","fonts","favicon.ico"]:
+ for res in ["stylesheets","images","js","fonts","favicon.ico"]:
if (os.path.exists(self._style+res)):
publish(self._style+res, self._output)
ssh_cmd(self._output,"chmod a+rx")
if p == page:
sel = ' class="selected"'
if p != None:
- html += '<li%s><a href="%s%s">%s</a></li>\n' \
+ html += '<li%s><a href="%s%s">%s</a>\n' \
% (sel,subdir,l.value().link(),p.menu())
else:
html += '<li%s><a href="%s%s.en" hreflang="en">%s</a>*\n' \
% (sel,subdir,l.value().link(), l.value().page('en').menu())
if l.children():
html += self._menu(l.children(), lang, page, "", subdir)
+ html += "</li>\n"
html += "</ul>\n"
return html