Support Requests: Browse | Submit New | Admin

[#21972] Modify .xml results file to include .xsl stylesheet

Date:
2008-09-15 22:04
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Modify .xml results file to include .xsl stylesheet

Detailed description
Hi!

I'm new to using ci_reporter, but so far, I'm really excited about it.  I've created a .xsl file to transform the xml
results file into something more readable.

If possible, I'd like to automate the task of adding a line to my .xml results file that specifies the .xsl file to
use.  Then I can just copy the file out to the network and the powers that be can see the results in a readable format
any time they want.

I've tried reading the whole file into a string so I can perform a sub!. However, I think my files are bigger than the
amount of data a string can hold because my .xml results file ends up getting truncated.

Is there an easy way to replace this:

<?xml version="1.0" encoding="UTF-8"?>


with this: 

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="transform-results.xsl"?> 


at the beginning of the results file?

I've posted this question to the Watir Google Group - I'll post your answer there to help others that may run into this
problem.

I'd really appreciate any help you can provide!

Thanks in advance!

-Tiffany Fodor

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item