On 05/01/2015 10:33 AM, Dimple Mittal wrote:
I am trying the update the font color for the following tags in our
stylesheets, but I am not getting the required output. Please advise how to get
it fixed.
<!-- wintitle ========================================================== -->
<xsl:attribute-set name="wintitle">
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="color">blue</xsl:attribute>
</xsl:attribute-set>
<xsl:template match="*[contains(@class,' ui-d/wintitle ')]">
<fo:inline xsl:use-attribute-sets="wintitle">
<xsl:call-template name="commonAttributes"/>
<xsl:apply-templates/>
</fo:inline>
</xsl:templ
Here, I added color attribute, but I am not getting the wintitle in blue.
Please advise what needs to be done.
--> I cannot reproduce this problem.
In order to quickly test this, I've directly modified (not recommended
but this was just a quick test):
<XSLUtility_install_dir>/addon/config/dita/xsl/fo/userInterface.xsl
by adding:
<xsl:attribute name="color">blue</xsl:attribute>
to:
<xsl:attribute-set name="wintitle">
<xsl:attribute name="font-weight">bold</xsl:attribute>
</xsl:attribute-set>
I then generated PDF and ODT (OpenOffice) and in both cases, wintitle
elements were blue.
--> You almost certainly did a little mistake. Possible little mistakes are:
* you modified the wrong copy of userInterface.xsl;
OR
* you did not pass your customization correctly to XMLmind XSL Utility;
OR
* you expect wintitle elements to be blue in the WebHelp despite the
fact that xsl:attribute-sets such as "wintitle" only apply to XSL-FO
output formats (PDF, RTF, etc) and not to XHTML-based output formats
(HTML, EPUB, WebHelp, etc).
In the case of the last little mistake (that is, you are interested in
customizing WebHelp and not in customizing PDF), the styles of Webhelp
are all specified in CSS file:
<XSLUtility_install_dir>/addon/config/dita/xsl/webhelp/resources/webhelp.css
Simply add there:
.wintitle {
color: blue;
}
and you are done.
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support