Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Diablo 2
You last visited: Today at 01:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



XML Log Anzeigen?

Discussion on XML Log Anzeigen? within the Diablo 2 forum part of the Other Online Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2010
Posts: 79
Received Thanks: 2
XML Log Anzeigen?

Heyho Alle Miteinander.

Wie kann ich meinen XML Log in einem Web Browser anzeigen lassen? Wenn ich die Datein mit IE Öffne kommt irgendwas von "Falls ein Stylesheet verwendet wird.." und mit Firefox kriegt man Augenkrebs..

Need Help :/
Tarmiklol is offline  
Old 08/23/2010, 05:17   #2
 
elite*gold: 0
Join Date: May 2009
Posts: 438
Received Thanks: 23
lol woher hast du das, das man mit firefox augenkrebs bekommt?
stimmt das?
und was ist alles mit dem anderen?
googlecrom, opera etc?
biggi21 is offline  
Old 08/23/2010, 07:11   #3
 
augustiner's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 137
Received Thanks: 22
Geh im Explorer (Dateimanager) in das Verzeichnis deines Chars (steht im logs Ordner) , Rechts-Klick auf das Itemlog.xml öffnen mit Firefox.
Habs mit Opera und IE probiert, da gings bei mir nicht.

Ach ja, die Itemlog.xml wird erst angelegt wenn du was gefunden hast.
augustiner is offline  
Old 08/23/2010, 07:47   #4
 
elite*gold: 0
Join Date: Mar 2010
Posts: 228
Received Thanks: 20
Quote:
Originally Posted by Tarmiklol View Post

und mit Firefox kriegt man Augenkrebs..

Need Help :/
Quote:
Originally Posted by noob-walker View Post
lol woher hast du das, das man mit firefox augenkrebs bekommt?
stimmt das?
und was ist alles mit dem anderen?
googlecrom, opera etc?



Ich kann nicht mehr
Devil122 is offline  
Old 08/23/2010, 15:24   #5
 
elite*gold: 0
Join Date: Jun 2010
Posts: 79
Received Thanks: 2
Das mit dem Augenkrebs sollte heißen, das es nicht annähernd eine Tabelle oder sons was ist sondern nur der Code ^^ Aber so kann man die Aussage natürlich auch auslegen.
Tarmiklol is offline  
Old 08/23/2010, 18:27   #6
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,729
Received Thanks: 12,624
Ist das dazugehörige XML-Stylesheet im selben Ordner wie die XML-Dateien mit den formatierten Rohdaten?

Du führst das ganze nicht in Sandboxie oder ähnlichem aus?

Nur mal ein paar Denkanstöße.

Lg
Muddy
Muddy Waters is offline  
Old 08/23/2010, 18:32   #7
 
elite*gold: 0
Join Date: Jul 2008
Posts: 10
Received Thanks: 0
hab das gleiche prob und im ordner ist noch eine itemlog.xsl
und tooltip.js
die itemlog.xsl sieht wie folgt aus:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" doctype-public="-//W3C//DTD XHTML 1.1//EN"/>


<xsl:template name="break-replace">
      <xsl:param name="value" />
	 
	  <xsl:variable name="color">
		<xsl:choose>
			<xsl:when test="starts-with($value,'ÿc0')">
				#ffffff
			</xsl:when>
			<xsl:when test="starts-with($value,'ÿc1')">
				#dc143c
			</xsl:when>
			<xsl:when test="starts-with($value,'ÿc2')">
				#00C408
			</xsl:when>
			<xsl:when test="starts-with($value,'ÿc3')">
				#4850B8
			</xsl:when>
			<xsl:when test="starts-with($value,'ÿc4')">
				#908858
			</xsl:when>
			<xsl:when test="starts-with($value,'ÿc7')">
				#908858
			</xsl:when>
			<xsl:when test="starts-with($value,'ÿc5')">
				#000000
			</xsl:when>
			<xsl:when test="starts-with($value,'ÿc6')">
				#000000
			</xsl:when>
			<xsl:when test="starts-with($value,'ÿc8')">
				#FF8000
			</xsl:when>
			<xsl:otherwise>
				#ffffff
			</xsl:otherwise>
	  </xsl:choose>
	  </xsl:variable>
	  <xsl:choose>
         <xsl:when test="contains($value,'|')">
            <div style= "text-align: center;color: {$color};"> 
				<xsl:choose>
					<xsl:when test="starts-with($value,'ÿc')">
						<xsl:value-of select="substring-after(substring-before($value,'|'),substring($value,1,3))"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="substring-before($value,'|')"/>
						<!--<xsl:value-of select="substring-after(substring-before($value,'|'),substring($value,1,3))"/>-->
					</xsl:otherwise>
					<br/>
				</xsl:choose>
			</div>
            <xsl:call-template name="break-replace">
               <xsl:with-param name="value" select="substring-after($value,'|')" />
            </xsl:call-template>
         </xsl:when>
         <xsl:otherwise>
            <div style= "text-align: center;color: {$color};"> 
				<xsl:choose>
					<xsl:when test="starts-with($value,'ÿc')">
						<xsl:value-of select="substring-after($value,substring($value,1,3))" />
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$value"/>
						<!--<xsl:value-of select="substring-after(substring-before($value,'|'),substring($value,1,3))"/>-->
					</xsl:otherwise>
					<br/>
				</xsl:choose>
				<!--<xsl:value-of select="substring-after($value,substring($value,1,3))" />-->
			</div>
         </xsl:otherwise>
      </xsl:choose>
	  
</xsl:template>

<xsl:template name="get-stats">
	 <xsl:param name="typedesc" />
	 <xsl:value-of select="@typedesc" />
</xsl:template>

<xsl:template match="itemlog">
	<html>
		<head>
			
			<title><xsl:value-of select="/itemlog/item/@char"/>'s Itemlog</title>
			<style type="text/css">
			.tooltip {
				opacity: 1;
				position: absolute;
				display: none;
				background-color: #707070;
				padding: 10px;
			}
			</style>
			<script src="tooltip.js"></script>
			<script>
				var keptitems = new Array();
				var solditems = new Array();
				var i = 0;
				var n = 0;
				<xsl:for-each select="/itemlog/item">
					<xsl:if test="@mode = '0'">
						keptitems[i] = new Array(2);
						keptitems[i]['id'] = <xsl:value-of select="@id"/>;
						keptitems[i]['name'] = "<xsl:value-of select="@name"/>";
						keptitems[i]['ilvl'] = "<xsl:value-of select="@ilvl"/>";
						keptitems[i]['type'] = "<xsl:value-of select="@type"/>";
						keptitems[i]['typedesc'] = "<xsl:value-of select="@typedesc"/>";
						keptitems[i]['location'] = "<xsl:value-of select="@typedesc"/>";
						i++;
					</xsl:if>
					<xsl:if test="@mode = '1'">
						solditems[n] = new Array(2);
						solditems[n]['id'] = <xsl:value-of select="@id"/>;
						solditems[n]['name'] = "<xsl:value-of select="@name"/>";
						solditems[n]['ilvl'] = "<xsl:value-of select="@ilvl"/>";
						solditems[n]['type'] = "<xsl:value-of select="@type"/>";
						solditems[n]['typedesc'] = "<xsl:value-of select="@typedesc"/>";
						solditems[n]['location'] = "<xsl:value-of select="@typedesc"/>";
						n++;
					</xsl:if>
				</xsl:for-each>
				
				var line = "";

				function showAll() {
					var noresult = document.getElementById("noresult");
					noresult.style.display = "none";
					for(i=0;i < keptitems.length; i++) {
						line = document.getElementById("l" + keptitems[i]['id']);
						line.style.display = "block";
					}
					for(i=0;i < solditems.length; i++) {
						line = document.getElementById("l" + solditems[i]['id']);
						line.style.display = "block";
					}
				}
				
				function showKept() {
					var noresult = document.getElementById("noresult");
					noresult.style.display = "none";
					for(i=0;i < keptitems.length; i++) {
						line = document.getElementById("l" + keptitems[i]['id']);
						line.style.display = "block";
					}
					for(i=0;i < solditems.length; i++) {
						line = document.getElementById("l" + solditems[i]['id']);
						line.style.display = "none";
					}
				}

				function showSold() {
					var noresult = document.getElementById("noresult");
					noresult.style.display = "none";
					for(i=0;i < keptitems.length; i++) {
						line = document.getElementById("l" + keptitems[i]['id']);
						line.style.display = "none";
					}
					for(i=0;i < solditems.length; i++) {
						line = document.getElementById("l" + solditems[i]['id']);
						line.style.display = "block";
					}
				}

				function showNone() {
					for(i=0;i < keptitems.length; i++) {
						line = document.getElementById("l" + keptitems[i]['id']);
						line.style.display = "none";
					}
					for(i=0;i < solditems.length; i++) {
						line = document.getElementById("l" + solditems[i]['id']);
						line.style.display = "none";
					}
				}
				
				function searchName(e) {
					var ENTER_KEY = 13;
					var code = "";

					if (window.event) { // IE
						code = e.keyCode;
					} else if (e.which) { // Netscape/Firefox/Opera
						code = e.which;
					}

					if(code == ENTER_KEY) {
						var noresult = document.getElementById("noresult");
						noresult.style.display = "none";

						var input = document.getElementById("search");
						var string = input.value;
						var keptbox = document.getElementById("keptbox");
						var soldbox = document.getElementById("soldbox");
						var searchresults = 0;
						var search = eval("/" + string + "/i");
						showNone();
	
						if(keptbox.checked == true) {
							for(i=0;i < keptitems.length; i++) {
								var itemname = keptitems[i]['name'];
								var result = search.test(itemname);
								if(result == true) {
									searchresults++;
									
									line = document.getElementById("l" + keptitems[i]['id']);
									line.style.display = "block";
								}
							}
						}

						if(soldbox.checked == true) {
							for(i=0;i < solditems.length; i++) {
								var itemname = solditems[i]['name'];
								var result = search.test(itemname);
								if(result == true) {
									searchresults++;
						
									line = document.getElementById("l" + solditems[i]['id']);
									line.style.display = "block";
								}
							}
						}

						if(searchresults == 0) {
							var noresult = document.getElementById("noresult");
							noresult.style.display = "block";
						}
					}
				}	
			</script>
		</head>
		<body style="font: 12px Verdana; background-color:#2E2E2E;">
			<input type="button" value="Show All" onClick="showAll()"/>
				<input type="button" value="Show Kept" onClick="showKept()"/>
				<input type="button" value="Show Sold" onClick="showSold()"/>
				<span style="padding-left: 50px;color: #ffffff;">
					Search Item Name: <input type="text" id="search" onkeypress="searchName(event)"/>
					Kept <input type="checkbox" id="keptbox" checked="checked"/>
					Sold <input type="checkbox" id="soldbox" checked="checked"/>
				</span>
			<br/>
			<main>
			<span style="display: block; float: left; width: 175px; margin-right: 10px;margin-left: 5px; color: #ffffff; font-weight: bold; text-align: center;">
					Time
			</span>
			<div style="float: left; width: 175px; margin-right: 10px;color: #ffffff; font-weight: bold;">
					Found At
 			</div>
			<div style="display: block; float: left; width: 50px; margin-right: 10px;color: #ffffff; font-weight: bold; text-align: center;">
					Action
			</div>
			<div style="display: block; float: left; width: 30px; margin-right: 0px; margin-left: 20px;color: #ffffff; font-weight: bold; text-align: center;">
					Ilvl
 			</div>
			<div style="display: block; float: left; width: 150px; margin-right: 0px;margin-left: 20px;color: #ffffff; font-weight: bold; text-align: center;">
					Type
			</div>
			<div style="display: block; float: left; margin-right: 10px; margin-left: 10px;color: #ffffff; font-weight: bold;text-align: left;">
					Name
 			</div>
			</main>
			<br/>
			<div id="results">
			<xsl:for-each select="/itemlog/item">
				<xsl:sort select="@id" order="descending" data-type="number" />
				<div id="noresult" style="display: none;font-weight: bold;color: #FF0000;text-align: center;">Your search returned no result!</div>
				<div>
				<xsl:attribute name="id">l<xsl:value-of select="@id"/></xsl:attribute>
				<xsl:if test="@mode = '1'">
					<xsl:attribute name="style">display: none;</xsl:attribute>
				</xsl:if>
				<xsl:choose>
					<!-- Magic -->
					<xsl:when test="@quality = '4'">
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
							<xsl:value-of select="@time"/>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
							<xsl:value-of select="@location"/>
 						</div>
						<div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
							<xsl:choose>
								<xsl:when test="@mode = '0'">
									Kept
								</xsl:when>
								<xsl:when test="@mode = '1'">
									Sold
								</xsl:when>
							</xsl:choose>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@ilvl"/>
						</div> 
						<div style="display: block; color: #4850B8; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@typedesc"/>
						</div>
						
						<span style="color: #4850B8; font-weight: bold" onMouseOut="hideTT()">
						<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
							<xsl:value-of select="@name"/>
						</span>
						<br/>
						<div class="tooltip">
							<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
							<div style="color: #4850B8; font-weight: bold;text-align: center;">
								<xsl:value-of select="@name"/>
							</div>
							
							<span style="color: #ffffff">
								<xsl:call-template name="break-replace">
									<xsl:with-param name="value" select="." />
								</xsl:call-template>
							</span>
						</div>
						
						
					</xsl:when>
					<!-- Set -->
					<xsl:when test="@quality = '5'">
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
							<xsl:value-of select="@time"/>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
							<xsl:value-of select="@location"/>
 						</div>
						<div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
							<xsl:choose>
								<xsl:when test="@mode = '0'">
									Kept
								</xsl:when>
								<xsl:when test="@mode = '1'">
									Sold
								</xsl:when>
							</xsl:choose>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@ilvl"/>
						</div> 
						<div style="display: block; color: #00C408; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@typedesc"/>
						</div>
						<div class="tooltip">
							<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
							<div style="color: #00C408; font-weight: bold;text-align: center;">
								<xsl:value-of select="@name"/>
							</div>
							
							<span style="color: #ffffff">
								<xsl:call-template name="break-replace">
									<xsl:with-param name="value" select="." />
								</xsl:call-template>
							</span>
						</div>
						<div style="color: #00C408; font-weight: bold" onMouseOut="hideTT()">
							<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
							<xsl:value-of select="@name"/>
						</div>
					</xsl:when>
					<!-- Rare -->
					<xsl:when test="@quality = '6'">
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
							<xsl:value-of select="@time"/>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
							<xsl:value-of select="@location"/>
 						</div>
						<div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
							<xsl:choose>
								<xsl:when test="@mode = '0'">
									Kept
								</xsl:when>
								<xsl:when test="@mode = '1'">
									Sold
								</xsl:when>
							</xsl:choose>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@ilvl"/>
						</div> 
						<div style="display: block; color: #E0E000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@typedesc"/>
						</div>
						<span style="color: #E0E000; font-weight: bold" onMouseOut="hideTT()">
							<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
							<xsl:value-of select="@name"/>
						</span>
						<br/>
						<div class="tooltip">
							<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
							<div style="color: #E0E000; font-weight: bold;text-align: center;">
								<xsl:value-of select="@name"/>
							</div>
							
							<span style="color: #ffffff">
								<xsl:call-template name="break-replace">
									<xsl:with-param name="value" select="." />
								</xsl:call-template>
							</span>
						</div>
					</xsl:when>
					<!-- Unique -->
					<xsl:when test="@quality = '7'">
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
							<xsl:value-of select="@time"/>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
							<xsl:value-of select="@location"/>
 						</div>
						<div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
							<xsl:choose>
								<xsl:when test="@mode = '0'">
									Kept
								</xsl:when>
								<xsl:when test="@mode = '1'">
									Sold
								</xsl:when>
							</xsl:choose>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@ilvl"/>
						</div> 
						<div style="display: block; color: #908858; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@typedesc"/>
						</div>
						<span style="color: #908858; font-weight: bold" onMouseOut="hideTT()">
							<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
							<xsl:value-of select="@name"/>
						</span>
						<br/>
						<div class="tooltip">
							<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
							<div style="color: #908858; font-weight: bold;text-align: center;">
								<xsl:value-of select="@name"/>
							</div>
							
							<span style="color: #ffffff">
								<xsl:call-template name="break-replace">
									<xsl:with-param name="value" select="." />
								</xsl:call-template>
							</span>
						</div>
					</xsl:when>
					<!-- Crafted -->
					<xsl:when test="@quality = '8'">
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
							<xsl:value-of select="@time"/>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
							<xsl:value-of select="@location"/>
 						</div>
						<div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
							<xsl:choose>
								<xsl:when test="@mode = '0'">
									Kept
								</xsl:when>
								<xsl:when test="@mode = '1'">
									Sold
								</xsl:when>
							</xsl:choose>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@ilvl"/>
						</div> 
						<div style="display: block; color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@typedesc"/>
						</div>
						<span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()">
							<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
							<xsl:value-of select="@name"/>
						</span>
						<br/>
						<div class="tooltip">
							<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
							<div style="color: #FF8000; font-weight: bold;text-align: center;">
								<xsl:value-of select="@name"/>
							</div>
							
							<span style="color: #ffffff">
								<xsl:call-template name="break-replace">
									<xsl:with-param name="value" select="." />
								</xsl:call-template>
							</span>
						</div>
					</xsl:when>
					<!-- Default -->
					<xsl:otherwise>
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
							<xsl:value-of select="@time"/>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
							<xsl:value-of select="@location"/>
 						</div>
						<div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
							<xsl:choose>
								<xsl:when test="@mode = '0'">
									Kept
								</xsl:when>
								<xsl:when test="@mode = '1'">
									Sold
								</xsl:when>
							</xsl:choose>
						</div>
						<div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
							<xsl:value-of select="@ilvl"/>
						</div> 
						<xsl:choose>
								<xsl:when test="@ethereal = '1'">
									<div style="display: block;color: #808080; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
										<xsl:value-of select="@typedesc"/>
									</div>		
								</xsl:when>
								<xsl:when test="@ethereal = '0'">
									<xsl:choose>
										<xsl:when test="@typedesc = 'Quest Item'">
											<div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
												<xsl:value-of select="@typedesc"/>
											</div>	
										</xsl:when>
										<xsl:when test="@typedesc = 'Rune'">
											<div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
												<xsl:value-of select="@typedesc"/>
											</div>	
										</xsl:when>	
										<xsl:when test="@typedesc = 'Essence'">
											<div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
												<xsl:value-of select="@typedesc"/>
											</div>	
										</xsl:when>	
										<xsl:otherwise>
											<div style="display: block;color: #ffffff; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
												<xsl:value-of select="@typedesc"/>
											</div>		
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
						</xsl:choose>
						
						<xsl:choose>
								<xsl:when test="@ethereal = '1'">
									<span style="color: #808080; font-weight: bold" onMouseOut="hideTT()">
										<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
										<xsl:value-of select="@name"/>
									</span>	
								</xsl:when>
								<xsl:when test="@ethereal = '0'">
									<xsl:choose>
										<xsl:when test="@typedesc = 'Quest Item'">
											<span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()">
												<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
													<xsl:value-of select="@name"/>
											</span>	
										</xsl:when>
										<xsl:when test="@typedesc = 'Rune'">
											<span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()">
												<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
													<xsl:value-of select="@name"/>
											</span>	
										</xsl:when>
										<xsl:when test="@typedesc = 'Essence'">
											<span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()">
												<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
													<xsl:value-of select="@name"/>
											</span>	
										</xsl:when>	
										<xsl:otherwise>
											<span style="color: #ffffff; font-weight: bold" onMouseOut="hideTT()">
												<xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
												<xsl:value-of select="@name"/>
											</span>	
											</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
						</xsl:choose>						
						<br/>
						<div class="tooltip">
							<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
								<xsl:choose>
									<xsl:when test="@typedesc = 'Quest Item'">
										<div style="color: #FF8000; font-weight: bold;text-align: center;">
											<xsl:value-of select="@name"/>
										</div>
									</xsl:when>
									<xsl:when test="@typedesc = 'Rune'">
										<div style="color: #FF8000; font-weight: bold;text-align: center;">
											<xsl:value-of select="@name"/>
										</div>	
									</xsl:when>	
									<xsl:when test="@typedesc = 'Essence'">
										<div style="color: #FF8000; font-weight: bold;text-align: center;">
											<xsl:value-of select="@name"/>
										</div>	
									</xsl:when>	
									<xsl:otherwise>
										<div style="color: #ffffff; font-weight: bold;text-align: center;">
											<xsl:value-of select="@name"/>
										</div>	
									</xsl:otherwise>
								</xsl:choose>
								<span style="color: #ffffff;">
									<xsl:call-template name="break-replace">
										<xsl:with-param name="value" select="." />
									</xsl:call-template>
								</span>
						</div>
					</xsl:otherwise>
				</xsl:choose>
			</div>
			</xsl:for-each>
			</div>
		</body>
	</html>
</xsl:template>

</xsl:stylesheet>
keine sandboxie oder sonst was an
PCSmash is offline  
Old 08/23/2010, 18:43   #8
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,729
Received Thanks: 12,624
Quote:
Originally Posted by PCSmash View Post
hab das gleiche prob und im ordner ist noch eine itemlog.xsl
und tooltip.js
die itemlog.xsl sieht wie folgt aus:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" doctype-public="-//W3C//DTD XHTML 1.1//EN"/>


<xsl:template name="break-replace">
      <xsl:param name="value" />
     
      <xsl:variable name="color">
        <xsl:choose>
            <xsl:when test="starts-with($value,'ÿc0')">
                #ffffff
            </xsl:when>
            <xsl:when test="starts-with($value,'ÿc1')">
                #dc143c
            </xsl:when>
            <xsl:when test="starts-with($value,'ÿc2')">
                #00C408
            </xsl:when>
            <xsl:when test="starts-with($value,'ÿc3')">
                #4850B8
            </xsl:when>
            <xsl:when test="starts-with($value,'ÿc4')">
                #908858
            </xsl:when>
            <xsl:when test="starts-with($value,'ÿc7')">
                #908858
            </xsl:when>
            <xsl:when test="starts-with($value,'ÿc5')">
                #000000
            </xsl:when>
            <xsl:when test="starts-with($value,'ÿc6')">
                #000000
            </xsl:when>
            <xsl:when test="starts-with($value,'ÿc8')">
                #FF8000
            </xsl:when>
            <xsl:otherwise>
                #ffffff
            </xsl:otherwise>
      </xsl:choose>
      </xsl:variable>
      <xsl:choose>
         <xsl:when test="contains($value,'|')">
            <div style= "text-align: center;color: {$color};"> 
                <xsl:choose>
                    <xsl:when test="starts-with($value,'ÿc')">
                        <xsl:value-of select="substring-after(substring-before($value,'|'),substring($value,1,3))"/>
                    </xsl:when>
                    <xsl:otherwise>
                        <xsl:value-of select="substring-before($value,'|')"/>
                        <!--<xsl:value-of select="substring-after(substring-before($value,'|'),substring($value,1,3))"/>-->
                    </xsl:otherwise>
                    <br/>
                </xsl:choose>
            </div>
            <xsl:call-template name="break-replace">
               <xsl:with-param name="value" select="substring-after($value,'|')" />
            </xsl:call-template>
         </xsl:when>
         <xsl:otherwise>
            <div style= "text-align: center;color: {$color};"> 
                <xsl:choose>
                    <xsl:when test="starts-with($value,'ÿc')">
                        <xsl:value-of select="substring-after($value,substring($value,1,3))" />
                    </xsl:when>
                    <xsl:otherwise>
                        <xsl:value-of select="$value"/>
                        <!--<xsl:value-of select="substring-after(substring-before($value,'|'),substring($value,1,3))"/>-->
                    </xsl:otherwise>
                    <br/>
                </xsl:choose>
                <!--<xsl:value-of select="substring-after($value,substring($value,1,3))" />-->
            </div>
         </xsl:otherwise>
      </xsl:choose>
      
