Thanks Marc,
That makes perfect sense :-)
Regards!
/Ole
Eviware.com
-----Original Message-----
From: Marc.Hadley_at_Sun.COM [mailto:Marc.Hadley_at_Sun.COM]
Sent: Monday, September 08, 2008 16:18
To: users_at_wadl.dev.java.net
Subject: Re: newbie questions..
On Sep 6, 2008, at 4:28 AM, Ole Matzura wrote:
>
> We are about to release a new version of soapUI with comprehensive
> WADL support (importing, generating, etc..).. I have a question
> regarding the Atom example in the spec (page 20) which uses xml:base
> to "extend" the basic wadl on the previous page. From my
> understanding of the xml:base attribute (as described at
http://www.w3.org/TR/xmlbase/)
> is that it should be used together with (for example) xlink for
> referencing external resources, I can't find any information saying
> that a "standalone" xml:base attribute should be interpreted as in
> "import". Is this missing from the example or have I missed
> something in the spec(s).. !?
>
xml:base is just used to set the base URI that relative URIs will be
resolved against. It doesn't have any "import" semantic. Its not
actually used in the example on page 20 since the values of the
resource/_at_type attributes are absolute URIs anyway.
> Otherwise I would have expected an import possibility (as in WSDL),
> for example in the grammars section of the derived WADL..!?
>
In WADL there's no need to explicitly import another WADL, you just
refer to constructs in an external WADL via a URI. So in the example
you referred to:
<resource path="reilly/main"
type="
http://purl.org/atom/app.wadl#entry_feed"
app:member-type="entry"/>
The resource element above refers to the resource_type element whose
id is "entry_feed" in the WADL document at
http://purl.org/atom/
app.wadl. A WADL processor can follow the link to "import" the
external WADL element as required.
Hope that helps.
Marc.
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_wadl.dev.java.net
For additional commands, e-mail: users-help_at_wadl.dev.java.net