|
I don't know if there is a more elegant way to do it, but the applied patch fixes the problem This is a general problem of the docbook parser, see Fixed in r781693 Note that your docbook sources are not valid. Doxia requires valid simplified docbook input, ie there should be an <article> root element. Your files should look like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD Simplified DocBook XML V1.1//EN" "http://www.oasis-open.org/docbook/xml/simple/1.1/sdocbook.dtd"> <article> <section id="section1"> <title>Section 1</title> <para>This is the first section.</para> </section> </article> Hi Lukas, thank you for fixing this so fast. But there is still a bug in this piece of code (see the attached test). Thank you anyway, for me it now works since my articles need no id-attribute. Thanks for testing and the feedback! So a fix would be to check for the special case of article and emit the anchor after the document start. However, I have some doubts:
I have simply removed the anchor generation from the article tag for now, this fixes the build failure. The id is forwarded directly into the sink's head, eg for xdoc it goes into the <document> tag. I have opened |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This test demonstrates the problem