XML Log Anzeigen?

08/23/2010 01:00 Tarmiklol#1
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 :/
08/23/2010 05:17 biggi21#2
lol woher hast du das, das man mit firefox augenkrebs bekommt?
stimmt das?
und was ist alles mit dem anderen?
googlecrom, opera etc?
08/23/2010 07:11 augustiner#3
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.
08/23/2010 07:47 Devil122#4
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?

:awesome: :awesome: :awesome:

Ich kann nicht mehr :D :D :D
08/23/2010 15:24 Tarmiklol#5
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.
08/23/2010 18:27 Muddy Waters#6
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
08/23/2010 18:32 PCSmash#7
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
08/23/2010 18:43 Muddy Waters#8
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. :D

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

Lg
Muddy
08/23/2010 19:00 Test_The_Rest#9
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. :D

Weiter Browser habe ich nicht getestet.
08/23/2010 19:35 Muddy Waters#10
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. :D

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

Ich sollte mich was schämen... :o

Lg
Muddy
08/23/2010 19:42 Test_The_Rest#11
Aber das liegt doch alles nicht am Quelltext des Scripts, das liegt an den Browsern :D

</ironie>
08/23/2010 21:17 xdoddestroyer#12
nvm
08/23/2010 21:19 Test_The_Rest#13
Wie meinen?
08/23/2010 22:41 PCSmash#14
Also Firefox mag das auch net^^

€: [Only registered and activated users can see links. Click Here To Register...] aus dem downlaod den log ordner nehmen und über den eigenen log ordner kopieren dann gehts mit firefox
10/19/2012 03:59 paracetamol10#15
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>