Jump to content

Probs Ref the XML


Viago

Recommended Posts

ok so heres my prob, one of the xml files is coded difrent, and i cant seem to ref it properlyive tried everything. and recoding the xml is out of the question =/XML Sniplet

<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="stule2.xsl"?><uog><shard id="" name="" description="" web="" uptime="100" brand="9" language="ALL" host="" port="" account="" tp="1" hs="1" features="RPMADZ" votes="296" ps="99/210/386" />...</shards></uog>

XSL

<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">  <html><body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><img src="logo.jpg"> </img><table border="0" width="100%" class="tborder" cellspacing="0" cellpadding="10"><tbody>	<xsl:for-each select="uog/shards/shard">		  <tr>			<td background="en-tete.jpg" height="39" colspan="2" valign='top'></td>		  </tr><tr>			<td background="blkbg.jpg" class="alt2"><font color="#FFFFFF"><h2><b><xsl:value-of select="name"/></b></h2></font><font color="#FFFFFF"><xsl:value-of select="description"/><br></br><xsl:value-of select="web"/></font></td><td bgcolor="#666666" class="alt2"><table border="0" cellpadding="0" cellspacing="0"><tr>				  <td class="smallfont" nowrap="nowrap"><font size="-4"><b>Uptime:</b></font></td>				  <td class="smallfont"><font size="-4"><xsl:value-of select="uptime"/></font></td>				</tr><tr>				  <td class="smallfont"><font size="-4"><b>Lang:</b></font></td>				  <td class="smallfont"><font size="-4"><xsl:value-of select="language"/></font></td>				</tr><tr>				  <td class="smallfont"><font size="-4"><b>Features:</b></font></td>				  <td class="smallfont"><font size="-4"><xsl:value-of select="features"/></font></td>				</tr><tr>				  <td class="smallfont"><font size="-4"><b>Votes:</b></font></td>				  <td class="smallfont"><font size="-4"><xsl:value-of select="votes"/></font></td>				</tr><tr>				  <td class="smallfont"><font size="-4"><b>Players:</b></font></td>				  <td class="smallfont"><font size="-4"><xsl:value-of select="ps"/></font></td>				</tr><tr>				  <td class="smallfont"><font size="-4"><b>Server:</b></font></td>				  <td class="smallfont"><font size="-4"><xsl:value-of select="brand"/></font></td>				</tr></table></td></tr> </xsl:for-each></tbody></table>  </body>  </html>    </xsl:template></xsl:stylesheet>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...