Automated Content Transformation Software
Home | Contact Us | 1-877-693-2967 | Support Login
Support Central
Resource Center –View All –WebWork's Blog –Newsletter (The Works) –Webinar Library –Video Library –Whitepaper Library –Events
Documentation –ePublisher Manuals –Wiki –Tech Notes
My Support –Support Login –Support Guidelines –Request Support Login –Support FAQ
ePublisher –System Requirements –Releases –Videos –Webinars –License Terms –Downloads
Latest Release
ePublisher 2010.2 (Mobile Plus)
Website Deliverables - webworks.com Previous Next Index Print
AltText Work Around

AltText Work Around

Last Modified: July 12, 2006

ePublisher Pro

The purpose of this article is to explain how to make the AltText attribute function correctly.

AltText is a common HTML element in many web pages, but it behaves differently in different browsers. Often, the alt attribute is incorrectly referred to as an image’s alt tag. It is not intended to provide "pop up" text or tooltip when a user's mouse hovers over the image, though AltText has been presented in this way in some web browsers; actually HTML's title attribute is intended for supplementary information that can be used in this way.

Internet Explorer passes the AltText attribute alt as a tooltip when a user’s mouse hovers over the image and we have many customers who expect this behavior when they are viewed in FireFox. The work around provided below will result in tooltip-style behavior of AltText in FireFox.

Some project modifications cannot be made through the GUI so we have created this article to provide steps for modifying the content.xml file using project target overrides. When you create a project target override you are only overriding the specific file that you want to modify; you are also ensuring that these modifications are not lost when installing updates to ePublisher Pro. For more information on how to perform a project target override, please see “Creating Project Target Overrides”.

*

content.xsl file is located by default in: C:\Program Files\WebWorks\ePublisher Pro\Formats\WebWorks Help 5.0\Transforms.

Modifiying the content.xsl file:

1)

Open content.xsl file in notepad.

2)

Search for the following code:

<xsl:attribute name=”alt”>

<xsl:value-of-select=”$VarAltText”/>

</xsl:attribute>

*

In content.xsl this code is declared three times in the content.xsl file. The follow­ing changes must be applied to each instance to achieve the desired results.

3)

Please insert the following code below the top code:

<xsl:attribute name=”title”>

<xsl:value-of-select=”$VarAltText”/>

</xsl:attribute>

4)

Please Save your content.xsl.

5)

Close content.xsl.

6)

In ePublisher Pro, select project > Regenerate All.

w3c logo XHTML 1.0 Valid XHTML 1.0 CSS Valid CSS WAI-A Web Accessibility Initiative, Level A Conformance


Products | Services | Solutions | Partners | Resources | Support | Company | News | Contact | Site Map