Return-Path:
-<?xml-stylesheet type="text/xls" href="http://localhost/myapp/stylesheets/toHTML.xsl"?> +<?xml-stylesheet type="text/xsl" href="http://localhost/myapp/stylesheets/toHTML.xsl"?> <products xmlns="http://products"> <product id="1"/> </products> @@ -429,7 +429,7 @@ This option is alternative to using XSLT <bean id="jaxbProvider" class="org.apache.cxf.jaxrs.provider.JAXBElementProvider"> <map> <entry key="com.sun.xml.bind.xmlHeaders" - value="<?xml-stylesheet type='text/xls' href='/stylesheets/toHTML.xsl'?>"/> + value="<?xml-stylesheet type='text/xsl' href='/stylesheets/toHTML.xsl'?>"/> </map> </bean> </beans> @@ -447,7 +447,7 @@ Otherwise the best option is to extend J public class Resource { @GET @Produces("application/xml") - @XMLInstruction("<?xml-stylesheet type='text/xls' href='/stylesheets/toHTML.xsl'?>") + @XMLInstruction("<?xml-stylesheet type='text/xsl' href='/stylesheets/toHTML.xsl'?>") public Products getProducts() {} }