Menu

#3 interfaces use "implements" iso "extends"

open
nobody
None
5
2005-10-05
2005-10-05
Anonymous
No

Interfaces extending other interfaces are using
"implements" iso "extends".

I traced it down to line 530 of xml2fo.xsl:

<fo:block>implements

It needs to distinguish between classes and interfaces.

(from: rian.wouters@philips.com)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    the following fixes this:

    in xml2fo.xsl change

    <!-- interfaces if any -->
    <xsl:if test="interface[@direct = 'true']">
    <fo:block>implements

    into

    <!-- interfaces if any -->
    <xsl:variable name="typename">
    <xsl:choose>
    <xsl:when test="@interface = 'true'">extends
    </xsl:when>
    <xsl:otherwise>implements </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:if test="interface[@direct = 'true']">
    <fo:block>
    <xsl:value-of select="$typename" />

     
  • Nobody/Anonymous

    Logged In: NO

    strongly related to this problem:

    "All implemented Interfaces:"
    iso
    "All superinterfaces:"

    fix:

    replace

    <fo:block font-weight="bold">All Implemented
    Interfaces:</fo:block>

    by

    <xsl:if test="@interface = 'true'">
    <fo:block font-weight="bold">All
    Superinterfaces:</fo:block>
    </xsl:if>
    <xsl:if test="@interface = 'false'">
    <fo:block font-weight="bold">All Implemented
    Interfaces:</fo:block>
    </xsl:if>

    in xml2fo.xsl

     
  • Khurshidali Shaikh

    Logged In: YES
    user_id=271087

    Will be fixed in next release

     

Log in to post a comment.

MongoDB Logo MongoDB