Hello doxygen mailing list, I'm generating my source code documentation with doxygen 1.8.5, outputting it as docbook. When processing this with xsltproc, I get the following error messages.
>xsltproc --xinclude --output myfile.filt.xml stylesheets\docbook-xsl-ns-1.78.1\profiling\profile.xsl index.xml a00257.xml:4721: element section: validity error : ID a00257_1ga813ffb0c0476e2df0c0a781a6dc842a8 already defined <section xml:id="a00257_1ga813ffb0c0476e2df0c0a781a6dc842a8"> ^ a00288.xml:657: element section: validity error : ID a00288_1gab608b7cc1a21932f503543f016afb200 already defined <section xml:id="a00288_1gab608b7cc1a21932f503543f016afb200"> ^ a00288.xml:661: element section: validity error : ID a00288_1ga8b04c96b2bb53dc5543042564ad114b4 already defined <section xml:id="a00288_1ga8b04c96b2bb53dc5543042564ad114b4"> ^ a00288.xml:665: element section: validity error : ID a00288_1ga42b979d814d70492577d266e4e36958f already defined <section xml:id="a00288_1ga42b979d814d70492577d266e4e36958f"> ^ a00288.xml:669: element section: validity error : ID a00288_1gaac45095a095b6830d1e6d2968224d827 already defined <section xml:id="a00288_1gaac45095a095b6830d1e6d2968224d827"> ^ a00288.xml:673: element section: validity error : ID a00288_1gab733495c49e00065c7e972f835b19962 already defined <section xml:id="a00288_1gab733495c49e00065c7e972f835b19962"> Looking in the mentioned files reveals the variables which cause this error. (For some reason, they seem to be discovered twice... Indeed, <section xml:id="a00257_1ga813ffb0c0476e2df0c0a781a6dc842a8"> <title>TYPE_S_DATA Data</title> <emphasis></emphasis> </section> appears twice in that file) Furthermore, If I generate HTML documentation, and enter the variable name in the search bar (SEARCHENGINE being set to YES), the variable also appears twice as defined, in the same location. So basically the Html documentation says TYPE_S_DATA Data Definition at line 123 of file filename.c. TYPE_S_DATA Data Definition at line 123 of file filename.c. This variabe is a global variable in a C file, which then is extern'd by the .h file. (So the .h file contains "extern TYPE_S_DATA Data;") Does this duplicate result from the variable being extern'd? Or is there another reason for this strange behaviour? Best regards, ADuering Doxgen Config: doxy.cfg <http://doxygen.10944.n7.nabble.com/file/n6301/doxy.cfg> -- View this message in context: http://doxygen.10944.n7.nabble.com/Extern-variable-appears-twice-leading-to-errors-in-docbook-generation-tp6301.html Sent from the Doxygen - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users