Registry and Register descriptors XSL validators

The Registry and Register descriptors XSL validators can be used to easily check the conformance of the Registry and Register descriptors.

The XSL validators are available at the following addresses:

Note: the XSL validators should be used to support the user during the creation of the Descriptors. The XSL validators perform checks related to the correctness of the format. Additional checks will be done by the RoR (e.g. URL reachability). It could be that some Descriptors pass the XSL validator but don't pass the Ror checks.

How to validate the descriptors

To enable the validation, the XSL stylesheet has to be included in the RDF descriptor, just after the XML declaration. An example for a Registry descriptor and for a Register descriptor are provided below.

Example 1 - Registry descriptor

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type= "text/xsl" href= "http://inspire-regadmin.jrc.ec.europa.eu/register-federation/validators/Registry_descriptor_validator.xsl"?>
<rdf:RDF
  xmlns:dcat  ="http://www.w3.org/ns/dcat#"
  xmlns:dct   ="http://purl.org/dc/terms/"
  xmlns:foaf  ="http://xmlns.com/foaf/0.1/"
  xmlns:rdf   ="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<!-- ## Registry descriptor: Core Conformance Class ## -->

[...]

Example 2 - Register descriptor

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type= "text/xsl" href= "http://inspire-regadmin.jrc.ec.europa.eu/register-federation/validators/Register_descriptor_validator.xsl"?>
<rdf:RDF
    xmlns:adms = "http://www.w3.org/ns/adms#"
    xmlns:dcat = "http://www.w3.org/ns/dcat#"
    xmlns:dct  = "http://purl.org/dc/terms/"
    xmlns:foaf = "http://xmlns.com/foaf/0.1/"
    xmlns:rdf  = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:skos = "http://www.w3.org/2004/02/skos/core#"
    xmlns:voaf = "http://purl.org/vocommons/voaf#"
>
<!-- ## Register descriptor: Core Conformance Class ## -->

[...]

Once the stylesheet has been included, the descriptor can be just opened in a browser that can automatically apply the XSL stylesheet (such as Firefox). In this way you can directly get the results as an HTML page (an example output is provided below).

Note: Google Chrome and Opera browsers do not allow the XSL-stylesheet to be loaded due to a security restriction (on loading files from different domains). Firefox and Internet Explorer does work though.

Example 3 - Output of the validator