On Sunday 08 of February 2009 19:51:29 Tiziano Müller wrote: > It's metadata-stuff, why not put it there? > > You have two possibilities: > > a) Introduce new elements: > <tags> > <tag>foo</tag> > <tag>bar</tag> > </tags> > > b) Think of herds as tags, then you have many packages already tagged. > To be able to add new herds/tags without messing up with the > maintainer-info, I'd then introduce new attributes for <maintainer> and > instead of writing <herd>foo</herd> meaning that a package is maintainer > by team "foo" just write <maintainer type="team">foo</maintainer> > instead. > Then you can use the "herd" element in metadata.xml freely as a tag.
That's basically exactly what I've proposed, I'd just add (possibly optional) weight or relevance of tag as well, for example: <tags> <tag>foo</tag> <!-- some less relevant tag --> <tag weight="0.5">bar</tag> </tags> as one cannot forget that tag search is *vector*, not binary search - so there are more possibilities to explore. Btw, too bad, metadat XML schema is written in DTD and not in some easier to read more expressive way - like RelaxNG. -- regards MM
signature.asc
Description: This is a digitally signed message part.