OK, how about something like this?

The 'app:error' element represents an Atom Error Document.

appError = element app:error {
atomCommonAttributes,
(
 atomCategory*
 & atomContent?
 & atomGenerator*
 & atomId?
 & atomLink*
 & atomPublished?
 & atomSummary?
 & atomTitle
 & atomUpdated?
)
}

Example:

<app:error xmlns:app="http://purl.org/atom#error";
xmlns="http://www.w3.org/2005/Atom";>
<title>Authentication failure</title>
<link type="text/html" href="http://example.org/Foo
     Publish/Docs/Auth.html"/>
<generator uri="http://www.example.com/FooPublisher";
     version="1.0">Foo Publisher 1.0</generator>
<summary>Invalid User ID or Password</summary>
<content type="text">This [blog or whatever name here]
 allows access only to authorized users. Please supply
 a valid user ID and Password.</content>
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
<updated>2003-12-13T18:30:02Z</updated>
</app:error>


I personaly prefer the Atom Entry Document over this
Atom Error Document because I have to define a new
ErrorDoc class for my APP client. But I wanted to
bring atom:generator and made atom:updated and
atom:id optional.

So, below would be valid(I think).
<app:error xmlns:app="http://purl.org/atom#error";
xmlns="http://www.w3.org/2005/Atom";>
<title>Internal Server Error</title>
</app:error>

Any thoughts?

cheers

Reply via email to