Issue Details (XML | Word | Printable)

Key: JAXB-677
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Martin Grebac
Reporter: mattbishop
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

@XmlRootElement should allow stylesheet declarations

Created: 14/Aug/09 04:28 PM   Updated: 12/Apr/11 02:41 AM
Component/s: spec
Affects Version/s: 2.1.12
Fix Version/s: not determined

Time Tracking:
Not Specified


Operating System: All
Platform: All

Issuezilla Id: 677
Participants: Martin Grebac, mattbishop and Pavel Bucek

 Description  « Hide

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.

Pavel Bucek added a comment - 14/Aug/09 11:27 PM

marking as enhancement