From 7772bc191f90de577eb70d3c65beaec504f4ef56 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Thu, 20 Jul 2023 11:55:40 +0200 Subject: [PATCH] - added info about schema resolution (resolving) --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c3787c..8dedb7f 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,22 @@ Schemas </slubschemacatalog> ``` - For a (german) introduction how to use it, check https://www.data2type.de/xml-xslt-xslfo/docbook/xml-kataloge +Namespace based Schema resolution +--------------------------------- + +The schema resolution follows the rules: + +1. if schematype is "nonvalidating", the resourceresolver returns null, indicating the validator should ignore rules +2. if schematype is "schema" and the baseuri is local and the associated systemid is defined, a combined url will be used, pE. + - baseUri = file:/tmp/xml_plugin4rosetta/example_catalog/mets-1.12.1/mets.xsd + - SystemId = http://www.loc.gov/standards/xlink/xlink.xsd + - combined: file:/home/romeyke/git/xml_plugin4rosetta/example_catalog/xlink-1.1/xlink.xsd +3. if schematype is "schema" then the url of associated namespace will be used + +Hint: in case of nonvalidating schemaurl should never be empty! + Copyright hints --------------- -- GitLab