Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.31 KB

A.29.IR311.TGR31.languageForDownloadLink.md

File metadata and controls

32 lines (19 loc) · 1.31 KB

Language for download link

Purpose:

Where alternative language representations of datasets are linked to, the " hreflang attribute " attribute of the link element must be used to indicate the language of the target dataset as described in the Atom specification.

Test method

Reference(s):

Test type:

Automated

Notes

[1] Is the hreflang attribute still mandatory if data in only 1 language is provided? If not, this ATS is not automatically testable and the ATS should be removed.

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
link //atom:entry/atom:link[(@rel='alternate' and @type!='application/atom+xml' and number(@length) > 0) or (@rel='section')]
hreflang //atom:link[@rel=('alternate','section')]/@hreflang