I know we can apply an XSLT stylesheet to an XML Schema document. The stylesheet could generate an HTML manual by extracting the Documentation nodes in the desired language. Does anyone know if JAXB has similar functionality?
Thanks
I know we can apply an XSLT stylesheet to an XML Schema document. The stylesheet could generate an HTML manual by extracting the Documentation nodes in the desired language. Does anyone know if JAXB has similar functionality?
Thanks
JAXB has a schema compiler (XJC) which processes the schema and generates schema-derived classes. XJC supports a mechanism of plugins. Plugins can look into the "schema components" which produce individual classes and properties.
So yes, there is something similar in JAXB world.
See also this write-up on XJC internals.