Robert sent this email to the list on my behalf last week. However, it’s not getting any traction. So, I am bumping it.
While I think BaseX is great and shows a lot of promise, my implementation of it is currently dysfunctional and I’m stumped on how to get my project moving. There is very little in the way of documentation regarding managing XML that validates against Relax NG. I’ve made some progress in terms of using XQuery to handle the import (which appears to be the only way of validating against Relax NG) but I keep running into odd errors such as “Resource ‘…’ does not exist” when it in fact does exist. Can someone on the BaseX team please respond to this thread and provide a bit of insight?
Thanks, Jason
From: Robert Crews rcrews@hortonworks.com Date: Wednesday, September 12, 2018 at 12:59 PM To: "basex-talk@mailman.uni-konstanz.de" basex-talk@mailman.uni-konstanz.de Subject: Importing XML (DITA) validated with Relax NG schemas?
I’m trying to set up BaseX to manage a repository of DITA content. The DITA content has been specialized to validate against Relax NG schemas instead of DTDs. While importing content that validate against DTDs is straight forward, I have not yet figured out the best way to import Relax NG based content. So, I have a few questions:
* I see there is the Validation module [1] and that’s good because I think XQuery is my best option for managing the imports. However, I need to pass a specific schema to the functions. DITA content utilizes multiple schemas. Is there some way I can pass a directory to these functions instead of just a single file reference? * I currently have the CATFILE option set [2]. Does this help or hinder importing when choosing to validate against Relax NG? Is there some way I can set the global options to make validating against Relax NG easier? * I’ve seen multiple examples of people actually storing the schema(s) in the database. Is that necessary or help for using the validation module?
Thanks for your help!
[1] http://docs.basex.org/wiki/Validation_Module#RelaxNG_Validation
[2] http://docs.basex.org/wiki/Catalog_Resolver http://docs.basex.org/wiki/Options#CATFILE For reference, here is how Oxygen handles catalog resolutionhttps://www.oxygenxml.com/doc/versions/20.1/ug-editor/topics/using-XML-Catalogs.html. See the bottom of Table 1. Catalog Mappings for a summary of how Relax NG is resolved.