[rest-practices] Namespace qualifying respresentation types

Bill Burke bburke at redhat.com
Fri Apr 30 19:42:20 UTC 2010



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.
> 

FYI, AFAIK, there is not JAXB support for Relax NG.


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com




More information about the rest-practices mailing list