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.
- 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?
- 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.
Managing Director of the IPTC [mdirector@...]
International Press Telecommunications Council
Web: www.iptc.org - on Twitter @IPTC
Business office address:
25 Southampton Buildings, London WC2A 1AL, United Kingdom
Registered in England, company no 101096
From: firstname.lastname@example.org [mailto:email@example.com] On Behalf Of trond.huso@...
Sent: Friday, April 26, 2013 9:29 AM
Subject: [newsml-g2] ranking
We are to create a feed to a client that we use the feed to insert it into a web-widget. In the feed we must rank the article so one ranked first will be the first article in the widget.
I see that we have rank attributes in both NewsMLG2 and in NewsML1.2, but when I read about the rank attribute in the latter, I see that it is related to equivalents list.
Does that mean rank is not intended to be used to rank the articles in the NewsML1.2 file?
In NMLG2 I see that the rank attribute is used in a few elements. I am currently looking at Example 26 (LISTING26NewsML-G2_NewsMessage.xml) which contains the itemRef element that also allows using the rank attribute. But the example is not valid and when trying to create an example-file using the schema, Oxygen yields wherever I try and insert the itemRef element.
Any suggestions/examples in either NewsML1.x or NewsMLG2 are welcome.
Mobile : +47 450 35 715
E-mail : trond.huso@...