Simplify. I had no idea I could use {@name}.
This commit is contained in:
+8
-21
@@ -91,8 +91,7 @@
|
|||||||
<xsl:for-each select="sm:Singleton">
|
<xsl:for-each select="sm:Singleton">
|
||||||
<xsl:sort select="@name" />
|
<xsl:sort select="@name" />
|
||||||
<li>
|
<li>
|
||||||
<a>
|
<a href="#{@class}">
|
||||||
<xsl:attribute name="href">#<xsl:value-of select="@class" /></xsl:attribute>
|
|
||||||
<xsl:value-of select="@name" />
|
<xsl:value-of select="@name" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -115,25 +114,17 @@
|
|||||||
|
|
||||||
<xsl:template match="sm:Class">
|
<xsl:template match="sm:Class">
|
||||||
<div>
|
<div>
|
||||||
<a>
|
<a name="{@name}" class="trigger" onClick="Toggle('{@name}')">
|
||||||
<xsl:attribute name="name"><xsl:value-of select="@name" /></xsl:attribute>
|
<img src="closed.gif" id="img_{@name}" />
|
||||||
</a>
|
|
||||||
<a class="trigger">
|
|
||||||
<xsl:attribute name="onClick">Toggle('<xsl:value-of select="@name" />')</xsl:attribute>
|
|
||||||
<img src="closed.gif">
|
|
||||||
<xsl:attribute name="id">img_<xsl:value-of select="@name" /></xsl:attribute>
|
|
||||||
</img>
|
|
||||||
Class <xsl:value-of select="@name" />
|
Class <xsl:value-of select="@name" />
|
||||||
</a>
|
</a>
|
||||||
<xsl:if test="@base != ''">
|
<xsl:if test="@base != ''">
|
||||||
<xsl:text> : </xsl:text>
|
<xsl:text> : </xsl:text>
|
||||||
<a>
|
<a href="#{@base}">
|
||||||
<xsl:attribute name="href">#<xsl:value-of select="@base" /></xsl:attribute>
|
|
||||||
<xsl:value-of select="@base" />
|
<xsl:value-of select="@base" />
|
||||||
</a>
|
</a>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<ul style="display: none">
|
<ul style="display: none" id="list_{@name}">
|
||||||
<xsl:attribute name="id">list_<xsl:value-of select="@name" /></xsl:attribute>
|
|
||||||
<xsl:apply-templates select="sm:Function">
|
<xsl:apply-templates select="sm:Function">
|
||||||
<xsl:sort select="@name" />
|
<xsl:sort select="@name" />
|
||||||
</xsl:apply-templates>
|
</xsl:apply-templates>
|
||||||
@@ -171,14 +162,10 @@
|
|||||||
|
|
||||||
<xsl:template match="sm:Enum">
|
<xsl:template match="sm:Enum">
|
||||||
<div>
|
<div>
|
||||||
<a class="trigger">
|
<a class="trigger" onClick="Toggle('{@name}')">
|
||||||
<xsl:attribute name="onClick">Toggle('<xsl:value-of select="@name" />')</xsl:attribute>
|
<img src="closed.gif" id="img_{@name}" />
|
||||||
<img src="closed.gif">
|
|
||||||
<xsl:attribute name="id">img_<xsl:value-of select="@name" /></xsl:attribute>
|
|
||||||
</img>
|
|
||||||
Enum <xsl:value-of select="@name" /></a>
|
Enum <xsl:value-of select="@name" /></a>
|
||||||
<table style="display: none">
|
<table style="display: none" id="list_{@name}">
|
||||||
<xsl:attribute name="id">list_<xsl:value-of select="@name" /></xsl:attribute>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th>Enum</th>
|
<th>Enum</th>
|
||||||
<th>Value</th>
|
<th>Value</th>
|
||||||
|
|||||||
Reference in New Issue
Block a user