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>