Re: [xsl] Not working mouseover text

Subject: Re: [xsl] Not working mouseover text
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Nov 2009 09:09:16 +0530
At 2009-11-28 08:40 +0530, Selvaganesh wrote:
Hi All,

I have problem for mouseover text, these text pick-up from the attribute
value of input xml.

XML file:
<para>This section introduces <sccc:legis-cite
sccc:title="xsl-list@mulberrytech" sccc:year="2009" sccc:chapter="24"
sccc:section="Part1" sccc:type="statute">Part 1</sccc:legis-cite> which
deals with social security.</para>

XSL file:
<xsl:template match="sccc:legis-cite">
<span style="background-color: #99FF99; font-size:17; color:Black;"
title="@sccc:title"><xsl:apply-templates/></span>
</xsl:template>

When browser view the mouseover text was showed as "@sccc:title" but I
expected "xsl-list@mulberrytech" (sccc:title attribute value from the xml
file).

In a literal result element, attribute values can engage attribute value templates by using brace brackets to evaluate an XPath expression:


title="{@sccc:title}"

Without the brace brackets, the value of the attribute will be the literal text.

I hope this helps.

. . . . . . . . . . Ken

--
Vote for your XML training:   http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread