...
Code Block |
---|
<itemMeta> <itemClass qcode="ninat:composite" /> <provider qcode="nprov:AcmeNews" /> <versionCreated>2021-11-07T12:30:00Z</versionCreated> <firstCreated>2008-12-20T12:25:35Z</firstCreated> <pubStatus qcode="stat:usable" /> <profile versioninfo="1.0.0.2">simple_text_with_picture.xsl</profile> <service qcode="ex-svc:uktop"> <name>Top UK News stories hourly</name> </service> <title>UK-TOPNEWS</title> <edNote>Updates the previous version</edNote> <signal qcode="sig:update" /> </itemMeta> |
5. Item Metadata
The <itemMeta>
wrapper contains properties that are aids to processing the package contents.
5.1. Profile
The <profile>
element allows a provider to name a pre-arranged template or transformation stylesheet that can be used to process the package, for example "text and picture" could be the name of a template; "textpicture.xsl" would be an xsl stylesheet. The @versioninfo
of a <profile>
enables the template or stylesheet to be versioned:
Code Block | ||
---|---|---|
| ||
<profile versioninfo="1.0.0.2">simple_text_with_picture.xsl</profile> |
5.2. Item Metadata in full
Code Block | ||
---|---|---|
| ||
<itemMeta>
<itemClass qcode="ninat:composite" />
<provider qcode="nprov:AcmeNews" />
<versionCreated>2021-11-07T12:30:00Z</versionCreated>
<firstCreated>2008-12-20T12:25:35Z</firstCreated>
<pubStatus qcode="stat:usable" />
<profile versioninfo="1.0.0.2">simple_text_with_picture.xsl</profile>
<service qcode="ex-svc:uktop">
<name>Top UK News stories hourly</name>
</service>
<title>UK-TOPNEWS</title>
<edNote>Updates the previous version</edNote>
<signal qcode="sig:update" />
</itemMeta> |
6. Content Metadata
The <contentMeta>
wrapper in this example contains extended metadata about the person who compiled the package, including hours of duty and contact telephone number.
...
There needs to be some consideration of how such a "Super Package" should be processed by the receiver. The power and flexibility inherent in NewsML-G2 Packages could lead to confusion and processing complexity unless provider and receiver agree on a method for specifying the structure of packages and signalling this to the receiving application. Processing hints such as the <profile>
property (described above) intended to help resolve this issue.
...