10-27-2011 03:25 PM
My Board House uses Lab View for their testers and likes to send me Test Reports in XML format. When I try to open them I get a blank screen. I have the style sheet in the smae directory as the file I'm opening. I'm using IE version 9.
Anyone know how to fix this problem ?
Bill
10-27-2011 03:40 PM
Bill,
Are you able to provide a sample XML report and the stylesheet?
Matthew
10-27-2011 03:46 PM
Hi Mat,
I tried to attached the files but this system doen't allow attaching xml files. Maybe these files don't work with Windows 7.
Bill
10-27-2011 03:52 PM
Try zipping them up.
10-27-2011 04:00 PM
Here they are ziped.
10-27-2011 04:13 PM
If you look in the first line, they have a syntax error.
They have xml:stylesheet. It should be xml-stylesheet, or possible xsl:stylesheet. But if they want xsl, they have other syntax problems.
Try changing it to xml-stylesheet in the first line and see if it loads up. If so, they need to make a modification to the software to fix the problem.
10-28-2011 09:00 AM
Hi Matt,
Thanks for the help.
I made the change and now the file opens in IE but it's show as a text file. Not as a web page.
I've asked the vendor to send me a text file instead but I will keep working on this problem.
Bill
10-28-2011 09:04 AM
Bill,
Can you zip up the stylesheet he gave you and send it to me.
10-28-2011 09:09 AM
Hi Matt,
Here it is. Hey where are you ? Are you always on this system ?
Bill
10-28-2011 09:12 AM
Bill,
I relaized they were using the TestStand standard stylesheet. I have TestStand2010 and copied that file. On my system, I appear to have to change the stylesheet directory to just list the sheet instead of the full path.
So, you can copy your stylesheet into the directory listed in the XML file so you won't have to continuously modify the files (although the syntax error is still there), or you'll need to change your stylesheet tag to be
<?xml-stylesheet type="text/xsl" href="horizontal.xsl"?>
and keep the stylesheet in the same diretcory.