Do not toggle when clicking on the global singletons, just open it. Also, add hyperlinks to classes if they are return values automatically. I might try to do something similar for function arguments but doing any sort of string processing in XSL is a pain.
This commit is contained in:
+10
-2
@@ -114,7 +114,7 @@
|
|||||||
<xsl:for-each select="sm:Singleton">
|
<xsl:for-each select="sm:Singleton">
|
||||||
<xsl:sort select="@name" />
|
<xsl:sort select="@name" />
|
||||||
<li>
|
<li>
|
||||||
<a href="#{@class}" onclick="Toggle('{@class}')">
|
<a href="#{@class}" onclick="Open('{@class}')">
|
||||||
<xsl:value-of select="@name" />
|
<xsl:value-of select="@name" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -186,7 +186,15 @@
|
|||||||
<tr id="{$class}_{$name}">
|
<tr id="{$class}_{$name}">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="string($elmt/@name)=$name"><td> <!-- The name must exist. -->
|
<xsl:when test="string($elmt/@name)=$name"><td> <!-- The name must exist. -->
|
||||||
<xsl:value-of select="$elmt/@return" />
|
<xsl:choose>
|
||||||
|
<!-- XXX: /Lua/Classes/sm:Class[@name=$elmt/@return] does not work and I have no idea why. -->
|
||||||
|
<xsl:when test="boolean(//sm:Class[@name=$elmt/@return])">
|
||||||
|
<a href="#{$elmt/@return}" onclick="Open('{$elmt/@return}')"><xsl:value-of select="$elmt/@return" /></a>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="$elmt/@return" />
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
<xsl:value-of select="@name" />( <xsl:value-of select="$elmt/@arguments" /> )
|
<xsl:value-of select="@name" />( <xsl:value-of select="$elmt/@arguments" /> )
|
||||||
</td><td><xsl:apply-templates select="$elmt" mode="print">
|
</td><td><xsl:apply-templates select="$elmt" mode="print">
|
||||||
|
|||||||
Reference in New Issue
Block a user