From: SourceForge.net <no...@so...> - 2006-04-13 11:06:12
|
Feature Requests item #1446951, was opened at 2006-03-10 13:13 Message generated for change (Comment added) made by xmldoc You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373750&aid=1446951&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: HTML Status: Open Resolution: None >Priority: 3 Submitted By: Daniel Leidert (dleidert) >Assigned to: Michael Smith (xmldoc) Summary: html: processing refentry leads to missing AUTHORS section Initial Comment: If you process a manpage (refentry) source with the HTML stylesheets, the resulting page misses the AUTHORS section. To fix this, code similar to the following should do: <xsl:template match="refentry"> <xsl:apply-templates/> <xsl:choose> <xsl:when test="refentryinfo//author"> <xsl:apply-templates select="refentryinfo" mode="authorsect"/> </xsl:when> </xsl:choose> </xsl:template> <xsl:template match="refentryinfo" mode="authorsect"> <div class="refsect1"> <xsl:call-template name="language.attribute"/> <xsl:call-template name="anchor"> <xsl:with-param name="conditional" select="0"/> </xsl:call-template> <xsl:text disable-output-escaping="yes"><![CDATA[<h2>AUTHOR]]></xsl:text> <xsl:if test="count(.//author)+count(.//othercredit)>1"> <xsl:text>S</xsl:text> </xsl:if> ... test for author, othercredit and editor elements and apply these as part of one paragraph for authors, one for contributors, one for editors </div> </xsl:template> What do you think about this? The code is quite similar to the manpage-ones. Regards, Daniel ---------------------------------------------------------------------- >Comment By: Michael Smith (xmldoc) Date: 2006-04-13 20:06 Message: Logged In: YES user_id=118135 This is a low priority because users generally do not put author information on Refentry per-Refentry but instead but instead group Refenty instances together and put them into Reference or Article or something, and then put author data in the *info for that Reference or Article. When the set is output in HTML, that information is available in the place where users would normally expect to find it (on the titlepage of the set). But I agree this is a nice-to-have. It is just lower priority relative to some of the other open feature requests. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373750&aid=1446951&group_id=21935 |