Master Files vs. catalog files and validation scenarios
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 17
- Joined: Wed Jan 11, 2017 11:27 pm
Master Files vs. catalog files and validation scenarios
Post by EarlMorton »
My project uses a set of a few dozen XML Schema files organized in a folder hierarchy. They are interrelated with <include> and <import> elements. Each folder in the hierarchy contains a catalog.xml file that lists the schema files in that folder, and another catalog.xml in the top folder references all the lower-level catalog.xml files. An oXygen validation scenario references that top-level catalog.xml, so instance documents validate correctly through the whole set of schemas.
We are considering using oXygen's Master File feature. How does it compare with what we already have with the catalog.xml files? Are there advantages or disadvantages either way?
We are considering using oXygen's Master File feature. How does it compare with what we already have with the catalog.xml files? Are there advantages or disadvantages either way?
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Master Files vs. catalog files and validation scenarios
Hi,
e.g.
A master XML schema file allows for easier XML schema module validation.
A master XML file allows for easier XML module (XInclude) validation.
The Master Files support does not replace the functionality of XML catalogs. Note that it does not facilitate the validation of instance documents (XML files) with a hierarchy of XML schemas. You still need an XML catalog to redirect the URI/namespace to the correct schema file. We will probably improve this support in the future and use the namespace of the master schema for this purpose.
Regards,
Adrian
I'm guessing you meant to say that the scenario references the top level schema.An oXygen validation scenario references that top-level catalog.xml, so instance documents validate correctly through the whole set of schemas.
It's not the same thing. The Master Files Support is meant to be used to ease the validation of a hierarchy of imported/included modules (replaces validation scenarios for modules). The Master Files support is far easier to set up than validation scenarios. You just enable the support and add the top level schema (or detect it) to the list of master files. Oxygen's default validation determines if a schema being validated is part of the hierarchy (a module) of that master (schema) file and validates that master instead.We are considering using oXygen's Master File feature. How does it compare with what we already have with the catalog.xml files? Are there advantages or disadvantages either way?
e.g.
A master XML schema file allows for easier XML schema module validation.
A master XML file allows for easier XML module (XInclude) validation.
The Master Files support does not replace the functionality of XML catalogs. Note that it does not facilitate the validation of instance documents (XML files) with a hierarchy of XML schemas. You still need an XML catalog to redirect the URI/namespace to the correct schema file. We will probably improve this support in the future and use the namespace of the master schema for this purpose.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service