> Lex, > > I just tried codiicsa on a sample file and got the message "Error: > Unknown document type chapter". Is it simple enough for a Python noob > to add handling for this DocBook element?
Hi Russell, I havn't done anything with codiicsa for so long a disk failure meant I didn't even have it on the machine any more, thanks github backups :) Your problem is twofold. 1. Is having chapter as a root element legal? The error message is because codiicsa doesn't understand the root element. Other than the root element any other elements that it doesn't understand are left in the file as XML (without the attributes) so you can manually change them. 2. codiicsa never got around to supporting the <book> root element (which contains chapter) since the documents I wanted to transition were all article. Maybe the (soon) in the documentation was optimistic. codiicsa is very cunningly designed for extension, so long as you understand Python object oriented programming. You can extend it without modifying the original file as described in the documentation. Adding a new top level element isn't documented, but if I get a moment I will add it to the documentation and let you know. If you do add to it I will be happy to incorporate changes back into the base as time permits. Cheers Lex > > > Regards, > > Russell Dickenson > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/asciidoc?hl=en. > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
