C
Christopher Brandsdal
Hi!
I have problems displaying a XML-file the way i want on my website.
This is the link to the file I have to display(ps: the file is on a remote
server, so I have to the file via http or something):
http://www.telenor.turnpike.no/voting/rakfiskfestival/public/status.xml
I want to display the data in my own designed HTML-code. One of the big
challanges to insert the "percent" field in the XML-file into the width="x%"
field in the HTML TD.
I have tried XSLT and lots of other things in VS2005, but I can't seem to
fin any solutin. This might be easy, but I'm a newb to XML ;-)
Here is the HTML-code i want the XML data to be inserted into:
(The fields from the XML-file is marked ### FieldName ###)
------------------------------------------------------------------------------------
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="115" height="25"><strong>### id ###</strong></td>
<td width="50" height="25"><em>(### count ###)</em></td>
<td width="195" height="25"><table width="195" height="12" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td width="### percent ###" bgcolor="#b4003c"> </td>
<td bgcolor="#fcedd9"> </td>
</tr>
</table></td>
</tr>
</table>
------------------------------------------------------------------------------------
If anyone know how to do this, I would love to hear abot it
Best regards,
Christopher Brandsdal
I have problems displaying a XML-file the way i want on my website.
This is the link to the file I have to display(ps: the file is on a remote
server, so I have to the file via http or something):
http://www.telenor.turnpike.no/voting/rakfiskfestival/public/status.xml
I want to display the data in my own designed HTML-code. One of the big
challanges to insert the "percent" field in the XML-file into the width="x%"
field in the HTML TD.
I have tried XSLT and lots of other things in VS2005, but I can't seem to
fin any solutin. This might be easy, but I'm a newb to XML ;-)
Here is the HTML-code i want the XML data to be inserted into:
(The fields from the XML-file is marked ### FieldName ###)
------------------------------------------------------------------------------------
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="115" height="25"><strong>### id ###</strong></td>
<td width="50" height="25"><em>(### count ###)</em></td>
<td width="195" height="25"><table width="195" height="12" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td width="### percent ###" bgcolor="#b4003c"> </td>
<td bgcolor="#fcedd9"> </td>
</tr>
</table></td>
</tr>
</table>
------------------------------------------------------------------------------------
If anyone know how to do this, I would love to hear abot it
Best regards,
Christopher Brandsdal