I agree with Marc.
Fix the example.
Regards
Philip Fennell
>XML Developer (The Forge)
>
>BBC Future Media & Technology
>Media Village, 201 Wood Lane London W12 7TP
>BC4 C4, Broadcast Centre
>
>T: 0208 0085318
-----Original Message-----
From: Marc.Hadley_at_Sun.COM [mailto:Marc.Hadley_at_Sun.COM]
Sent: 21 August 2009 14:48
To: users_at_wadl.dev.java.net
Subject: Re: Methods and id attributes
On Aug 21, 2009, at 6:44 AM, Sergey Beryozkin wrote:
>
> The WADL spec says that 'id' attributes are allowed on global method
> declarations only but the sample on page 3 shows that a local method
> tag also has an id attribute.
> So can this restriction be relaxed so that id attrubutes can be put on
> local method elements ? I'd rather do it rather than introducing some
> custom extensions....
Well spotted !
The issue with id attributes on local method elements is that you could
then refer to them from elsewhere and the problem with that is what
context to carry over, e.g. is a resource-wide parameter carried over to
the referring resource or resource_type from the local containing
resource. It also means that processors have to scan every method rather
than just global ones when looking for the target of a reference.
On balance I think I prefer retaining the restriction and fixing the
example. What do others think ?
Marc.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_wadl.dev.java.net
For additional commands, e-mail: users-help_at_wadl.dev.java.net
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.