The attached patch causes members without <since> elements to use the parent type's <since> element. This is desirable behavior as otherwise every member of a "new" type has to carry a redundant <since> element.
Based on my complete ignorance of XSL, it's likely there is a cleaner way to do this, but this patch seems to accomplish the desired behavior. I await the feedback of the XSL masters. -- Mike Kestner <[EMAIL PROTECTED]>
Index: mono-ecma.xsl =================================================================== --- mono-ecma.xsl (revision 45981) +++ mono-ecma.xsl (working copy) @@ -547,7 +547,14 @@ <!-- summary --> - <xsl:apply-templates select="Docs/since" /> + <xsl:variable name="since" select="Docs/since" /> + + <xsl:if test="$since"> + <xsl:apply-templates select="Docs/since" /> + </xsl:if> + <xsl:if test="not($since)"> + <xsl:apply-templates select="/Type/Docs/since" /> + </xsl:if> <p> <xsl:apply-templates select="Docs/summary" mode="notoppara"/>
_______________________________________________ Mono-docs-list maillist - Mono-docs-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-docs-list