193 |
<xsl:param name="p_show_class"/> |
<xsl:param name="p_show_class"/> |
194 |
<xsl:param name="p_show_use"/> |
<xsl:param name="p_show_use"/> |
195 |
<xsl:param name="p_top"/> |
<xsl:param name="p_top"/> |
196 |
|
<xsl:param name="p_show_deprecated" select="1"/> |
197 |
<xsl:variable name="v_navbar_class"> |
<xsl:variable name="v_navbar_class"> |
198 |
<xsl:choose> |
<xsl:choose> |
199 |
<xsl:when test="$p_top"> |
<xsl:when test="$p_top"> |
254 |
<xsl:with-param name="p_enabled" select="$p_show_full_tree"/> |
<xsl:with-param name="p_enabled" select="$p_show_full_tree"/> |
255 |
</xsl:call-template> |
</xsl:call-template> |
256 |
</xsl:if> |
</xsl:if> |
257 |
|
<xsl:if test="not($gjdoc.option.nodeprecatedlist)"> |
258 |
|
<xsl:call-template name="output_navlink"> |
259 |
|
<xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'deprecated.html')"/> |
260 |
|
<xsl:with-param name="p_label" select="'Deprecated'"/> |
261 |
|
<xsl:with-param name="p_enabled" select="$p_show_deprecated"/> |
262 |
|
</xsl:call-template> |
263 |
|
</xsl:if> |
264 |
<xsl:if test="not($gjdoc.option.nohelp)"> |
<xsl:if test="not($gjdoc.option.nohelp)"> |
265 |
<xsl:call-template name="output_navlink"> |
<xsl:call-template name="output_navlink"> |
266 |
<xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'help.html')"/> |
<xsl:with-param name="p_href" select="concat($gjdoc.pathtoroot, 'help.html')"/> |
351 |
</title> |
</title> |
352 |
</xsl:template> |
</xsl:template> |
353 |
|
|
354 |
|
<xsl:template name="get_qualified_type"> |
355 |
|
<xsl:param name="p_typename"/> |
356 |
|
<xsl:variable name="v_plaintype"> |
357 |
|
<xsl:choose> |
358 |
|
<xsl:when test="contains($p_typename,'[')"> |
359 |
|
<xsl:value-of select="normalize-space(substring-before($p_typename, '['))"/> |
360 |
|
</xsl:when> |
361 |
|
<xsl:otherwise> |
362 |
|
<xsl:value-of select="$p_typename"/> |
363 |
|
</xsl:otherwise> |
364 |
|
</xsl:choose> |
365 |
|
</xsl:variable> |
366 |
|
<xsl:variable name="v_containingpackage"> |
367 |
|
<xsl:value-of select="ancestor-or-self::gjdoc:classdoc/gjdoc:containingPackage/attribute::name"/> |
368 |
|
</xsl:variable> |
369 |
|
<xsl:choose> |
370 |
|
<xsl:when test="document('index.xml', /)/gjdoc:rootdoc/gjdoc:classdoc[attribute::name=$v_plaintype]/gjdoc:containingPackage[attribute::name=$v_containingpackage]"> |
371 |
|
<xsl:value-of select="$v_containingpackage"/> |
372 |
|
<xsl:text>.</xsl:text> |
373 |
|
</xsl:when> |
374 |
|
<xsl:when test="document('index.xml', /)/gjdoc:rootdoc/gjdoc:classdoc[attribute::name=$v_plaintype]/gjdoc:containingPackage[attribute::name='java.lang']"> |
375 |
|
<xsl:text>java.lang.</xsl:text> |
376 |
|
</xsl:when> |
377 |
|
</xsl:choose> |
378 |
|
<xsl:value-of select="$p_typename"/> |
379 |
|
</xsl:template> |
380 |
|
|
381 |
|
|
382 |
|
<xsl:template name="output_link_tag"> |
383 |
|
<xsl:param name="p_contexturl"/> |
384 |
|
<xsl:variable name="v_see"> |
385 |
|
<xsl:choose> |
386 |
|
<xsl:when test="contains(., '(')"> |
387 |
|
<xsl:value-of select="normalize-space(substring-before(., '('))"/> |
388 |
|
<xsl:text>(</xsl:text> |
389 |
|
<xsl:call-template name="resolve_parameter_list"> |
390 |
|
<xsl:with-param name="p_anchor"> |
391 |
|
<xsl:value-of select="normalize-space(substring-before(substring-after(., '('), ')'))"/> |
392 |
|
</xsl:with-param> |
393 |
|
</xsl:call-template> |
394 |
|
<xsl:text>)</xsl:text> |
395 |
|
</xsl:when> |
396 |
|
<xsl:otherwise> |
397 |
|
<xsl:value-of select="."/> |
398 |
|
</xsl:otherwise> |
399 |
|
</xsl:choose> |
400 |
|
</xsl:variable> |
401 |
|
<xsl:variable name="v_class"> |
402 |
|
<xsl:choose> |
403 |
|
<xsl:when test="contains(., '#')"> |
404 |
|
<xsl:value-of select="normalize-space(substring-before(., '#'))"/> |
405 |
|
</xsl:when> |
406 |
|
<xsl:otherwise> |
407 |
|
<xsl:value-of select="normalize-space(.)"/> |
408 |
|
</xsl:otherwise> |
409 |
|
</xsl:choose> |
410 |
|
</xsl:variable> |
411 |
|
<xsl:variable name="v_anchor" select="normalize-space(substring-after(., '#'))"/> |
412 |
|
<xsl:variable name="v_seeanchor"> |
413 |
|
<xsl:if test="contains($v_see, '#')"> |
414 |
|
<xsl:value-of select="concat('#', normalize-space(substring-after($v_see, '#')))"/> |
415 |
|
</xsl:if> |
416 |
|
</xsl:variable> |
417 |
|
<xsl:variable name="v_classname" select="document('index.xml', /)/gjdoc:rootdoc/gjdoc:classdoc[attribute::name=$v_class]/attribute::qualifiedtypename"/> |
418 |
|
<xsl:variable name="v_classnamefq" select="document('index.xml', /)/gjdoc:rootdoc/gjdoc:classdoc[attribute::qualifiedtypename=$v_class]/attribute::qualifiedtypename"/> |
419 |
|
<xsl:choose> |
420 |
|
<xsl:when test="starts-with(., '#')"> |
421 |
|
<xsl:choose> |
422 |
|
<xsl:when test="$p_contexturl"> |
423 |
|
<a href="{concat($p_contexturl, translate($v_see,' ',''))}"><xsl:value-of select="$v_anchor"/></a> |
424 |
|
</xsl:when> |
425 |
|
<xsl:otherwise> |
426 |
|
<a href="{translate($v_see,' ','')}"><xsl:value-of select="$v_anchor"/></a> |
427 |
|
</xsl:otherwise> |
428 |
|
</xsl:choose> |
429 |
|
</xsl:when> |
430 |
|
<xsl:when test="$v_classname"> |
431 |
|
<a href="{translate(concat($gjdoc.pathtoroot, translate($v_classname, '.', '/'), '.html', $v_seeanchor),' ','')}"><xsl:value-of select="translate($v_see,'#','.')"/></a> |
432 |
|
</xsl:when> |
433 |
|
<xsl:when test="$v_classnamefq"> |
434 |
|
<a href="{translate(concat($gjdoc.pathtoroot, translate($v_classnamefq, '.', '/'), '.html', $v_seeanchor),' ','')}"><xsl:value-of select="translate($v_see,'#','.')"/></a> |
435 |
|
</xsl:when> |
436 |
|
<xsl:otherwise> |
437 |
|
<xsl:value-of select="translate(., '#', '.')" disable-output-escaping="yes"/> |
438 |
|
</xsl:otherwise> |
439 |
|
</xsl:choose> |
440 |
|
</xsl:template> |
441 |
|
|
442 |
|
<xsl:template name="resolve_parameter_list"> |
443 |
|
<xsl:param name="p_anchor"/> |
444 |
|
<xsl:variable name="v_parameter"> |
445 |
|
<xsl:value-of select="normalize-space(substring-before($p_anchor, ','))"/> |
446 |
|
</xsl:variable> |
447 |
|
<xsl:variable name="v_remainder"> |
448 |
|
<xsl:value-of select="normalize-space(substring-after($p_anchor, ','))"/> |
449 |
|
</xsl:variable> |
450 |
|
<xsl:call-template name="get_qualified_type"> |
451 |
|
<xsl:with-param name="p_typename"> |
452 |
|
<xsl:choose> |
453 |
|
<xsl:when test="string-length($v_remainder)>0"> |
454 |
|
<xsl:value-of select="$v_parameter"/> |
455 |
|
</xsl:when> |
456 |
|
<xsl:otherwise> |
457 |
|
<xsl:value-of select="$p_anchor"/> |
458 |
|
</xsl:otherwise> |
459 |
|
</xsl:choose> |
460 |
|
</xsl:with-param> |
461 |
|
</xsl:call-template> |
462 |
|
|
463 |
|
<xsl:if test="string-length($v_remainder)>0"> |
464 |
|
<xsl:text>,</xsl:text> |
465 |
|
<xsl:call-template name="resolve_parameter_list"> |
466 |
|
<xsl:with-param name="p_anchor"> |
467 |
|
<xsl:value-of select="$v_remainder"/> |
468 |
|
</xsl:with-param> |
469 |
|
</xsl:call-template> |
470 |
|
</xsl:if> |
471 |
|
</xsl:template> |
472 |
|
|
473 |
</xsl:stylesheet> |
</xsl:stylesheet> |
474 |
|
|