How to convert sparql results into html format

Hello,

I am very new to this technology. I have one rdf file and I am reading
this file using jena framework api and I am getting sparql results. I am
using ResultSetFormatter.outputAsXML(out, results, stylesheet) method to
display results. But I am getting the error message as 

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later. 

 

------------------------------------------------------------------------
--------

Invalid at the top level of the document. Error processing resource '
http://localhost:8090/query/servlet/queryExample4
<BLOCKED::http://localhost:8090/query/servlet/queryExample4> '. L...

</xsl:stylesheet>"?>

-----------------^

I have attached rdf and java file. Please let me know how I should
correct this error. I am making xsl as string in my application is it ok
or any other way to display. Please let me know.

 
Thanks and Regards,
Shylaja N.S
Wipro Technologies., - Bangalore
Phone : 9880648604	
 

Please do not print this email unless it is absolutely necessary. Spread environmental awareness.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com

Received on Tuesday, 5 February 2008 11:51:38 UTC