Loading ...
Sorry, an error occurred while loading the content.

1369RE: [newsml-g2] ranking

Expand Messages
  • Michael Steidl (IPTC)
    Apr 26, 2013
    • 0 Attachment

      Hi Trond,

      I think you should talk seriously to Oxygen why it can’t collaborate with NewsML-G2 XML Schemas.


      This is what I’ve created with XMLspy on the fly:


      <?xml version="1.0" encoding="UTF-8"?>

      <packageItem standard="NewsML-G2" standardversion="2.12" guid="urn:newsml:iptc.org:20080101:examples-PIwithRanks1" xmlns="http://iptc.org/std/nar/2006-10-01/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://iptc.org/std/nar/2006-10-01/ http://www.iptc.org/std/NewsML-G2/2.12/specification/NewsML-G2_2.12-spec-All-Power.xsd">

                  <catalogRef href="http://www.iptc.org/std/catalog/catalog.IPTC-G2-Standards_21.xml"/>


                              <scheme alias="grroles" uri="http://examples.org/cv/grouproles/"/>



                              <itemClass qcode="ninat:composite"/>




                  <groupSet root="gr1">

                              <group id="gr1" role="grroles:main">

                              <itemRef residref="urn:newsml:iptc.org:20080101:examples-NItest141234" rank="3" />

                              <itemRef residref="urn:newsml:iptc.org:20080101:examples-NItest262564" rank="2" />

                              <itemRef residref="urn:newsml:iptc.org:20080101:examples-NItest087349" rank="1" />

                              <itemRef residref="urn:newsml:iptc.org:20080101:examples-NItest258452" rank="5" />

                              <itemRef residref="urn:newsml:iptc.org:20080101:examples-NItest825578" rank="4" />







      From: newsml-g2@yahoogroups.com [mailto:newsml-g2@yahoogroups.com] On Behalf Of trond.huso@...
      Sent: Friday, April 26, 2013 1:00 PM
      To: newsml-g2@yahoogroups.com
      Subject: RE: [newsml-g2] ranking


      Answering inbetween:

      Hi Trond,


      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.






      Michael Steidl

      Managing Director of the IPTC [mdirector@...]

      International Press Telecommunications Council
      www.iptc.org - on Twitter @IPTC

      Business office address:

      25 Southampton Buildings, London WC2A 1AL, United Kingdom

      Registered in England, company no 101096





      From: newsml-g2@yahoogroups.com [mailto:newsml-g2@yahoogroups.com] On Behalf Of trond.huso@...
      Sent: Friday, April 26, 2013 9:29 AM
      To: newsml-g2@yahoogroups.com
      Subject: [newsml-g2] ranking


      Hi list,


      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.


      Best regards,


      Trond Husø

      System Developer

      Mobile : +47 450 35 715

      E-mail : trond.huso@...






    • Show all 5 messages in this topic