title: JAX-RS/Jersey + text/xml : can I specify a xml-stylesheet?
body: <p>I've implemented a REST service using <a href="http://jersey.java.net/" rel="nofollow">jersey</a>. When the mime-type for the response is "text/xml" is there a way to specify an associated <a href="http://www.w3.org/TR/xml-stylesheet/" rel="nofollow">xml-stylesheet</a> ?</p>
  
  <p>Thank you.</p>
  
  <p>update: here is a snippet of code:</p>
  
  <pre><code>@Path("/service")
  @Stateless
  public class MyServices
      {
      @PersistenceContext(unitName = "em")
      private EntityManager em;
  
      @Path("/id/{id}")
      @GET
      public MyClass getById(@PathParam("id")long id)
          {
          MyClass o=em.find(MyClass.class, id);
          return o;
          }
       }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>@Entity(name="X")
  @XmlRootElement(name="X")
  @NamedQueries(...)
  public class MyClass
      implements Serializable
      {
      private static final long serialVersionUID = 1L;
  
      ...
          }
  </code></pre>