[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rest-practices] Namespace qualifying respresentation types



On Fri, 2010-04-30 at 16:06 +0100, Eoghan Glynn wrote:
> 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.

Trang[1] will convert from rng (or rnc) to xsd. And it's written in
java.

David

[1] http://www.thaiopensource.com/relaxng/trang.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]