Larry Evans wrote:
I've got a general template class:

  template<typename X, typename Y>class A{...};

and a specialization of that class:

  template<typename X>class A<X,SpecificY>{...};

and I want to have a "see also" in the doc for the general template.
The <classname>A</class> provides a link to the general template,
but how do I provide the link to the specialization.  I've tried,
in A.specialization.xml to put:

     <class-specialization
      name="A"
      id="A.specialization"
     >

      <template>
        <template-type-parameter name="X"/>
      </template>
      <specialization>
        <template-arg>X</template-arg>
        <template-arg>SpecificY</template-arg>
      </specialization>

and then use <link linkend="A.specialization">A</link>
in A.xml; however, I get the error:

  Error: no ID for constraint linkend: A.specialization.

What should I do?

Hi Larry!

I took a quick peek at your problem (BoostBook stylesheets and doxygen docs are not exactly my specialty...). It looks like supplying an ID in <class-specialization> is not enough. I think you'll need to hack the stylesheet (somewhere in type.xsl, though I haven't zeroed in on the exact location yet) to make it emit an <anchor> or something like that (no DocBook expert either), containing the ID you wish to reference. After that you should have no problem with your <link>.

I hope that will help you for now... I'll take a deeper look at it later.

Regards,


João


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to