</xsl:template>

<xsl:template name="get-stats">
     <xsl:param name="typedesc" />
     <xsl:value-of select="@typedesc" />
</xsl:template>

<xsl:template match="itemlog">
    <html>
        <head>
            
            <title><xsl:value-of select="/itemlog/item/@char"/>'s Itemlog</title>
            <style type="text/css">
            .tooltip {
                opacity: 1;
                position: absolute;
                display: none;
                background-color: #707070;
                padding: 10px;
            }
            </style>
            <script src="tooltip.js"></script>
            <script>
                var keptitems = new Array();
                var solditems = new Array();
                var i = 0;
                var n = 0;
                <xsl:for-each select="/itemlog/item">
                    <xsl:if test="@mode = '0'">
                        keptitems[i] = new Array(2);
                        keptitems[i]['id'] = <xsl:value-of select="@id"/>;
                        keptitems[i]['name'] = "<xsl:value-of select="@name"/>";
                        keptitems[i]['ilvl'] = "<xsl:value-of select="@ilvl"/>";
                        keptitems[i]['type'] = "<xsl:value-of select="@type"/>";
                        keptitems[i]['typedesc'] = "<xsl:value-of select="@typedesc"/>";
                        keptitems[i]['location'] = "<xsl:value-of select="@typedesc"/>";
                        i++;
                    </xsl:if>
                    <xsl:if test="@mode = '1'">
                        solditems[n] = new Array(2);
                        solditems[n]['id'] = <xsl:value-of select="@id"/>;
                        solditems[n]['name'] = "<xsl:value-of select="@name"/>";
                        solditems[n]['ilvl'] = "<xsl:value-of select="@ilvl"/>";
                        solditems[n]['type'] = "<xsl:value-of select="@type"/>";
                        solditems[n]['typedesc'] = "<xsl:value-of select="@typedesc"/>";
                        solditems[n]['location'] = "<xsl:value-of select="@typedesc"/>";
                        n++;
                    </xsl:if>
                </xsl:for-each>
                
                var line = "";

                function showAll() {
                    var noresult = document.getElementById("noresult");
                    noresult.style.display = "none";
                    for(i=0;i < keptitems.length; i++) {
                        line = document.getElementById("l" + keptitems[i]['id']);
                        line.style.display = "block";
                    }
                    for(i=0;i < solditems.length; i++) {
                        line = document.getElementById("l" + solditems[i]['id']);
                        line.style.display = "block";
                    }
                }
                
                function showKept() {
                    var noresult = document.getElementById("noresult");
                    noresult.style.display = "none";
                    for(i=0;i < keptitems.length; i++) {
                        line = document.getElementById("l" + keptitems[i]['id']);
                        line.style.display = "block";
                    }
                    for(i=0;i < solditems.length; i++) {
                        line = document.getElementById("l" + solditems[i]['id']);
                        line.style.display = "none";
                    }
                }

                function showSold() {
                    var noresult = document.getElementById("noresult");
                    noresult.style.display = "none";
                    for(i=0;i < keptitems.length; i++) {
                        line = document.getElementById("l" + keptitems[i]['id']);
                        line.style.display = "none";
                    }
                    for(i=0;i < solditems.length; i++) {
                        line = document.getElementById("l" + solditems[i]['id']);
                        line.style.display = "block";
                    }
                }

                function showNone() {
                    for(i=0;i < keptitems.length; i++) {
                        line = document.getElementById("l" + keptitems[i]['id']);
                        line.style.display = "none";
                    }
                    for(i=0;i < solditems.length; i++) {
                        line = document.getElementById("l" + solditems[i]['id']);
                        line.style.display = "none";
                    }
                }
                
                function searchName(e) {
                    var ENTER_KEY = 13;
                    var code = "";

                    if (window.event) { // IE
                        code = e.keyCode;
                    } else if (e.which) { // Netscape/Firefox/Opera
                        code = e.which;
                    }

                    if(code == ENTER_KEY) {
                        var noresult = document.getElementById("noresult");
                        noresult.style.display = "none";

                        var input = document.getElementById("search");
                        var string = input.value;
                        var keptbox = document.getElementById("keptbox");
                        var soldbox = document.getElementById("soldbox");
                        var searchresults = 0;
                        var search = eval("/" + string + "/i");
                        showNone();
    
                        if(keptbox.checked == true) {
                            for(i=0;i < keptitems.length; i++) {
                                var itemname = keptitems[i]['name'];
                                var result = search.test(itemname);
                                if(result == true) {
                                    searchresults++;
                                    
                                    line = document.getElementById("l" + keptitems[i]['id']);
                                    line.style.display = "block";
                                }
                            }
                        }

                        if(soldbox.checked == true) {
                            for(i=0;i < solditems.length; i++) {
                                var itemname = solditems[i]['name'];
                                var result = search.test(itemname);
                                if(result == true) {
                                    searchresults++;
                        
                                    line = document.getElementById("l" + solditems[i]['id']);
                                    line.style.display = "block";
                                }
                            }
                        }

                        if(searchresults == 0) {
                            var noresult = document.getElementById("noresult");
                            noresult.style.display = "block";
                        }
                    }
                }    
            </script>
        </head>
        <body style="font: 12px Verdana; background-color:#2E2E2E;">
            <input type="button" value="Show All" onClick="showAll()"/>
                <input type="button" value="Show Kept" onClick="showKept()"/>
                <input type="button" value="Show Sold" onClick="showSold()"/>
                <span style="padding-left: 50px;color: #ffffff;">
                    Search Item Name: <input type="text" id="search" onkeypress="searchName(event)"/>
                    Kept <input type="checkbox" id="keptbox" checked="checked"/>
                    Sold <input type="checkbox" id="soldbox" checked="checked"/>
                </span>
            <br/>
            <main>
            <span style="display: block; float: left; width: 175px; margin-right: 10px;margin-left: 5px; color: #ffffff; font-weight: bold; text-align: center;">
                    Time
            </span>
            <div style="float: left; width: 175px; margin-right: 10px;color: #ffffff; font-weight: bold;">
                    Found At
             </div>
            <div style="display: block; float: left; width: 50px; margin-right: 10px;color: #ffffff; font-weight: bold; text-align: center;">
                    Action
            </div>
            <div style="display: block; float: left; width: 30px; margin-right: 0px; margin-left: 20px;color: #ffffff; font-weight: bold; text-align: center;">
                    Ilvl
             </div>
            <div style="display: block; float: left; width: 150px; margin-right: 0px;margin-left: 20px;color: #ffffff; font-weight: bold; text-align: center;">
                    Type
            </div>
            <div style="display: block; float: left; margin-right: 10px; margin-left: 10px;color: #ffffff; font-weight: bold;text-align: left;">
                    Name
             </div>
            </main>
            <br/>
            <div id="results">
            <xsl:for-each select="/itemlog/item">
                <xsl:sort select="@id" order="descending" data-type="number" />
                <div id="noresult" style="display: none;font-weight: bold;color: #FF0000;text-align: center;">Your search returned no result!</div>
                <div>
                <xsl:attribute name="id">l<xsl:value-of select="@id"/></xsl:attribute>
                <xsl:if test="@mode = '1'">
                    <xsl:attribute name="style">display: none;</xsl:attribute>
                </xsl:if>
                <xsl:choose>
                    <!-- Magic -->
                    <xsl:when test="@quality = '4'">
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
                            <xsl:value-of select="@time"/>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
                            <xsl:value-of select="@location"/>
                         </div>
                        <div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
                            <xsl:choose>
                                <xsl:when test="@mode = '0'">
                                    Kept
                                </xsl:when>
                                <xsl:when test="@mode = '1'">
                                    Sold
                                </xsl:when>
                            </xsl:choose>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@ilvl"/>
                        </div> 
                        <div style="display: block; color: #4850B8; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@typedesc"/>
                        </div>
                        
                        <span style="color: #4850B8; font-weight: bold" onMouseOut="hideTT()">
                        <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                            <xsl:value-of select="@name"/>
                        </span>
                        <br/>
                        <div class="tooltip">
                            <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
                            <div style="color: #4850B8; font-weight: bold;text-align: center;">
                                <xsl:value-of select="@name"/>
                            </div>
                            
                            <span style="color: #ffffff">
                                <xsl:call-template name="break-replace">
                                    <xsl:with-param name="value" select="." />
                                </xsl:call-template>
                            </span>
                        </div>
                        
                        
                    </xsl:when>
                    <!-- Set -->
                    <xsl:when test="@quality = '5'">
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
                            <xsl:value-of select="@time"/>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
                            <xsl:value-of select="@location"/>
                         </div>
                        <div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
                            <xsl:choose>
                                <xsl:when test="@mode = '0'">
                                    Kept
                                </xsl:when>
                                <xsl:when test="@mode = '1'">
                                    Sold
                                </xsl:when>
                            </xsl:choose>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@ilvl"/>
                        </div> 
                        <div style="display: block; color: #00C408; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@typedesc"/>
                        </div>
                        <div class="tooltip">
                            <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
                            <div style="color: #00C408; font-weight: bold;text-align: center;">
                                <xsl:value-of select="@name"/>
                            </div>
                            
                            <span style="color: #ffffff">
                                <xsl:call-template name="break-replace">
                                    <xsl:with-param name="value" select="." />
                                </xsl:call-template>
                            </span>
                        </div>
                        <div style="color: #00C408; font-weight: bold" onMouseOut="hideTT()">
                            <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                            <xsl:value-of select="@name"/>
                        </div>
                    </xsl:when>
                    <!-- Rare -->
                    <xsl:when test="@quality = '6'">
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
                            <xsl:value-of select="@time"/>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
                            <xsl:value-of select="@location"/>
                         </div>
                        <div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
                            <xsl:choose>
                                <xsl:when test="@mode = '0'">
                                    Kept
                                </xsl:when>
                                <xsl:when test="@mode = '1'">
                                    Sold
                                </xsl:when>
                            </xsl:choose>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@ilvl"/>
                        </div> 
                        <div style="display: block; color: #E0E000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@typedesc"/>
                        </div>
                        <span style="color: #E0E000; font-weight: bold" onMouseOut="hideTT()">
                            <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                            <xsl:value-of select="@name"/>
                        </span>
                        <br/>
                        <div class="tooltip">
                            <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
                            <div style="color: #E0E000; font-weight: bold;text-align: center;">
                                <xsl:value-of select="@name"/>
                            </div>
                            
                            <span style="color: #ffffff">
                                <xsl:call-template name="break-replace">
                                    <xsl:with-param name="value" select="." />
                                </xsl:call-template>
                            </span>
                        </div>
                    </xsl:when>
                    <!-- Unique -->
                    <xsl:when test="@quality = '7'">
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
                            <xsl:value-of select="@time"/>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
                            <xsl:value-of select="@location"/>
                         </div>
                        <div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
                            <xsl:choose>
                                <xsl:when test="@mode = '0'">
                                    Kept
                                </xsl:when>
                                <xsl:when test="@mode = '1'">
                                    Sold
                                </xsl:when>
                            </xsl:choose>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@ilvl"/>
                        </div> 
                        <div style="display: block; color: #908858; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@typedesc"/>
                        </div>
                        <span style="color: #908858; font-weight: bold" onMouseOut="hideTT()">
                            <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                            <xsl:value-of select="@name"/>
                        </span>
                        <br/>
                        <div class="tooltip">
                            <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
                            <div style="color: #908858; font-weight: bold;text-align: center;">
                                <xsl:value-of select="@name"/>
                            </div>
                            
                            <span style="color: #ffffff">
                                <xsl:call-template name="break-replace">
                                    <xsl:with-param name="value" select="." />
                                </xsl:call-template>
                            </span>
                        </div>
                    </xsl:when>
                    <!-- Crafted -->
                    <xsl:when test="@quality = '8'">
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
                            <xsl:value-of select="@time"/>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
                            <xsl:value-of select="@location"/>
                         </div>
                        <div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
                            <xsl:choose>
                                <xsl:when test="@mode = '0'">
                                    Kept
                                </xsl:when>
                                <xsl:when test="@mode = '1'">
                                    Sold
                                </xsl:when>
                            </xsl:choose>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@ilvl"/>
                        </div> 
                        <div style="display: block; color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@typedesc"/>
                        </div>
                        <span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()">
                            <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                            <xsl:value-of select="@name"/>
                        </span>
                        <br/>
                        <div class="tooltip">
                            <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
                            <div style="color: #FF8000; font-weight: bold;text-align: center;">
                                <xsl:value-of select="@name"/>
                            </div>
                            
                            <span style="color: #ffffff">
                                <xsl:call-template name="break-replace">
                                    <xsl:with-param name="value" select="." />
                                </xsl:call-template>
                            </span>
                        </div>
                    </xsl:when>
                    <!-- Default -->
                    <xsl:otherwise>
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: right;">
                            <xsl:value-of select="@time"/>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 10px; margin-left: 10px;">
                            <xsl:value-of select="@location"/>
                         </div>
                        <div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px;">
                            <xsl:choose>
                                <xsl:when test="@mode = '0'">
                                    Kept
                                </xsl:when>
                                <xsl:when test="@mode = '1'">
                                    Sold
                                </xsl:when>
                            </xsl:choose>
                        </div>
                        <div style="display: block;color: #ffffff; float: left; width: 30px; margin-right: 10px; margin-left: 10px;text-align: center;">
                            <xsl:value-of select="@ilvl"/>
                        </div> 
                        <xsl:choose>
                                <xsl:when test="@ethereal = '1'">
                                    <div style="display: block;color: #808080; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                                        <xsl:value-of select="@typedesc"/>
                                    </div>        
                                </xsl:when>
                                <xsl:when test="@ethereal = '0'">
                                    <xsl:choose>
                                        <xsl:when test="@typedesc = 'Quest Item'">
                                            <div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                                                <xsl:value-of select="@typedesc"/>
                                            </div>    
                                        </xsl:when>
                                        <xsl:when test="@typedesc = 'Rune'">
                                            <div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                                                <xsl:value-of select="@typedesc"/>
                                            </div>    
                                        </xsl:when>    
                                        <xsl:when test="@typedesc = 'Essence'">
                                            <div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                                                <xsl:value-of select="@typedesc"/>
                                            </div>    
                                        </xsl:when>    
                                        <xsl:otherwise>
                                            <div style="display: block;color: #ffffff; font-weight: bold; float: left; width: 150px; margin-right: 10px; margin-left: 10px;text-align: center;">
                                                <xsl:value-of select="@typedesc"/>
                                            </div>        
                                        </xsl:otherwise>
                                    </xsl:choose>
                                </xsl:when>
                        </xsl:choose>
                        
                        <xsl:choose>
                                <xsl:when test="@ethereal = '1'">
                                    <span style="color: #808080; font-weight: bold" onMouseOut="hideTT()">
                                        <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                                        <xsl:value-of select="@name"/>
                                    </span>    
                                </xsl:when>
                                <xsl:when test="@ethereal = '0'">
                                    <xsl:choose>
                                        <xsl:when test="@typedesc = 'Quest Item'">
                                            <span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()">
                                                <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                                                    <xsl:value-of select="@name"/>
                                            </span>    
                                        </xsl:when>
                                        <xsl:when test="@typedesc = 'Rune'">
                                            <span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()">
                                                <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                                                    <xsl:value-of select="@name"/>
                                            </span>    
                                        </xsl:when>
                                        <xsl:when test="@typedesc = 'Essence'">
                                            <span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()">
                                                <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                                                    <xsl:value-of select="@name"/>
                                            </span>    
                                        </xsl:when>    
                                        <xsl:otherwise>
                                            <span style="color: #ffffff; font-weight: bold" onMouseOut="hideTT()">
                                                <xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute>
                                                <xsl:value-of select="@name"/>
                                            </span>    
                                            </xsl:otherwise>
                                    </xsl:choose>
                                </xsl:when>
                        </xsl:choose>                        
                        <br/>
                        <div class="tooltip">
                            <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
                                <xsl:choose>
                                    <xsl:when test="@typedesc = 'Quest Item'">
                                        <div style="color: #FF8000; font-weight: bold;text-align: center;">
                                            <xsl:value-of select="@name"/>
                                        </div>
                                    </xsl:when>
                                    <xsl:when test="@typedesc = 'Rune'">
                                        <div style="color: #FF8000; font-weight: bold;text-align: center;">
                                            <xsl:value-of select="@name"/>
                                        </div>    
                                    </xsl:when>    
                                    <xsl:when test="@typedesc = 'Essence'">
                                        <div style="color: #FF8000; font-weight: bold;text-align: center;">
                                            <xsl:value-of select="@name"/>
                                        </div>    
                                    </xsl:when>    
                                    <xsl:otherwise>
                                        <div style="color: #ffffff; font-weight: bold;text-align: center;">
                                            <xsl:value-of select="@name"/>
                                        </div>    
                                    </xsl:otherwise>
                                </xsl:choose>
                                <span style="color: #ffffff;">
                                    <xsl:call-template name="break-replace">
                                        <xsl:with-param name="value" select="." />
                                    </xsl:call-template>
                                </span>
                        </div>
                    </xsl:otherwise>
                </xsl:choose>
            </div>
            </xsl:for-each>
            </div>
        </body>
    </html>
