NewsML-G2 2.36

Preview. Generated from the NewsML-G2 2.36 XML Schema by tools/xsdref. This layout is a harness for reviewing structure and content — it is not the published site.

rankingAttributes

An attribute group. Elements listing it carry every attribute below.

Note
Usage note

Processing rules for the rank attribute:

Properties with a lower value of the rank attribute have a higher importance than properties with a higher value of this attribute. All properties with the same value of rank have the same importance.

All properties without a rank have the same importance, which is lower than the importance of all properties with this attribute.

If relative importance is being used to determine display order, then:

  • Properties with a lower value of rank should be displayed before properties with a higher value of this attribute.

  • Properties with the same value of rank should be ordered within this rank alphabetically by their names if these are available. If some or all of the names are available in multiple languages, the order of the properties will depend on the language chosen.

  • All properties without a rank should be displayed after all properties with this attribute.

Examples (using rank with the language property):

<<!-Rank as: all equal (implicit) -->

<language tag="en"/>

<language tag="fr"/>

<language tag="es"/>

<language tag="de"/>

<!-Rank as: en, then any others -->

<language tag="en" rank="1"/>

<language tag="fr"/>

<language tag="es"/>

<language tag="de"/>

<!-Rank as: en, then fr, then es, then de -->

<language tag="en" rank="1"/>

<language tag="fr" rank="2"/>

<language tag="es" rank="3"/>

<language tag="de" rank="4"/>

<!-Rank as: en, then fr, then any others -->

<language tag="en" rank="1"/>

<language tag="fr" rank="2"/>

<language tag="es"/>

<language tag="de"/>

<!-Rank as: en and fr, then any others -->

<language tag="en" rank="1"/>

<language tag="fr" rank="1"/>

<language tag="es"/>

<language tag="de"/>
Attribute Type Use Description

rank

nonNegativeInteger

optional

Indicates the relative importance of properties in a list.