From ad51552465d9596c8a9f3c450271954fed00e4e1 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Tue, 31 Jan 2012 16:31:54 +0000 Subject: [PATCH] Bugzilla 791: add a check_mdrpi ruleset. --- build/check_mdrpi.xsl | 160 +++++++++++++++++++++++++++++++++++++++ mdx/validation-beans.xml | 39 ++++++++++ 2 files changed, 199 insertions(+) create mode 100644 build/check_mdrpi.xsl diff --git a/build/check_mdrpi.xsl b/build/check_mdrpi.xsl new file mode 100644 index 00000000..0588f005 --- /dev/null +++ b/build/check_mdrpi.xsl @@ -0,0 +1,160 @@ + + + + + + + + + + + RegistrationInfo must only appear within an Extensions element + + + + + RegistrationInfo must only appear within Extensions of EntityDescriptor or EntitiesDescriptor + + + + + + + more than one RegistrationInfo element in one Extensions element + + + + + + + RegistrationInfo may not appear on both EntitiesDescriptor and child elements + + + + + + + + + + + + + + + + + + + + + + non-unique lang values on + + elements + + + + + + + + + PublicationInfo must only appear within an Extensions element + + + + + PublicationInfo must only appear within Extensions of EntityDescriptor or EntitiesDescriptor + + + + + + + PublicationInfo must be within document element's Extensions + + + + + + + more than one PublicationInfo element in one Extensions element + + + + + + + + misspelled or misplaced mdrpi element within md:Extensions: + + + + + + diff --git a/mdx/validation-beans.xml b/mdx/validation-beans.xml index ed6b8133..65c1d83e 100644 --- a/mdx/validation-beans.xml +++ b/mdx/validation-beans.xml @@ -126,6 +126,44 @@ + + + + + + + + + + + + + + + + + + + + + +