</xsl:template>

</xsl:stylesheet>
keine sandboxie oder sonst was an
Kenne ich wohl.

Hattest du das mit Firefox getestet? Es kann durchaus sein, dass andere Browser das nicht fressen, weil das stilistisch teilweise a bit holprig ist.

Ich habe es eben nicht so mit HTML, mir sind richtige Programmiersprachen lieber und dementsprechend steht dieses Stylesheet auch zu.

Eigentlich müsste sich da mal jemand dran setzen der HTML technisch richtig bewandert ist, das könnte um einiges schicker sein...

Lg
Muddy
Muddy Waters is offline  
Thanks
1 User
Old 08/23/2010, 19:00   #9
 
elite*gold: 0
Join Date: Mar 2008
Posts: 406
Received Thanks: 83
IE 6/7/8 kann es nicht darstellen.
Firefox hat seit Version 2.6x keinen Streß damit.
Opera hat einige Darstellungsfehler, es ist aber alles erkennbar.

lynx streikt komplett.

Weiter Browser habe ich nicht getestet.
Test_The_Rest is offline  
Old 08/23/2010, 19:35   #10
Administrator
 
Muddy Waters's Avatar
 
elite*gold: 41364
Join Date: Jan 2010
Posts: 22,729
Received Thanks: 12,624
Quote:
Originally Posted by Test_The_Rest View Post
IE 6/7/8 kann es nicht darstellen.
Firefox hat seit Version 2.6x keinen Streß damit.
Opera hat einige Darstellungsfehler, es ist aber alles erkennbar.

