- Apr 26, 2013View Source
if a first step you must define to which context a ranking of news items applies:
- The @rank attributes of <headlines> assert the ranking of this <headline> among all <headline>s.
- From what you say in your first sentence you hand over a bunch of news items to the web-widget and the widget should render the items in a sequence following the ranking.
Correct, and all articles will be in one big/small NewsML file.
- The open issue is therefore: how to set the context for the rankings – how can you assert “this item has the rank 3 among all items”, by which means is the bunch of “all items” defined?
We will in our production system set that this article has rank 1 and so on, or if we are to create a bunch of articles in one document, we will rank first 1, last X.
- In NewsML-G2 the Package Item is the perfect tool to do this: a group can be made of links to news items using the <itemRef> and this <itemRef> has a @rank attribute. That’s it.
Yes, that was what I thought also, but when testing in Oxygen, I could not find a valid point of input for the itemRef, oxygen warned me each time I tried.
Managing Director of the IPTC [mdirector@...]
Business office address:
25 Southampton Buildings, London WC2A 1AL, United Kingdom
Registered in England, company no 101096