From: Casper Bang <casper.bang_at_gmail.com>
Date: Wed, 9 Mar 2011 21:21:55 +0100
I was wondering if there wasn't a way for me to associate a stylesheet with
XML output generated by JAXB, such that browsers won't complain and would
render things more pleasantly (i.e. underline links and make i easy to
explore/navigate a resource graph). I've come across some interesting stuff
in the jboss docs, hinting at an XmlHeader annotation:
http://docs.jboss.org/resteasy/docs/1.1.GA/userguide/html/Built_in_JAXB_providers.html
I am curious, is there really no other way to do it? I realize of course
that XML is for machine processing first and foremost, but I see no harm in
supplying styling info now it's actually a W3C recommendation [
http://www.w3.org/TR/xml-stylesheet/].