dcc 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.rspec +3 -0
- data/.rubocop.yml +16 -0
- data/.rubocop_todo.yml +10 -0
- data/CHANGELOG.adoc +54 -0
- data/CONTRIBUTING.adoc +64 -0
- data/Gemfile +25 -0
- data/LICENSE +21 -0
- data/README.adoc +69 -0
- data/Rakefile +13 -0
- data/dcc.gemspec +41 -0
- data/docs/cli-reference.adoc +67 -0
- data/docs/getting-started.adoc +117 -0
- data/docs/schema-versions.adoc +65 -0
- data/examples/build_minimal_dcc.rb +23 -0
- data/examples/convert_all_formats.rb +19 -0
- data/examples/parse_and_inspect.rb +19 -0
- data/examples/quantity_math_demo.rb +32 -0
- data/examples/validate_full.rb +27 -0
- data/exe/dcc +7 -0
- data/lib/dcc/base/administrative_data.rb +43 -0
- data/lib/dcc/base/byte_data.rb +36 -0
- data/lib/dcc/base/calibration_laboratory.rb +29 -0
- data/lib/dcc/base/comment.rb +23 -0
- data/lib/dcc/base/condition.rb +34 -0
- data/lib/dcc/base/contact.rb +38 -0
- data/lib/dcc/base/contact_not_strict.rb +38 -0
- data/lib/dcc/base/core_data.rb +44 -0
- data/lib/dcc/base/data.rb +42 -0
- data/lib/dcc/base/digital_calibration_certificate.rb +32 -0
- data/lib/dcc/base/equipment_class.rb +24 -0
- data/lib/dcc/base/formula.rb +33 -0
- data/lib/dcc/base/hash_type.rb +34 -0
- data/lib/dcc/base/identification.rb +27 -0
- data/lib/dcc/base/identifications.rb +27 -0
- data/lib/dcc/base/influence_condition.rb +16 -0
- data/lib/dcc/base/influence_condition_list.rb +40 -0
- data/lib/dcc/base/item.rb +38 -0
- data/lib/dcc/base/item_list.rb +38 -0
- data/lib/dcc/base/list.rb +44 -0
- data/lib/dcc/base/location.rb +36 -0
- data/lib/dcc/base/measurement_meta_data.rb +15 -0
- data/lib/dcc/base/measurement_meta_data_list.rb +27 -0
- data/lib/dcc/base/measurement_result.rb +41 -0
- data/lib/dcc/base/measurement_result_list.rb +28 -0
- data/lib/dcc/base/measuring_equipment.rb +41 -0
- data/lib/dcc/base/measuring_equipment_list.rb +38 -0
- data/lib/dcc/base/quantity.rb +61 -0
- data/lib/dcc/base/ref_type_definition.rb +36 -0
- data/lib/dcc/base/ref_type_definition_list.rb +21 -0
- data/lib/dcc/base/resp_person.rb +38 -0
- data/lib/dcc/base/resp_person_list.rb +27 -0
- data/lib/dcc/base/result.rb +31 -0
- data/lib/dcc/base/result_list.rb +27 -0
- data/lib/dcc/base/rich_content.rb +34 -0
- data/lib/dcc/base/software.rb +35 -0
- data/lib/dcc/base/software_list.rb +27 -0
- data/lib/dcc/base/statement.rb +50 -0
- data/lib/dcc/base/statement_list.rb +27 -0
- data/lib/dcc/base/string_with_lang.rb +24 -0
- data/lib/dcc/base/text.rb +33 -0
- data/lib/dcc/base/used_method.rb +31 -0
- data/lib/dcc/base/used_method_list.rb +27 -0
- data/lib/dcc/base/xml_blob.rb +20 -0
- data/lib/dcc/base.rb +58 -0
- data/lib/dcc/builder/dsl.rb +10 -0
- data/lib/dcc/builder/session.rb +170 -0
- data/lib/dcc/builder.rb +34 -0
- data/lib/dcc/cli/cli.rb +149 -0
- data/lib/dcc/cli/formatters.rb +77 -0
- data/lib/dcc/cli.rb +7 -0
- data/lib/dcc/common_elements.rb +20 -0
- data/lib/dcc/context_configuration.rb +167 -0
- data/lib/dcc/context_options.rb +47 -0
- data/lib/dcc/convert/csv.rb +129 -0
- data/lib/dcc/convert/html.rb +127 -0
- data/lib/dcc/convert/json.rb +62 -0
- data/lib/dcc/convert/result.rb +51 -0
- data/lib/dcc/convert/yaml.rb +21 -0
- data/lib/dcc/convert.rb +14 -0
- data/lib/dcc/diff/change.rb +21 -0
- data/lib/dcc/diff/result.rb +58 -0
- data/lib/dcc/diff.rb +83 -0
- data/lib/dcc/error.rb +54 -0
- data/lib/dcc/extract/file.rb +143 -0
- data/lib/dcc/extract/ring.rb +28 -0
- data/lib/dcc/extract.rb +9 -0
- data/lib/dcc/i18n/text_lookup.rb +67 -0
- data/lib/dcc/i18n.rb +12 -0
- data/lib/dcc/inspect/report.rb +139 -0
- data/lib/dcc/inspect.rb +9 -0
- data/lib/dcc/migrate.rb +41 -0
- data/lib/dcc/namespace/dcc.rb +30 -0
- data/lib/dcc/namespace/dsig.rb +15 -0
- data/lib/dcc/namespace/math_ml.rb +14 -0
- data/lib/dcc/namespace/qudt.rb +15 -0
- data/lib/dcc/namespace/si.rb +26 -0
- data/lib/dcc/namespace.rb +18 -0
- data/lib/dcc/plugin/registry.rb +45 -0
- data/lib/dcc/plugin.rb +42 -0
- data/lib/dcc/quantity_format/formatter.rb +90 -0
- data/lib/dcc/quantity_format.rb +10 -0
- data/lib/dcc/quantity_math/quantity.rb +46 -0
- data/lib/dcc/quantity_math/real.rb +116 -0
- data/lib/dcc/quantity_math.rb +14 -0
- data/lib/dcc/schema/resources/dcc/dsi/v1.0.1.xsd +415 -0
- data/lib/dcc/schema/resources/dcc/dsi/v1.3.0.xsd +814 -0
- data/lib/dcc/schema/resources/dcc/dsi/v1.3.1.xsd +814 -0
- data/lib/dcc/schema/resources/dcc/dsi/v2.0.0.xsd +869 -0
- data/lib/dcc/schema/resources/dcc/dsi/v2.1.0.xsd +1031 -0
- data/lib/dcc/schema/resources/dcc/dsi/v2.2.1.xsd +1574 -0
- data/lib/dcc/schema/resources/dcc/qudt/v2.2.1.xsd +44 -0
- data/lib/dcc/schema/resources/dcc/v2.1.0/dcc.xsd +650 -0
- data/lib/dcc/schema/resources/dcc/v2.1.1/dcc.xsd +669 -0
- data/lib/dcc/schema/resources/dcc/v2.2.0/dcc.xsd +730 -0
- data/lib/dcc/schema/resources/dcc/v2.3.0/dcc.xsd +708 -0
- data/lib/dcc/schema/resources/dcc/v2.4.0/dcc.xsd +725 -0
- data/lib/dcc/schema/resources/dcc/v3.0.0/dcc.xsd +749 -0
- data/lib/dcc/schema/resources/dcc/v3.1.0/dcc.xsd +843 -0
- data/lib/dcc/schema/resources/dcc/v3.1.1/dcc.xsd +843 -0
- data/lib/dcc/schema/resources/dcc/v3.1.2/dcc.xsd +844 -0
- data/lib/dcc/schema/resources/dcc/v3.2.0/dcc.xsd +940 -0
- data/lib/dcc/schema/resources/dcc/v3.2.1/dcc.xsd +963 -0
- data/lib/dcc/schema/resources/dcc/v3.3.0/dcc.xsd +1008 -0
- data/lib/dcc/schema/resources/dcc/xmldsig-core-schema.xsd +312 -0
- data/lib/dcc/schema/resources/dsi/qudt/v2.2.1.xsd +44 -0
- data/lib/dcc/schema/resources/dsi/v1.0.1/SI_Format.xsd +415 -0
- data/lib/dcc/schema/resources/dsi/v1.3.0/SI_Format.xsd +814 -0
- data/lib/dcc/schema/resources/dsi/v1.3.1/SI_Format.xsd +814 -0
- data/lib/dcc/schema/resources/dsi/v2.0.0/SI_Format.xsd +869 -0
- data/lib/dcc/schema/resources/dsi/v2.1.0/SI_Format.xsd +1031 -0
- data/lib/dcc/schema/resources/dsi/v2.2.1/SI_Format.xsd +1574 -0
- data/lib/dcc/schema/resources/qudt/qudt.xsd +44 -0
- data/lib/dcc/schema/resources/schematron/dcc.sch +523 -0
- data/lib/dcc/schema/resources/schematron/dcc.svrl +2302 -0
- data/lib/dcc/schema/resources/xmldsig/xmldsig-core-schema.xsd +312 -0
- data/lib/dcc/schema/version.rb +94 -0
- data/lib/dcc/schema.rb +35 -0
- data/lib/dcc/server/app.rb +133 -0
- data/lib/dcc/server/storage/entry.rb +15 -0
- data/lib/dcc/server/storage/memory.rb +57 -0
- data/lib/dcc/server/storage.rb +13 -0
- data/lib/dcc/server.rb +33 -0
- data/lib/dcc/si/base/complex.rb +43 -0
- data/lib/dcc/si/base/complex_list_xml_list.rb +39 -0
- data/lib/dcc/si/base/constant.rb +39 -0
- data/lib/dcc/si/base/coverage_interval_mu.rb +31 -0
- data/lib/dcc/si/base/expanded_mu.rb +29 -0
- data/lib/dcc/si/base/expanded_unc_xml_list.rb +30 -0
- data/lib/dcc/si/base/hybrid.rb +42 -0
- data/lib/dcc/si/base/measurement_uncertainty_univariate.rb +28 -0
- data/lib/dcc/si/base/real.rb +48 -0
- data/lib/dcc/si/base/real_list_xml_list.rb +45 -0
- data/lib/dcc/si/base/si_list.rb +37 -0
- data/lib/dcc/si/base/standard_mu.rb +25 -0
- data/lib/dcc/si/base.rb +24 -0
- data/lib/dcc/si/common_elements.rb +13 -0
- data/lib/dcc/si/namespace.rb +7 -0
- data/lib/dcc/si/v1/common_elements.rb +13 -0
- data/lib/dcc/si/v1/complex.rb +8 -0
- data/lib/dcc/si/v1/complex_list_xml_list.rb +8 -0
- data/lib/dcc/si/v1/configuration.rb +13 -0
- data/lib/dcc/si/v1/constant.rb +8 -0
- data/lib/dcc/si/v1/coverage_interval_mu.rb +8 -0
- data/lib/dcc/si/v1/expanded_mu.rb +8 -0
- data/lib/dcc/si/v1/expanded_unc.rb +23 -0
- data/lib/dcc/si/v1/expanded_unc_xml_list.rb +8 -0
- data/lib/dcc/si/v1/hybrid.rb +8 -0
- data/lib/dcc/si/v1/measurement_uncertainty_univariate.rb +8 -0
- data/lib/dcc/si/v1/namespace.rb +9 -0
- data/lib/dcc/si/v1/real.rb +8 -0
- data/lib/dcc/si/v1/real_list_xml_list.rb +8 -0
- data/lib/dcc/si/v1/si_list.rb +8 -0
- data/lib/dcc/si/v1/standard_mu.rb +8 -0
- data/lib/dcc/si/v1.rb +46 -0
- data/lib/dcc/si/v2/common_elements.rb +13 -0
- data/lib/dcc/si/v2/complex.rb +8 -0
- data/lib/dcc/si/v2/complex_list_xml_list.rb +8 -0
- data/lib/dcc/si/v2/configuration.rb +13 -0
- data/lib/dcc/si/v2/constant.rb +8 -0
- data/lib/dcc/si/v2/coverage_interval_mu.rb +8 -0
- data/lib/dcc/si/v2/coverage_interval_mu_xml_list.rb +24 -0
- data/lib/dcc/si/v2/expanded_mu.rb +8 -0
- data/lib/dcc/si/v2/expanded_mu_xml_list.rb +22 -0
- data/lib/dcc/si/v2/expanded_unc_xml_list.rb +8 -0
- data/lib/dcc/si/v2/hybrid.rb +8 -0
- data/lib/dcc/si/v2/measurement_uncertainty_univariate.rb +8 -0
- data/lib/dcc/si/v2/namespace.rb +9 -0
- data/lib/dcc/si/v2/real.rb +8 -0
- data/lib/dcc/si/v2/real_list_xml_list.rb +8 -0
- data/lib/dcc/si/v2/si_list.rb +8 -0
- data/lib/dcc/si/v2/standard_mu.rb +8 -0
- data/lib/dcc/si/v2/standard_mu_xml_list.rb +18 -0
- data/lib/dcc/si/v2.rb +49 -0
- data/lib/dcc/si.rb +34 -0
- data/lib/dcc/signature/result.rb +43 -0
- data/lib/dcc/signature/signer.rb +36 -0
- data/lib/dcc/signature/verifier.rb +41 -0
- data/lib/dcc/signature.rb +13 -0
- data/lib/dcc/transform/result.rb +24 -0
- data/lib/dcc/transform/xslt.rb +72 -0
- data/lib/dcc/transform.rb +12 -0
- data/lib/dcc/type/base64_binary.rb +55 -0
- data/lib/dcc/type/decimal_xml_list.rb +47 -0
- data/lib/dcc/type/iso_country_code.rb +23 -0
- data/lib/dcc/type/iso_language_code.rb +23 -0
- data/lib/dcc/type/schema_version.rb +37 -0
- data/lib/dcc/type/si_unit.rb +26 -0
- data/lib/dcc/type.rb +16 -0
- data/lib/dcc/type_guards.rb +140 -0
- data/lib/dcc/v2/administrative_data.rb +8 -0
- data/lib/dcc/v2/byte_data.rb +8 -0
- data/lib/dcc/v2/calibration_laboratory.rb +8 -0
- data/lib/dcc/v2/comment.rb +8 -0
- data/lib/dcc/v2/common_elements.rb +13 -0
- data/lib/dcc/v2/condition.rb +8 -0
- data/lib/dcc/v2/configuration.rb +17 -0
- data/lib/dcc/v2/contact.rb +8 -0
- data/lib/dcc/v2/contact_not_strict.rb +8 -0
- data/lib/dcc/v2/core_data.rb +8 -0
- data/lib/dcc/v2/data.rb +8 -0
- data/lib/dcc/v2/digital_calibration_certificate.rb +8 -0
- data/lib/dcc/v2/equipment_class.rb +8 -0
- data/lib/dcc/v2/formula.rb +8 -0
- data/lib/dcc/v2/hash_type.rb +8 -0
- data/lib/dcc/v2/identification.rb +8 -0
- data/lib/dcc/v2/identifications.rb +8 -0
- data/lib/dcc/v2/influence_condition.rb +7 -0
- data/lib/dcc/v2/influence_condition_list.rb +8 -0
- data/lib/dcc/v2/item.rb +8 -0
- data/lib/dcc/v2/item_list.rb +8 -0
- data/lib/dcc/v2/list.rb +8 -0
- data/lib/dcc/v2/location.rb +8 -0
- data/lib/dcc/v2/measurement_meta_data.rb +8 -0
- data/lib/dcc/v2/measurement_meta_data_list.rb +8 -0
- data/lib/dcc/v2/measurement_result.rb +8 -0
- data/lib/dcc/v2/measurement_result_list.rb +8 -0
- data/lib/dcc/v2/measuring_equipment.rb +8 -0
- data/lib/dcc/v2/measuring_equipment_list.rb +8 -0
- data/lib/dcc/v2/namespace.rb +8 -0
- data/lib/dcc/v2/quantity.rb +49 -0
- data/lib/dcc/v2/ref_type_definition.rb +11 -0
- data/lib/dcc/v2/ref_type_definition_list.rb +15 -0
- data/lib/dcc/v2/resp_person.rb +8 -0
- data/lib/dcc/v2/resp_person_list.rb +8 -0
- data/lib/dcc/v2/result.rb +8 -0
- data/lib/dcc/v2/result_list.rb +8 -0
- data/lib/dcc/v2/rich_content.rb +12 -0
- data/lib/dcc/v2/software.rb +8 -0
- data/lib/dcc/v2/software_list.rb +8 -0
- data/lib/dcc/v2/statement.rb +8 -0
- data/lib/dcc/v2/statement_list.rb +8 -0
- data/lib/dcc/v2/string_with_lang.rb +8 -0
- data/lib/dcc/v2/text.rb +8 -0
- data/lib/dcc/v2/used_method.rb +8 -0
- data/lib/dcc/v2/used_method_list.rb +8 -0
- data/lib/dcc/v2/xml_blob.rb +8 -0
- data/lib/dcc/v2.rb +84 -0
- data/lib/dcc/v3/administrative_data.rb +8 -0
- data/lib/dcc/v3/byte_data.rb +8 -0
- data/lib/dcc/v3/calibration_laboratory.rb +8 -0
- data/lib/dcc/v3/comment.rb +8 -0
- data/lib/dcc/v3/common_elements.rb +11 -0
- data/lib/dcc/v3/condition.rb +8 -0
- data/lib/dcc/v3/configuration.rb +17 -0
- data/lib/dcc/v3/contact.rb +8 -0
- data/lib/dcc/v3/contact_not_strict.rb +8 -0
- data/lib/dcc/v3/core_data.rb +8 -0
- data/lib/dcc/v3/data.rb +8 -0
- data/lib/dcc/v3/digital_calibration_certificate.rb +8 -0
- data/lib/dcc/v3/equipment_class.rb +8 -0
- data/lib/dcc/v3/formula.rb +8 -0
- data/lib/dcc/v3/hash_type.rb +8 -0
- data/lib/dcc/v3/identification.rb +8 -0
- data/lib/dcc/v3/identifications.rb +8 -0
- data/lib/dcc/v3/influence_condition.rb +7 -0
- data/lib/dcc/v3/influence_condition_list.rb +8 -0
- data/lib/dcc/v3/item.rb +8 -0
- data/lib/dcc/v3/item_list.rb +8 -0
- data/lib/dcc/v3/list.rb +8 -0
- data/lib/dcc/v3/location.rb +8 -0
- data/lib/dcc/v3/measurement_meta_data.rb +8 -0
- data/lib/dcc/v3/measurement_meta_data_list.rb +8 -0
- data/lib/dcc/v3/measurement_result.rb +8 -0
- data/lib/dcc/v3/measurement_result_list.rb +8 -0
- data/lib/dcc/v3/measuring_equipment.rb +8 -0
- data/lib/dcc/v3/measuring_equipment_list.rb +8 -0
- data/lib/dcc/v3/namespace.rb +7 -0
- data/lib/dcc/v3/quantity.rb +49 -0
- data/lib/dcc/v3/ref_type_definition.rb +8 -0
- data/lib/dcc/v3/ref_type_definition_list.rb +8 -0
- data/lib/dcc/v3/resp_person.rb +8 -0
- data/lib/dcc/v3/resp_person_list.rb +8 -0
- data/lib/dcc/v3/result.rb +8 -0
- data/lib/dcc/v3/result_list.rb +8 -0
- data/lib/dcc/v3/rich_content.rb +8 -0
- data/lib/dcc/v3/software.rb +8 -0
- data/lib/dcc/v3/software_list.rb +8 -0
- data/lib/dcc/v3/statement.rb +8 -0
- data/lib/dcc/v3/statement_list.rb +8 -0
- data/lib/dcc/v3/string_with_lang.rb +8 -0
- data/lib/dcc/v3/text.rb +8 -0
- data/lib/dcc/v3/used_method.rb +8 -0
- data/lib/dcc/v3/used_method_list.rb +8 -0
- data/lib/dcc/v3/xml_blob.rb +8 -0
- data/lib/dcc/v3.rb +111 -0
- data/lib/dcc/validate/business_rules.rb +121 -0
- data/lib/dcc/validate/issue.rb +56 -0
- data/lib/dcc/validate/result.rb +105 -0
- data/lib/dcc/validate/schematron/profile.rb +64 -0
- data/lib/dcc/validate/schematron/rule.rb +49 -0
- data/lib/dcc/validate/schematron/rules/administrative_data_completeness.rb +42 -0
- data/lib/dcc/validate/schematron/rules/base.rb +15 -0
- data/lib/dcc/validate/schematron/rules/date_range_check.rb +41 -0
- data/lib/dcc/validate/schematron/rules/id_refid_linking.rb +61 -0
- data/lib/dcc/validate/schematron/rules/influence_conditions_placement.rb +58 -0
- data/lib/dcc/validate/schematron/rules/iso_code_validation.rb +53 -0
- data/lib/dcc/validate/schematron/rules/language_code_dedup.rb +39 -0
- data/lib/dcc/validate/schematron/rules/non_si_declaration.rb +82 -0
- data/lib/dcc/validate/schematron/rules/release_format_check.rb +44 -0
- data/lib/dcc/validate/schematron/rules/schema_version_check.rb +31 -0
- data/lib/dcc/validate/schematron/rules/uncertainty_consistency.rb +58 -0
- data/lib/dcc/validate/schematron/rules/unit_format_check.rb +74 -0
- data/lib/dcc/validate/schematron/rules/used_methods_placement.rb +65 -0
- data/lib/dcc/validate/schematron/rules/used_software_placement.rb +43 -0
- data/lib/dcc/validate/schematron/rules/xml_list_spacing.rb +42 -0
- data/lib/dcc/validate/schematron/rules.rb +30 -0
- data/lib/dcc/validate/schematron.rb +22 -0
- data/lib/dcc/validate/severity.rb +39 -0
- data/lib/dcc/validate/xsd.rb +97 -0
- data/lib/dcc/validate.rb +15 -0
- data/lib/dcc/version.rb +5 -0
- data/lib/dcc/versioned_parser.rb +48 -0
- data/lib/dcc.rb +141 -0
- metadata +425 -0
|
@@ -0,0 +1,2302 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xsl:transform xmlns:dcc="https://ptb.de/dcc"
|
|
3
|
+
xmlns:error="https://doi.org/10.5281/zenodo.1495494#error"
|
|
4
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
5
|
+
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
|
|
6
|
+
xmlns:schxslt="https://doi.org/10.5281/zenodo.1495494"
|
|
7
|
+
xmlns:schxslt-api="https://doi.org/10.5281/zenodo.1495494#api"
|
|
8
|
+
xmlns:si="https://ptb.de/si"
|
|
9
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
10
|
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
11
|
+
version="2.0">
|
|
12
|
+
<rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
13
|
+
xmlns:dct="http://purl.org/dc/terms/"
|
|
14
|
+
xmlns:skos="http://www.w3.org/2004/02/skos/core#">
|
|
15
|
+
<dct:creator>
|
|
16
|
+
<dct:Agent>
|
|
17
|
+
<skos:prefLabel>SchXslt/1.9.5 SAXON/HE 12.5</skos:prefLabel>
|
|
18
|
+
<schxslt.compile.typed-variables xmlns="https://doi.org/10.5281/zenodo.1495494#">true</schxslt.compile.typed-variables>
|
|
19
|
+
</dct:Agent>
|
|
20
|
+
</dct:creator>
|
|
21
|
+
<dct:created>2024-07-29T18:42:27.469516+02:00</dct:created>
|
|
22
|
+
</rdf:Description>
|
|
23
|
+
<xsl:output indent="yes"/>
|
|
24
|
+
<xsl:variable name="REFID" select="//@refId"/>
|
|
25
|
+
<xsl:variable name="ID" select="//@id"/>
|
|
26
|
+
<xsl:variable name="vals" select="//dcc:usedLangCodeISO639_1"/>
|
|
27
|
+
<xsl:variable name="lang" select="//dcc:mandatoryLangCodeISO639_1"/>
|
|
28
|
+
<xsl:variable name="lc"
|
|
29
|
+
select="string-join(('aa', 'ab', 'ae', 'af', 'ak', 'am', 'an', 'ar', 'as', 'av', 'ay', 'az', 'ba', 'be', 'bg', 'bi', 'bm', 'bn', 'bo', 'br', 'bs', 'ca', 'ce', 'ch', 'co', 'cr', 'cs', 'cu', 'cv', 'cy', 'da', 'de', 'dv', 'dz', 'ee', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'ff', 'fi', 'fj', 'fo', 'fr', 'fy', 'ga', 'gd', 'gl', 'gn', 'gu', 'gv', 'ha', 'he', 'hi', 'ho', 'hr', 'ht', 'hu', 'hy', 'hz', 'ia', 'id', 'ie', 'ig', 'ii', 'ik', 'io', 'is', 'it', 'iu', 'ja', 'jv', 'ka', 'kg', 'ki', 'kj', 'kk', 'kl', 'km', 'kn', 'ko', 'kr', 'ks', 'ku', 'kv', 'kw', 'ky', 'la', 'lb', 'lg', 'li', 'ln', 'lo', 'lt', 'lu', 'lv', 'mg', 'mh', 'mi', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt', 'my', 'na', 'nb', 'nd', 'ne', 'ng', 'nl', 'nn', 'no', 'nr', 'nv', 'ny', 'oc', 'oj', 'om', 'or', 'os', 'pa', 'pi', 'pl', 'ps', 'pt', 'qu', 'rm', 'rn', 'ro', 'ru', 'rw', 'sa', 'sc', 'sd', 'se', 'sg', 'si', 'sk', 'sl', 'sm', 'sn', 'so', 'sq', 'sr', 'ss', 'st', 'su', 'sv', 'sw', 'ta', 'te', 'tg', 'th', 'ti', 'tk', 'tl', 'tn', 'to', 'tr', 'ts', 'tt', 'tw', 'ty', 'ug', 'uk', 'ur', 'uz', 've', 'vi', 'vo', 'wa', 'wo', 'xh', 'yi', 'yo', 'za', 'zh', 'zu'), ' ')"/>
|
|
30
|
+
<xsl:variable name="nonSI" select="//dcc:statement/dcc:nonSIUnit"/>
|
|
31
|
+
<xsl:template match="root()">
|
|
32
|
+
<xsl:variable name="metadata" as="element()?">
|
|
33
|
+
<svrl:metadata xmlns:dct="http://purl.org/dc/terms/"
|
|
34
|
+
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
|
|
35
|
+
xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
36
|
+
<dct:creator>
|
|
37
|
+
<dct:Agent>
|
|
38
|
+
<skos:prefLabel>
|
|
39
|
+
<xsl:value-of separator="/"
|
|
40
|
+
select="(system-property('xsl:product-name'), system-property('xsl:product-version'))"/>
|
|
41
|
+
</skos:prefLabel>
|
|
42
|
+
</dct:Agent>
|
|
43
|
+
</dct:creator>
|
|
44
|
+
<dct:created>
|
|
45
|
+
<xsl:value-of select="current-dateTime()"/>
|
|
46
|
+
</dct:created>
|
|
47
|
+
<dct:source>
|
|
48
|
+
<rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
49
|
+
<dct:creator>
|
|
50
|
+
<dct:Agent>
|
|
51
|
+
<skos:prefLabel>SchXslt/1.9.5 SAXON/HE 12.5</skos:prefLabel>
|
|
52
|
+
<schxslt.compile.typed-variables xmlns="https://doi.org/10.5281/zenodo.1495494#">true</schxslt.compile.typed-variables>
|
|
53
|
+
</dct:Agent>
|
|
54
|
+
</dct:creator>
|
|
55
|
+
<dct:created>2024-07-29T18:42:27.469516+02:00</dct:created>
|
|
56
|
+
</rdf:Description>
|
|
57
|
+
</dct:source>
|
|
58
|
+
</svrl:metadata>
|
|
59
|
+
</xsl:variable>
|
|
60
|
+
<xsl:variable name="report" as="element(schxslt:report)">
|
|
61
|
+
<schxslt:report>
|
|
62
|
+
<xsl:call-template name="d7e9"/>
|
|
63
|
+
</schxslt:report>
|
|
64
|
+
</xsl:variable>
|
|
65
|
+
<xsl:variable name="schxslt:report" as="node()*">
|
|
66
|
+
<xsl:sequence select="$metadata"/>
|
|
67
|
+
<xsl:for-each select="$report/schxslt:document">
|
|
68
|
+
<xsl:for-each select="schxslt:pattern">
|
|
69
|
+
<xsl:sequence select="node()"/>
|
|
70
|
+
<xsl:sequence select="../schxslt:rule[@pattern = current()/@id]/node()"/>
|
|
71
|
+
</xsl:for-each>
|
|
72
|
+
</xsl:for-each>
|
|
73
|
+
</xsl:variable>
|
|
74
|
+
<svrl:schematron-output xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
75
|
+
<svrl:ns-prefix-in-attribute-values prefix="dcc" uri="https://ptb.de/dcc"/>
|
|
76
|
+
<svrl:ns-prefix-in-attribute-values prefix="si" uri="https://ptb.de/si"/>
|
|
77
|
+
<xsl:sequence select="$schxslt:report"/>
|
|
78
|
+
</svrl:schematron-output>
|
|
79
|
+
</xsl:template>
|
|
80
|
+
<xsl:template match="text() | @*" mode="#all" priority="-10"/>
|
|
81
|
+
<xsl:template match="/" mode="#all" priority="-10">
|
|
82
|
+
<xsl:apply-templates mode="#current" select="node()"/>
|
|
83
|
+
</xsl:template>
|
|
84
|
+
<xsl:template match="*" mode="#all" priority="-10">
|
|
85
|
+
<xsl:apply-templates mode="#current" select="@*"/>
|
|
86
|
+
<xsl:apply-templates mode="#current" select="node()"/>
|
|
87
|
+
</xsl:template>
|
|
88
|
+
<xsl:template name="d7e9">
|
|
89
|
+
<schxslt:document>
|
|
90
|
+
<schxslt:pattern id="d7e9">
|
|
91
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
92
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
93
|
+
</xsl:if>
|
|
94
|
+
<xsl:for-each select="root()">
|
|
95
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
96
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
97
|
+
</svrl:active-pattern>
|
|
98
|
+
</xsl:for-each>
|
|
99
|
+
</schxslt:pattern>
|
|
100
|
+
<schxslt:pattern id="d7e45">
|
|
101
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
102
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
103
|
+
</xsl:if>
|
|
104
|
+
<xsl:for-each select="root()">
|
|
105
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
106
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
107
|
+
</svrl:active-pattern>
|
|
108
|
+
</xsl:for-each>
|
|
109
|
+
</schxslt:pattern>
|
|
110
|
+
<schxslt:pattern id="d7e80">
|
|
111
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
112
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
113
|
+
</xsl:if>
|
|
114
|
+
<xsl:for-each select="root()">
|
|
115
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
116
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
117
|
+
</svrl:active-pattern>
|
|
118
|
+
</xsl:for-each>
|
|
119
|
+
</schxslt:pattern>
|
|
120
|
+
<schxslt:pattern id="d7e115">
|
|
121
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
122
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
123
|
+
</xsl:if>
|
|
124
|
+
<xsl:for-each select="root()">
|
|
125
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
126
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
127
|
+
</svrl:active-pattern>
|
|
128
|
+
</xsl:for-each>
|
|
129
|
+
</schxslt:pattern>
|
|
130
|
+
<schxslt:pattern id="d7e127">
|
|
131
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
132
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
133
|
+
</xsl:if>
|
|
134
|
+
<xsl:for-each select="root()">
|
|
135
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
136
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
137
|
+
</svrl:active-pattern>
|
|
138
|
+
</xsl:for-each>
|
|
139
|
+
</schxslt:pattern>
|
|
140
|
+
<schxslt:pattern id="d7e149">
|
|
141
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
142
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
143
|
+
</xsl:if>
|
|
144
|
+
<xsl:for-each select="root()">
|
|
145
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
146
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
147
|
+
</svrl:active-pattern>
|
|
148
|
+
</xsl:for-each>
|
|
149
|
+
</schxslt:pattern>
|
|
150
|
+
<schxslt:pattern id="d7e166">
|
|
151
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
152
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
153
|
+
</xsl:if>
|
|
154
|
+
<xsl:for-each select="root()">
|
|
155
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
156
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
157
|
+
</svrl:active-pattern>
|
|
158
|
+
</xsl:for-each>
|
|
159
|
+
</schxslt:pattern>
|
|
160
|
+
<schxslt:pattern id="d7e181">
|
|
161
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
162
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
163
|
+
</xsl:if>
|
|
164
|
+
<xsl:for-each select="root()">
|
|
165
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
166
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
167
|
+
</svrl:active-pattern>
|
|
168
|
+
</xsl:for-each>
|
|
169
|
+
</schxslt:pattern>
|
|
170
|
+
<schxslt:pattern id="d7e202">
|
|
171
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
172
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
173
|
+
</xsl:if>
|
|
174
|
+
<xsl:for-each select="root()">
|
|
175
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
176
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
177
|
+
</svrl:active-pattern>
|
|
178
|
+
</xsl:for-each>
|
|
179
|
+
</schxslt:pattern>
|
|
180
|
+
<schxslt:pattern id="d7e217">
|
|
181
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
182
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
183
|
+
</xsl:if>
|
|
184
|
+
<xsl:for-each select="root()">
|
|
185
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
186
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
187
|
+
</svrl:active-pattern>
|
|
188
|
+
</xsl:for-each>
|
|
189
|
+
</schxslt:pattern>
|
|
190
|
+
<schxslt:pattern id="d7e233">
|
|
191
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
192
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
193
|
+
</xsl:if>
|
|
194
|
+
<xsl:for-each select="root()">
|
|
195
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
196
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
197
|
+
</svrl:active-pattern>
|
|
198
|
+
</xsl:for-each>
|
|
199
|
+
</schxslt:pattern>
|
|
200
|
+
<schxslt:pattern id="d7e260">
|
|
201
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
202
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
203
|
+
</xsl:if>
|
|
204
|
+
<xsl:for-each select="root()">
|
|
205
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
206
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
207
|
+
</svrl:active-pattern>
|
|
208
|
+
</xsl:for-each>
|
|
209
|
+
</schxslt:pattern>
|
|
210
|
+
<schxslt:pattern id="d7e329">
|
|
211
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
212
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
213
|
+
</xsl:if>
|
|
214
|
+
<xsl:for-each select="root()">
|
|
215
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
216
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
217
|
+
</svrl:active-pattern>
|
|
218
|
+
</xsl:for-each>
|
|
219
|
+
</schxslt:pattern>
|
|
220
|
+
<schxslt:pattern id="d7e350">
|
|
221
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
222
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
223
|
+
</xsl:if>
|
|
224
|
+
<xsl:for-each select="root()">
|
|
225
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
226
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
227
|
+
</svrl:active-pattern>
|
|
228
|
+
</xsl:for-each>
|
|
229
|
+
</schxslt:pattern>
|
|
230
|
+
<schxslt:pattern id="d7e375">
|
|
231
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
232
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
233
|
+
</xsl:if>
|
|
234
|
+
<xsl:for-each select="root()">
|
|
235
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
236
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
237
|
+
</svrl:active-pattern>
|
|
238
|
+
</xsl:for-each>
|
|
239
|
+
</schxslt:pattern>
|
|
240
|
+
<schxslt:pattern id="d7e386">
|
|
241
|
+
<xsl:if test="exists(base-uri(root()))">
|
|
242
|
+
<xsl:attribute name="documents" select="base-uri(root())"/>
|
|
243
|
+
</xsl:if>
|
|
244
|
+
<xsl:for-each select="root()">
|
|
245
|
+
<svrl:active-pattern xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
246
|
+
<xsl:attribute name="documents" select="base-uri(.)"/>
|
|
247
|
+
</svrl:active-pattern>
|
|
248
|
+
</xsl:for-each>
|
|
249
|
+
</schxslt:pattern>
|
|
250
|
+
<xsl:apply-templates mode="d7e9" select="root()"/>
|
|
251
|
+
</schxslt:document>
|
|
252
|
+
</xsl:template>
|
|
253
|
+
<xsl:template match="//dcc:measurementResult" priority="47" mode="d7e9">
|
|
254
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
255
|
+
<xsl:choose>
|
|
256
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e9']">
|
|
257
|
+
<schxslt:rule pattern="d7e9">
|
|
258
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResult" shadowed by preceding rule</xsl:comment>
|
|
259
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
260
|
+
<xsl:attribute name="context">//dcc:measurementResult</xsl:attribute>
|
|
261
|
+
</svrl:suppressed-rule>
|
|
262
|
+
</schxslt:rule>
|
|
263
|
+
<xsl:next-match>
|
|
264
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
265
|
+
as="xs:string*"
|
|
266
|
+
select="$schxslt:patterns-matched"/>
|
|
267
|
+
</xsl:next-match>
|
|
268
|
+
</xsl:when>
|
|
269
|
+
<xsl:otherwise>
|
|
270
|
+
<schxslt:rule pattern="d7e9">
|
|
271
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
272
|
+
<xsl:attribute name="context">//dcc:measurementResult</xsl:attribute>
|
|
273
|
+
</svrl:fired-rule>
|
|
274
|
+
<xsl:if test="count(dcc:usedMethods)">
|
|
275
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
276
|
+
location="{schxslt:location(.)}"
|
|
277
|
+
role="information">
|
|
278
|
+
<xsl:attribute name="test">count(dcc:usedMethods)</xsl:attribute>
|
|
279
|
+
<svrl:text>For this measurement result, the methods used during measuring process are global declared. </svrl:text>
|
|
280
|
+
</svrl:successful-report>
|
|
281
|
+
</xsl:if>
|
|
282
|
+
</schxslt:rule>
|
|
283
|
+
<xsl:next-match>
|
|
284
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
285
|
+
as="xs:string*"
|
|
286
|
+
select="($schxslt:patterns-matched, 'd7e9')"/>
|
|
287
|
+
</xsl:next-match>
|
|
288
|
+
</xsl:otherwise>
|
|
289
|
+
</xsl:choose>
|
|
290
|
+
</xsl:template>
|
|
291
|
+
<xsl:template match="//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]"
|
|
292
|
+
priority="46"
|
|
293
|
+
mode="d7e9">
|
|
294
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
295
|
+
<xsl:choose>
|
|
296
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e9']">
|
|
297
|
+
<schxslt:rule pattern="d7e9">
|
|
298
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]" shadowed by preceding rule</xsl:comment>
|
|
299
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
300
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]</xsl:attribute>
|
|
301
|
+
</svrl:suppressed-rule>
|
|
302
|
+
</schxslt:rule>
|
|
303
|
+
<xsl:next-match>
|
|
304
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
305
|
+
as="xs:string*"
|
|
306
|
+
select="$schxslt:patterns-matched"/>
|
|
307
|
+
</xsl:next-match>
|
|
308
|
+
</xsl:when>
|
|
309
|
+
<xsl:otherwise>
|
|
310
|
+
<schxslt:rule pattern="d7e9">
|
|
311
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
312
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]</xsl:attribute>
|
|
313
|
+
</svrl:fired-rule>
|
|
314
|
+
<xsl:if test="count(dcc:usedMethods)">
|
|
315
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
316
|
+
location="{schxslt:location(.)}"
|
|
317
|
+
role="information">
|
|
318
|
+
<xsl:attribute name="test">count(dcc:usedMethods)</xsl:attribute>
|
|
319
|
+
<svrl:text>For this list, the methods used during measuring process are local declared. </svrl:text>
|
|
320
|
+
</svrl:successful-report>
|
|
321
|
+
</xsl:if>
|
|
322
|
+
<xsl:if test="count(dcc:usedMethods)=0 and count(ancestor::dcc:measurementResult/dcc:usedMethods)=0 and count(dcc:quantity)>count(dcc:quantity/dcc:usedMethods)">
|
|
323
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
324
|
+
location="{schxslt:location(.)}"
|
|
325
|
+
role="error">
|
|
326
|
+
<xsl:attribute name="test">count(dcc:usedMethods)=0 and count(ancestor::dcc:measurementResult/dcc:usedMethods)=0 and count(dcc:quantity)>count(dcc:quantity/dcc:usedMethods)</xsl:attribute>
|
|
327
|
+
<svrl:text>For this list, the methods used during measuring process are NEITHER global under measurementResult NOR local under list directly NOR under local quantity child elements declared. This calibration certificate is unacceptable!!!</svrl:text>
|
|
328
|
+
</svrl:successful-report>
|
|
329
|
+
</xsl:if>
|
|
330
|
+
</schxslt:rule>
|
|
331
|
+
<xsl:next-match>
|
|
332
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
333
|
+
as="xs:string*"
|
|
334
|
+
select="($schxslt:patterns-matched, 'd7e9')"/>
|
|
335
|
+
</xsl:next-match>
|
|
336
|
+
</xsl:otherwise>
|
|
337
|
+
</xsl:choose>
|
|
338
|
+
</xsl:template>
|
|
339
|
+
<xsl:template match="//dcc:result/dcc:data/dcc:quantity"
|
|
340
|
+
priority="45"
|
|
341
|
+
mode="d7e9">
|
|
342
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
343
|
+
<xsl:choose>
|
|
344
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e9']">
|
|
345
|
+
<schxslt:rule pattern="d7e9">
|
|
346
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:result/dcc:data/dcc:quantity" shadowed by preceding rule</xsl:comment>
|
|
347
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
348
|
+
<xsl:attribute name="context">//dcc:result/dcc:data/dcc:quantity</xsl:attribute>
|
|
349
|
+
</svrl:suppressed-rule>
|
|
350
|
+
</schxslt:rule>
|
|
351
|
+
<xsl:next-match>
|
|
352
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
353
|
+
as="xs:string*"
|
|
354
|
+
select="$schxslt:patterns-matched"/>
|
|
355
|
+
</xsl:next-match>
|
|
356
|
+
</xsl:when>
|
|
357
|
+
<xsl:otherwise>
|
|
358
|
+
<schxslt:rule pattern="d7e9">
|
|
359
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
360
|
+
<xsl:attribute name="context">//dcc:result/dcc:data/dcc:quantity</xsl:attribute>
|
|
361
|
+
</svrl:fired-rule>
|
|
362
|
+
<xsl:if test="count(dcc:usedMethods)">
|
|
363
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
364
|
+
location="{schxslt:location(.)}"
|
|
365
|
+
role="information">
|
|
366
|
+
<xsl:attribute name="test">count(dcc:usedMethods)</xsl:attribute>
|
|
367
|
+
<svrl:text>For this quantity, the methods used during measuring process are local declared. </svrl:text>
|
|
368
|
+
</svrl:successful-report>
|
|
369
|
+
</xsl:if>
|
|
370
|
+
<xsl:if test="count(dcc:usedMethods)=0 and count(ancestor::dcc:measurementResult/dcc:usedMethods)=0 ">
|
|
371
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
372
|
+
location="{schxslt:location(.)}"
|
|
373
|
+
role="error">
|
|
374
|
+
<xsl:attribute name="test">count(dcc:usedMethods)=0 and count(ancestor::dcc:measurementResult/dcc:usedMethods)=0 </xsl:attribute>
|
|
375
|
+
<svrl:text>For this quantity, the methods used during measuring process are NEITHER global unter measurementResult NOR local declared. This calibration certificate is unacceptable!!!</svrl:text>
|
|
376
|
+
</svrl:successful-report>
|
|
377
|
+
</xsl:if>
|
|
378
|
+
</schxslt:rule>
|
|
379
|
+
<xsl:next-match>
|
|
380
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
381
|
+
as="xs:string*"
|
|
382
|
+
select="($schxslt:patterns-matched, 'd7e9')"/>
|
|
383
|
+
</xsl:next-match>
|
|
384
|
+
</xsl:otherwise>
|
|
385
|
+
</xsl:choose>
|
|
386
|
+
</xsl:template>
|
|
387
|
+
<xsl:template match="//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity"
|
|
388
|
+
priority="44"
|
|
389
|
+
mode="d7e9">
|
|
390
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
391
|
+
<xsl:choose>
|
|
392
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e9']">
|
|
393
|
+
<schxslt:rule pattern="d7e9">
|
|
394
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity" shadowed by preceding rule</xsl:comment>
|
|
395
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
396
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity</xsl:attribute>
|
|
397
|
+
</svrl:suppressed-rule>
|
|
398
|
+
</schxslt:rule>
|
|
399
|
+
<xsl:next-match>
|
|
400
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
401
|
+
as="xs:string*"
|
|
402
|
+
select="$schxslt:patterns-matched"/>
|
|
403
|
+
</xsl:next-match>
|
|
404
|
+
</xsl:when>
|
|
405
|
+
<xsl:otherwise>
|
|
406
|
+
<schxslt:rule pattern="d7e9">
|
|
407
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
408
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity</xsl:attribute>
|
|
409
|
+
</svrl:fired-rule>
|
|
410
|
+
<xsl:if test="count(dcc:usedMethods)">
|
|
411
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
412
|
+
location="{schxslt:location(.)}"
|
|
413
|
+
role="information">
|
|
414
|
+
<xsl:attribute name="test">count(dcc:usedMethods)</xsl:attribute>
|
|
415
|
+
<svrl:text>For this quantity, the methods used during measuring process are local declared. </svrl:text>
|
|
416
|
+
</svrl:successful-report>
|
|
417
|
+
</xsl:if>
|
|
418
|
+
</schxslt:rule>
|
|
419
|
+
<xsl:next-match>
|
|
420
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
421
|
+
as="xs:string*"
|
|
422
|
+
select="($schxslt:patterns-matched, 'd7e9')"/>
|
|
423
|
+
</xsl:next-match>
|
|
424
|
+
</xsl:otherwise>
|
|
425
|
+
</xsl:choose>
|
|
426
|
+
</xsl:template>
|
|
427
|
+
<xsl:template match="//dcc:measurementResult" priority="43" mode="d7e9">
|
|
428
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
429
|
+
<xsl:choose>
|
|
430
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e45']">
|
|
431
|
+
<schxslt:rule pattern="d7e45">
|
|
432
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResult" shadowed by preceding rule</xsl:comment>
|
|
433
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
434
|
+
<xsl:attribute name="context">//dcc:measurementResult</xsl:attribute>
|
|
435
|
+
</svrl:suppressed-rule>
|
|
436
|
+
</schxslt:rule>
|
|
437
|
+
<xsl:next-match>
|
|
438
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
439
|
+
as="xs:string*"
|
|
440
|
+
select="$schxslt:patterns-matched"/>
|
|
441
|
+
</xsl:next-match>
|
|
442
|
+
</xsl:when>
|
|
443
|
+
<xsl:otherwise>
|
|
444
|
+
<schxslt:rule pattern="d7e45">
|
|
445
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
446
|
+
<xsl:attribute name="context">//dcc:measurementResult</xsl:attribute>
|
|
447
|
+
</svrl:fired-rule>
|
|
448
|
+
<xsl:if test="count(dcc:usedSoftware)">
|
|
449
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
450
|
+
location="{schxslt:location(.)}"
|
|
451
|
+
role="information">
|
|
452
|
+
<xsl:attribute name="test">count(dcc:usedSoftware)</xsl:attribute>
|
|
453
|
+
<svrl:text>For this measurement result, the software used during measuring process is global declared. </svrl:text>
|
|
454
|
+
</svrl:successful-report>
|
|
455
|
+
</xsl:if>
|
|
456
|
+
</schxslt:rule>
|
|
457
|
+
<xsl:next-match>
|
|
458
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
459
|
+
as="xs:string*"
|
|
460
|
+
select="($schxslt:patterns-matched, 'd7e45')"/>
|
|
461
|
+
</xsl:next-match>
|
|
462
|
+
</xsl:otherwise>
|
|
463
|
+
</xsl:choose>
|
|
464
|
+
</xsl:template>
|
|
465
|
+
<xsl:template match="//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]"
|
|
466
|
+
priority="42"
|
|
467
|
+
mode="d7e9">
|
|
468
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
469
|
+
<xsl:choose>
|
|
470
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e45']">
|
|
471
|
+
<schxslt:rule pattern="d7e45">
|
|
472
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]" shadowed by preceding rule</xsl:comment>
|
|
473
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
474
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]</xsl:attribute>
|
|
475
|
+
</svrl:suppressed-rule>
|
|
476
|
+
</schxslt:rule>
|
|
477
|
+
<xsl:next-match>
|
|
478
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
479
|
+
as="xs:string*"
|
|
480
|
+
select="$schxslt:patterns-matched"/>
|
|
481
|
+
</xsl:next-match>
|
|
482
|
+
</xsl:when>
|
|
483
|
+
<xsl:otherwise>
|
|
484
|
+
<schxslt:rule pattern="d7e45">
|
|
485
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
486
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]</xsl:attribute>
|
|
487
|
+
</svrl:fired-rule>
|
|
488
|
+
<xsl:if test="count(dcc:usedSoftware)">
|
|
489
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
490
|
+
location="{schxslt:location(.)}"
|
|
491
|
+
role="information">
|
|
492
|
+
<xsl:attribute name="test">count(dcc:usedSoftware)</xsl:attribute>
|
|
493
|
+
<svrl:text>For this list, the software used during measuring process is local declared. </svrl:text>
|
|
494
|
+
</svrl:successful-report>
|
|
495
|
+
</xsl:if>
|
|
496
|
+
<xsl:if test="count(dcc:usedSoftware)=0 and count(ancestor::dcc:measurementResult/dcc:usedSoftware)=0 and count(dcc:quantity)>count(dcc:quantity/dcc:usedSoftware)">
|
|
497
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
498
|
+
location="{schxslt:location(.)}"
|
|
499
|
+
role="warning">
|
|
500
|
+
<xsl:attribute name="test">count(dcc:usedSoftware)=0 and count(ancestor::dcc:measurementResult/dcc:usedSoftware)=0 and count(dcc:quantity)>count(dcc:quantity/dcc:usedSoftware)</xsl:attribute>
|
|
501
|
+
<svrl:text>For this list, the software used during measuring process is NEITHER global under measurementResult NOR local under list directly NOR under local quantity child elements declared.</svrl:text>
|
|
502
|
+
</svrl:successful-report>
|
|
503
|
+
</xsl:if>
|
|
504
|
+
</schxslt:rule>
|
|
505
|
+
<xsl:next-match>
|
|
506
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
507
|
+
as="xs:string*"
|
|
508
|
+
select="($schxslt:patterns-matched, 'd7e45')"/>
|
|
509
|
+
</xsl:next-match>
|
|
510
|
+
</xsl:otherwise>
|
|
511
|
+
</xsl:choose>
|
|
512
|
+
</xsl:template>
|
|
513
|
+
<xsl:template match="//dcc:result/dcc:data/dcc:quantity"
|
|
514
|
+
priority="41"
|
|
515
|
+
mode="d7e9">
|
|
516
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
517
|
+
<xsl:choose>
|
|
518
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e45']">
|
|
519
|
+
<schxslt:rule pattern="d7e45">
|
|
520
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:result/dcc:data/dcc:quantity" shadowed by preceding rule</xsl:comment>
|
|
521
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
522
|
+
<xsl:attribute name="context">//dcc:result/dcc:data/dcc:quantity</xsl:attribute>
|
|
523
|
+
</svrl:suppressed-rule>
|
|
524
|
+
</schxslt:rule>
|
|
525
|
+
<xsl:next-match>
|
|
526
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
527
|
+
as="xs:string*"
|
|
528
|
+
select="$schxslt:patterns-matched"/>
|
|
529
|
+
</xsl:next-match>
|
|
530
|
+
</xsl:when>
|
|
531
|
+
<xsl:otherwise>
|
|
532
|
+
<schxslt:rule pattern="d7e45">
|
|
533
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
534
|
+
<xsl:attribute name="context">//dcc:result/dcc:data/dcc:quantity</xsl:attribute>
|
|
535
|
+
</svrl:fired-rule>
|
|
536
|
+
<xsl:if test="count(dcc:usedSoftware)">
|
|
537
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
538
|
+
location="{schxslt:location(.)}"
|
|
539
|
+
role="information">
|
|
540
|
+
<xsl:attribute name="test">count(dcc:usedSoftware)</xsl:attribute>
|
|
541
|
+
<svrl:text>For this quantity, the software used during measuring process is local declared. </svrl:text>
|
|
542
|
+
</svrl:successful-report>
|
|
543
|
+
</xsl:if>
|
|
544
|
+
<xsl:if test="count(dcc:usedSoftware)=0 and count(ancestor::dcc:measurementResult/dcc:usedSoftware)=0 ">
|
|
545
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
546
|
+
location="{schxslt:location(.)}"
|
|
547
|
+
role="warning">
|
|
548
|
+
<xsl:attribute name="test">count(dcc:usedSoftware)=0 and count(ancestor::dcc:measurementResult/dcc:usedSoftware)=0 </xsl:attribute>
|
|
549
|
+
<svrl:text>For this quantity, the software used during measuring process is NEITHER global unter measurementResult NOR local declared.</svrl:text>
|
|
550
|
+
</svrl:successful-report>
|
|
551
|
+
</xsl:if>
|
|
552
|
+
</schxslt:rule>
|
|
553
|
+
<xsl:next-match>
|
|
554
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
555
|
+
as="xs:string*"
|
|
556
|
+
select="($schxslt:patterns-matched, 'd7e45')"/>
|
|
557
|
+
</xsl:next-match>
|
|
558
|
+
</xsl:otherwise>
|
|
559
|
+
</xsl:choose>
|
|
560
|
+
</xsl:template>
|
|
561
|
+
<xsl:template match="//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity"
|
|
562
|
+
priority="40"
|
|
563
|
+
mode="d7e9">
|
|
564
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
565
|
+
<xsl:choose>
|
|
566
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e45']">
|
|
567
|
+
<schxslt:rule pattern="d7e45">
|
|
568
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity" shadowed by preceding rule</xsl:comment>
|
|
569
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
570
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity</xsl:attribute>
|
|
571
|
+
</svrl:suppressed-rule>
|
|
572
|
+
</schxslt:rule>
|
|
573
|
+
<xsl:next-match>
|
|
574
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
575
|
+
as="xs:string*"
|
|
576
|
+
select="$schxslt:patterns-matched"/>
|
|
577
|
+
</xsl:next-match>
|
|
578
|
+
</xsl:when>
|
|
579
|
+
<xsl:otherwise>
|
|
580
|
+
<schxslt:rule pattern="d7e45">
|
|
581
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
582
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity</xsl:attribute>
|
|
583
|
+
</svrl:fired-rule>
|
|
584
|
+
<xsl:if test="count(dcc:usedSoftware)">
|
|
585
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
586
|
+
location="{schxslt:location(.)}"
|
|
587
|
+
role="information">
|
|
588
|
+
<xsl:attribute name="test">count(dcc:usedSoftware)</xsl:attribute>
|
|
589
|
+
<svrl:text>For this quantity, the software used during measuring process is local declared. </svrl:text>
|
|
590
|
+
</svrl:successful-report>
|
|
591
|
+
</xsl:if>
|
|
592
|
+
</schxslt:rule>
|
|
593
|
+
<xsl:next-match>
|
|
594
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
595
|
+
as="xs:string*"
|
|
596
|
+
select="($schxslt:patterns-matched, 'd7e45')"/>
|
|
597
|
+
</xsl:next-match>
|
|
598
|
+
</xsl:otherwise>
|
|
599
|
+
</xsl:choose>
|
|
600
|
+
</xsl:template>
|
|
601
|
+
<xsl:template match="//dcc:measurementResult" priority="39" mode="d7e9">
|
|
602
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
603
|
+
<xsl:choose>
|
|
604
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e80']">
|
|
605
|
+
<schxslt:rule pattern="d7e80">
|
|
606
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResult" shadowed by preceding rule</xsl:comment>
|
|
607
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
608
|
+
<xsl:attribute name="context">//dcc:measurementResult</xsl:attribute>
|
|
609
|
+
</svrl:suppressed-rule>
|
|
610
|
+
</schxslt:rule>
|
|
611
|
+
<xsl:next-match>
|
|
612
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
613
|
+
as="xs:string*"
|
|
614
|
+
select="$schxslt:patterns-matched"/>
|
|
615
|
+
</xsl:next-match>
|
|
616
|
+
</xsl:when>
|
|
617
|
+
<xsl:otherwise>
|
|
618
|
+
<schxslt:rule pattern="d7e80">
|
|
619
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
620
|
+
<xsl:attribute name="context">//dcc:measurementResult</xsl:attribute>
|
|
621
|
+
</svrl:fired-rule>
|
|
622
|
+
<xsl:if test="count(dcc:influenceConditions)">
|
|
623
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
624
|
+
location="{schxslt:location(.)}"
|
|
625
|
+
role="information">
|
|
626
|
+
<xsl:attribute name="test">count(dcc:influenceConditions)</xsl:attribute>
|
|
627
|
+
<svrl:text>For this measurement result, the influence conditions are global declared. </svrl:text>
|
|
628
|
+
</svrl:successful-report>
|
|
629
|
+
</xsl:if>
|
|
630
|
+
</schxslt:rule>
|
|
631
|
+
<xsl:next-match>
|
|
632
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
633
|
+
as="xs:string*"
|
|
634
|
+
select="($schxslt:patterns-matched, 'd7e80')"/>
|
|
635
|
+
</xsl:next-match>
|
|
636
|
+
</xsl:otherwise>
|
|
637
|
+
</xsl:choose>
|
|
638
|
+
</xsl:template>
|
|
639
|
+
<xsl:template match="//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]"
|
|
640
|
+
priority="38"
|
|
641
|
+
mode="d7e9">
|
|
642
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
643
|
+
<xsl:choose>
|
|
644
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e80']">
|
|
645
|
+
<schxslt:rule pattern="d7e80">
|
|
646
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]" shadowed by preceding rule</xsl:comment>
|
|
647
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
648
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]</xsl:attribute>
|
|
649
|
+
</svrl:suppressed-rule>
|
|
650
|
+
</schxslt:rule>
|
|
651
|
+
<xsl:next-match>
|
|
652
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
653
|
+
as="xs:string*"
|
|
654
|
+
select="$schxslt:patterns-matched"/>
|
|
655
|
+
</xsl:next-match>
|
|
656
|
+
</xsl:when>
|
|
657
|
+
<xsl:otherwise>
|
|
658
|
+
<schxslt:rule pattern="d7e80">
|
|
659
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
660
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]</xsl:attribute>
|
|
661
|
+
</svrl:fired-rule>
|
|
662
|
+
<xsl:if test="count(dcc:influenceConditions)">
|
|
663
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
664
|
+
location="{schxslt:location(.)}"
|
|
665
|
+
role="information">
|
|
666
|
+
<xsl:attribute name="test">count(dcc:influenceConditions)</xsl:attribute>
|
|
667
|
+
<svrl:text>For this list, the influence conditions are local declared. </svrl:text>
|
|
668
|
+
</svrl:successful-report>
|
|
669
|
+
</xsl:if>
|
|
670
|
+
<xsl:if test="count(dcc:influenceConditions)=0 and count(ancestor::dcc:measurementResult/dcc:influenceConditions)=0 and count(dcc:quantity)>count(dcc:quantity/dcc:influenceConditions)">
|
|
671
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
672
|
+
location="{schxslt:location(.)}"
|
|
673
|
+
role="error">
|
|
674
|
+
<xsl:attribute name="test">count(dcc:influenceConditions)=0 and count(ancestor::dcc:measurementResult/dcc:influenceConditions)=0 and count(dcc:quantity)>count(dcc:quantity/dcc:influenceConditions)</xsl:attribute>
|
|
675
|
+
<svrl:text>For this list, the influence conditions are NEITHER global under measurementResult NOR local under list directly NOR under local quantity child elements declared. This calibration certificate is unacceptable!!!</svrl:text>
|
|
676
|
+
</svrl:successful-report>
|
|
677
|
+
</xsl:if>
|
|
678
|
+
</schxslt:rule>
|
|
679
|
+
<xsl:next-match>
|
|
680
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
681
|
+
as="xs:string*"
|
|
682
|
+
select="($schxslt:patterns-matched, 'd7e80')"/>
|
|
683
|
+
</xsl:next-match>
|
|
684
|
+
</xsl:otherwise>
|
|
685
|
+
</xsl:choose>
|
|
686
|
+
</xsl:template>
|
|
687
|
+
<xsl:template match="//dcc:result/dcc:data/dcc:quantity"
|
|
688
|
+
priority="37"
|
|
689
|
+
mode="d7e9">
|
|
690
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
691
|
+
<xsl:choose>
|
|
692
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e80']">
|
|
693
|
+
<schxslt:rule pattern="d7e80">
|
|
694
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:result/dcc:data/dcc:quantity" shadowed by preceding rule</xsl:comment>
|
|
695
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
696
|
+
<xsl:attribute name="context">//dcc:result/dcc:data/dcc:quantity</xsl:attribute>
|
|
697
|
+
</svrl:suppressed-rule>
|
|
698
|
+
</schxslt:rule>
|
|
699
|
+
<xsl:next-match>
|
|
700
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
701
|
+
as="xs:string*"
|
|
702
|
+
select="$schxslt:patterns-matched"/>
|
|
703
|
+
</xsl:next-match>
|
|
704
|
+
</xsl:when>
|
|
705
|
+
<xsl:otherwise>
|
|
706
|
+
<schxslt:rule pattern="d7e80">
|
|
707
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
708
|
+
<xsl:attribute name="context">//dcc:result/dcc:data/dcc:quantity</xsl:attribute>
|
|
709
|
+
</svrl:fired-rule>
|
|
710
|
+
<xsl:if test="count(dcc:influenceConditions)">
|
|
711
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
712
|
+
location="{schxslt:location(.)}"
|
|
713
|
+
role="information">
|
|
714
|
+
<xsl:attribute name="test">count(dcc:influenceConditions)</xsl:attribute>
|
|
715
|
+
<svrl:text>For this quantity, the influence conditions are local declared. </svrl:text>
|
|
716
|
+
</svrl:successful-report>
|
|
717
|
+
</xsl:if>
|
|
718
|
+
<xsl:if test="count(dcc:influenceConditions)=0 and count(ancestor::dcc:measurementResult/dcc:influenceConditions)=0 ">
|
|
719
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
720
|
+
location="{schxslt:location(.)}"
|
|
721
|
+
role="error">
|
|
722
|
+
<xsl:attribute name="test">count(dcc:influenceConditions)=0 and count(ancestor::dcc:measurementResult/dcc:influenceConditions)=0 </xsl:attribute>
|
|
723
|
+
<svrl:text>For this quantity, the influence conditions are NEITHER global unter measurementResult NOR local declared. This calibration certificate is unacceptable!!!</svrl:text>
|
|
724
|
+
</svrl:successful-report>
|
|
725
|
+
</xsl:if>
|
|
726
|
+
</schxslt:rule>
|
|
727
|
+
<xsl:next-match>
|
|
728
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
729
|
+
as="xs:string*"
|
|
730
|
+
select="($schxslt:patterns-matched, 'd7e80')"/>
|
|
731
|
+
</xsl:next-match>
|
|
732
|
+
</xsl:otherwise>
|
|
733
|
+
</xsl:choose>
|
|
734
|
+
</xsl:template>
|
|
735
|
+
<xsl:template match="//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity"
|
|
736
|
+
priority="36"
|
|
737
|
+
mode="d7e9">
|
|
738
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
739
|
+
<xsl:choose>
|
|
740
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e80']">
|
|
741
|
+
<schxslt:rule pattern="d7e80">
|
|
742
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity" shadowed by preceding rule</xsl:comment>
|
|
743
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
744
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity</xsl:attribute>
|
|
745
|
+
</svrl:suppressed-rule>
|
|
746
|
+
</schxslt:rule>
|
|
747
|
+
<xsl:next-match>
|
|
748
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
749
|
+
as="xs:string*"
|
|
750
|
+
select="$schxslt:patterns-matched"/>
|
|
751
|
+
</xsl:next-match>
|
|
752
|
+
</xsl:when>
|
|
753
|
+
<xsl:otherwise>
|
|
754
|
+
<schxslt:rule pattern="d7e80">
|
|
755
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
756
|
+
<xsl:attribute name="context">//dcc:measurementResults//dcc:list[not(ancestor::dcc:metaData)]/dcc:quantity</xsl:attribute>
|
|
757
|
+
</svrl:fired-rule>
|
|
758
|
+
<xsl:if test="count(dcc:influenceConditions)">
|
|
759
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
760
|
+
location="{schxslt:location(.)}"
|
|
761
|
+
role="information">
|
|
762
|
+
<xsl:attribute name="test">count(dcc:influenceConditions)</xsl:attribute>
|
|
763
|
+
<svrl:text>For this quantity, the influence conditions are local declared. </svrl:text>
|
|
764
|
+
</svrl:successful-report>
|
|
765
|
+
</xsl:if>
|
|
766
|
+
</schxslt:rule>
|
|
767
|
+
<xsl:next-match>
|
|
768
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
769
|
+
as="xs:string*"
|
|
770
|
+
select="($schxslt:patterns-matched, 'd7e80')"/>
|
|
771
|
+
</xsl:next-match>
|
|
772
|
+
</xsl:otherwise>
|
|
773
|
+
</xsl:choose>
|
|
774
|
+
</xsl:template>
|
|
775
|
+
<xsl:template match="dcc:digitalCalibrationCertificate" priority="35" mode="d7e9">
|
|
776
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
777
|
+
<xsl:choose>
|
|
778
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e115']">
|
|
779
|
+
<schxslt:rule pattern="d7e115">
|
|
780
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "dcc:digitalCalibrationCertificate" shadowed by preceding rule</xsl:comment>
|
|
781
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
782
|
+
<xsl:attribute name="context">dcc:digitalCalibrationCertificate</xsl:attribute>
|
|
783
|
+
</svrl:suppressed-rule>
|
|
784
|
+
</schxslt:rule>
|
|
785
|
+
<xsl:next-match>
|
|
786
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
787
|
+
as="xs:string*"
|
|
788
|
+
select="$schxslt:patterns-matched"/>
|
|
789
|
+
</xsl:next-match>
|
|
790
|
+
</xsl:when>
|
|
791
|
+
<xsl:otherwise>
|
|
792
|
+
<schxslt:rule pattern="d7e115">
|
|
793
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
794
|
+
<xsl:attribute name="context">dcc:digitalCalibrationCertificate</xsl:attribute>
|
|
795
|
+
</svrl:fired-rule>
|
|
796
|
+
<xsl:if test="not(@schemaVersion='3.3.0')">
|
|
797
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
798
|
+
location="{schxslt:location(.)}"
|
|
799
|
+
role="warning">
|
|
800
|
+
<xsl:attribute name="test">@schemaVersion='3.3.0'</xsl:attribute>
|
|
801
|
+
<svrl:text>You are not using the latest version of the DCC! There a version 3.3.0 available.</svrl:text>
|
|
802
|
+
</svrl:failed-assert>
|
|
803
|
+
</xsl:if>
|
|
804
|
+
</schxslt:rule>
|
|
805
|
+
<xsl:next-match>
|
|
806
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
807
|
+
as="xs:string*"
|
|
808
|
+
select="($schxslt:patterns-matched, 'd7e115')"/>
|
|
809
|
+
</xsl:next-match>
|
|
810
|
+
</xsl:otherwise>
|
|
811
|
+
</xsl:choose>
|
|
812
|
+
</xsl:template>
|
|
813
|
+
<xsl:template match="dcc:digitalCalibrationCertificate" priority="34" mode="d7e9">
|
|
814
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
815
|
+
<xsl:choose>
|
|
816
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e127']">
|
|
817
|
+
<schxslt:rule pattern="d7e127">
|
|
818
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "dcc:digitalCalibrationCertificate" shadowed by preceding rule</xsl:comment>
|
|
819
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
820
|
+
<xsl:attribute name="context">dcc:digitalCalibrationCertificate</xsl:attribute>
|
|
821
|
+
</svrl:suppressed-rule>
|
|
822
|
+
</schxslt:rule>
|
|
823
|
+
<xsl:next-match>
|
|
824
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
825
|
+
as="xs:string*"
|
|
826
|
+
select="$schxslt:patterns-matched"/>
|
|
827
|
+
</xsl:next-match>
|
|
828
|
+
</xsl:when>
|
|
829
|
+
<xsl:otherwise>
|
|
830
|
+
<schxslt:rule pattern="d7e127">
|
|
831
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
832
|
+
<xsl:attribute name="context">dcc:digitalCalibrationCertificate</xsl:attribute>
|
|
833
|
+
</svrl:fired-rule>
|
|
834
|
+
<xsl:if test="count(dcc:administrativeData)">
|
|
835
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
836
|
+
location="{schxslt:location(.)}"
|
|
837
|
+
role="information">
|
|
838
|
+
<xsl:attribute name="test">count(dcc:administrativeData)</xsl:attribute>
|
|
839
|
+
<svrl:text>
|
|
840
|
+
All refId Attributes: <xsl:value-of select="string-join($REFID,', ')"/>
|
|
841
|
+
</svrl:text>
|
|
842
|
+
</svrl:successful-report>
|
|
843
|
+
</xsl:if>
|
|
844
|
+
<xsl:if test="count(dcc:administrativeData)">
|
|
845
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
846
|
+
location="{schxslt:location(.)}"
|
|
847
|
+
role="information">
|
|
848
|
+
<xsl:attribute name="test">count(dcc:administrativeData)</xsl:attribute>
|
|
849
|
+
<svrl:text>
|
|
850
|
+
All id Attributes: <xsl:value-of select="string-join($ID,', ')"/>
|
|
851
|
+
</svrl:text>
|
|
852
|
+
</svrl:successful-report>
|
|
853
|
+
</xsl:if>
|
|
854
|
+
</schxslt:rule>
|
|
855
|
+
<xsl:next-match>
|
|
856
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
857
|
+
as="xs:string*"
|
|
858
|
+
select="($schxslt:patterns-matched, 'd7e127')"/>
|
|
859
|
+
</xsl:next-match>
|
|
860
|
+
</xsl:otherwise>
|
|
861
|
+
</xsl:choose>
|
|
862
|
+
</xsl:template>
|
|
863
|
+
<xsl:template match="//@id" priority="33" mode="d7e9">
|
|
864
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
865
|
+
<xsl:choose>
|
|
866
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e149']">
|
|
867
|
+
<schxslt:rule pattern="d7e149">
|
|
868
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//@id" shadowed by preceding rule</xsl:comment>
|
|
869
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
870
|
+
<xsl:attribute name="context">//@id</xsl:attribute>
|
|
871
|
+
</svrl:suppressed-rule>
|
|
872
|
+
</schxslt:rule>
|
|
873
|
+
<xsl:next-match>
|
|
874
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
875
|
+
as="xs:string*"
|
|
876
|
+
select="$schxslt:patterns-matched"/>
|
|
877
|
+
</xsl:next-match>
|
|
878
|
+
</xsl:when>
|
|
879
|
+
<xsl:otherwise>
|
|
880
|
+
<schxslt:rule pattern="d7e149">
|
|
881
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
882
|
+
<xsl:attribute name="context">//@id</xsl:attribute>
|
|
883
|
+
</svrl:fired-rule>
|
|
884
|
+
<xsl:if test="not(some $refid in $REFID satisfies tokenize($refid, ' ') = .)">
|
|
885
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
886
|
+
location="{schxslt:location(.)}"
|
|
887
|
+
role="error">
|
|
888
|
+
<xsl:attribute name="test">some $refid in $REFID satisfies tokenize($refid, ' ') = .</xsl:attribute>
|
|
889
|
+
<svrl:text>This id is not linked to a refId.</svrl:text>
|
|
890
|
+
</svrl:failed-assert>
|
|
891
|
+
</xsl:if>
|
|
892
|
+
</schxslt:rule>
|
|
893
|
+
<xsl:next-match>
|
|
894
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
895
|
+
as="xs:string*"
|
|
896
|
+
select="($schxslt:patterns-matched, 'd7e149')"/>
|
|
897
|
+
</xsl:next-match>
|
|
898
|
+
</xsl:otherwise>
|
|
899
|
+
</xsl:choose>
|
|
900
|
+
</xsl:template>
|
|
901
|
+
<xsl:template match="//@refId" priority="32" mode="d7e9">
|
|
902
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
903
|
+
<xsl:choose>
|
|
904
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e149']">
|
|
905
|
+
<schxslt:rule pattern="d7e149">
|
|
906
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//@refId" shadowed by preceding rule</xsl:comment>
|
|
907
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
908
|
+
<xsl:attribute name="context">//@refId</xsl:attribute>
|
|
909
|
+
</svrl:suppressed-rule>
|
|
910
|
+
</schxslt:rule>
|
|
911
|
+
<xsl:next-match>
|
|
912
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
913
|
+
as="xs:string*"
|
|
914
|
+
select="$schxslt:patterns-matched"/>
|
|
915
|
+
</xsl:next-match>
|
|
916
|
+
</xsl:when>
|
|
917
|
+
<xsl:otherwise>
|
|
918
|
+
<schxslt:rule pattern="d7e149">
|
|
919
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
920
|
+
<xsl:attribute name="context">//@refId</xsl:attribute>
|
|
921
|
+
</svrl:fired-rule>
|
|
922
|
+
<xsl:if test="not(some $refid in tokenize(., ' ') satisfies $ID = $refid)">
|
|
923
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
924
|
+
location="{schxslt:location(.)}"
|
|
925
|
+
role="error">
|
|
926
|
+
<xsl:attribute name="test">some $refid in tokenize(., ' ') satisfies $ID = $refid</xsl:attribute>
|
|
927
|
+
<svrl:text>This refId is not linked to an id.</svrl:text>
|
|
928
|
+
</svrl:failed-assert>
|
|
929
|
+
</xsl:if>
|
|
930
|
+
</schxslt:rule>
|
|
931
|
+
<xsl:next-match>
|
|
932
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
933
|
+
as="xs:string*"
|
|
934
|
+
select="($schxslt:patterns-matched, 'd7e149')"/>
|
|
935
|
+
</xsl:next-match>
|
|
936
|
+
</xsl:otherwise>
|
|
937
|
+
</xsl:choose>
|
|
938
|
+
</xsl:template>
|
|
939
|
+
<xsl:template match="//*" priority="31" mode="d7e9">
|
|
940
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
941
|
+
<xsl:choose>
|
|
942
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e166']">
|
|
943
|
+
<schxslt:rule pattern="d7e166">
|
|
944
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//*" shadowed by preceding rule</xsl:comment>
|
|
945
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
946
|
+
<xsl:attribute name="context">//*</xsl:attribute>
|
|
947
|
+
</svrl:suppressed-rule>
|
|
948
|
+
</schxslt:rule>
|
|
949
|
+
<xsl:next-match>
|
|
950
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
951
|
+
as="xs:string*"
|
|
952
|
+
select="$schxslt:patterns-matched"/>
|
|
953
|
+
</xsl:next-match>
|
|
954
|
+
</xsl:when>
|
|
955
|
+
<xsl:otherwise>
|
|
956
|
+
<schxslt:rule pattern="d7e166">
|
|
957
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
958
|
+
<xsl:attribute name="context">//*</xsl:attribute>
|
|
959
|
+
</svrl:fired-rule>
|
|
960
|
+
<xsl:if test="count(text())=0 and count(*)=0 and not(name(.) = 'dcc:metaData')">
|
|
961
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
962
|
+
location="{schxslt:location(.)}"
|
|
963
|
+
role="error">
|
|
964
|
+
<xsl:attribute name="test">count(text())=0 and count(*)=0 and not(name(.) = 'dcc:metaData')</xsl:attribute>
|
|
965
|
+
<svrl:text>Empty element. You cannot have an empty element. You have to enter the necessary information here.</svrl:text>
|
|
966
|
+
</svrl:successful-report>
|
|
967
|
+
</xsl:if>
|
|
968
|
+
<xsl:if test="count(text())=1 and matches(text(), '^\s+$') and count(*)=0">
|
|
969
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
970
|
+
location="{schxslt:location(.)}"
|
|
971
|
+
role="error">
|
|
972
|
+
<xsl:attribute name="test">count(text())=1 and matches(text(), '^\s+$') and count(*)=0</xsl:attribute>
|
|
973
|
+
<svrl:text>Blank spaces. You cannot have just blank space(s) as content. You have to enter the necessary information here.</svrl:text>
|
|
974
|
+
</svrl:successful-report>
|
|
975
|
+
</xsl:if>
|
|
976
|
+
</schxslt:rule>
|
|
977
|
+
<xsl:next-match>
|
|
978
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
979
|
+
as="xs:string*"
|
|
980
|
+
select="($schxslt:patterns-matched, 'd7e166')"/>
|
|
981
|
+
</xsl:next-match>
|
|
982
|
+
</xsl:otherwise>
|
|
983
|
+
</xsl:choose>
|
|
984
|
+
</xsl:template>
|
|
985
|
+
<xsl:template match="dcc:content[@lang]" priority="30" mode="d7e9">
|
|
986
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
987
|
+
<xsl:choose>
|
|
988
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e181']">
|
|
989
|
+
<schxslt:rule pattern="d7e181">
|
|
990
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "dcc:content[@lang]" shadowed by preceding rule</xsl:comment>
|
|
991
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
992
|
+
<xsl:attribute name="context">dcc:content[@lang]</xsl:attribute>
|
|
993
|
+
</svrl:suppressed-rule>
|
|
994
|
+
</schxslt:rule>
|
|
995
|
+
<xsl:next-match>
|
|
996
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
997
|
+
as="xs:string*"
|
|
998
|
+
select="$schxslt:patterns-matched"/>
|
|
999
|
+
</xsl:next-match>
|
|
1000
|
+
</xsl:when>
|
|
1001
|
+
<xsl:otherwise>
|
|
1002
|
+
<schxslt:rule pattern="d7e181">
|
|
1003
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1004
|
+
<xsl:attribute name="context">dcc:content[@lang]</xsl:attribute>
|
|
1005
|
+
</svrl:fired-rule>
|
|
1006
|
+
<xsl:if test="not(@lang = $vals)">
|
|
1007
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1008
|
+
location="{schxslt:location(.)}"
|
|
1009
|
+
role="error">
|
|
1010
|
+
<xsl:attribute name="test">@lang = $vals</xsl:attribute>
|
|
1011
|
+
<svrl:text>
|
|
1012
|
+
Please use one of these language codes: <xsl:value-of select="string-join($vals,', ')"/>. This calibration certificate is unacceptable!!!
|
|
1013
|
+
</svrl:text>
|
|
1014
|
+
</svrl:failed-assert>
|
|
1015
|
+
</xsl:if>
|
|
1016
|
+
</schxslt:rule>
|
|
1017
|
+
<xsl:next-match>
|
|
1018
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1019
|
+
as="xs:string*"
|
|
1020
|
+
select="($schxslt:patterns-matched, 'd7e181')"/>
|
|
1021
|
+
</xsl:next-match>
|
|
1022
|
+
</xsl:otherwise>
|
|
1023
|
+
</xsl:choose>
|
|
1024
|
+
</xsl:template>
|
|
1025
|
+
<xsl:template match="dcc:content" priority="29" mode="d7e9">
|
|
1026
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1027
|
+
<xsl:choose>
|
|
1028
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e181']">
|
|
1029
|
+
<schxslt:rule pattern="d7e181">
|
|
1030
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "dcc:content" shadowed by preceding rule</xsl:comment>
|
|
1031
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1032
|
+
<xsl:attribute name="context">dcc:content</xsl:attribute>
|
|
1033
|
+
</svrl:suppressed-rule>
|
|
1034
|
+
</schxslt:rule>
|
|
1035
|
+
<xsl:next-match>
|
|
1036
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1037
|
+
as="xs:string*"
|
|
1038
|
+
select="$schxslt:patterns-matched"/>
|
|
1039
|
+
</xsl:next-match>
|
|
1040
|
+
</xsl:when>
|
|
1041
|
+
<xsl:otherwise>
|
|
1042
|
+
<schxslt:rule pattern="d7e181">
|
|
1043
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1044
|
+
<xsl:attribute name="context">dcc:content</xsl:attribute>
|
|
1045
|
+
</svrl:fired-rule>
|
|
1046
|
+
<xsl:if test="not(@lang) and (count(../../dcc:name)=0 and count(../../dcc:further)=0 and count(../../dcc:referral)=0)">
|
|
1047
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1048
|
+
location="{schxslt:location(.)}"
|
|
1049
|
+
role="warning">
|
|
1050
|
+
<xsl:attribute name="test">not(@lang) and (count(../../dcc:name)=0 and count(../../dcc:further)=0 and count(../../dcc:referral)=0)</xsl:attribute>
|
|
1051
|
+
<svrl:text>
|
|
1052
|
+
The language attribute is not used for this element.
|
|
1053
|
+
</svrl:text>
|
|
1054
|
+
</svrl:successful-report>
|
|
1055
|
+
</xsl:if>
|
|
1056
|
+
</schxslt:rule>
|
|
1057
|
+
<xsl:next-match>
|
|
1058
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1059
|
+
as="xs:string*"
|
|
1060
|
+
select="($schxslt:patterns-matched, 'd7e181')"/>
|
|
1061
|
+
</xsl:next-match>
|
|
1062
|
+
</xsl:otherwise>
|
|
1063
|
+
</xsl:choose>
|
|
1064
|
+
</xsl:template>
|
|
1065
|
+
<xsl:template match="dcc:coreData/dcc:endPerformanceDate"
|
|
1066
|
+
priority="28"
|
|
1067
|
+
mode="d7e9">
|
|
1068
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1069
|
+
<xsl:variable name="eDate" select="xs:date(.)"/>
|
|
1070
|
+
<xsl:variable name="bDate" select="xs:date(../dcc:beginPerformanceDate)"/>
|
|
1071
|
+
<xsl:choose>
|
|
1072
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e202']">
|
|
1073
|
+
<schxslt:rule pattern="d7e202">
|
|
1074
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "dcc:coreData/dcc:endPerformanceDate" shadowed by preceding rule</xsl:comment>
|
|
1075
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1076
|
+
<xsl:attribute name="context">dcc:coreData/dcc:endPerformanceDate</xsl:attribute>
|
|
1077
|
+
</svrl:suppressed-rule>
|
|
1078
|
+
</schxslt:rule>
|
|
1079
|
+
<xsl:next-match>
|
|
1080
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1081
|
+
as="xs:string*"
|
|
1082
|
+
select="$schxslt:patterns-matched"/>
|
|
1083
|
+
</xsl:next-match>
|
|
1084
|
+
</xsl:when>
|
|
1085
|
+
<xsl:otherwise>
|
|
1086
|
+
<schxslt:rule pattern="d7e202">
|
|
1087
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1088
|
+
<xsl:attribute name="context">dcc:coreData/dcc:endPerformanceDate</xsl:attribute>
|
|
1089
|
+
</svrl:fired-rule>
|
|
1090
|
+
<xsl:if test="not($bDate le $eDate)">
|
|
1091
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1092
|
+
location="{schxslt:location(.)}"
|
|
1093
|
+
role="error">
|
|
1094
|
+
<xsl:attribute name="test">$bDate le $eDate</xsl:attribute>
|
|
1095
|
+
<svrl:text>
|
|
1096
|
+
The beginning date of the calibration must be earlier than or the same day as the end date of the calibration. This calibration certificate is unacceptable!!!
|
|
1097
|
+
</svrl:text>
|
|
1098
|
+
</svrl:failed-assert>
|
|
1099
|
+
</xsl:if>
|
|
1100
|
+
</schxslt:rule>
|
|
1101
|
+
<xsl:next-match>
|
|
1102
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1103
|
+
as="xs:string*"
|
|
1104
|
+
select="($schxslt:patterns-matched, 'd7e202')"/>
|
|
1105
|
+
</xsl:next-match>
|
|
1106
|
+
</xsl:otherwise>
|
|
1107
|
+
</xsl:choose>
|
|
1108
|
+
</xsl:template>
|
|
1109
|
+
<xsl:template match="//dcc:release" priority="27" mode="d7e9">
|
|
1110
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1111
|
+
<xsl:choose>
|
|
1112
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e217']">
|
|
1113
|
+
<schxslt:rule pattern="d7e217">
|
|
1114
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:release" shadowed by preceding rule</xsl:comment>
|
|
1115
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1116
|
+
<xsl:attribute name="context">//dcc:release</xsl:attribute>
|
|
1117
|
+
</svrl:suppressed-rule>
|
|
1118
|
+
</schxslt:rule>
|
|
1119
|
+
<xsl:next-match>
|
|
1120
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1121
|
+
as="xs:string*"
|
|
1122
|
+
select="$schxslt:patterns-matched"/>
|
|
1123
|
+
</xsl:next-match>
|
|
1124
|
+
</xsl:when>
|
|
1125
|
+
<xsl:otherwise>
|
|
1126
|
+
<schxslt:rule pattern="d7e217">
|
|
1127
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1128
|
+
<xsl:attribute name="context">//dcc:release</xsl:attribute>
|
|
1129
|
+
</svrl:fired-rule>
|
|
1130
|
+
<xsl:if test="not((matches(text(), '^[a-zA-Z]{1}( )?([0-9]{1,3}\.){0,3}([0-9]{1,3})$')))">
|
|
1131
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1132
|
+
location="{schxslt:location(.)}"
|
|
1133
|
+
role="error">
|
|
1134
|
+
<xsl:attribute name="test">(matches(text(), '^[a-zA-Z]{1}( )?([0-9]{1,3}\.){0,3}([0-9]{1,3})$'))</xsl:attribute>
|
|
1135
|
+
<svrl:text>The release version of <xsl:value-of select="preceding-sibling::dcc:name[1]/dcc:content[1]/text()"/> is not valid.</svrl:text>
|
|
1136
|
+
</svrl:failed-assert>
|
|
1137
|
+
</xsl:if>
|
|
1138
|
+
</schxslt:rule>
|
|
1139
|
+
<xsl:next-match>
|
|
1140
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1141
|
+
as="xs:string*"
|
|
1142
|
+
select="($schxslt:patterns-matched, 'd7e217')"/>
|
|
1143
|
+
</xsl:next-match>
|
|
1144
|
+
</xsl:otherwise>
|
|
1145
|
+
</xsl:choose>
|
|
1146
|
+
</xsl:template>
|
|
1147
|
+
<xsl:template match="//dcc:usedLangCodeISO639_1" priority="26" mode="d7e9">
|
|
1148
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1149
|
+
<xsl:choose>
|
|
1150
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e233']">
|
|
1151
|
+
<schxslt:rule pattern="d7e233">
|
|
1152
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:usedLangCodeISO639_1" shadowed by preceding rule</xsl:comment>
|
|
1153
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1154
|
+
<xsl:attribute name="context">//dcc:usedLangCodeISO639_1</xsl:attribute>
|
|
1155
|
+
</svrl:suppressed-rule>
|
|
1156
|
+
</schxslt:rule>
|
|
1157
|
+
<xsl:next-match>
|
|
1158
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1159
|
+
as="xs:string*"
|
|
1160
|
+
select="$schxslt:patterns-matched"/>
|
|
1161
|
+
</xsl:next-match>
|
|
1162
|
+
</xsl:when>
|
|
1163
|
+
<xsl:otherwise>
|
|
1164
|
+
<schxslt:rule pattern="d7e233">
|
|
1165
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1166
|
+
<xsl:attribute name="context">//dcc:usedLangCodeISO639_1</xsl:attribute>
|
|
1167
|
+
</svrl:fired-rule>
|
|
1168
|
+
<xsl:if test="not(contains($lc, text()))">
|
|
1169
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1170
|
+
location="{schxslt:location(.)}"
|
|
1171
|
+
role="error">
|
|
1172
|
+
<xsl:attribute name="test">contains($lc, text())</xsl:attribute>
|
|
1173
|
+
<svrl:text>The given language code is invalid according to ISO639. </svrl:text>
|
|
1174
|
+
</svrl:failed-assert>
|
|
1175
|
+
</xsl:if>
|
|
1176
|
+
</schxslt:rule>
|
|
1177
|
+
<xsl:next-match>
|
|
1178
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1179
|
+
as="xs:string*"
|
|
1180
|
+
select="($schxslt:patterns-matched, 'd7e233')"/>
|
|
1181
|
+
</xsl:next-match>
|
|
1182
|
+
</xsl:otherwise>
|
|
1183
|
+
</xsl:choose>
|
|
1184
|
+
</xsl:template>
|
|
1185
|
+
<xsl:template match="//dcc:mandatoryLangCodeISO639_1" priority="25" mode="d7e9">
|
|
1186
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1187
|
+
<xsl:choose>
|
|
1188
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e233']">
|
|
1189
|
+
<schxslt:rule pattern="d7e233">
|
|
1190
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:mandatoryLangCodeISO639_1" shadowed by preceding rule</xsl:comment>
|
|
1191
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1192
|
+
<xsl:attribute name="context">//dcc:mandatoryLangCodeISO639_1</xsl:attribute>
|
|
1193
|
+
</svrl:suppressed-rule>
|
|
1194
|
+
</schxslt:rule>
|
|
1195
|
+
<xsl:next-match>
|
|
1196
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1197
|
+
as="xs:string*"
|
|
1198
|
+
select="$schxslt:patterns-matched"/>
|
|
1199
|
+
</xsl:next-match>
|
|
1200
|
+
</xsl:when>
|
|
1201
|
+
<xsl:otherwise>
|
|
1202
|
+
<schxslt:rule pattern="d7e233">
|
|
1203
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1204
|
+
<xsl:attribute name="context">//dcc:mandatoryLangCodeISO639_1</xsl:attribute>
|
|
1205
|
+
</svrl:fired-rule>
|
|
1206
|
+
<xsl:if test="not(contains($lc, text()))">
|
|
1207
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1208
|
+
location="{schxslt:location(.)}"
|
|
1209
|
+
role="error">
|
|
1210
|
+
<xsl:attribute name="test">contains($lc, text())</xsl:attribute>
|
|
1211
|
+
<svrl:text>The given language code is invalid according to ISO639. </svrl:text>
|
|
1212
|
+
</svrl:failed-assert>
|
|
1213
|
+
</xsl:if>
|
|
1214
|
+
</schxslt:rule>
|
|
1215
|
+
<xsl:next-match>
|
|
1216
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1217
|
+
as="xs:string*"
|
|
1218
|
+
select="($schxslt:patterns-matched, 'd7e233')"/>
|
|
1219
|
+
</xsl:next-match>
|
|
1220
|
+
</xsl:otherwise>
|
|
1221
|
+
</xsl:choose>
|
|
1222
|
+
</xsl:template>
|
|
1223
|
+
<xsl:template match="//dcc:countryCodeISO3166_1" priority="24" mode="d7e9">
|
|
1224
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1225
|
+
<xsl:variable name="cc"
|
|
1226
|
+
select="string-join(('AD', 'AO', 'AI', 'AQ', 'AG', 'AR', 'AM', 'AW', 'AU', 'AT', 'AZ', 'BS', 'BH', 'BD', 'BB', 'BY', 'BE', 'BZ', 'BJ', 'BM', 'BT', 'BO', 'BQ', 'BA', 'BW', 'BV', 'BR', 'IO', 'BN', 'BG', 'BF', 'BI', 'CV', 'KH', 'CM', 'CA', 'KY', 'CF', 'TD', 'CL', 'CN', 'CX', 'CC', 'CO', 'KM', 'CD', 'CG', 'CK', 'CR', 'CI', 'HR', 'CU', 'CW', 'CY', 'CZ', 'DE', 'DK', 'DJ', 'DM', 'DO', 'EC', 'EG', 'SV', 'GQ', 'ER', 'EE', 'SZ', 'ET', 'FK', 'FO', 'FJ', 'FI', 'FR', 'GF', 'PF', 'TF', 'GA', 'GM', 'GE', 'DE', 'GH', 'GI', 'GR', 'GL', 'GD', 'GP', 'GU', 'GT', 'GG', 'GN', 'GW', 'GY', 'HT', 'HM', 'VA', 'HN', 'HK', 'HU', 'IS', 'IN', 'ID', 'IR', 'IQ', 'IE', 'IM', 'IL', 'IT', 'JM', 'JP', 'JE', 'JO', 'KZ', 'KE', 'KI', 'KP', 'KR', 'KW', 'KG', 'LA', 'LV', 'LB', 'LS', 'LR', 'LY', 'LI', 'LT', 'LU', 'MO', 'MK', 'MG', 'MW', 'MY', 'MV', 'ML', 'MT', 'MH', 'MQ', 'MR', 'MU', 'YT', 'MX', 'FM', 'MD', 'MC', 'MN', 'ME', 'MS', 'MA', 'MZ', 'MM', 'NA', 'NR', 'NP', 'NL', 'NC', 'NZ', 'NI', 'NE', 'NG', 'NU', 'NF', 'MP', 'NO', 'OM', 'PK', 'PW', 'PS', 'PA', 'PG', 'PY', 'PE', 'PH', 'PN', 'PL', 'PT', 'PR', 'QA', 'RE', 'RO', 'RU', 'RW', 'BL', 'SH', 'KN', 'LC', 'MF', 'PM', 'VC', 'WS', 'SM', 'ST', 'SA', 'SN', 'RS', 'SC', 'SL', 'SG', 'SX', 'SK', 'SI', 'SB', 'SO', 'ZA', 'GS', 'SS', 'ES', 'LK', 'SD', 'SR', 'SJ', 'SE', 'CH', 'SY', 'TW', 'TJ', 'TZ', 'TH', 'TL', 'TG', 'TK', 'TO', 'TT', 'TN', 'TR', 'TM', 'TC', 'TV', 'UG', 'UA', 'AE', 'GB', 'UM', 'US', 'UY', 'UZ', 'VU', 'VE', 'VN', 'VG', 'VI', 'WF', 'EH', 'YE', 'ZM', 'ZW'), ' ')"/>
|
|
1227
|
+
<xsl:choose>
|
|
1228
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e233']">
|
|
1229
|
+
<schxslt:rule pattern="d7e233">
|
|
1230
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:countryCodeISO3166_1" shadowed by preceding rule</xsl:comment>
|
|
1231
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1232
|
+
<xsl:attribute name="context">//dcc:countryCodeISO3166_1</xsl:attribute>
|
|
1233
|
+
</svrl:suppressed-rule>
|
|
1234
|
+
</schxslt:rule>
|
|
1235
|
+
<xsl:next-match>
|
|
1236
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1237
|
+
as="xs:string*"
|
|
1238
|
+
select="$schxslt:patterns-matched"/>
|
|
1239
|
+
</xsl:next-match>
|
|
1240
|
+
</xsl:when>
|
|
1241
|
+
<xsl:otherwise>
|
|
1242
|
+
<schxslt:rule pattern="d7e233">
|
|
1243
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1244
|
+
<xsl:attribute name="context">//dcc:countryCodeISO3166_1</xsl:attribute>
|
|
1245
|
+
</svrl:fired-rule>
|
|
1246
|
+
<xsl:if test="not(contains($cc, text()))">
|
|
1247
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1248
|
+
location="{schxslt:location(.)}"
|
|
1249
|
+
role="error">
|
|
1250
|
+
<xsl:attribute name="test">contains($cc, text())</xsl:attribute>
|
|
1251
|
+
<svrl:text>The given country code is invalid according to ISO3166-1.</svrl:text>
|
|
1252
|
+
</svrl:failed-assert>
|
|
1253
|
+
</xsl:if>
|
|
1254
|
+
</schxslt:rule>
|
|
1255
|
+
<xsl:next-match>
|
|
1256
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1257
|
+
as="xs:string*"
|
|
1258
|
+
select="($schxslt:patterns-matched, 'd7e233')"/>
|
|
1259
|
+
</xsl:next-match>
|
|
1260
|
+
</xsl:otherwise>
|
|
1261
|
+
</xsl:choose>
|
|
1262
|
+
</xsl:template>
|
|
1263
|
+
<xsl:template match="//dcc:quantity" priority="23" mode="d7e9">
|
|
1264
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1265
|
+
<xsl:variable name="valueXMLList" select="si:realListXMLList/si:valueXMLList"/>
|
|
1266
|
+
<xsl:variable name="relativeUncertaintyXmlList"
|
|
1267
|
+
select="dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList/si:valueXMLList"/>
|
|
1268
|
+
<xsl:variable name="uncertaintyXMLList"
|
|
1269
|
+
select="si:realListXMLList/si:expandedUncXMLList/si:uncertaintyXMLList"/>
|
|
1270
|
+
<xsl:variable name="value" select="si:real/si:value"/>
|
|
1271
|
+
<xsl:variable name="relativeUncertainty"
|
|
1272
|
+
select="dcc:relativeUncertainty/dcc:relativeUncertainty/si:value"/>
|
|
1273
|
+
<xsl:variable name="uncertainty" select="si:real/si:expandedUnc/si:uncertainty"/>
|
|
1274
|
+
<xsl:choose>
|
|
1275
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e260']">
|
|
1276
|
+
<schxslt:rule pattern="d7e260">
|
|
1277
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:quantity" shadowed by preceding rule</xsl:comment>
|
|
1278
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1279
|
+
<xsl:attribute name="context">//dcc:quantity</xsl:attribute>
|
|
1280
|
+
</svrl:suppressed-rule>
|
|
1281
|
+
</schxslt:rule>
|
|
1282
|
+
<xsl:next-match>
|
|
1283
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1284
|
+
as="xs:string*"
|
|
1285
|
+
select="$schxslt:patterns-matched"/>
|
|
1286
|
+
</xsl:next-match>
|
|
1287
|
+
</xsl:when>
|
|
1288
|
+
<xsl:otherwise>
|
|
1289
|
+
<schxslt:rule pattern="d7e260">
|
|
1290
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1291
|
+
<xsl:attribute name="context">//dcc:quantity</xsl:attribute>
|
|
1292
|
+
</svrl:fired-rule>
|
|
1293
|
+
<xsl:if test="count(dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList)=1 and count(si:realListXMLList/si:expandedUncXMLList)=0">
|
|
1294
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1295
|
+
location="{schxslt:location(.)}"
|
|
1296
|
+
role="error">
|
|
1297
|
+
<xsl:attribute name="test">count(dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList)=1 and count(si:realListXMLList/si:expandedUncXMLList)=0</xsl:attribute>
|
|
1298
|
+
<svrl:text>The relative uncertainty is given without expanded uncertainty.</svrl:text>
|
|
1299
|
+
</svrl:successful-report>
|
|
1300
|
+
</xsl:if>
|
|
1301
|
+
<xsl:if test="count(dcc:relativeUncertainty/dcc:relativeUncertainty)=1 and count(si:real/si:expandedUnc)=0">
|
|
1302
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1303
|
+
location="{schxslt:location(.)}"
|
|
1304
|
+
role="error">
|
|
1305
|
+
<xsl:attribute name="test">count(dcc:relativeUncertainty/dcc:relativeUncertainty)=1 and count(si:real/si:expandedUnc)=0</xsl:attribute>
|
|
1306
|
+
<svrl:text>The relative uncertainty is given without expanded uncertainty.</svrl:text>
|
|
1307
|
+
</svrl:successful-report>
|
|
1308
|
+
</xsl:if>
|
|
1309
|
+
<xsl:if test="count(dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList)=1">
|
|
1310
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1311
|
+
location="{schxslt:location(.)}"
|
|
1312
|
+
role="information">
|
|
1313
|
+
<xsl:attribute name="test">count(dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList)=1</xsl:attribute>
|
|
1314
|
+
<svrl:text>A relative uncertainty list is available for this quantity. </svrl:text>
|
|
1315
|
+
</svrl:successful-report>
|
|
1316
|
+
</xsl:if>
|
|
1317
|
+
<xsl:if test="count(tokenize($relativeUncertaintyXmlList, ' ')) = 1">
|
|
1318
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1319
|
+
location="{schxslt:location(.)}"
|
|
1320
|
+
role="information">
|
|
1321
|
+
<xsl:attribute name="test">count(tokenize($relativeUncertaintyXmlList, ' ')) = 1</xsl:attribute>
|
|
1322
|
+
<svrl:text>The relative uncertainty is constant for this quantity.</svrl:text>
|
|
1323
|
+
</svrl:successful-report>
|
|
1324
|
+
</xsl:if>
|
|
1325
|
+
<xsl:if test="count(dcc:relativeUncertainty/dcc:relativeUncertainty)=1 and count(si:real/si:expandedUnc)=0">
|
|
1326
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1327
|
+
location="{schxslt:location(.)}"
|
|
1328
|
+
role="error">
|
|
1329
|
+
<xsl:attribute name="test">count(dcc:relativeUncertainty/dcc:relativeUncertainty)=1 and count(si:real/si:expandedUnc)=0</xsl:attribute>
|
|
1330
|
+
<svrl:text>The relative uncertainty is given without expanded uncertainty.</svrl:text>
|
|
1331
|
+
</svrl:successful-report>
|
|
1332
|
+
</xsl:if>
|
|
1333
|
+
<xsl:if test="count(dcc:relativeUncertainty/dcc:relativeUncertainty)=1">
|
|
1334
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1335
|
+
location="{schxslt:location(.)}"
|
|
1336
|
+
role="information">
|
|
1337
|
+
<xsl:attribute name="test">count(dcc:relativeUncertainty/dcc:relativeUncertainty)=1</xsl:attribute>
|
|
1338
|
+
<svrl:text>The relative uncertainty is available for this quantity.</svrl:text>
|
|
1339
|
+
</svrl:successful-report>
|
|
1340
|
+
</xsl:if>
|
|
1341
|
+
<xsl:if test="count(dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList)=0 and count(dcc:relativeUncertainty/dcc:relativeUncertainty)=1 and count(si:realListXMLList/si:valueXMLList)=1 and count(si:real/si:value)=0">
|
|
1342
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1343
|
+
location="{schxslt:location(.)}"
|
|
1344
|
+
role="error">
|
|
1345
|
+
<xsl:attribute name="test">count(dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList)=0 and count(dcc:relativeUncertainty/dcc:relativeUncertainty)=1 and count(si:realListXMLList/si:valueXMLList)=1 and count(si:real/si:value)=0</xsl:attribute>
|
|
1346
|
+
<svrl:text>If a list of values is given, a list of relative uncertainty must also be given.</svrl:text>
|
|
1347
|
+
</svrl:successful-report>
|
|
1348
|
+
</xsl:if>
|
|
1349
|
+
<xsl:if test="count(dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList)=1 and count(dcc:relativeUncertainty/dcc:relativeUncertainty)=0 and count(si:realListXMLList/si:valueXMLList)=0 and count(si:real/si:value)=1">
|
|
1350
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1351
|
+
location="{schxslt:location(.)}"
|
|
1352
|
+
role="error">
|
|
1353
|
+
<xsl:attribute name="test">count(dcc:relativeUncertainty/dcc:relativeUncertaintyXmlList)=1 and count(dcc:relativeUncertainty/dcc:relativeUncertainty)=0 and count(si:realListXMLList/si:valueXMLList)=0 and count(si:real/si:value)=1</xsl:attribute>
|
|
1354
|
+
<svrl:text>If a single value is given, a single relative uncertainty must be given. It is not allowed to use a list for relative uncertainty value.</svrl:text>
|
|
1355
|
+
</svrl:successful-report>
|
|
1356
|
+
</xsl:if>
|
|
1357
|
+
<xsl:if test="($relativeUncertainty) != ($uncertainty) div ($value) and count(dcc:relativeUncertainty/dcc:relativeUncertainty/si:value) = 1">
|
|
1358
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1359
|
+
location="{schxslt:location(.)}"
|
|
1360
|
+
role="error">
|
|
1361
|
+
<xsl:attribute name="test">($relativeUncertainty) != ($uncertainty) div ($value) and count(dcc:relativeUncertainty/dcc:relativeUncertainty/si:value) = 1</xsl:attribute>
|
|
1362
|
+
<svrl:text>The relative uncertainty is calculated wrong!</svrl:text>
|
|
1363
|
+
</svrl:successful-report>
|
|
1364
|
+
</xsl:if>
|
|
1365
|
+
</schxslt:rule>
|
|
1366
|
+
<xsl:next-match>
|
|
1367
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1368
|
+
as="xs:string*"
|
|
1369
|
+
select="($schxslt:patterns-matched, 'd7e260')"/>
|
|
1370
|
+
</xsl:next-match>
|
|
1371
|
+
</xsl:otherwise>
|
|
1372
|
+
</xsl:choose>
|
|
1373
|
+
</xsl:template>
|
|
1374
|
+
<xsl:template match="//dcc:relativeUncertainty" priority="22" mode="d7e9">
|
|
1375
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1376
|
+
<xsl:variable name="relativeUncertaintyXmlList"
|
|
1377
|
+
select="dcc:relativeUncertaintyXmlList/si:valueXMLList"/>
|
|
1378
|
+
<xsl:variable name="valueXMLList"
|
|
1379
|
+
select="preceding-sibling::si:realListXMLList/si:valueXMLList"/>
|
|
1380
|
+
<xsl:choose>
|
|
1381
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e260']">
|
|
1382
|
+
<schxslt:rule pattern="d7e260">
|
|
1383
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:relativeUncertainty" shadowed by preceding rule</xsl:comment>
|
|
1384
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1385
|
+
<xsl:attribute name="context">//dcc:relativeUncertainty</xsl:attribute>
|
|
1386
|
+
</svrl:suppressed-rule>
|
|
1387
|
+
</schxslt:rule>
|
|
1388
|
+
<xsl:next-match>
|
|
1389
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1390
|
+
as="xs:string*"
|
|
1391
|
+
select="$schxslt:patterns-matched"/>
|
|
1392
|
+
</xsl:next-match>
|
|
1393
|
+
</xsl:when>
|
|
1394
|
+
<xsl:otherwise>
|
|
1395
|
+
<schxslt:rule pattern="d7e260">
|
|
1396
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1397
|
+
<xsl:attribute name="context">//dcc:relativeUncertainty</xsl:attribute>
|
|
1398
|
+
</svrl:fired-rule>
|
|
1399
|
+
<xsl:if test="(count(tokenize($valueXMLList, ' ')) != count(tokenize($relativeUncertaintyXmlList, ' '))) and (count(tokenize($relativeUncertaintyXmlList, ' ')) > 1)">
|
|
1400
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1401
|
+
location="{schxslt:location(.)}"
|
|
1402
|
+
role="error">
|
|
1403
|
+
<xsl:attribute name="test">(count(tokenize($valueXMLList, ' ')) != count(tokenize($relativeUncertaintyXmlList, ' '))) and (count(tokenize($relativeUncertaintyXmlList, ' ')) > 1)</xsl:attribute>
|
|
1404
|
+
<svrl:text>When the relative uncertainty is not constant, you have to enter a relative uncertainty value for every measurement data!!</svrl:text>
|
|
1405
|
+
</svrl:successful-report>
|
|
1406
|
+
</xsl:if>
|
|
1407
|
+
</schxslt:rule>
|
|
1408
|
+
<xsl:next-match>
|
|
1409
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1410
|
+
as="xs:string*"
|
|
1411
|
+
select="($schxslt:patterns-matched, 'd7e260')"/>
|
|
1412
|
+
</xsl:next-match>
|
|
1413
|
+
</xsl:otherwise>
|
|
1414
|
+
</xsl:choose>
|
|
1415
|
+
</xsl:template>
|
|
1416
|
+
<xsl:template match="//si:realListXMLList" priority="21" mode="d7e9">
|
|
1417
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1418
|
+
<xsl:variable name="uncertaintyXMLList"
|
|
1419
|
+
select="si:expandedUncXMLList/si:uncertaintyXMLList"/>
|
|
1420
|
+
<xsl:variable name="valueXMLList" select="si:valueXMLList"/>
|
|
1421
|
+
<xsl:choose>
|
|
1422
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e260']">
|
|
1423
|
+
<schxslt:rule pattern="d7e260">
|
|
1424
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:realListXMLList" shadowed by preceding rule</xsl:comment>
|
|
1425
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1426
|
+
<xsl:attribute name="context">//si:realListXMLList</xsl:attribute>
|
|
1427
|
+
</svrl:suppressed-rule>
|
|
1428
|
+
</schxslt:rule>
|
|
1429
|
+
<xsl:next-match>
|
|
1430
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1431
|
+
as="xs:string*"
|
|
1432
|
+
select="$schxslt:patterns-matched"/>
|
|
1433
|
+
</xsl:next-match>
|
|
1434
|
+
</xsl:when>
|
|
1435
|
+
<xsl:otherwise>
|
|
1436
|
+
<schxslt:rule pattern="d7e260">
|
|
1437
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1438
|
+
<xsl:attribute name="context">//si:realListXMLList</xsl:attribute>
|
|
1439
|
+
</svrl:fired-rule>
|
|
1440
|
+
<xsl:if test="(count(tokenize($valueXMLList, ' ')) != count(tokenize($uncertaintyXMLList, ' '))) and (count(tokenize($uncertaintyXMLList, ' ')) > 1) and count(si:expandedUncXMLList/si:uncertaintyXMLList)=1">
|
|
1441
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1442
|
+
location="{schxslt:location(.)}"
|
|
1443
|
+
role="error">
|
|
1444
|
+
<xsl:attribute name="test">(count(tokenize($valueXMLList, ' ')) != count(tokenize($uncertaintyXMLList, ' '))) and (count(tokenize($uncertaintyXMLList, ' ')) > 1) and count(si:expandedUncXMLList/si:uncertaintyXMLList)=1</xsl:attribute>
|
|
1445
|
+
<svrl:text>The number of entries of the expanded uncertainty does not match with the number of data of the entries of the values. </svrl:text>
|
|
1446
|
+
</svrl:successful-report>
|
|
1447
|
+
</xsl:if>
|
|
1448
|
+
</schxslt:rule>
|
|
1449
|
+
<xsl:next-match>
|
|
1450
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1451
|
+
as="xs:string*"
|
|
1452
|
+
select="($schxslt:patterns-matched, 'd7e260')"/>
|
|
1453
|
+
</xsl:next-match>
|
|
1454
|
+
</xsl:otherwise>
|
|
1455
|
+
</xsl:choose>
|
|
1456
|
+
</xsl:template>
|
|
1457
|
+
<xsl:template match="//si:real/si:unit" priority="20" mode="d7e9">
|
|
1458
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1459
|
+
<xsl:choose>
|
|
1460
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e329']">
|
|
1461
|
+
<schxslt:rule pattern="d7e329">
|
|
1462
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:real/si:unit" shadowed by preceding rule</xsl:comment>
|
|
1463
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1464
|
+
<xsl:attribute name="context">//si:real/si:unit</xsl:attribute>
|
|
1465
|
+
</svrl:suppressed-rule>
|
|
1466
|
+
</schxslt:rule>
|
|
1467
|
+
<xsl:next-match>
|
|
1468
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1469
|
+
as="xs:string*"
|
|
1470
|
+
select="$schxslt:patterns-matched"/>
|
|
1471
|
+
</xsl:next-match>
|
|
1472
|
+
</xsl:when>
|
|
1473
|
+
<xsl:otherwise>
|
|
1474
|
+
<schxslt:rule pattern="d7e329">
|
|
1475
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1476
|
+
<xsl:attribute name="context">//si:real/si:unit</xsl:attribute>
|
|
1477
|
+
</svrl:fired-rule>
|
|
1478
|
+
<xsl:if test="count(tokenize(., ' ')) > 1">
|
|
1479
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1480
|
+
location="{schxslt:location(.)}"
|
|
1481
|
+
role="error">
|
|
1482
|
+
<xsl:attribute name="test">count(tokenize(., ' ')) > 1</xsl:attribute>
|
|
1483
|
+
<svrl:text>It is not allowed to use a space character in units.</svrl:text>
|
|
1484
|
+
</svrl:successful-report>
|
|
1485
|
+
</xsl:if>
|
|
1486
|
+
</schxslt:rule>
|
|
1487
|
+
<xsl:next-match>
|
|
1488
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1489
|
+
as="xs:string*"
|
|
1490
|
+
select="($schxslt:patterns-matched, 'd7e329')"/>
|
|
1491
|
+
</xsl:next-match>
|
|
1492
|
+
</xsl:otherwise>
|
|
1493
|
+
</xsl:choose>
|
|
1494
|
+
</xsl:template>
|
|
1495
|
+
<xsl:template match="//si:unitXMLList" priority="19" mode="d7e9">
|
|
1496
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1497
|
+
<xsl:choose>
|
|
1498
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e329']">
|
|
1499
|
+
<schxslt:rule pattern="d7e329">
|
|
1500
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:unitXMLList" shadowed by preceding rule</xsl:comment>
|
|
1501
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1502
|
+
<xsl:attribute name="context">//si:unitXMLList</xsl:attribute>
|
|
1503
|
+
</svrl:suppressed-rule>
|
|
1504
|
+
</schxslt:rule>
|
|
1505
|
+
<xsl:next-match>
|
|
1506
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1507
|
+
as="xs:string*"
|
|
1508
|
+
select="$schxslt:patterns-matched"/>
|
|
1509
|
+
</xsl:next-match>
|
|
1510
|
+
</xsl:when>
|
|
1511
|
+
<xsl:otherwise>
|
|
1512
|
+
<schxslt:rule pattern="d7e329">
|
|
1513
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1514
|
+
<xsl:attribute name="context">//si:unitXMLList</xsl:attribute>
|
|
1515
|
+
</svrl:fired-rule>
|
|
1516
|
+
<xsl:if test="count(tokenize(., ' ')) > 1 and not(count(tokenize(., ' ')) = count(tokenize(preceding-sibling::si:valueXMLList)))">
|
|
1517
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1518
|
+
location="{schxslt:location(.)}"
|
|
1519
|
+
role="error">
|
|
1520
|
+
<xsl:attribute name="test">count(tokenize(., ' ')) > 1 and not(count(tokenize(., ' ')) = count(tokenize(preceding-sibling::si:valueXMLList)))</xsl:attribute>
|
|
1521
|
+
<svrl:text>If your unit is not same for all your values, you have to define a unit for every data.</svrl:text>
|
|
1522
|
+
</svrl:successful-report>
|
|
1523
|
+
</xsl:if>
|
|
1524
|
+
<xsl:if test="count(tokenize(., ' ')) > 1 and (every $value in tokenize(., ' ') satisfies ($value = tokenize(., ' ')))">
|
|
1525
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1526
|
+
location="{schxslt:location(.)}"
|
|
1527
|
+
role="warning">
|
|
1528
|
+
<xsl:attribute name="test">count(tokenize(., ' ')) > 1 and (every $value in tokenize(., ' ') satisfies ($value = tokenize(., ' ')))</xsl:attribute>
|
|
1529
|
+
<svrl:text>It is not recommended to use one list element for a dataset which contain data with differing units.</svrl:text>
|
|
1530
|
+
</svrl:successful-report>
|
|
1531
|
+
</xsl:if>
|
|
1532
|
+
</schxslt:rule>
|
|
1533
|
+
<xsl:next-match>
|
|
1534
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1535
|
+
as="xs:string*"
|
|
1536
|
+
select="($schxslt:patterns-matched, 'd7e329')"/>
|
|
1537
|
+
</xsl:next-match>
|
|
1538
|
+
</xsl:otherwise>
|
|
1539
|
+
</xsl:choose>
|
|
1540
|
+
</xsl:template>
|
|
1541
|
+
<xsl:template match="//si:hybrid/si:real/si:unit" priority="18" mode="d7e9">
|
|
1542
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1543
|
+
<xsl:choose>
|
|
1544
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e350']">
|
|
1545
|
+
<schxslt:rule pattern="d7e350">
|
|
1546
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:hybrid/si:real/si:unit" shadowed by preceding rule</xsl:comment>
|
|
1547
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1548
|
+
<xsl:attribute name="context">//si:hybrid/si:real/si:unit</xsl:attribute>
|
|
1549
|
+
</svrl:suppressed-rule>
|
|
1550
|
+
</schxslt:rule>
|
|
1551
|
+
<xsl:next-match>
|
|
1552
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1553
|
+
as="xs:string*"
|
|
1554
|
+
select="$schxslt:patterns-matched"/>
|
|
1555
|
+
</xsl:next-match>
|
|
1556
|
+
</xsl:when>
|
|
1557
|
+
<xsl:otherwise>
|
|
1558
|
+
<schxslt:rule pattern="d7e350">
|
|
1559
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1560
|
+
<xsl:attribute name="context">//si:hybrid/si:real/si:unit</xsl:attribute>
|
|
1561
|
+
</svrl:fired-rule>
|
|
1562
|
+
<xsl:if test="not(text()=$nonSI) and matches(text(), '^\|.+')">
|
|
1563
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1564
|
+
location="{schxslt:location(.)}"
|
|
1565
|
+
role="error">
|
|
1566
|
+
<xsl:attribute name="test">not(text()=$nonSI) and matches(text(), '^\|.+')</xsl:attribute>
|
|
1567
|
+
<svrl:text>
|
|
1568
|
+
You cannot use a nonSI unit without first declaring it.
|
|
1569
|
+
</svrl:text>
|
|
1570
|
+
</svrl:successful-report>
|
|
1571
|
+
</xsl:if>
|
|
1572
|
+
</schxslt:rule>
|
|
1573
|
+
<xsl:next-match>
|
|
1574
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1575
|
+
as="xs:string*"
|
|
1576
|
+
select="($schxslt:patterns-matched, 'd7e350')"/>
|
|
1577
|
+
</xsl:next-match>
|
|
1578
|
+
</xsl:otherwise>
|
|
1579
|
+
</xsl:choose>
|
|
1580
|
+
</xsl:template>
|
|
1581
|
+
<xsl:template match="//dcc:nonSIUnit" priority="17" mode="d7e9">
|
|
1582
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1583
|
+
<xsl:choose>
|
|
1584
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e350']">
|
|
1585
|
+
<schxslt:rule pattern="d7e350">
|
|
1586
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:nonSIUnit" shadowed by preceding rule</xsl:comment>
|
|
1587
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1588
|
+
<xsl:attribute name="context">//dcc:nonSIUnit</xsl:attribute>
|
|
1589
|
+
</svrl:suppressed-rule>
|
|
1590
|
+
</schxslt:rule>
|
|
1591
|
+
<xsl:next-match>
|
|
1592
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1593
|
+
as="xs:string*"
|
|
1594
|
+
select="$schxslt:patterns-matched"/>
|
|
1595
|
+
</xsl:next-match>
|
|
1596
|
+
</xsl:when>
|
|
1597
|
+
<xsl:otherwise>
|
|
1598
|
+
<schxslt:rule pattern="d7e350">
|
|
1599
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1600
|
+
<xsl:attribute name="context">//dcc:nonSIUnit</xsl:attribute>
|
|
1601
|
+
</svrl:fired-rule>
|
|
1602
|
+
<xsl:if test="not(count(preceding-sibling::dcc:nonSIDefinition)=1)">
|
|
1603
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1604
|
+
location="{schxslt:location(.)}"
|
|
1605
|
+
role="error">
|
|
1606
|
+
<xsl:attribute name="test">count(preceding-sibling::dcc:nonSIDefinition)=1</xsl:attribute>
|
|
1607
|
+
<svrl:text>
|
|
1608
|
+
Just nonSI unit is not enough, you have to give also the definition of it.
|
|
1609
|
+
</svrl:text>
|
|
1610
|
+
</svrl:failed-assert>
|
|
1611
|
+
</xsl:if>
|
|
1612
|
+
</schxslt:rule>
|
|
1613
|
+
<xsl:next-match>
|
|
1614
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1615
|
+
as="xs:string*"
|
|
1616
|
+
select="($schxslt:patterns-matched, 'd7e350')"/>
|
|
1617
|
+
</xsl:next-match>
|
|
1618
|
+
</xsl:otherwise>
|
|
1619
|
+
</xsl:choose>
|
|
1620
|
+
</xsl:template>
|
|
1621
|
+
<xsl:template match="//dcc:nonSIDefinition" priority="16" mode="d7e9">
|
|
1622
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1623
|
+
<xsl:choose>
|
|
1624
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e350']">
|
|
1625
|
+
<schxslt:rule pattern="d7e350">
|
|
1626
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:nonSIDefinition" shadowed by preceding rule</xsl:comment>
|
|
1627
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1628
|
+
<xsl:attribute name="context">//dcc:nonSIDefinition</xsl:attribute>
|
|
1629
|
+
</svrl:suppressed-rule>
|
|
1630
|
+
</schxslt:rule>
|
|
1631
|
+
<xsl:next-match>
|
|
1632
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1633
|
+
as="xs:string*"
|
|
1634
|
+
select="$schxslt:patterns-matched"/>
|
|
1635
|
+
</xsl:next-match>
|
|
1636
|
+
</xsl:when>
|
|
1637
|
+
<xsl:otherwise>
|
|
1638
|
+
<schxslt:rule pattern="d7e350">
|
|
1639
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1640
|
+
<xsl:attribute name="context">//dcc:nonSIDefinition</xsl:attribute>
|
|
1641
|
+
</svrl:fired-rule>
|
|
1642
|
+
<xsl:if test="not(count(following-sibling::dcc:nonSIUnit)=1)">
|
|
1643
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1644
|
+
location="{schxslt:location(.)}"
|
|
1645
|
+
role="error">
|
|
1646
|
+
<xsl:attribute name="test">count(following-sibling::dcc:nonSIUnit)=1</xsl:attribute>
|
|
1647
|
+
<svrl:text>
|
|
1648
|
+
Just the definition of a nonSI unit is not enough, you have to give also the unit.
|
|
1649
|
+
</svrl:text>
|
|
1650
|
+
</svrl:failed-assert>
|
|
1651
|
+
</xsl:if>
|
|
1652
|
+
</schxslt:rule>
|
|
1653
|
+
<xsl:next-match>
|
|
1654
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1655
|
+
as="xs:string*"
|
|
1656
|
+
select="($schxslt:patterns-matched, 'd7e350')"/>
|
|
1657
|
+
</xsl:next-match>
|
|
1658
|
+
</xsl:otherwise>
|
|
1659
|
+
</xsl:choose>
|
|
1660
|
+
</xsl:template>
|
|
1661
|
+
<xsl:template match="dcc:usedLangCodeISO639_1" priority="15" mode="d7e9">
|
|
1662
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1663
|
+
<xsl:choose>
|
|
1664
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e375']">
|
|
1665
|
+
<schxslt:rule pattern="d7e375">
|
|
1666
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "dcc:usedLangCodeISO639_1" shadowed by preceding rule</xsl:comment>
|
|
1667
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1668
|
+
<xsl:attribute name="context">dcc:usedLangCodeISO639_1</xsl:attribute>
|
|
1669
|
+
</svrl:suppressed-rule>
|
|
1670
|
+
</schxslt:rule>
|
|
1671
|
+
<xsl:next-match>
|
|
1672
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1673
|
+
as="xs:string*"
|
|
1674
|
+
select="$schxslt:patterns-matched"/>
|
|
1675
|
+
</xsl:next-match>
|
|
1676
|
+
</xsl:when>
|
|
1677
|
+
<xsl:otherwise>
|
|
1678
|
+
<schxslt:rule pattern="d7e375">
|
|
1679
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1680
|
+
<xsl:attribute name="context">dcc:usedLangCodeISO639_1</xsl:attribute>
|
|
1681
|
+
</svrl:fired-rule>
|
|
1682
|
+
<xsl:if test="text()=preceding-sibling::dcc:usedLangCodeISO639_1/text() or text()=following-sibling::dcc:usedLangCodeISO639_1/text()">
|
|
1683
|
+
<svrl:successful-report xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1684
|
+
location="{schxslt:location(.)}"
|
|
1685
|
+
role="error">
|
|
1686
|
+
<xsl:attribute name="test">text()=preceding-sibling::dcc:usedLangCodeISO639_1/text() or text()=following-sibling::dcc:usedLangCodeISO639_1/text()</xsl:attribute>
|
|
1687
|
+
<svrl:text>You cannot declare the same language code more than one time.</svrl:text>
|
|
1688
|
+
</svrl:successful-report>
|
|
1689
|
+
</xsl:if>
|
|
1690
|
+
</schxslt:rule>
|
|
1691
|
+
<xsl:next-match>
|
|
1692
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1693
|
+
as="xs:string*"
|
|
1694
|
+
select="($schxslt:patterns-matched, 'd7e375')"/>
|
|
1695
|
+
</xsl:next-match>
|
|
1696
|
+
</xsl:otherwise>
|
|
1697
|
+
</xsl:choose>
|
|
1698
|
+
</xsl:template>
|
|
1699
|
+
<xsl:template match="//si:valueXMLList" priority="14" mode="d7e9">
|
|
1700
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1701
|
+
<xsl:choose>
|
|
1702
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
1703
|
+
<schxslt:rule pattern="d7e386">
|
|
1704
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:valueXMLList" shadowed by preceding rule</xsl:comment>
|
|
1705
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1706
|
+
<xsl:attribute name="context">//si:valueXMLList</xsl:attribute>
|
|
1707
|
+
</svrl:suppressed-rule>
|
|
1708
|
+
</schxslt:rule>
|
|
1709
|
+
<xsl:next-match>
|
|
1710
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1711
|
+
as="xs:string*"
|
|
1712
|
+
select="$schxslt:patterns-matched"/>
|
|
1713
|
+
</xsl:next-match>
|
|
1714
|
+
</xsl:when>
|
|
1715
|
+
<xsl:otherwise>
|
|
1716
|
+
<schxslt:rule pattern="d7e386">
|
|
1717
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1718
|
+
<xsl:attribute name="context">//si:valueXMLList</xsl:attribute>
|
|
1719
|
+
</svrl:fired-rule>
|
|
1720
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
1721
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1722
|
+
location="{schxslt:location(.)}"
|
|
1723
|
+
role="error">
|
|
1724
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
1725
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
1726
|
+
</svrl:failed-assert>
|
|
1727
|
+
</xsl:if>
|
|
1728
|
+
</schxslt:rule>
|
|
1729
|
+
<xsl:next-match>
|
|
1730
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1731
|
+
as="xs:string*"
|
|
1732
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
1733
|
+
</xsl:next-match>
|
|
1734
|
+
</xsl:otherwise>
|
|
1735
|
+
</xsl:choose>
|
|
1736
|
+
</xsl:template>
|
|
1737
|
+
<xsl:template match="//si:unitXMLList" priority="13" mode="d7e9">
|
|
1738
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1739
|
+
<xsl:choose>
|
|
1740
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
1741
|
+
<schxslt:rule pattern="d7e386">
|
|
1742
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:unitXMLList" shadowed by preceding rule</xsl:comment>
|
|
1743
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1744
|
+
<xsl:attribute name="context">//si:unitXMLList</xsl:attribute>
|
|
1745
|
+
</svrl:suppressed-rule>
|
|
1746
|
+
</schxslt:rule>
|
|
1747
|
+
<xsl:next-match>
|
|
1748
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1749
|
+
as="xs:string*"
|
|
1750
|
+
select="$schxslt:patterns-matched"/>
|
|
1751
|
+
</xsl:next-match>
|
|
1752
|
+
</xsl:when>
|
|
1753
|
+
<xsl:otherwise>
|
|
1754
|
+
<schxslt:rule pattern="d7e386">
|
|
1755
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1756
|
+
<xsl:attribute name="context">//si:unitXMLList</xsl:attribute>
|
|
1757
|
+
</svrl:fired-rule>
|
|
1758
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
1759
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1760
|
+
location="{schxslt:location(.)}"
|
|
1761
|
+
role="error">
|
|
1762
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
1763
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
1764
|
+
</svrl:failed-assert>
|
|
1765
|
+
</xsl:if>
|
|
1766
|
+
</schxslt:rule>
|
|
1767
|
+
<xsl:next-match>
|
|
1768
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1769
|
+
as="xs:string*"
|
|
1770
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
1771
|
+
</xsl:next-match>
|
|
1772
|
+
</xsl:otherwise>
|
|
1773
|
+
</xsl:choose>
|
|
1774
|
+
</xsl:template>
|
|
1775
|
+
<xsl:template match="//si:labelXMLList" priority="12" mode="d7e9">
|
|
1776
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1777
|
+
<xsl:choose>
|
|
1778
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
1779
|
+
<schxslt:rule pattern="d7e386">
|
|
1780
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:labelXMLList" shadowed by preceding rule</xsl:comment>
|
|
1781
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1782
|
+
<xsl:attribute name="context">//si:labelXMLList</xsl:attribute>
|
|
1783
|
+
</svrl:suppressed-rule>
|
|
1784
|
+
</schxslt:rule>
|
|
1785
|
+
<xsl:next-match>
|
|
1786
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1787
|
+
as="xs:string*"
|
|
1788
|
+
select="$schxslt:patterns-matched"/>
|
|
1789
|
+
</xsl:next-match>
|
|
1790
|
+
</xsl:when>
|
|
1791
|
+
<xsl:otherwise>
|
|
1792
|
+
<schxslt:rule pattern="d7e386">
|
|
1793
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1794
|
+
<xsl:attribute name="context">//si:labelXMLList</xsl:attribute>
|
|
1795
|
+
</svrl:fired-rule>
|
|
1796
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
1797
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1798
|
+
location="{schxslt:location(.)}"
|
|
1799
|
+
role="error">
|
|
1800
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
1801
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
1802
|
+
</svrl:failed-assert>
|
|
1803
|
+
</xsl:if>
|
|
1804
|
+
</schxslt:rule>
|
|
1805
|
+
<xsl:next-match>
|
|
1806
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1807
|
+
as="xs:string*"
|
|
1808
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
1809
|
+
</xsl:next-match>
|
|
1810
|
+
</xsl:otherwise>
|
|
1811
|
+
</xsl:choose>
|
|
1812
|
+
</xsl:template>
|
|
1813
|
+
<xsl:template match="//si:dateTimeXMLList" priority="11" mode="d7e9">
|
|
1814
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1815
|
+
<xsl:choose>
|
|
1816
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
1817
|
+
<schxslt:rule pattern="d7e386">
|
|
1818
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:dateTimeXMLList" shadowed by preceding rule</xsl:comment>
|
|
1819
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1820
|
+
<xsl:attribute name="context">//si:dateTimeXMLList</xsl:attribute>
|
|
1821
|
+
</svrl:suppressed-rule>
|
|
1822
|
+
</schxslt:rule>
|
|
1823
|
+
<xsl:next-match>
|
|
1824
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1825
|
+
as="xs:string*"
|
|
1826
|
+
select="$schxslt:patterns-matched"/>
|
|
1827
|
+
</xsl:next-match>
|
|
1828
|
+
</xsl:when>
|
|
1829
|
+
<xsl:otherwise>
|
|
1830
|
+
<schxslt:rule pattern="d7e386">
|
|
1831
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1832
|
+
<xsl:attribute name="context">//si:dateTimeXMLList</xsl:attribute>
|
|
1833
|
+
</svrl:fired-rule>
|
|
1834
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
1835
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1836
|
+
location="{schxslt:location(.)}"
|
|
1837
|
+
role="error">
|
|
1838
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
1839
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
1840
|
+
</svrl:failed-assert>
|
|
1841
|
+
</xsl:if>
|
|
1842
|
+
</schxslt:rule>
|
|
1843
|
+
<xsl:next-match>
|
|
1844
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1845
|
+
as="xs:string*"
|
|
1846
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
1847
|
+
</xsl:next-match>
|
|
1848
|
+
</xsl:otherwise>
|
|
1849
|
+
</xsl:choose>
|
|
1850
|
+
</xsl:template>
|
|
1851
|
+
<xsl:template match="//si:uncertaintyXMLList" priority="10" mode="d7e9">
|
|
1852
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1853
|
+
<xsl:choose>
|
|
1854
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
1855
|
+
<schxslt:rule pattern="d7e386">
|
|
1856
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:uncertaintyXMLList" shadowed by preceding rule</xsl:comment>
|
|
1857
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1858
|
+
<xsl:attribute name="context">//si:uncertaintyXMLList</xsl:attribute>
|
|
1859
|
+
</svrl:suppressed-rule>
|
|
1860
|
+
</schxslt:rule>
|
|
1861
|
+
<xsl:next-match>
|
|
1862
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1863
|
+
as="xs:string*"
|
|
1864
|
+
select="$schxslt:patterns-matched"/>
|
|
1865
|
+
</xsl:next-match>
|
|
1866
|
+
</xsl:when>
|
|
1867
|
+
<xsl:otherwise>
|
|
1868
|
+
<schxslt:rule pattern="d7e386">
|
|
1869
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1870
|
+
<xsl:attribute name="context">//si:uncertaintyXMLList</xsl:attribute>
|
|
1871
|
+
</svrl:fired-rule>
|
|
1872
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
1873
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1874
|
+
location="{schxslt:location(.)}"
|
|
1875
|
+
role="error">
|
|
1876
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
1877
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
1878
|
+
</svrl:failed-assert>
|
|
1879
|
+
</xsl:if>
|
|
1880
|
+
</schxslt:rule>
|
|
1881
|
+
<xsl:next-match>
|
|
1882
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1883
|
+
as="xs:string*"
|
|
1884
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
1885
|
+
</xsl:next-match>
|
|
1886
|
+
</xsl:otherwise>
|
|
1887
|
+
</xsl:choose>
|
|
1888
|
+
</xsl:template>
|
|
1889
|
+
<xsl:template match="//si:coverageFactorXMLList" priority="9" mode="d7e9">
|
|
1890
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1891
|
+
<xsl:choose>
|
|
1892
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
1893
|
+
<schxslt:rule pattern="d7e386">
|
|
1894
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:coverageFactorXMLList" shadowed by preceding rule</xsl:comment>
|
|
1895
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1896
|
+
<xsl:attribute name="context">//si:coverageFactorXMLList</xsl:attribute>
|
|
1897
|
+
</svrl:suppressed-rule>
|
|
1898
|
+
</schxslt:rule>
|
|
1899
|
+
<xsl:next-match>
|
|
1900
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1901
|
+
as="xs:string*"
|
|
1902
|
+
select="$schxslt:patterns-matched"/>
|
|
1903
|
+
</xsl:next-match>
|
|
1904
|
+
</xsl:when>
|
|
1905
|
+
<xsl:otherwise>
|
|
1906
|
+
<schxslt:rule pattern="d7e386">
|
|
1907
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1908
|
+
<xsl:attribute name="context">//si:coverageFactorXMLList</xsl:attribute>
|
|
1909
|
+
</svrl:fired-rule>
|
|
1910
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
1911
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1912
|
+
location="{schxslt:location(.)}"
|
|
1913
|
+
role="error">
|
|
1914
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
1915
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
1916
|
+
</svrl:failed-assert>
|
|
1917
|
+
</xsl:if>
|
|
1918
|
+
</schxslt:rule>
|
|
1919
|
+
<xsl:next-match>
|
|
1920
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1921
|
+
as="xs:string*"
|
|
1922
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
1923
|
+
</xsl:next-match>
|
|
1924
|
+
</xsl:otherwise>
|
|
1925
|
+
</xsl:choose>
|
|
1926
|
+
</xsl:template>
|
|
1927
|
+
<xsl:template match="//si:coverageProbabilityXMLList" priority="8" mode="d7e9">
|
|
1928
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1929
|
+
<xsl:choose>
|
|
1930
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
1931
|
+
<schxslt:rule pattern="d7e386">
|
|
1932
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:coverageProbabilityXMLList" shadowed by preceding rule</xsl:comment>
|
|
1933
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1934
|
+
<xsl:attribute name="context">//si:coverageProbabilityXMLList</xsl:attribute>
|
|
1935
|
+
</svrl:suppressed-rule>
|
|
1936
|
+
</schxslt:rule>
|
|
1937
|
+
<xsl:next-match>
|
|
1938
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1939
|
+
as="xs:string*"
|
|
1940
|
+
select="$schxslt:patterns-matched"/>
|
|
1941
|
+
</xsl:next-match>
|
|
1942
|
+
</xsl:when>
|
|
1943
|
+
<xsl:otherwise>
|
|
1944
|
+
<schxslt:rule pattern="d7e386">
|
|
1945
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1946
|
+
<xsl:attribute name="context">//si:coverageProbabilityXMLList</xsl:attribute>
|
|
1947
|
+
</svrl:fired-rule>
|
|
1948
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
1949
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1950
|
+
location="{schxslt:location(.)}"
|
|
1951
|
+
role="error">
|
|
1952
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
1953
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
1954
|
+
</svrl:failed-assert>
|
|
1955
|
+
</xsl:if>
|
|
1956
|
+
</schxslt:rule>
|
|
1957
|
+
<xsl:next-match>
|
|
1958
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1959
|
+
as="xs:string*"
|
|
1960
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
1961
|
+
</xsl:next-match>
|
|
1962
|
+
</xsl:otherwise>
|
|
1963
|
+
</xsl:choose>
|
|
1964
|
+
</xsl:template>
|
|
1965
|
+
<xsl:template match="//si:distributionXMLList" priority="7" mode="d7e9">
|
|
1966
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
1967
|
+
<xsl:choose>
|
|
1968
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
1969
|
+
<schxslt:rule pattern="d7e386">
|
|
1970
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:distributionXMLList" shadowed by preceding rule</xsl:comment>
|
|
1971
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1972
|
+
<xsl:attribute name="context">//si:distributionXMLList</xsl:attribute>
|
|
1973
|
+
</svrl:suppressed-rule>
|
|
1974
|
+
</schxslt:rule>
|
|
1975
|
+
<xsl:next-match>
|
|
1976
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1977
|
+
as="xs:string*"
|
|
1978
|
+
select="$schxslt:patterns-matched"/>
|
|
1979
|
+
</xsl:next-match>
|
|
1980
|
+
</xsl:when>
|
|
1981
|
+
<xsl:otherwise>
|
|
1982
|
+
<schxslt:rule pattern="d7e386">
|
|
1983
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
1984
|
+
<xsl:attribute name="context">//si:distributionXMLList</xsl:attribute>
|
|
1985
|
+
</svrl:fired-rule>
|
|
1986
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
1987
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
1988
|
+
location="{schxslt:location(.)}"
|
|
1989
|
+
role="error">
|
|
1990
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
1991
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
1992
|
+
</svrl:failed-assert>
|
|
1993
|
+
</xsl:if>
|
|
1994
|
+
</schxslt:rule>
|
|
1995
|
+
<xsl:next-match>
|
|
1996
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
1997
|
+
as="xs:string*"
|
|
1998
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
1999
|
+
</xsl:next-match>
|
|
2000
|
+
</xsl:otherwise>
|
|
2001
|
+
</xsl:choose>
|
|
2002
|
+
</xsl:template>
|
|
2003
|
+
<xsl:template match="//si:standardUncXMLList" priority="6" mode="d7e9">
|
|
2004
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
2005
|
+
<xsl:choose>
|
|
2006
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
2007
|
+
<schxslt:rule pattern="d7e386">
|
|
2008
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:standardUncXMLList" shadowed by preceding rule</xsl:comment>
|
|
2009
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2010
|
+
<xsl:attribute name="context">//si:standardUncXMLList</xsl:attribute>
|
|
2011
|
+
</svrl:suppressed-rule>
|
|
2012
|
+
</schxslt:rule>
|
|
2013
|
+
<xsl:next-match>
|
|
2014
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2015
|
+
as="xs:string*"
|
|
2016
|
+
select="$schxslt:patterns-matched"/>
|
|
2017
|
+
</xsl:next-match>
|
|
2018
|
+
</xsl:when>
|
|
2019
|
+
<xsl:otherwise>
|
|
2020
|
+
<schxslt:rule pattern="d7e386">
|
|
2021
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2022
|
+
<xsl:attribute name="context">//si:standardUncXMLList</xsl:attribute>
|
|
2023
|
+
</svrl:fired-rule>
|
|
2024
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
2025
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
2026
|
+
location="{schxslt:location(.)}"
|
|
2027
|
+
role="error">
|
|
2028
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
2029
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
2030
|
+
</svrl:failed-assert>
|
|
2031
|
+
</xsl:if>
|
|
2032
|
+
</schxslt:rule>
|
|
2033
|
+
<xsl:next-match>
|
|
2034
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2035
|
+
as="xs:string*"
|
|
2036
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
2037
|
+
</xsl:next-match>
|
|
2038
|
+
</xsl:otherwise>
|
|
2039
|
+
</xsl:choose>
|
|
2040
|
+
</xsl:template>
|
|
2041
|
+
<xsl:template match="//si:intervalMinXMLList" priority="5" mode="d7e9">
|
|
2042
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
2043
|
+
<xsl:choose>
|
|
2044
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
2045
|
+
<schxslt:rule pattern="d7e386">
|
|
2046
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:intervalMinXMLList" shadowed by preceding rule</xsl:comment>
|
|
2047
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2048
|
+
<xsl:attribute name="context">//si:intervalMinXMLList</xsl:attribute>
|
|
2049
|
+
</svrl:suppressed-rule>
|
|
2050
|
+
</schxslt:rule>
|
|
2051
|
+
<xsl:next-match>
|
|
2052
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2053
|
+
as="xs:string*"
|
|
2054
|
+
select="$schxslt:patterns-matched"/>
|
|
2055
|
+
</xsl:next-match>
|
|
2056
|
+
</xsl:when>
|
|
2057
|
+
<xsl:otherwise>
|
|
2058
|
+
<schxslt:rule pattern="d7e386">
|
|
2059
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2060
|
+
<xsl:attribute name="context">//si:intervalMinXMLList</xsl:attribute>
|
|
2061
|
+
</svrl:fired-rule>
|
|
2062
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
2063
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
2064
|
+
location="{schxslt:location(.)}"
|
|
2065
|
+
role="error">
|
|
2066
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
2067
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
2068
|
+
</svrl:failed-assert>
|
|
2069
|
+
</xsl:if>
|
|
2070
|
+
</schxslt:rule>
|
|
2071
|
+
<xsl:next-match>
|
|
2072
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2073
|
+
as="xs:string*"
|
|
2074
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
2075
|
+
</xsl:next-match>
|
|
2076
|
+
</xsl:otherwise>
|
|
2077
|
+
</xsl:choose>
|
|
2078
|
+
</xsl:template>
|
|
2079
|
+
<xsl:template match="//si:intervalMaxXMLList" priority="4" mode="d7e9">
|
|
2080
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
2081
|
+
<xsl:choose>
|
|
2082
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
2083
|
+
<schxslt:rule pattern="d7e386">
|
|
2084
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//si:intervalMaxXMLList" shadowed by preceding rule</xsl:comment>
|
|
2085
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2086
|
+
<xsl:attribute name="context">//si:intervalMaxXMLList</xsl:attribute>
|
|
2087
|
+
</svrl:suppressed-rule>
|
|
2088
|
+
</schxslt:rule>
|
|
2089
|
+
<xsl:next-match>
|
|
2090
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2091
|
+
as="xs:string*"
|
|
2092
|
+
select="$schxslt:patterns-matched"/>
|
|
2093
|
+
</xsl:next-match>
|
|
2094
|
+
</xsl:when>
|
|
2095
|
+
<xsl:otherwise>
|
|
2096
|
+
<schxslt:rule pattern="d7e386">
|
|
2097
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2098
|
+
<xsl:attribute name="context">//si:intervalMaxXMLList</xsl:attribute>
|
|
2099
|
+
</svrl:fired-rule>
|
|
2100
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
2101
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
2102
|
+
location="{schxslt:location(.)}"
|
|
2103
|
+
role="error">
|
|
2104
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
2105
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
2106
|
+
</svrl:failed-assert>
|
|
2107
|
+
</xsl:if>
|
|
2108
|
+
</schxslt:rule>
|
|
2109
|
+
<xsl:next-match>
|
|
2110
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2111
|
+
as="xs:string*"
|
|
2112
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
2113
|
+
</xsl:next-match>
|
|
2114
|
+
</xsl:otherwise>
|
|
2115
|
+
</xsl:choose>
|
|
2116
|
+
</xsl:template>
|
|
2117
|
+
<xsl:template match="//dcc:dateTimeXMLListType" priority="3" mode="d7e9">
|
|
2118
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
2119
|
+
<xsl:choose>
|
|
2120
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
2121
|
+
<schxslt:rule pattern="d7e386">
|
|
2122
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:dateTimeXMLListType" shadowed by preceding rule</xsl:comment>
|
|
2123
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2124
|
+
<xsl:attribute name="context">//dcc:dateTimeXMLListType</xsl:attribute>
|
|
2125
|
+
</svrl:suppressed-rule>
|
|
2126
|
+
</schxslt:rule>
|
|
2127
|
+
<xsl:next-match>
|
|
2128
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2129
|
+
as="xs:string*"
|
|
2130
|
+
select="$schxslt:patterns-matched"/>
|
|
2131
|
+
</xsl:next-match>
|
|
2132
|
+
</xsl:when>
|
|
2133
|
+
<xsl:otherwise>
|
|
2134
|
+
<schxslt:rule pattern="d7e386">
|
|
2135
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2136
|
+
<xsl:attribute name="context">//dcc:dateTimeXMLListType</xsl:attribute>
|
|
2137
|
+
</svrl:fired-rule>
|
|
2138
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
2139
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
2140
|
+
location="{schxslt:location(.)}"
|
|
2141
|
+
role="error">
|
|
2142
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
2143
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
2144
|
+
</svrl:failed-assert>
|
|
2145
|
+
</xsl:if>
|
|
2146
|
+
</schxslt:rule>
|
|
2147
|
+
<xsl:next-match>
|
|
2148
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2149
|
+
as="xs:string*"
|
|
2150
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
2151
|
+
</xsl:next-match>
|
|
2152
|
+
</xsl:otherwise>
|
|
2153
|
+
</xsl:choose>
|
|
2154
|
+
</xsl:template>
|
|
2155
|
+
<xsl:template match="//dcc:stringConformityStatementStatusXMLListType"
|
|
2156
|
+
priority="2"
|
|
2157
|
+
mode="d7e9">
|
|
2158
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
2159
|
+
<xsl:choose>
|
|
2160
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
2161
|
+
<schxslt:rule pattern="d7e386">
|
|
2162
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//dcc:stringConformityStatementStatusXMLListType" shadowed by preceding rule</xsl:comment>
|
|
2163
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2164
|
+
<xsl:attribute name="context">//dcc:stringConformityStatementStatusXMLListType</xsl:attribute>
|
|
2165
|
+
</svrl:suppressed-rule>
|
|
2166
|
+
</schxslt:rule>
|
|
2167
|
+
<xsl:next-match>
|
|
2168
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2169
|
+
as="xs:string*"
|
|
2170
|
+
select="$schxslt:patterns-matched"/>
|
|
2171
|
+
</xsl:next-match>
|
|
2172
|
+
</xsl:when>
|
|
2173
|
+
<xsl:otherwise>
|
|
2174
|
+
<schxslt:rule pattern="d7e386">
|
|
2175
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2176
|
+
<xsl:attribute name="context">//dcc:stringConformityStatementStatusXMLListType</xsl:attribute>
|
|
2177
|
+
</svrl:fired-rule>
|
|
2178
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
2179
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
2180
|
+
location="{schxslt:location(.)}"
|
|
2181
|
+
role="error">
|
|
2182
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
2183
|
+
<svrl:text>More than one blank space in a list is not allowed!</svrl:text>
|
|
2184
|
+
</svrl:failed-assert>
|
|
2185
|
+
</xsl:if>
|
|
2186
|
+
</schxslt:rule>
|
|
2187
|
+
<xsl:next-match>
|
|
2188
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2189
|
+
as="xs:string*"
|
|
2190
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
2191
|
+
</xsl:next-match>
|
|
2192
|
+
</xsl:otherwise>
|
|
2193
|
+
</xsl:choose>
|
|
2194
|
+
</xsl:template>
|
|
2195
|
+
<xsl:template match="//@refType" priority="1" mode="d7e9">
|
|
2196
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
2197
|
+
<xsl:choose>
|
|
2198
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
2199
|
+
<schxslt:rule pattern="d7e386">
|
|
2200
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//@refType" shadowed by preceding rule</xsl:comment>
|
|
2201
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2202
|
+
<xsl:attribute name="context">//@refType</xsl:attribute>
|
|
2203
|
+
</svrl:suppressed-rule>
|
|
2204
|
+
</schxslt:rule>
|
|
2205
|
+
<xsl:next-match>
|
|
2206
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2207
|
+
as="xs:string*"
|
|
2208
|
+
select="$schxslt:patterns-matched"/>
|
|
2209
|
+
</xsl:next-match>
|
|
2210
|
+
</xsl:when>
|
|
2211
|
+
<xsl:otherwise>
|
|
2212
|
+
<schxslt:rule pattern="d7e386">
|
|
2213
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2214
|
+
<xsl:attribute name="context">//@refType</xsl:attribute>
|
|
2215
|
+
</svrl:fired-rule>
|
|
2216
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
2217
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
2218
|
+
location="{schxslt:location(.)}"
|
|
2219
|
+
role="error">
|
|
2220
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
2221
|
+
<svrl:text>
|
|
2222
|
+
<xsl:value-of select="name()"/> : More than one blank space in a list is not allowed!</svrl:text>
|
|
2223
|
+
</svrl:failed-assert>
|
|
2224
|
+
</xsl:if>
|
|
2225
|
+
</schxslt:rule>
|
|
2226
|
+
<xsl:next-match>
|
|
2227
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2228
|
+
as="xs:string*"
|
|
2229
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
2230
|
+
</xsl:next-match>
|
|
2231
|
+
</xsl:otherwise>
|
|
2232
|
+
</xsl:choose>
|
|
2233
|
+
</xsl:template>
|
|
2234
|
+
<xsl:template match="//@refId" priority="0" mode="d7e9">
|
|
2235
|
+
<xsl:param name="schxslt:patterns-matched" as="xs:string*"/>
|
|
2236
|
+
<xsl:choose>
|
|
2237
|
+
<xsl:when test="$schxslt:patterns-matched[. = 'd7e386']">
|
|
2238
|
+
<schxslt:rule pattern="d7e386">
|
|
2239
|
+
<xsl:comment xmlns:svrl="http://purl.oclc.org/dsdl/svrl">WARNING: Rule for context "//@refId" shadowed by preceding rule</xsl:comment>
|
|
2240
|
+
<svrl:suppressed-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2241
|
+
<xsl:attribute name="context">//@refId</xsl:attribute>
|
|
2242
|
+
</svrl:suppressed-rule>
|
|
2243
|
+
</schxslt:rule>
|
|
2244
|
+
<xsl:next-match>
|
|
2245
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2246
|
+
as="xs:string*"
|
|
2247
|
+
select="$schxslt:patterns-matched"/>
|
|
2248
|
+
</xsl:next-match>
|
|
2249
|
+
</xsl:when>
|
|
2250
|
+
<xsl:otherwise>
|
|
2251
|
+
<schxslt:rule pattern="d7e386">
|
|
2252
|
+
<svrl:fired-rule xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
|
|
2253
|
+
<xsl:attribute name="context">//@refId</xsl:attribute>
|
|
2254
|
+
</svrl:fired-rule>
|
|
2255
|
+
<xsl:if test="not((matches(., '^([^\s]+\s)*([^\s]+)$')))">
|
|
2256
|
+
<svrl:failed-assert xmlns:svrl="http://purl.oclc.org/dsdl/svrl"
|
|
2257
|
+
location="{schxslt:location(.)}"
|
|
2258
|
+
role="error">
|
|
2259
|
+
<xsl:attribute name="test">(matches(., '^([^\s]+\s)*([^\s]+)$'))</xsl:attribute>
|
|
2260
|
+
<svrl:text>
|
|
2261
|
+
<xsl:value-of select="name()"/> : More than one blank space in a list is not allowed!</svrl:text>
|
|
2262
|
+
</svrl:failed-assert>
|
|
2263
|
+
</xsl:if>
|
|
2264
|
+
</schxslt:rule>
|
|
2265
|
+
<xsl:next-match>
|
|
2266
|
+
<xsl:with-param name="schxslt:patterns-matched"
|
|
2267
|
+
as="xs:string*"
|
|
2268
|
+
select="($schxslt:patterns-matched, 'd7e386')"/>
|
|
2269
|
+
</xsl:next-match>
|
|
2270
|
+
</xsl:otherwise>
|
|
2271
|
+
</xsl:choose>
|
|
2272
|
+
</xsl:template>
|
|
2273
|
+
<xsl:function name="schxslt:location" as="xs:string">
|
|
2274
|
+
<xsl:param name="node" as="node()"/>
|
|
2275
|
+
<xsl:variable name="segments" as="xs:string*">
|
|
2276
|
+
<xsl:for-each select="($node/ancestor-or-self::node())">
|
|
2277
|
+
<xsl:variable name="position">
|
|
2278
|
+
<xsl:number level="single"/>
|
|
2279
|
+
</xsl:variable>
|
|
2280
|
+
<xsl:choose>
|
|
2281
|
+
<xsl:when test=". instance of element()">
|
|
2282
|
+
<xsl:value-of select="concat('Q{', namespace-uri(.), '}', local-name(.), '[', $position, ']')"/>
|
|
2283
|
+
</xsl:when>
|
|
2284
|
+
<xsl:when test=". instance of attribute()">
|
|
2285
|
+
<xsl:value-of select="concat('@Q{', namespace-uri(.), '}', local-name(.))"/>
|
|
2286
|
+
</xsl:when>
|
|
2287
|
+
<xsl:when test=". instance of processing-instruction()">
|
|
2288
|
+
<xsl:value-of select="concat('processing-instruction("', name(.), '")[', $position, ']')"/>
|
|
2289
|
+
</xsl:when>
|
|
2290
|
+
<xsl:when test=". instance of comment()">
|
|
2291
|
+
<xsl:value-of select="concat('comment()[', $position, ']')"/>
|
|
2292
|
+
</xsl:when>
|
|
2293
|
+
<xsl:when test=". instance of text()">
|
|
2294
|
+
<xsl:value-of select="concat('text()[', $position, ']')"/>
|
|
2295
|
+
</xsl:when>
|
|
2296
|
+
<xsl:otherwise/>
|
|
2297
|
+
</xsl:choose>
|
|
2298
|
+
</xsl:for-each>
|
|
2299
|
+
</xsl:variable>
|
|
2300
|
+
<xsl:value-of select="concat('/', string-join($segments, '/'))"/>
|
|
2301
|
+
</xsl:function>
|
|
2302
|
+
</xsl:transform>
|