Author: ben
Date: 2007-11-05 15:38:55 -0800 (Mon, 05 Nov 2007)
New Revision: 7141
Modified:
openlaszlo/branches/paperpie/docs/src/xsl/js2doc2dbk.xsl
Log:
further improvements to attribute list categories
Modified: openlaszlo/branches/paperpie/docs/src/xsl/js2doc2dbk.xsl
===================================================================
--- openlaszlo/branches/paperpie/docs/src/xsl/js2doc2dbk.xsl 2007-11-05
23:35:46 UTC (rev 7140)
+++ openlaszlo/branches/paperpie/docs/src/xsl/js2doc2dbk.xsl 2007-11-05
23:38:55 UTC (rev 7141)
@@ -1140,6 +1140,9 @@
not just whether it's a member of a set. -->
<xsl:variable name="issetter" select="count( ancestor::[EMAIL
PROTECTED]'setters'] ) > 0" />
+
+
+
<xsl:choose>
<xsl:when test="$hassetter and not($issetter) and $isinstancevar">
<!-- If there is a setter, but this isn't it, then show this one's
doc.
@@ -1159,9 +1162,16 @@
<xsl:when test="$hassetter and not($issetter) and not($isinstancevar)">
<!-- TROUBLE. If we've got a setter, but this isn't it, then this
should
be an instance variable. Otherwise it's weird. We'll output it
- as a non-setter attribute, and see what happens. -->
+ as a non-setter attribute, and see what happens.
+ I suspect this is where LzView.clip and LzView.stretches go. -->
<xsl:message>Warning on attribute list in member-data-row:
- <xsl:value-of select="$jsname"/> has a setter, but is neither a
setter nor an instance variable.</xsl:message>
+ <xsl:value-of select="$jsname"/> has a setter, but is neither a
setter nor an instance variable.
+ </xsl:message>
+ <xsl:call-template name="unique-attribute">
+ <xsl:with-param name="issetter" select="$issetter"></xsl:with-param>
+ <xsl:with-param name="isinstancevar"
select="$isinstancevar"></xsl:with-param>
+ <xsl:with-param name="isinitarg"
select="$isinitarg"></xsl:with-param>
+ </xsl:call-template>
</xsl:when>
<xsl:otherwise>
<!-- This handles all the cases where there is no setter. It's easy,
we just
@@ -1235,13 +1245,13 @@
-->
<entry>
<xsl:choose>
- <xsl:when test="@modifiers = 'final'">final</xsl:when>
+ <xsl:when test="@modifiers = 'final'">initialize-only</xsl:when>
<xsl:when test="$isinstancevar and not(@modifiers =
'final')">read/write</xsl:when>
- <xsl:otherwise>special/strange (TODO: ben)</xsl:otherwise>
+ <xsl:when test="not($isinstancevar) and $issetter">(TODO: declare
attribute)</xsl:when>
+ <xsl:otherwise>(FIXME: otherwise)</xsl:otherwise>
</xsl:choose>
- <xsl:if test="not($isinstancevar) and $issetter">virtual </xsl:if>
- <xsl:if test="$isinitarg">initarg </xsl:if>
+ <xsl:if test="$isinitarg"> (initarg) </xsl:if>
</entry>
</row>
<xsl:if test="doc/text">
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins