From: SourceForge.net <no...@so...> - 2006-03-14 02:42:07
|
Bugs item #1449319, was opened at 2006-03-14 13:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1449319&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: 5 Submitted By: Ian Barnes (ian_barnes) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong levels for bridgeheads in XHTML Initial Comment: In XHTML output, bridgeheads come out too large. I checked the generated XHTML code, and sure enough, <bridgehead renderas="sect1"> gets rendered as <h1>, while <sect1><title> gets rendered as <h2>. In xhtml/sections.xsl I found the following code. <!-- HTML H level is one higher than section level --> <xsl:variable name="hlevel"> <xsl:choose> <xsl:when test="@renderas = 'sect1'">1</xsl:when> <xsl:when test="@renderas = 'sect2'">2</xsl:when> <xsl:when test="@renderas = 'sect3'">3</xsl:when> <xsl:when test="@renderas = 'sect4'">4</xsl:when> <xsl:when test="@renderas = 'sect5'">5</xsl:when> <xsl:otherwise> <xsl:value-of select="$clevel + 1"/> </xsl:otherwise> </xsl:choose> </xsl:variable> Looks to me like the comment is correct but the code is wrong. Should read: <!-- HTML H level is one higher than section level --> <xsl:variable name="hlevel"> <xsl:choose> <xsl:when test="@renderas = 'sect1'">2</xsl:when> <xsl:when test="@renderas = 'sect2'">3</xsl:when> <xsl:when test="@renderas = 'sect3'">4</xsl:when> <xsl:when test="@renderas = 'sect4'">5</xsl:when> <xsl:when test="@renderas = 'sect5'">6</xsl:when> <xsl:otherwise> <xsl:value-of select="$clevel + 1"/> </xsl:otherwise> </xsl:choose> </xsl:variable> I haven't checked whether the same error exists in plain HTML. A quick look at PDF output generated by the FO stylesheets & FOP suggests that the FO stylesheets might be OK. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1449319&group_id=21935 |