Apache OpenOffice (AOO) Bugzilla – Issue 15602
PATCH: Docbook does not support Emphasis Bold
Last modified: 2005-04-14 13:14:08 UTC
The current XSLT filters listed below, do not support the Emphasis tag with the role assignment to bold. e.g. sofftodocbookheadings_article.xsl docbooktosoffheadings.xsl <emphasis role="bold"> Just some Text </emphasis> The following tells the docbook style sheet to change the default presentation of the <emphasis> tag to bold instead italic. The following code adds this feature Should be added within the “<xsl:template match="text:span">“ section of the XSLT. Add to file document: sofftodocbookheadings_article.xsl <!-- Change Made By Kevin Fowlks (fowlks@msu.edu) June 4th, 2003 --> <xsl:when test="@text:style-name='Emphasis Bold'"> <xsl:element name="emphasis"> <xsl:attribute name = "role" > <xsl:text >bold</xsl:text> </xsl:attribute> <xsl:value-of select="."/> </xsl:element> </xsl:when> Add to file: docbooktosoffheadings.xsl <xsl:template match="emphasis"> <!-- Change Made By Kevin Fowlks (fowlks@msu.edu) June 4th, 2003 --> <xsl:element name="text:span"> <xsl:choose> <xsl:when test="@role"> <xsl:attribute name="text:style-name">Emphasis Bold</xsl:attribute> <xsl:apply-templates/> </xsl:when> <xsl:otherwise> <xsl:attribute name="text:style-name">Emphasis</xsl:attribute> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> </xsl:element> </xsl:template>
Aidan: Applied patch to sofftodocbookheadings_article.xsl sofftodocbookheadings_chapter.xsl and docbooktosoffheadings.xsl. Also added 'Emphasis Bold' style to xml/www/xmerge/download/DocBookTemplate.stw
Issue has ben resolved.. Thanks
.