Subject: RE: [xsl] Adding line breaks in Title attribute From: cknell@xxxxxxxxxx Date: Tue, 26 Apr 2005 07:39:32 -0400 |
You have shown us "something like this ..." and a template. I think I can say with confidence that when someone on the lists wants to know "what HTML you want your transformation to generate", he is asking for the HTML output you want to achieve. If you reply with the actual HTML markup you are hoping to produce along with the XML input you are working from, someone will likely be able to help. A description of what you want to produce is not nearly as useful as the actual output you want to produce. It appears that you have an <order> element in your source file with a structure like this: <order num=""> <first_name /> <last_name /> <order_disposition /> <order_detail_id /> <external_order_number /> </order> and the output you want to produce is what, exactly? Please show the HTML markup you want on the page when the transformation is over. If the input structure I have inferred is incorrect, please show the actual structure of an <order> element in you source document. -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Carl Jenkins <carljenkins@xxxxxxxxx> Sent: Tue, 26 Apr 2005 06:08:03 -0500 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Adding line breaks in Tit, Michael Kay | Thread | [xsl] Adding line breaks in Title a, Carl Jenkins |
[xsl] Adding line breaks in Title a, Carl Jenkins | Date | [xsl] Revision Marking in HTML, Nadia . Swaby |
Month |