Hi,

I am wanting to perform an XSLT transformation on XML input.

Please see code snippet below:

if (queryString != null) {

        Representation representation = new StringRepresentation(queryString, 
MediaType.APPLICATION_RDF_XML);

                                        FileRepresentation xsltRepresentation = 
new FileRepresentation("location of file",MediaType.TEXT_XML);
                                        
/**
* Transforms a source XML representation by applying XSLT transform sheet to 
it. */

Representation result = new TransformRepresentation(
getContext(), representation, xsltRepresentation);

/**
* Set the MIME Type for the Represenatition
 */
                                        
result.setMediaType(MediaType.TEXT_HTML);
return result;
}

The requirement is to be able view the source of the output (from a browser) as 
the orginal XML and not the processed XML.Any ideas how this can be done?

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2697491

Reply via email to