|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Adding line breaks in Title attribute
>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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






