Hi Ken,
Thanks lot, its working fine.
Thanks,
Selva
-----Original Message-----
From: G. Ken Holman [mailto:gkholman(_at_)CraneSoftwrights(_dot_)com]
Sent: Saturday, November 28, 2009 9:09 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Not working mouseover text
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(_at_)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(_at_)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="{(_at_)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(_at_)CraneSoftwrights(_dot_)com
Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
Confidentiality Notice: This transmittal is a confidential communication. If
you are not the intended recipient, you are hereby notified that you have
received this transmittal in error and that any review, dissemination,
distribution or copying of this transmittal is strictly prohibited. If you
have received this communication in error, please notify this office
immediately by reply and immediately delete this message and all of its
attachments, if any.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--