Open glassfishrobot opened 15 years ago
I'd love to specify a stylesheet for an @XmlRootElement without having to mess around with the marshaller. For instance, it would be great to have something like:
@XmlStylesheet(type="text/css" href="stylesheet.css")
That would generate: <?xml-stylesheet type="text/css" href="resource.css"?>
This is interesting in the JAX-RS world as it would give developers a way to support HTML requests of XML data with little effort.
Operating System: All Platform: All
[2.1.12]
Reported by mattbishop
@pavelbucek said: marking as enhancement
Was assigned to snajper
This issue was imported from java.net JIRA JAXB-677
I'd love to specify a stylesheet for an @XmlRootElement without having to mess around with the marshaller. For instance, it would be great to have something like:
@XmlStylesheet(type="text/css" href="stylesheet.css")
That would generate: <?xml-stylesheet type="text/css" href="resource.css"?>
This is interesting in the JAX-RS world as it would give developers a way to support HTML requests of XML data with little effort.
Environment
Operating System: All Platform: All
Affected Versions
[2.1.12]