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

Reply via email to