users@wadl.java.net

Re: Using RNG schemas

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 06 Jun 2008 12:28:00 -0400

On Jun 6, 2008, at 12:06 PM, John Cooke wrote:
>
> I'm just getting into WADL. I've successfully built a WADL using an
> XSD schema based on the examples.
>
> However, I've been trying to set up a WADL for a system where the
> requests (post) and responses are currently defined using RNG
> schemas with media type 'text/xml' an the XML itself is defined
> without any namespaces.
>
> I haven't been able to find any examples using RNG schemas, the
> specification says that the grammars section can contain either XSD
> or RNG but little else and my trials so far have all failed. Are
> there any examples of using RNG?
>
The spec allows RNG but wadl2java only currently supports XSD - sorry.

> I'd be happy to convert the RNG schemas to XSD except that since the
> XML contains no namespace I can't then get JAXB to parse the
> responses.
>
Hmm, can't you omit the targetNamespace attribute in the XSD to put
all the elements in the default namespace ?

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.