-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[repositoryValidator] xi:include should be supported #112
Comments
@YuvalCohen the Orchestra repository schema does both things recommended by that article. It imports xml.xsd and it declares xml:base in top-level elements under Also, RepositoryValidator sets a switch to make the parser XIncludeAware, another requirement. I'll have to test validator with includes to see if it works as expected. |
@donmendelson The requirement si to be able to split large and complicated repository to multiple files. At the moment, it seems that repositoryValidator does not like xi:include. |
I altered a unit test for RepositoryValidator as follows and got it to run with an Xinclude: Modified test resource OrchestraFIXLatest.xml and moved a portion to another file.
The output did produce some errors or warnings, but they seem to be correct, not a problem with include instructions. |
@donmendelson Thanks. If so, can you please provide some description about what each of these files needs to contain? |
@YuvalCohen since XIinclude requires explicit include points to be declared in the schema, what you ask requires a modification. We are about to promote Orchestra version 1.0 to Technical Standard, but we can take your request as a requirement for version 1.1. |
Now that Orchestra version 1.0 is Technical Standard, we should reconsider all requests for schema changes to become version 1.1. |
Added the following to v1.1 RC1 section 3.1.4 Support for XInclude: For example, |
This issue only updates the documentation of V1.1 RC1. There is currently no requirement to separate out individual elements of the top elements supporting XInclude (actors, concepts, sections, categories, messages, groups, components, fields, code sets, datatypes, scenarios). If the need arises, a separate issue should be entered and can be addressed in a later RC of v1.1. The issue remains open to address the bug in the Repository Validator tool. |
There should be a simple way to support xi:include in the xsd repository files.
This is a basic requirement for Orchestra to serve any project which is slightly larger then FIX repository and requires to split the repository to multiple xsd files.
At the moment, repositoryValidator report an error: Attribute 'xml:base' is not allowed to appear in element '...' (name of the element where the xi:include was added)
Further information about this error can be found in:
[https://stackoverflow.com/questions/22774425/attempting-to-connect-xml-files-with-xinclude-attribute-xmlbase-error/22791471#22791471]
and way to supress the error can be found in: [http://xerces.apache.org/xerces2-j/features.html#xinclude.fixup-base-uris]
Thanks in advance.
The repositoryValidator is a very useful tool.
The text was updated successfully, but these errors were encountered: