Jump to content

Tbonekiller

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Tbonekiller

  • Rank
    Newbie
  1. Hi Jojay...Thank you for helping out...I think my problem is the TXT to XML generetor, The output xml is useless..It is working fine when I am yousing your examples, but there is a lot useless information...I guess I just have to keep looking for a solution..Thx anyway.. Thomas..
  2. Hi again..Is it possible at all to make anything out of this server_stats.xml??
  3. Hi again...Okey.. This is my server_stats.xml<?xml-stylesheet type="text/xsl" href="whiteness.xsl"?><mani_stats> <plugin_version>"mani_stats.txt"</plugin_version> <stats_created> <year>2006</year> <month>4</month> <day>26</day> <hour>19</hour> <minute>14</minute> <second>35</second> </stats_created> <user> <steam_id>{"version" "V1.2BetaN RC1""1"{"na" "(SVB)Tbonekiller""st" "STEAM_0:1:1163382""ip1" "10""ip2" "0""ip3" "0""ip4" "2""lc" "1148572704""rwhiteness.xsl</steam_id> <name>killer""st" "STEAM_0:1:1163382""ip1" "10""ip2" "0""ip3" "0""ip4" "2""lc" "1148572704""rwhiteness.xsl</name> <kills>153236592</kills> <deaths>170013218</deaths> <suicides>576941090</suicides> <headshots>825303561</headshots> <kd_ratio>0.000011</kd_ratio> <last_connected> <year>1997</year> <month>8</month> <day>30</day> <hour>1</hour> <minute>18</minute> <second>10</second> </last_connected> </user> <user> <steam_id>k" "1""de" "5""hs" "4""kd" "1.200000""ki" "6""su" "0""po" "1010.458862""pd" "0.000000""tk" "0""to" "2179""da" "1273""hh" "6""hc" "13whiteness.xsl</steam_id> <name>"su" "0""po" "1010.458862""pd" "0.000000""tk" "0""to" "2179""da" "1273""hh" "6""hc" "13whiteness.xsl</name> <kills>153248100</kills> <deaths>926036258</deaths> <suicides>571089459</suicides> <headshots>153249896</headshots> <kd_ratio>0.000000</kd_ratio> <last_connected> <year>1988</year> <month>3</month> <day>13</day> <hour>15</hour> <minute>7</minute> <second>46</second> </last_connected> </user></mani_stats>Could someone make a small example html, how to get these figures på in to a table. just a very small one so I can get the basics.. I was hoping to be able to edit the cd_catalog example html, but I can´t get it to display anything from the server_stats.xml though I have changed <xml id="xmldso_list" src="cd_catalog.xml"></xml>to<xml id="xmldso_list" src="server_stats.xml"></xml> <xml id="xmldso_list" is just a call name for the xml file in the html isin´t it? Thx..
  4. Thx jojay...Thats was my problem, now I just need to figure out hew to get my gamestats.xml displayed via html, atleast I got the exampel working now "thx to you"..
  5. Tbonekiller

    Bind xml to html

    Hi all..I am runing a cs:s server and i am generation a xls file from a stats.txt file every 30 min.. Can anyone tell me how to show to file via a html... I´ve tryed to run a example on my website but i cant get it working... I have placed the html and xml file in the same folder on the web site... HTML:<html><head><script type="text/javascript">function testclick(field){var row=field.rowIndexxmldso_list.recordset.absoluteposition=rowtd_title.innerHTML=xmldso_list.recordset("TITLE")td_artist.innerHTML=xmldso_list.recordset("ARTIST")td_year.innerHTML=xmldso_list.recordset("YEAR")td_country.innerHTML=xmldso_list.recordset("COUNTRY")td_company.innerHTML=xmldso_list.recordset("COMPANY")td_price.innerHTML=xmldso_list.recordset("PRICE")}</script></head><body><xml id="xmldso_list" src="cd_catalog.xml"></xml><table border="1" bgcolor="yellow"><tr align="left"><th>Title: </th><td id="td_title"></td></tr><tr align="left"><th>Artist: </th><td id="td_artist"></td></tr><tr align="left"><th>Year: </th><td id="td_year"></td></tr><tr align="left"><th>Country:</th><td id="td_country"></td></tr><tr align="left"><th>Company:</th><td id="td_company"></td></tr><tr align="left"><th>Price: </th><td id="td_price"></td></tr></table><p><b>Click on one of the CDs in the list:</b></p><table datasrc="#xmldso_list" border="1"><thead><tr align="left"><th>Title</th><th>Artist</th><th>Country</th><th>Company</th><th>Price</th><th>Year</th></tr></thead><tr align="left" onclick="testclick(this)"><td><div datafld="TITLE" /></td><td><div datafld="ARTIST" /></td><td><div datafld="COUNTRY" /></td><td><div datafld="COMPANY" /></td><td align="right"><div datafld="PRICE" /></td><td><div datafld="YEAR" /></td></tr></table></body></html>XML:?xml version="1.0" encoding="ISO-8859-1" ?> - <!-- Edited with XML Spy v2006 (http://www.altova.com) --> - <CATALOG>- <CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Columbia</COMPANY> <PRICE>10.90</PRICE> <YEAR>1985</YEAR> </CD>- <CD> <TITLE>Hide your heart</TITLE> <ARTIST>Bonnie Tyler</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>CBS Records</COMPANY> <PRICE>9.90</PRICE> <YEAR>1988</YEAR> </CD>- <CD> <TITLE>Greatest Hits</TITLE> <ARTIST>Dolly Parton</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>RCA</COMPANY> <PRICE>9.90</PRICE> <YEAR>1982</YEAR> </CD>- <CD> <TITLE>Still got the blues</TITLE> <ARTIST>Gary Moore</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>Virgin records</COMPANY> <PRICE>10.20</PRICE> <YEAR>1990</YEAR> </CD>- <CD> <TITLE>Eros</TITLE> <ARTIST>Eros Ramazzotti</ARTIST> <COUNTRY>EU</COUNTRY> <COMPANY>BMG</COMPANY> <PRICE>9.90</PRICE> <YEAR>1997</YEAR> </CD>- <CD> <TITLE>One night only</TITLE> <ARTIST>Bee Gees</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>Polydor</COMPANY> <PRICE>10.90</PRICE> <YEAR>1998</YEAR> </CD>- <CD> <TITLE>Sylvias Mother</TITLE> <ARTIST>Dr.Hook</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>CBS</COMPANY> <PRICE>8.10</PRICE> <YEAR>1973</YEAR> </CD>- <CD> <TITLE>Maggie May</TITLE> <ARTIST>Rod Stewart</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>Pickwick</COMPANY> <PRICE>8.50</PRICE> <YEAR>1990</YEAR> </CD>- <CD> <TITLE>Romanza</TITLE> <ARTIST>Andrea Bocelli</ARTIST> <COUNTRY>EU</COUNTRY> <COMPANY>Polydor</COMPANY> <PRICE>10.80</PRICE> <YEAR>1996</YEAR> </CD>- <CD> <TITLE>When a man loves a woman</TITLE> <ARTIST>Percy Sledge</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Atlantic</COMPANY> <PRICE>8.70</PRICE> <YEAR>1987</YEAR> </CD>- <CD> <TITLE>Black angel</TITLE> <ARTIST>Savage Rose</ARTIST> <COUNTRY>EU</COUNTRY> <COMPANY>Mega</COMPANY> <PRICE>10.90</PRICE> <YEAR>1995</YEAR> </CD>- <CD> <TITLE>1999 Grammy Nominees</TITLE> <ARTIST>Many</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Grammy</COMPANY> <PRICE>10.20</PRICE> <YEAR>1999</YEAR> </CD>- <CD> <TITLE>For the good times</TITLE> <ARTIST>Kenny Rogers</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>Mucik Master</COMPANY> <PRICE>8.70</PRICE> <YEAR>1995</YEAR> </CD>- <CD> <TITLE>Big Willie style</TITLE> <ARTIST>Will Smith</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Columbia</COMPANY> <PRICE>9.90</PRICE> <YEAR>1997</YEAR> </CD>- <CD> <TITLE>Tupelo Honey</TITLE> <ARTIST>Van Morrison</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>Polydor</COMPANY> <PRICE>8.20</PRICE> <YEAR>1971</YEAR> </CD>- <CD> <TITLE>Soulsville</TITLE> <ARTIST>Jorn Hoel</ARTIST> <COUNTRY>Norway</COUNTRY> <COMPANY>WEA</COMPANY> <PRICE>7.90</PRICE> <YEAR>1996</YEAR> </CD>- <CD> <TITLE>The very best of</TITLE> <ARTIST>Cat Stevens</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>Island</COMPANY> <PRICE>8.90</PRICE> <YEAR>1990</YEAR> </CD>- <CD> <TITLE>Stop</TITLE> <ARTIST>Sam Brown</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>A and M</COMPANY> <PRICE>8.90</PRICE> <YEAR>1988</YEAR> </CD>- <CD> <TITLE>Bridge of Spies</TITLE> <ARTIST>T'Pau</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>Siren</COMPANY> <PRICE>7.90</PRICE> <YEAR>1987</YEAR> </CD>- <CD> <TITLE>Private Dancer</TITLE> <ARTIST>Tina Turner</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>Capitol</COMPANY> <PRICE>8.90</PRICE> <YEAR>1983</YEAR> </CD>- <CD> <TITLE>Midt om natten</TITLE> <ARTIST>Kim Larsen</ARTIST> <COUNTRY>EU</COUNTRY> <COMPANY>Medley</COMPANY> <PRICE>7.80</PRICE> <YEAR>1983</YEAR> </CD>- <CD> <TITLE>Pavarotti Gala Concert</TITLE> <ARTIST>Luciano Pavarotti</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>DECCA</COMPANY> <PRICE>9.90</PRICE> <YEAR>1991</YEAR> </CD>- <CD> <TITLE>The dock of the bay</TITLE> <ARTIST>Otis Redding</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Atlantic</COMPANY> <PRICE>7.90</PRICE> <YEAR>1987</YEAR> </CD>- <CD> <TITLE>Picture book</TITLE> <ARTIST>Simply Red</ARTIST> <COUNTRY>EU</COUNTRY> <COMPANY>Elektra</COMPANY> <PRICE>7.20</PRICE> <YEAR>1985</YEAR> </CD>- <CD> <TITLE>Red</TITLE> <ARTIST>The Communards</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>London</COMPANY> <PRICE>7.80</PRICE> <YEAR>1987</YEAR> </CD>- <CD> <TITLE>Unchain my heart</TITLE> <ARTIST>Joe Cocker</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>EMI</COMPANY> <PRICE>8.20</PRICE> <YEAR>1987</YEAR> </CD> </CATALOG>Shoulden´t this be working??? When I enter my site the only thing i can see is the html, why isin´t the xml file filling in the things...Sorry my english.... Hope some one can help....
×
×
  • Create New...