652 |
</dl> |
</dl> |
653 |
</xsl:template> |
</xsl:template> |
654 |
|
|
|
<xsl:template name="get_qualified_type"> |
|
|
<xsl:param name="p_typename"/> |
|
|
<xsl:variable name="v_plaintype"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="contains($p_typename,'[')"> |
|
|
<xsl:value-of select="normalize-space(substring-before($p_typename, '['))"/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="$p_typename"/> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
<xsl:variable name="v_containingpackage"> |
|
|
<xsl:value-of select="ancestor-or-self::gjdoc:classdoc/gjdoc:containingPackage/attribute::name"/> |
|
|
</xsl:variable> |
|
|
<xsl:choose> |
|
|
<xsl:when test="document('index.xml', /)/gjdoc:rootdoc/gjdoc:classdoc[attribute::name=$v_plaintype]/gjdoc:containingPackage[attribute::name=$v_containingpackage]"> |
|
|
<xsl:value-of select="$v_containingpackage"/> |
|
|
<xsl:text>.</xsl:text> |
|
|
</xsl:when> |
|
|
<xsl:when test="document('index.xml', /)/gjdoc:rootdoc/gjdoc:classdoc[attribute::name=$v_plaintype]/gjdoc:containingPackage[attribute::name='java.lang']"> |
|
|
<xsl:text>java.lang.</xsl:text> |
|
|
</xsl:when> |
|
|
</xsl:choose> |
|
|
<xsl:value-of select="$p_typename"/> |
|
|
</xsl:template> |
|
|
|
|
|
<xsl:template name="resolve_parameter_list"> |
|
|
<xsl:param name="p_anchor"/> |
|
|
<xsl:variable name="v_parameter"> |
|
|
<xsl:value-of select="normalize-space(substring-before($p_anchor, ','))"/> |
|
|
</xsl:variable> |
|
|
<xsl:variable name="v_remainder"> |
|
|
<xsl:value-of select="normalize-space(substring-after($p_anchor, ','))"/> |
|
|
</xsl:variable> |
|
|
<xsl:call-template name="get_qualified_type"> |
|
|
<xsl:with-param name="p_typename"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="string-length($v_remainder)>0"> |
|
|
<xsl:value-of select="$v_parameter"/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="$p_anchor"/> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:with-param> |
|
|
</xsl:call-template> |
|
|
|
|
|
<xsl:if test="string-length($v_remainder)>0"> |
|
|
<xsl:text>,</xsl:text> |
|
|
<xsl:call-template name="resolve_parameter_list"> |
|
|
<xsl:with-param name="p_anchor"> |
|
|
<xsl:value-of select="$v_remainder"/> |
|
|
</xsl:with-param> |
|
|
</xsl:call-template> |
|
|
</xsl:if> |
|
|
</xsl:template> |
|
|
|
|
|
<xsl:template name="output_link_tag"> |
|
|
<xsl:variable name="v_see"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="contains(., '(')"> |
|
|
<xsl:value-of select="normalize-space(substring-before(., '('))"/> |
|
|
<xsl:text>(</xsl:text> |
|
|
<xsl:call-template name="resolve_parameter_list"> |
|
|
<xsl:with-param name="p_anchor"> |
|
|
<xsl:value-of select="normalize-space(substring-before(substring-after(., '('), ')'))"/> |
|
|
</xsl:with-param> |
|
|
</xsl:call-template> |
|
|
<xsl:text>)</xsl:text> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="."/> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
<xsl:variable name="v_class"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="contains(., '#')"> |
|
|
<xsl:value-of select="normalize-space(substring-before(., '#'))"/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="normalize-space(.)"/> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
<xsl:variable name="v_anchor" select="normalize-space(substring-after(., '#'))"/> |
|
|
<xsl:variable name="v_seeanchor"> |
|
|
<xsl:if test="contains($v_see, '#')"> |
|
|
<xsl:value-of select="concat('#', normalize-space(substring-after($v_see, '#')))"/> |
|
|
</xsl:if> |
|
|
</xsl:variable> |
|
|
<xsl:variable name="v_classname" select="document('index.xml', /)/gjdoc:rootdoc/gjdoc:classdoc[attribute::name=$v_class]/attribute::qualifiedtypename"/> |
|
|
<xsl:variable name="v_classnamefq" select="document('index.xml', /)/gjdoc:rootdoc/gjdoc:classdoc[attribute::qualifiedtypename=$v_class]/attribute::qualifiedtypename"/> |
|
|
<xsl:choose> |
|
|
<xsl:when test="starts-with(., '#')"> |
|
|
<a href="{translate($v_see,' ','')}"><xsl:value-of select="$v_anchor"/></a> |
|
|
</xsl:when> |
|
|
<xsl:when test="$v_classname"> |
|
|
<a href="{translate(concat($gjdoc.pathtoroot, translate($v_classname, '.', '/'), '.html', $v_seeanchor),' ','')}"><xsl:value-of select="translate($v_see,'#','.')"/></a> |
|
|
</xsl:when> |
|
|
<xsl:when test="$v_classnamefq"> |
|
|
<a href="{translate(concat($gjdoc.pathtoroot, translate($v_classnamefq, '.', '/'), '.html', $v_seeanchor),' ','')}"><xsl:value-of select="translate($v_see,'#','.')"/></a> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="translate(., '#', '.')" disable-output-escaping="yes"/> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:template> |
|
|
|
|
655 |
<xsl:template name="output_see_tags"> |
<xsl:template name="output_see_tags"> |
656 |
<xsl:if test="gjdoc:tags/gjdoc:tag[attribute::kind='@see']"> |
<xsl:if test="gjdoc:tags/gjdoc:tag[attribute::kind='@see']"> |
657 |
<div class="classdoc-tag-section-header">See Also:</div> |
<div class="classdoc-tag-section-header">See Also:</div> |