Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.71 KB

A.31.TGR33.downloadMultipleFilesGuidance.md

File metadata and controls

31 lines (18 loc) · 1.71 KB

Provide guidance for downloading multiple physical files

Purpose:

Where a dataset is provided in multiple physical files: a description of the dataset structure must be provided EITHER in an atom "content" element as free text, OR in an external document which is the target of another "link" element. Where a "link" element is used this element shall have a "rel" value equal to "alternate" and a suitable media type shall be used for the "type" value.

Test method

Reference(s):

Test type:

Automated

Notes

[1] The test can also be interpreted as: entries with a section link, but without an alternate link and without an Atom content element must not exist in the feed. The appropriate XPath-test for this is: empty(//atom:entry[./atom:link[@rel='section'] and count(./atom:link[@rel='alternate'])=0 and count(./atom:content) = 0])

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
section link //atom:entry/atom:link[@rel='section']
(alternate) link //atom:entry/atom:link[@rel='section']
content element //atom:entry[count(./atom:link[@rel='section'])