[rest-practices] Namespace qualifying respresentation types

Eoghan Glynn eglynn at redhat.com
Fri Apr 30 15:06:24 UTC 2010


On Fri, 2010-04-30 at 16:19 +0200, Daniel Veillard wrote:
> On Thu, Apr 29, 2010 at 11:55:07AM +0100, Eoghan Glynn wrote:
> > Folks,
> > 
> > I wanted to get the group's feeling for the use of namespaces in
> > representation types.
> > 
> > The context for the question initially comes from a discussion about how
> > action/operations were to be modelled in RHEVM-API, particularly how to
> > capture the action-specific parameter types in the schema. In XML schema
> > terms, my first cut was to use an xs:any within the action element, but to
> > restrict the contained type to the local namespace. Which of course requires
> > that a target namespace is defined in the first place.
> 
>   Why XML Schemas ? Why not Relax-NG instead.


Yeah, I'd love to learn RELAX NG properly.

However on the RHEVM-API project we've codegen'd the JAXB model from
schema, and unfortunately the JAXB compiler's support for RNG is marked
"(experimental,unsupported)" so I'd be a bit nervous about relying on
it.

Cheers,
Eoghan




More information about the rest-practices mailing list