Skip to content
Merged
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
33 changes: 17 additions & 16 deletions assets/validate/checkVOResource.xsl
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
exclude-result-prefixes="vr vg ri oai xsi"
version="1.0">

<xsl:import href="testsVOResource-v1_0.xsl"/>
<xsl:import href="validateVocabularies.xsl"/>
<xsl:import href="validationCommon.xsl"/>

<xsl:output method="xml" encoding="UTF-8" indent="yes"
Expand All @@ -13,23 +14,23 @@
<!--
- the date and time for the execution of this validater. This is used
- to ensure that stated dates are indeed in the past. If not
- its an empty string, the test will not be done.
- its an empty string, the test will not be done.
-->
<xsl:param name="rightnow"></xsl:param>

<!--
- a slash-delimited list of authority IDs that have been declared in a
- registry record. If this list is non-empty, a test will be applied
- a slash-delimited list of authority IDs that have been declared in a
- registry record. If this list is non-empty, a test will be applied
- to ensure that the resource's Authority ID has been registered.
-->
<xsl:param name="managedAuthorityIDs">//</xsl:param>

<!--
- the type of query being tested. Allowed values include:
- <pre>
-
-
-
-
-
-
- </pre>
-->
<xsl:param name="role">resource</xsl:param>
Expand All @@ -45,15 +46,15 @@
<xsl:param name="inputs"/>

<!--
- the status values to show in the output. The value should be
- the status values to show in the output. The value should be
- a space-delimited list of status values. The default is to show
- all status types, e.g. "fail warn rec pass".
- all status types, e.g. "fail warn rec pass".
-->
<xsl:param name="showStatus">fail warn rec pass</xsl:param>

<!--
- the test codes to ignore. The value should be a space-delimited
- list of test codes (i.e. "items") whose results should not be
- list of test codes (i.e. "items") whose results should not be
- returned.
-->
<xsl:param name="ignoreTests"/>
Expand All @@ -64,15 +65,15 @@
<xsl:param name="resultsRootElement">VOResourceValidation</xsl:param>

<!--
- this is the value of the showStatus parameter with spaces prepended
- this is the value of the showStatus parameter with spaces prepended
- and appended to add processing by reportResult
-->
<xsl:variable name="verbosity">
<xsl:value-of select="concat(' ',$showStatus,' ')"/>
</xsl:variable>

<!--
- this is the value of the show parameter with spaces prepended and
- this is the value of the show parameter with spaces prepended and
- appended to add processing by reportResult
-->
<xsl:variable name="ignore">
Expand All @@ -81,10 +82,10 @@

<!--
- begin testing. This template should be overridden for the appropriate
- output format (plain text, html, etc.). It should provide the
- output format (plain text, html, etc.). It should provide the
- overall document envelope to contain the results of the various
- tests (via reportResult). Within that envelope, it should apply the
- mode="byquery" template on "/". This implementation returns XML
- tests (via reportResult). Within that envelope, it should apply the
- mode="byquery" template on "/". This implementation returns XML
- encoding.
-->
<xsl:template match="/">
Expand Down
Loading
Loading