Hi Alfonso, You indeed found a bug. This patch should fix it:
--- xmldocvisitor.cpp.orig 2012-12-27 13:21:41.000000000 +0100 +++ xmldocvisitor.cpp 2013-01-05 10:43:16.000000000 +0100 @@ -835,7 +835,10 @@ void XmlDocVisitor::visitPre(DocRef *ref) { if (m_hide) return; - if (!ref->file().isEmpty()) startLink(ref->ref(),ref->file(),ref->anchor()); + if (!ref->file().isEmpty()) + { + startLink(ref->ref(),ref->file(),ref->isSubPage() ? QCString() : ref->anchor()); + } if (!ref->hasLinkText()) filter(ref->targetTitle()); } Regards, Dimitri On Jan 4, 2013, at 17:02 , Alfonso MHC <alfonso...@gmail.com> wrote: > Hello, > > As far as I understand there is some kind of error in the XML output > when subpages are referenced. Example file: > > /** > * \file > * > * \mainpage Example > * > * This will show that references to subpages are not correctly > formatted: \ref subpage1 > * > * \page page1 My Page > * > * In this page there is one subpage: > * -\subpage subpage1 > * > * \page subpage1 My Subpage > * > * This page is a subpage of \ref page1. It cannot be referenced: \ref > subpage1 > * > */ > > When HTML is generated everything seems to work fine. However, I think > the reference to the subpage has a problem in the XML output. The > subpage has id "subpage1" but the reference links to > "subpage1_1subpage1". This is the output when index.xml is processed > with combine.xslt is shown below. Is this a bug? Anyone knows how I > could bypass this when processing the xml output? Thanks in advance! > > > <?xml version="1.0" standalone="yes"?> > <doxygen version="1.8.3"><compounddef > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="bug_8c" > kind="file"> > <compoundname>bug.c</compoundname> > <briefdescription> > </briefdescription> > <detaileddescription> > </detaileddescription> > <programlisting> > <codeline lineno="1"/> > </programlisting> > <location file="C:/Users/Desktop/bug/bug.c"/> > </compounddef><compounddef > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="page1" > kind="page"> > <compoundname>page1</compoundname> > <title>My Page</title> > <innerpage refid="subpage1">My Subpage</innerpage> > <detaileddescription> > <para>In this page there is one subpage: -<ref > refid="subpage1_1subpage1" kindref="member">My Subpage</ref> </para> > </detaileddescription> > </compounddef><compounddef > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="subpage1" > kind="page"> > <compoundname>subpage1</compoundname> > <title>My Subpage</title> > <detaileddescription> > <para>This page is a subpage of <ref refid="page1" > kindref="compound">My Page</ref>. It cannot be referenced: <ref > refid="subpage1_1subpage1" kindref="member">My Subpage</ref> </para> > </detaileddescription> > </compounddef><compounddef > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="indexpage" > kind="page"> > <compoundname>index</compoundname> > <title>Example of bug</title> > <detaileddescription> > <para>This will show that references to subpages are not correctly > formatted: <ref refid="subpage1_1subpage1" kindref="member">My > Subpage</ref> </para> </detaileddescription> > </compounddef></doxygen> > > ------------------------------------------------------------------------------ > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and > much more. Get web development skills now with LearnDevNow - > 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122812 > _______________________________________________ > Doxygen-users mailing list > Doxygen-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/doxygen-users ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users