title: JAX RS MediaType annotation values must be of the form 'name=value'
body: <p>I am supposed to learn restful services using Java and JAX RS. I am trying to compile the following code, however I receive an error stating: <code>annotation values must be of the form 'name=value'</code>. </p>
  
  <p>The code is in principle correct, it is equivalent with <a href="http://www.vogella.com/tutorials/REST/article.html" rel="nofollow">http://www.vogella.com/tutorials/REST/article.html</a></p>
  
  <pre><code>import javax.ws.rs.*;
  import javax.ws.rs.core.*;
  import javax.xml.ws.Response;
  import java.io.IOException;
  
  @Path("/")
  public class WebResource {
  
      @GET
      @Produces(
              MediaType.APPLICATION_XML,
              MediaType.APPLICATION_ATOM_XML)
      @XmlHeader("&lt;?xml-stylesheet type='text/xsl' href='=static/styles/atom2html.xsl' ?&gt;")
      public Feed getFeed() {
          return FeedController.getInstance().getFeed();
      }
  }
  </code></pre>