lynx streikt komplett.

Weiter Browser habe ich nicht getestet.
Sag ich ja: a bit holprig...

Ich sollte mich was schämen...

Lg
Muddy
Muddy Waters is offline  
Old 08/23/2010, 19:42   #11
 
elite*gold: 0
Join Date: Mar 2008
Posts: 406
Received Thanks: 83
Aber das liegt doch alles nicht am Quelltext des Scripts, das liegt an den Browsern

</ironie>
Test_The_Rest is offline  
Old 08/23/2010, 21:17   #12
 
xdoddestroyer's Avatar
 
elite*gold: 20
Join Date: Feb 2009
Posts: 3,100
Received Thanks: 922
nvm
xdoddestroyer is offline  
Old 08/23/2010, 21:19   #13
 
elite*gold: 0
Join Date: Mar 2008
Posts: 406
Received Thanks: 83
Wie meinen?
Test_The_Rest is offline  
Old 08/23/2010, 22:41   #14
 
elite*gold: 0
Join Date: Jul 2008
Posts: 10
Received Thanks: 0
Also Firefox mag das auch net^^

€: aus dem downlaod den log ordner nehmen und über den eigenen log ordner kopieren dann gehts mit firefox
PCSmash is offline  
Old 10/19/2012, 03:59   #15
 
elite*gold: 0
Join Date: Sep 2012
Posts: 12
Received Thanks: 0
Unhappy

Hey,

Bin gerade auf diesen älteren, aber für mich aktuellen Thread gestoßen.
Ich hab jetzt ne Weile rumprobiert und weder unter Firefox 16 noch Opera oder IE bekomme ich die "gestylte" Ausgabe.

Außer der mw_itemlog_v2.xsl und der tooltip.js befindet sich noch eine Datei namentlich GamblingData.glog im Characterordner in "Logs".

Über Hilfe wär ich sehr dankbar.
Ich bekomme die Liste aber einfach nicht dargestellt... folgende Ausgabe erscheint:

