Jump to content

jle

Members
  • Posts

    33
  • Joined

  • Last visited

jle's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi All, Below is part of my XML file that will be used with FLASH to display the data on the grapth.With this sample I have 12 values in the X-axis for the time and values in the Y-axis. <number></number> is resprent there is no value(not zero) for this given time but on the graph it always plot with zero on the graph.How to write the XML data part for the no value in this case.Your help is greatly appreciate.Thanks,JL<row> <null/> <string></string> <string>10:10</string> <string></string> <string>10:20</string> <string></string> <string>10:30</string> <string></string> <string>10:40</string> <string></string> <string>10:50</string> <string></string> <string>11:00</string> </row> <row> <string>From LAN</string> <number>69</number> <number>67</number> <number>69</number> <number>67</number> <number>69</number> <number>67</number> <number>67</number> <number>69</number> <number></number> <number></number> <number></number> <number>67</number> </row> </chart_data>
  2. Hi All,I have the checkbox is defined in the xsl file:................................ <div id="dPassthrough"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="18"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><input name="cPassthrough" type="checkbox" class="checkbox" id="cPassthrough" value="checkbox"/> </td> <td><label for="cPassthrough">Show passthrough traffic</label></td> </tr> </table></td> </tr> </table> </div>and I would like to find out if the checkbox is checked then want to add the flag="checked" in myhref below but the checkbox is not check then I don't want to add any flag to myhref.myhref = "comp_tp.htm?a_id=" + a_id + "&a_name=" + a_name Your help is greatly appreciated.Thanks,JL
  3. Thank you so very much for the help.It worked.Thanks,JP
  4. Hi all,I would like to pass the xsl parameter to javascript's parameter.So name is defined as "comp" and I would like to pass this variable to parameter of AC_FL_RunContentBasislly I would like to use $comp instead of hard coded of compression02.xml.Your help is greatly appricated.Thanks,JPMy xsl file is define as below:<xsl:param name="comp" select="'xml/comp.xml'"/>..............................................................<h2>Percent Compression</h2><script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0', 'width','680', 'height','190', 'id','charts2', 'align','', 'src','swf/charts?stage_width=680&stage_height=190&library_path=charts_library&xml_source=xml/compression02.xml', 'quality','high', 'bgcolor','#ffffff', 'name','charts2', 'swliveconnect','true', 'pluginspage','http://www.macromedia.com/go/getflashplayer', 'movie','swf/charts?stage_width=680&stage_height=190&stage_scale=2&library_path=charts_library&xml_source=xml/compression02.xml'); //end AC code--------
  5. jle

    For-each loop

    Thank you so very much! It works.Thanks a ton,JP
  6. jle

    For-each loop

    Hi all,I found the answers to most of the question except one question:I had the syntax error with the line below: <td class="grid"><img src="../images/bar.gif" width=<xsl:value-of select="cp"/> height="10"/></td>and I don't know how to fix. Please help.JP <xsl:for-each select="wx_l/wx"> <tr> <td class="list"><xsl:value-of select="wx_name"/></td> <td class="grid"><img src="../images/bar.gif" width=<xsl:value-of select="cp"/> height="10"/></td> <td class="list" align="right"><xsl:value-of select="cp"/>%</td> <td class="list" align="right"> </td> <td class="list" align="right"><xsl:value-of select="flan"/></td> <td class="list" align="right"><xsl:value-of select="tlan"/></td> <td class="list" align="right"> </td> </tr> </xsl:for-each>
  7. jle

    For-each loop

    Hi All,I am new to XSLT and sorry for the basic question.I have the following for loop in the xsl and my question next to the </td> in the for loop <xsl:for-each select="wx_l/wx"> <tr> <td class="list">buenos_aires</td> (my question : wx_name is here from xml file from <wx_name> ) <td class="grid"><img src="../images/bar.gif" width="30" height="10"/></td> (my question : width="80" from xml file node <cp>) <td class="list" align="right">88%</td> (my question : "right">88%</td> from xml file node <cp>) <td class="list" align="right"> </td> <td class="list" align="right">10</td> (my question : ="right">10 from xml file node <flan>) <td class="list" align="right">20</td> (my question : ="right">20 from xml file node <tlan>) <td class="list" align="right"> </td> </tr> </xsl:for-each>My questions are next to each <td>. Your help is greatly appreciated.JPBelow is my xml<wx_l><wx><wx_name>Endpoint1</wx_name><cp>80</cp><flan>10</flan><tlan>20</tlan></wx><wx>.............</wx_l>
  8. Hi All,I have a mock up with will be use the pagination. We have the XML file which will have 1-2000 rows of data and we want to display dynamiclly page 1-10 depending on number of rows in XML file. If the number of rows in XML file is < 200 rows then only one page is display but if the number rows is > 200 and < 400 then page 1 and page2 will be there .... up to 10 pages to allow the user to click on the page number to display list of rows. Like below Page: 1 2 3 4 5 6 7 8 The user has an option to click on 1 to display the first 200 rows and page 2 to display the 201-400 rows ....Is there any sample XSL code that I can use to do this task.Thanks a ton,JP
  9. jle

    Read data from XML file

    Hi All,Thanks! It worked. It is my mistake I forgot the ">" at the end of string below.It didn't complain anything related to syntax but it didn't work.After I added the ">" to this string as below then It worked.Thanks,JP<xsl:for-each select="appwx_l/wx_l/wx_d|appwx_l/wx_l/wx_c">
  10. jle

    Read data from XML file

    Hi,Sorry it didn't work! Is there any other way.to read the data from two node-sets.Thanks,JP
  11. jle

    Read data from XML file

    Hi,I would like to have the third array which has both wx_c and wx_d. The third array should have the values of first array (endpointNames_d) and second array(endpointNames_c). How can I get the third array which has values of first array+ second array.Thanks,JP
  12. Hi All,I have part of the xsl is defined as below:and now I want to have another array which has both wx_d and wx_c but the wx_name must be sorted.So what should I do. Thanks for the helpJP.var endpointNames_d = new Array();<xsl:for-each select="appwx_l/wx_l/wx_d"> <xsl:text>endpointNames_d[</xsl:text><xsl:value-of select="position()-1"/><xsl:text>]</xsl:text> = "<xsl:value-of select="wx_name"/>,<xsl:value-of select="wx_id"/>"; </xsl:for-each>var endpointNames_c = new Array();<xsl:for-each select="appwx_l/wx_l/wx_c"> <xsl:text>endpointNames_c[</xsl:text><xsl:value-of select="position()-1"/><xsl:text>]</xsl:text> = "<xsl:value-of select="wx_name"/>,<xsl:value-of select="wx_id"/>"; </xsl:for-each>
  13. jle

    <xsl:value-of

    Hi All,I had the following xsl code as defined :<xsl:value-of select="chart/wx_name"/> <xsl:if test="wx_name = 'All Endpoints'" > <td align="right" nowrap="" class="caption"><a href="compression_by_endpoint.htm">Compression by Endpoint</a> </td> </xsl:if>So my logic is if wx_name is "All Endpoints" then href will be display but it didn't work.href didn't display no matter what value of wx_nameCould you please help. Below is the sample of xml data.Thanks,JPXML file:.........................................<chart><wx_name> All Endpoints</wx_name></chart>
  14. Hi all,I have the following xml is defined as below. Is there any way that we can seperate out the chart properities to seperate file and then include it in the xml file.Please help.Thanks,JL<chart> <axis_category font='Verdana' bold='false' size='11' color='555555' alpha='100' /> <axis_ticks major_thickness='1' major_color='000000' minor_thickness='2' minor_color='0000ff' minor_count='int' /> <axis_value min='0' max='25' steps='5' font='Verdana' bold='false' size='11' color='555555' alpha='100' /> <chart_border bottom_thickness='1' color='808080' /> <chart_data> <row> <null/> <string></string> <string></string> <string>7:00/</string> .................</chart_data> <chart_grid_h thickness='1' alpha='100' color='CCCCCC' type='solid' /> <chart_pref point_shape='none' line_thickness='3' /> <chart_rect x='60' y='5' width='450' height='160' positive_color='000000' negative_color='DCDCDC' positive_alpha='10' negative_alpha='100' /> <chart_type>line</chart_type>
  15. Hi All,I have the xsl as defined below <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="report_title" select="This is Title"/> <xsl:template match="/"> .....and later in the code: <form method="POST"> <table width="700" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="pageTitle">{$report_title}</td> There is problem with the last line. So how to make it correct to set the title dynamicly.Your help is greatly appreciated.Thanks,JL
×
×
  • Create New...