Subject: | Namespace of XML::Atom::Category should be independent from its parent element |
I implemented XML::Atom::Service, that supports Service/Category
Documents defined in Atom Publishing Protocol (APP). I found that the
namespace of XML::Atom::Category is defined by its parent element, but
it seems strange.
In XML::Atom::Category ver.0.25, the parent namespace is inherited since
XML::Atom::Category::element_ns returns undef. However, category and its
parent (categories) must be different namespaces; category element is in
http://purl.org/atom/ns# or http://www.w3.org/2005/Atom, while
categories element is in http://purl.org/atom/app# . It's better that
XML::Atom::Category::element_ns would return its namespace explicitly,
as follows.
sub XML::Atom::Category::element_ns {
$XML::Atom::Util::NS_MAP{$XML::Atom::DefaultVersion}
};