Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/feedvalidator/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"http://postneo.com/icbm": "icbm",
"http://purl.org/rss/1.0/modules/image/": "image",
"urn:atom-extension:indexing": "indexing",
"http://inspire.ec.europa.eu/schemas/inspire_dls/1.0": "inspire_dls",
"http://www.itunes.com/dtds/podcast-1.0.dtd": "itunes",
"http://rssnamespace.org/feedburner/ext/1.0": "feedburner",
"http://xmlns.com/foaf/0.1/": "foaf",
Expand Down Expand Up @@ -82,6 +83,7 @@
"http://www.w3.org/1999/xlink": "xlink",
"xri://$xrd*($v*2.0)": "xrd",
"xri://$xrds": "xrds",
"http://www.w3.org/2001/XMLSchema-instance": "xsi",
}

unsupported_namespaces = {
Expand All @@ -100,7 +102,11 @@ def near_miss(ns):
stdattrs = [(u'http://www.w3.org/XML/1998/namespace', u'base'),
(u'http://www.w3.org/XML/1998/namespace', u'id'),
(u'http://www.w3.org/XML/1998/namespace', u'lang'),
(u'http://www.w3.org/XML/1998/namespace', u'space')]
(u'http://www.w3.org/XML/1998/namespace', u'space'),
(u'http://www.w3.org/2001/XMLSchema-instance', u'schemaLocation'),
(u'http://inspire.ec.europa.eu/schemas/inspire_dls/1.0', u'spatial_dataset_identifier_code'),
(u'http://inspire.ec.europa.eu/schemas/inspire_dls/1.0', u'spatial_dataset_identifier_namespace'),
(u'http://inspire.ec.europa.eu/schemas/inspire_dls/1.0', u'crs')]

#
# From the SAX parser's point of view, this class is the one responsible for
Expand Down
6 changes: 6 additions & 0 deletions src/feedvalidator/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ def do_app_edited(self):
def do_app_control(self):
return app_control(), noduplicates()

def do_inspire_dls_spatial_dataset_identifier_code(self):
return nows(), noduplicates()

def do_inspire_dls_spatial_dataset_identifier_namespace(self):
return rfc3987(), nows(), noduplicates()

class app_control(validatorBase):
def do_app_draft(self):
return yesno(), noduplicates()
Expand Down