[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Not working mouseover text

Subject: Re: Not working mouseover text
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Nov 2009 09:09:16 +0530
Re:  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@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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.