From: SourceForge.net <no...@so...> - 2010-01-27 16:46:36
|
Bugs item #2941122, was opened at 2010-01-27 17:46 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2941122&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 Private: No Submitted By: http://bschaeling.myopenid.com/ () Assigned to: Nobody/Anonymous (nobody) Summary: Wrong CSS property to align img in XHTML 1.1 Initial Comment: The XHTML 1.1 style sheets use the wrong CSS property to left- or right-align an image. Currently this is generated for a left-aligned image: <img style="text-align:left"/> The CSS property which must be used though is float: <img style="float:left"/> To fix this lines 580 to 589 in xhtml-1_1/graphics.xsl have to be updated to: <xsl:if test="@align"> <xsl:choose> <xsl:when test="@align = 'left' or @align = 'right'"> <xsl:attribute name="style"><xsl:text>float: </xsl:text> <xsl:value-of select="@align"/> </xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="style"><xsl:text>text-align: </xsl:text> <xsl:choose> <xsl:when test="@align = 'center'">middle</xsl:when> <xsl:otherwise> <xsl:value-of select="@align"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:if> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2941122&group_id=21935 |