Ticket #1192: doxygen2boostbook.patch
File doxygen2boostbook.patch, 6.6 KB (added by , 15 years ago) |
---|
-
doxygen2boostbook.xsl
183 183 <xsl:param name="in-file"/> 184 184 <xsl:param name="with-namespace-refs"/> 185 185 186 <xsl:if test="contains(string(location/attribute::file), 187 concat('/', $in-file)) "> 186 <xsl:if test="string(location/attribute::file)=$in-file"> 188 187 189 188 <!-- The short name of this class --> 190 189 <xsl:variable name="name-with-spec"> … … 239 238 240 239 <xsl:apply-templates select="briefdescription" mode="passthrough"/> 241 240 <xsl:apply-templates select="detaileddescription" mode="passthrough"/> 242 <xsl:apply-templates/> 241 <xsl:apply-templates> 242 <xsl:with-param name="in-file" select="$in-file"/> 243 </xsl:apply-templates> 243 244 </xsl:element> 244 245 </xsl:if> 245 246 </xsl:template> … … 247 248 <xsl:template name="enum"> 248 249 <xsl:param name="in-file"/> 249 250 250 <xsl:if test="contains(string(location/attribute::file), 251 concat('/', $in-file))"> 251 <xsl:if test="string(location/attribute::file)=$in-file"> 252 252 <xsl:variable name="name"> 253 253 <xsl:call-template name="strip-qualifiers"> 254 254 <xsl:with-param name="name" select="name"/> … … 348 348 <xsl:apply-templates mode="toplevel"> 349 349 <xsl:with-param name="with-namespace-refs" 350 350 select="innernamespace"/> 351 <xsl:with-param name="in-file" select=" string(compoundname)"/>351 <xsl:with-param name="in-file" select="location/attribute::file"/> 352 352 </xsl:apply-templates> 353 353 </header> 354 354 </xsl:if> … … 460 460 </xsl:when> 461 461 462 462 <xsl:when test="@kind='function'"> 463 <xsl:call-template name="function" /> 463 <xsl:call-template name="function"> 464 <xsl:with-param name="in-file" select="$in-file"/> 465 </xsl:call-template> 464 466 </xsl:when> 465 467 466 468 <xsl:when test="@kind='typedef'"> 467 <xsl:call-template name="typedef" /> 469 <xsl:call-template name="typedef"> 470 <xsl:with-param name="in-file" select="$in-file"/> 471 </xsl:call-template> 468 472 </xsl:when> 469 473 470 474 <xsl:otherwise> … … 601 605 <method-group name="public static functions"> 602 606 <xsl:apply-templates> 603 607 <xsl:with-param name="in-section" select="true()"/> 608 <xsl:with-param name="in-file" select="$in-file"/> 604 609 </xsl:apply-templates> 605 610 </method-group> 606 611 </xsl:when> … … 609 614 <method-group name="protected static functions"> 610 615 <xsl:apply-templates> 611 616 <xsl:with-param name="in-section" select="true()"/> 617 <xsl:with-param name="in-file" select="$in-file"/> 612 618 </xsl:apply-templates> 613 619 </method-group> 614 620 </xsl:when> … … 617 623 <method-group name="private static functions"> 618 624 <xsl:apply-templates> 619 625 <xsl:with-param name="in-section" select="true()"/> 626 <xsl:with-param name="in-file" select="$in-file"/> 620 627 </xsl:apply-templates> 621 628 </method-group> 622 629 </xsl:when> 623 630 <xsl:when test="@kind='public-func'"> 624 631 <xsl:variable name="members" select="./memberdef"/> 625 632 <xsl:variable name="num-internal-only"> 626 <xsl:value-of 633 <xsl:value-of 627 634 select="count($members[contains(detaileddescription/para, 628 635 'INTERNAL ONLY')])"/> 629 636 </xsl:variable> … … 631 638 <method-group name="public member functions"> 632 639 <xsl:apply-templates> 633 640 <xsl:with-param name="in-section" select="true()"/> 641 <xsl:with-param name="in-file" select="$in-file"/> 634 642 </xsl:apply-templates> 635 643 </method-group> 636 644 <xsl:apply-templates/> … … 640 648 <method-group name="protected member functions"> 641 649 <xsl:apply-templates> 642 650 <xsl:with-param name="in-section" select="true()"/> 651 <xsl:with-param name="in-file" select="$in-file"/> 643 652 </xsl:apply-templates> 644 653 </method-group> 645 654 <xsl:apply-templates/> … … 655 664 <method-group name="private member functions"> 656 665 <xsl:apply-templates> 657 666 <xsl:with-param name="in-section" select="true()"/> 667 <xsl:with-param name="in-file" select="$in-file"/> 658 668 </xsl:apply-templates> 659 669 </method-group> 660 670 </xsl:if> 661 671 <xsl:apply-templates/> 662 672 </xsl:when> 663 673 <xsl:when test="@kind='public-static-attrib' or @kind='public-attrib'"> 664 <xsl:apply-templates/> 674 <xsl:apply-templates> 675 <xsl:with-param name="in-file" select="$in-file"/> 676 </xsl:apply-templates> 665 677 </xsl:when> 666 678 <xsl:when test="@kind='public-type'"> 667 <xsl:apply-templates/> 679 <xsl:apply-templates> 680 <xsl:with-param name="in-file" select="$in-file"/> 681 </xsl:apply-templates> 668 682 </xsl:when> 669 683 <xsl:when test="@kind='func'"> 670 684 <xsl:apply-templates> … … 687 701 </xsl:apply-templates> 688 702 </xsl:when> 689 703 <xsl:when test="@kind='user-defined'"> 690 <xsl:apply-templates/> 704 <xsl:apply-templates> 705 <xsl:with-param name="in-file" select="$in-file"/> 706 </xsl:apply-templates> 691 707 </xsl:when> 692 708 <xsl:when test="@kind=''"> 693 709 <xsl:apply-templates select="memberdef[generate-id() = … … 791 807 <xsl:template name="typedef"> 792 808 <xsl:param name="in-file" select="''"/> 793 809 794 <xsl:if test="contains(string(location/attribute::file), 795 concat('/', $in-file))"> 810 <xsl:if test="string(location/attribute::file)=$in-file"> 796 811 <!-- TBD: Handle public/protected/private --> 797 812 <typedef> 798 813 <!-- Name of the type --> … … 921 936 922 937 <xsl:variable name="firstpara" 923 938 select="normalize-space(detaileddescription/para[1])"/> 924 <xsl:if test="contains(string(location/attribute::file), 925 concat('/', $in-file)) 939 <xsl:if test="string(location/attribute::file)=$in-file 926 940 and 927 941 not($firstpara=normalize-space($boost.doxygen.overload))"> 928 942 … … 1096 1110 <!-- Handle member variables --> 1097 1111 <xsl:template name="variable"> 1098 1112 <xsl:param name="in-file"/> 1099 <xsl:if test="contains(string(location/attribute::file), 1100 concat('/', $in-file))"> 1113 <xsl:if test="string(location/attribute::file)=$in-file"> 1101 1114 <data-member> 1102 1115 <xsl:attribute name="name"> 1103 1116 <xsl:value-of select="name/text()"/>