HTML Code:
Mit dieser XML-Datei sind anscheinend keine Style-Informationen verknüpft. Nachfolgend wird die Baum-Ansicht des Dokuments angezeigt.
      <xsl:stylesheet version="1.0"><xsl:output method="html" encoding="iso-8859-1" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" doctype-public="-//W3C//DTD XHTML 1.1//EN"/><xsl:template name="break-replace"><xsl:param name="value"/><xsl:variable name="color"><xsl:choose><xsl:when test="starts-with($value,'ÿc1')">
				#DC143C
			</xsl:when><xsl:when test="starts-with($value,'ÿc2')">
				#00C408
			</xsl:when><xsl:when test="starts-with($value,'ÿc3')">
				#4850B8
			</xsl:when><xsl:when test="starts-with($value,'ÿc4')">
				#908858
			</xsl:when><xsl:when test="starts-with($value,'ÿc5')">
				#777777
			</xsl:when><xsl:when test="starts-with($value,'ÿc6')">
				#000000
			</xsl:when><xsl:when test="starts-with($value,'ÿc7')">
				#908858
			</xsl:when><xsl:when test="starts-with($value,'ÿc8')">
				#FF8000
			</xsl:when><xsl:when test="starts-with($value,'ÿc9')">
				#E0E000
			</xsl:when><xsl:otherwise>
				#ffffff
			</xsl:otherwise></xsl:choose></xsl:variable><xsl:choose><xsl:when test="contains($value,'++|')"><xsl:call-template name="break-replace"><xsl:with-param name="value" select="substring-after($value,'|')"/></xsl:call-template></xsl:when><xsl:when test="contains($value,'|')"><xsl:choose><xsl:when test="starts-with(substring-after(substring-before($value,'|'),substring($value,1,3)), '[B]')"><div style="font-family: Microsoft Sans Serif; font-size: 14pt; font-weight: bold; text-align: center;color: {$color};"><xsl:choose><xsl:when test="starts-with($value,'ÿc')"><xsl:value-of select="substring-after(substring-before($value,'|'),substring($value,1,6))"/></xsl:when><xsl:otherwise><xsl:value-of select="substring-before($value,'|')"/></xsl:otherwise></xsl:choose><br/></div></xsl:when><xsl:otherwise><div style="font-family: Microsoft Sans Serif; font-size: 12pt; text-align: center;color: {$color};"><xsl:choose><xsl:when test="starts-with($value,'ÿc')"><xsl:value-of select="substring-after(substring-before($value,'|'),substring($value,1,3))"/></xsl:when><xsl:otherwise><xsl:value-of select="substring-before($value,'|')"/></xsl:otherwise></xsl:choose><br/></div></xsl:otherwise></xsl:choose><xsl:call-template name="break-replace"><xsl:with-param name="value" select="substring-after($value,'|')"/></xsl:call-template></xsl:when><xsl:otherwise><div style="text font: Microsoft Sans Serif; font-size: 12pt; text-align: center;color: {$color};"><xsl:choose><xsl:when test="starts-with($value,'ÿc')"><xsl:value-of select="substring-after($value,substring($value,1,3))"/></xsl:when><xsl:otherwise><xsl:value-of select="$value"/></xsl:otherwise></xsl:choose><br/></div></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="itemlog"><html><head><title><xsl:value-of select="/itemlog/item/@char"/>'s Itemlog</title><style type="text/css">
			.tooltip {
				opacity: 0.9;
				position: absolute;
				display: none;
				background-color: #333333;
				padding: 10px;
			}
			</style><script src="tooltip.js"/><script>
				var keptitems = new Array();
				var solditems = new Array();
				var i = 0;
				var n = 0;
				<xsl:for-each select="/itemlog/item"><xsl:if test="@mode = '0'">
						keptitems[i] = new Array(2);
						keptitems[i]['id'] = <xsl:value-of select="@id"/>;
						keptitems[i]['name'] = "<xsl:value-of select="@name"/>";
						keptitems[i]['ilvl'] = "<xsl:value-of select="@ilvl"/>";
						keptitems[i]['type'] = "<xsl:value-of select="@type"/>";
						keptitems[i]['typedesc'] = "<xsl:value-of select="@typedesc"/>";
						keptitems[i]['location'] = "<xsl:value-of select="@typedesc"/>";
						i++;
					</xsl:if><xsl:if test="@mode = '1'">
						solditems[n] = new Array(2);
						solditems[n]['id'] = <xsl:value-of select="@id"/>;
						solditems[n]['name'] = "<xsl:value-of select="@name"/>";
						solditems[n]['ilvl'] = "<xsl:value-of select="@ilvl"/>";
						solditems[n]['type'] = "<xsl:value-of select="@type"/>";
						solditems[n]['typedesc'] = "<xsl:value-of select="@typedesc"/>";
						solditems[n]['location'] = "<xsl:value-of select="@typedesc"/>";
						n++;
					</xsl:if></xsl:for-each>
				
				var line = "";

				function showAll() {
					var noresult = document.getElementById("noresult");
					noresult.style.display = "none";
					for(i=0;i < keptitems.length; i++) {
						line = document.getElementById("l" + keptitems[i]['id']);
						line.style.display = "block";
					}
					for(i=0;i < solditems.length; i++) {
						line = document.getElementById("l" + solditems[i]['id']);
						line.style.display = "block";
					}
				}
				
				function showKept() {
					var noresult = document.getElementById("noresult");
					noresult.style.display = "none";
					for(i=0;i < keptitems.length; i++) {
						line = document.getElementById("l" + keptitems[i]['id']);
						line.style.display = "block";
					}
					for(i=0;i < solditems.length; i++) {
						line = document.getElementById("l" + solditems[i]['id']);
						line.style.display = "none";
					}
				}

				function showSold() {
					var noresult = document.getElementById("noresult");
					noresult.style.display = "none";
					for(i=0;i < keptitems.length; i++) {
						line = document.getElementById("l" + keptitems[i]['id']);
						line.style.display = "none";
					}
					for(i=0;i < solditems.length; i++) {
						line = document.getElementById("l" + solditems[i]['id']);
						line.style.display = "block";
					}
				}

				function showNone() {
					for(i=0;i < keptitems.length; i++) {
						line = document.getElementById("l" + keptitems[i]['id']);
						line.style.display = "none";
					}
					for(i=0;i < solditems.length; i++) {
						line = document.getElementById("l" + solditems[i]['id']);
						line.style.display = "none";
					}
				}
				
				function searchName(e) {
					var ENTER_KEY = 13;
					var code = "";

					if (window.event) { // IE
						code = e.keyCode;
					} else if (e.which) { // Netscape/Firefox/Opera
						code = e.which;
					}

					if(code == ENTER_KEY) {
						var noresult = document.getElementById("noresult");
						noresult.style.display = "none";

						var input = document.getElementById("search");
						var string = input.value;
						var keptbox = document.getElementById("keptbox");
						var soldbox = document.getElementById("soldbox");
						var searchresults = 0;
						var search = eval("/" + string + "/i");
						showNone();
	
						if(keptbox.checked == true) {
							for(i=0;i < keptitems.length; i++) {
								var itemname = keptitems[i]['name'];
								var result = search.test(itemname);
								if(result == true) {
									searchresults++;
									
									line = document.getElementById("l" + keptitems[i]['id']);
									line.style.display = "block";
								}
							}
						}

						if(soldbox.checked == true) {
							for(i=0;i < solditems.length; i++) {
								var itemname = solditems[i]['name'];
								var result = search.test(itemname);
								if(result == true) {
									searchresults++;
						
									line = document.getElementById("l" + solditems[i]['id']);
									line.style.display = "block";
								}
							}
						}

						if(searchresults == 0) {
							var noresult = document.getElementById("noresult");
							noresult.style.display = "block";
						}
					}
				}	
			</script></head><body style="font-family: Microsoft Sans Serif; font-size: 10pt; background-color:#111111;"><input type="button" value="Show All" onClick="showAll()"/><input type="button" value="Show Kept" onClick="showKept()"/><input type="button" value="Show Sold" onClick="showSold()"/><span style="padding-left: 50px;color: #ffffff;">
					Search Item Name: <input type="text" id="search" onkeypress="searchName(event)"/>
					Kept <input type="checkbox" id="keptbox" checked="checked"/>
					Sold <input type="checkbox" id="soldbox" checked="checked"/></span><br/><main><div style="display: block; float: left; width: 175px; margin-right: 5px; color: #ffffff; font-weight: bold; text-align: center;">
					Time
			</div><div style="display: block; float: left; width: 180px; margin-left: 10px;color: #ffffff; font-weight: bold;">
					Found At
 			</div><div style="display: block; float: left; width: 50px; margin-left: 20px;color: #ffffff; font-weight: bold; text-align: center;">
					Action
			</div><div style="display: block; float: left; width: 150px; margin-left: 10px;color: #ffffff; font-weight: bold; text-align: center;">
					Type
			</div><div style="display: block; float: left; margin-left: 10px; color: #ffffff; font-weight: bold;text-align: left;">
					Name
 			</div></main><br/><div id="results"><xsl:for-each select="/itemlog/item"><xsl:sort select="@id" order="descending" data-type="number"/><div id="noresult" style="display: none;font-weight: bold;color: #FF0000;text-align: center;">Your search returned no result!</div><div><xsl:attribute name="id">l<xsl:value-of select="@id"/></xsl:attribute><xsl:if test="@mode = '1'"><xsl:attribute name="style">display: none;</xsl:attribute></xsl:if><xsl:choose><!-- Magic --><xsl:when test="@quality = '4'"><div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: center;"><xsl:value-of select="@time"/></div><div style="display: block;color: #ffffff; float: left; width: 180px; margin-right: 10px; margin-left: 10px;"><xsl:value-of select="@location"/></div><div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px; text-align: center;"><xsl:choose><xsl:when test="@mode = '0'"><div style="color: #00C408;">
										Kept
									</div></xsl:when><xsl:when test="@mode = '1'"><div style="color: #DC143C;">
										Sold
									</div></xsl:when></xsl:choose></div><div style="display: block; color: #4850B8; font-weight: bold; float: left; width: 150px; margin-right: 10px; text-align: center;"><xsl:value-of select="@typedesc"/></div><span style="color: #4850B8; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span><br/><div class="tooltip"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #4850B8; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div><span style="color: #ffffff"><xsl:call-template name="break-replace"><xsl:with-param name="value" select="."/></xsl:call-template></span></div></xsl:when><!-- Set --><xsl:when test="@quality = '5'"><div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: center;"><xsl:value-of select="@time"/></div><div style="display: block;color: #ffffff; float: left; width: 180px; margin-right: 10px; margin-left: 10px;"><xsl:value-of select="@location"/></div><div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px; text-align: center;"><xsl:choose><xsl:when test="@mode = '0'"><div style="color: #00C408;">
										Kept
									</div></xsl:when><xsl:when test="@mode = '1'"><div style="color: #DC143C;">
										Sold
									</div></xsl:when></xsl:choose></div><div style="display: block; color: #00C408; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div><div class="tooltip"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #00C408; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div><span style="color: #ffffff"><xsl:call-template name="break-replace"><xsl:with-param name="value" select="."/></xsl:call-template></span></div><div style="color: #00C408; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></div></xsl:when><!-- Rare --><xsl:when test="@quality = '6'"><div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: center;"><xsl:value-of select="@time"/></div><div style="display: block;color: #ffffff; float: left; width: 180px; margin-right: 10px; margin-left: 10px;"><xsl:value-of select="@location"/></div><div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px; text-align: center;"><xsl:choose><xsl:when test="@mode = '0'"><div style="color: #00C408;">
										Kept
									</div></xsl:when><xsl:when test="@mode = '1'"><div style="color: #DC143C;">
										Sold
									</div></xsl:when></xsl:choose></div><div style="display: block; color: #E0E000; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div><span style="color: #E0E000; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span><br/><div class="tooltip"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #E0E000; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div><span style="color: #ffffff"><xsl:call-template name="break-replace"><xsl:with-param name="value" select="."/></xsl:call-template></span></div></xsl:when><!-- Unique --><xsl:when test="@quality = '7'"><div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: center;"><xsl:value-of select="@time"/></div><div style="display: block;color: #ffffff; float: left; width: 180px; margin-right: 10px; margin-left: 10px;"><xsl:value-of select="@location"/></div><div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px; text-align: center;"><xsl:choose><xsl:when test="@mode = '0'"><div style="color: #00C408;">
										Kept
									</div></xsl:when><xsl:when test="@mode = '1'"><div style="color: #DC143C;">
										Sold
									</div></xsl:when></xsl:choose></div><div style="display: block; color: #908858; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div><span style="color: #908858; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span><br/><div class="tooltip"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #908858; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div><span style="color: #ffffff"><xsl:call-template name="break-replace"><xsl:with-param name="value" select="."/></xsl:call-template></span></div></xsl:when><!-- Crafted --><xsl:when test="@quality = '8'"><div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: center;"><xsl:value-of select="@time"/></div><div style="display: block;color: #ffffff; float: left; width: 180px; margin-right: 10px; margin-left: 10px;"><xsl:value-of select="@location"/></div><div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px; text-align: center;"><xsl:choose><xsl:when test="@mode = '0'"><div style="color: #00C408;">
										Kept
									</div></xsl:when><xsl:when test="@mode = '1'"><div style="color: #DC143C;">
										Sold
									</div></xsl:when></xsl:choose></div><div style="display: block; color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div><span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span><br/><div class="tooltip"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #FF8000; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div><span style="color: #ffffff"><xsl:call-template name="break-replace"><xsl:with-param name="value" select="."/></xsl:call-template></span></div></xsl:when><!-- Default --><xsl:otherwise><div style="display: block;color: #ffffff; float: left; width: 175px; margin-right: 5px; text-align: center;"><xsl:value-of select="@time"/></div><div style="display: block;color: #ffffff; float: left; width: 180px; margin-right: 10px; margin-left: 10px;"><xsl:value-of select="@location"/></div><div style="display: block;color: #ffffff; float: left; width: 50px; margin-right: 10px; margin-left: 10px; text-align: center;"><xsl:choose><xsl:when test="@mode = '0'"><div style="color: #00C408;">
										Kept
									</div></xsl:when><xsl:when test="@mode = '1'"><div style="color: #DC143C;">
										Sold
									</div></xsl:when></xsl:choose></div><xsl:choose><xsl:when test="@ethereal = '1'"><div style="display: block;color: #808080; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div></xsl:when><xsl:when test="@ethereal = '0'"><xsl:choose><xsl:when test="@typedesc = 'Quest Item'"><div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div></xsl:when><xsl:when test="@typedesc = 'Rune'"><div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div></xsl:when><xsl:when test="@typedesc = 'Essence'"><div style="display: block;color: #FF8000; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div></xsl:when><xsl:otherwise><div style="display: block;color: #ffffff; font-weight: bold; float: left; width: 150px; margin-right: 10px;text-align: center;"><xsl:value-of select="@typedesc"/></div></xsl:otherwise></xsl:choose></xsl:when></xsl:choose><xsl:choose><xsl:when test="@ethereal = '1'"><span style="color: #808080; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span></xsl:when><xsl:when test="@ethereal = '0'"><xsl:choose><xsl:when test="@typedesc = 'Quest Item'"><span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span></xsl:when><xsl:when test="@typedesc = 'Rune'"><span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span></xsl:when><xsl:when test="@typedesc = 'Essence'"><span style="color: #FF8000; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span></xsl:when><xsl:otherwise><span style="color: #ffffff; font-weight: bold" onMouseOut="hideTT()"><xsl:attribute name="onMouseOver">showTT('<xsl:value-of select="@id"/>')</xsl:attribute><xsl:value-of select="@name"/></span></xsl:otherwise></xsl:choose></xsl:when></xsl:choose><br/><div class="tooltip"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute><xsl:choose><xsl:when test="@ethereal = '1'"><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #808080; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div></xsl:when><xsl:when test="@ethereal = '0'"><xsl:choose><xsl:when test="@typedesc = 'Quest Item'"><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #FF8000; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div></xsl:when><xsl:when test="@typedesc = 'Rune'"><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #FF8000; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div></xsl:when><xsl:when test="@typedesc = 'Essence'"><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #FF8000; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div></xsl:when><xsl:otherwise><div style="font-family: Microsoft Sans Serif; font-size: 14pt; color: #ffffff; font-weight: bold;text-align: center;"><xsl:value-of select="@name"/></div></xsl:otherwise></xsl:choose></xsl:when></xsl:choose><span style="color: #ffffff;"><xsl:call-template name="break-replace"><xsl:with-param name="value" select="."/></xsl:call-template></span></div></xsl:otherwise></xsl:choose></div></xsl:for-each></div></body></html></xsl:template></xsl:stylesheet>
