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

Adding line breaks in Title attribute

Subject: Adding line breaks in Title attribute
From: Carl Jenkins <carljenkins@xxxxxxxxx>
Date: Tue, 26 Apr 2005 06:08:03 -0500
carl jenkins
>Do you know what HTML you want your transformation to generate?

Please excuse my ignorance, but I don't quite understand the question.

The piece of code in question is shown below.In the code below there
is a title attribute for the button, I need to get a line break
between the last name and disposition fields in that attribute, I did
try the solution proposed by Omprakash.V and didn't seem to get that
to work.

The code below is inside it's own template, and being called for each
<order> in the xml. So there will be a few buttons that are built on
the page. When I mouse over the button, I'd like to see something like
this.

Sally Someone

Billed

<xsl:for-each select="order">
   <xsl:call-template name="addOrderButton"/>
</xsl:for-each>



<xsl:template name="addOrderButton">

document.write('<button id="item{@num}" title="{first_name}
{last_name} {order_disposition}" onmouseover="tabMouseOver(this);"
onmouseout="tabMouseOut(this);" content="item{@num}Div"
onclick="javascript:checkOrderStatus('+ statusCount +
');javascript:showItemAt(' + _tabCount +
');javascript:updateCurrentUsers('+ {order_detail_id} + ');">');
    document.write('<xsl:value-of select="external_order_number"/>');
    document.write('</button>');
</xsl:template>



Thanks

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-2013 All Rights Reserved.