Rome propono issue: 'Category' in service document not correctly parsed

Description

There is a problem with attributes on "category" elements of a service document.
The rome propono library won't recognize the attribute "term" (or any other
attributes) unless they are prefixed with namespace "atom:".

This prefix on the attributes should not be needed if the namespaces are defined
correctly. An example of this can be seen in the examples provided by the APP
RFC:
http://www.atomenabled.org/developers/protocol/atom-protocol-spec.php#appdocs_example.

If I use the following code to parse the service document given in the example,
the attributes of the "atom:category" elements in the second collection are null.

...
AtomService atomService = ClientAtomService.documentToService(jdom_doc);
(where jdom_doc is a org.jdom.Document of the example atom service document)
....

The term attributes and scheme attributes should both have a value, as the draft
from the example shows:

<categories fixed="yes">
<atom:category
scheme="http://example.org/extra\-cats/"
term="joke" />
<atom:category
scheme="http://example.org/extra\-cats/"
term="serious" />
</categories>

I also tried to make a call to cateogoriesToElement() on the "Categories"
object, but this throws an exception due to that a null value is not allowed for
the "term" attribute.

If I prefix the attributes of the "atom:cateogory" with "atom:", then all is fine.

Environment

None

Status

Assignee

ROME Jira Lead

Reporter

floysand

Labels

None

Participants

None

Affects versions

current

Priority

Major