paracetamol10 is offline  
Reply


Similar Threads Similar Threads
exp anzeigen in %?
08/15/2010 - Diablo 2 - 1 Replies
Hi! Gibts irgendein addon für d2, wo ich mir in irgendeiner ecke dauerhaft die exp vom jetzigen level in % anzeigen lassen kann? bzw irgendwas für d2nt? danke für eure hilfe ;D grüße Hfredus
Datein anzeigen CA
03/21/2010 - Combat Arms - 2 Replies
Hey, wie schaff ich es alle Dateien von Combat Arms EU sichtbar zumachen? Im Moment seh ich nur die Combat Arms EU - Verknüpfung. Ich möchte aber auch die .dll und anderen dateien sehen. Weiß da jemand bescheid? MfG
Texturen anzeigen
03/14/2010 - Metin2 Private Server - 0 Replies
Hay, ich würde euch gerne mal Fragen wie ich bei dem Granny Viewer die Texturen anzeigen lasse ? (*.gr2 Dateienformat) Und so ganz nebenbei noch wie ich diese dan bearbeite. Lg x3NeVer
Kan ich jmd anzeigen
08/02/2009 - Metin2 - 5 Replies
Kan ich jmd anzeigen wenn er mich durch keyoger hakct mein email unso ändert?
WoE DMG anzeigen *wie??*
07/22/2006 - Ragnarok Online - 7 Replies
Hallo erstmal ^^ Also das ist mein 2. eigentlich mein erster post... hab ausversehen im falschen thread geposted x.X Also wollte mal fragen ob jemand die "werte" kennt um den WoE DMG zusehen... also so das ich die im HEX editor ändern kann ^^ so wie das hier -> Unlimited zoom ____________________



All times are GMT +2. The time now is 01:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.