PREFIXES={u'db': u'http://docbook.org/ns/docbook',
u'xi': u'http://www.w3.org/2001/XInclude',
- u'xl': u'http://www.w3.org/1999/xlink'}
+ u'xl': u'http://www.w3.org/1999/xlink',
+ u'html' : u'http://www.w3.org/1999/xhtml'}
class Directory():
"""Class containing the state of the directory with articles"""
im = os.path.join(dirname,i.fileref)
if os.path.isfile(im):
self._resources.append(im)
+ for i in self._doc.xml_select(u"//html:form[@action]"):
+ pyscript = re.split('\.py',i.action,1)[0]+'.py'
+ im = os.path.join(dirname,pyscript)
+ if os.path.isfile(im):
+ self._resources.append(im)
def render(self):
# amara can not handle the docbook stylesheets