Page 1 of 1

How do I mount S1000D Schema?

Posted: Wed Sep 30, 2015 1:03 am
by matrix
Fellow Forum Members,
What is the correct way to mount a S1000D Schema so that I may validate many XML files in a batch mode? The schema I'm using is S1000D 4.01 and I downloaded them from the link below: ... loads.aspx

I am not seeking to marry OxygenXML to a CSDB. I am only seeking to learn how I can mount S1000D schema for the purpose of batch validating many XML files outside of a CSDB environment. My hope is OxygenXML can provide to me a list of the XML files that pass validation and the ones that fail validation. Such a list will save me a lot of time. Is such a list possible? Any help will be greatly appreciated. Thanks in advance.

Re: How do I mount S1000D Schema?

Posted: Wed Sep 30, 2015 11:24 am
by Costin

There are a couple of ways to validate multiple XML documents in Oxygen with a schema:

1. You can create a validation scenario (the documents remain untouched, provides content completion and validate as you type):
- by opening an XML file and going to Document -> Validate -> Configure Validation Scenario (there is also a corresponding action in the toolbar).
- by selecting an XML file in the Project view, right clicking on it and selecting Validate -> Configure Validation Scenario from the popup menu

In the Configure Validation Scenario dialog click New, choose a name for the scenario and configure the validation unit. Leave the "URL of the file to validate" unchanged (${currentFileURL}) so you can use the scenario for various XML files. Double click on the schema field, select "Use custom schema" and browse for the schema. If you want to validate with several schemas, press the Add button and configure a validation unit for each. Close all dialogs with OK.

Afterwards you can associate multiple files from the project view with the custom validation scenario you have just configured. You can do this by selecting the XML files(or their parent folder) in the project view and right clicking and selecting Validate -> Configure Validation Scenario. Then select the scenario from the list and press OK. If you've chosen a folder this will associate the scenario with all the files from that folder (even if they are of other type than XML). So you should make sure you don't accidentally associate validation scenarios to files that the scenario won't apply to.

2. The quick way to validate with a schema if you only need to do this once and you won't be needing a scenario: Document -> Validate-> Validate with... and simply choose the schema. Or, in the Project view right click on the selected XML files(or folders) and from the contextual menu choose Validate-> Validate with Schema... and simply choose the schema. (be advised that using this method, you have to do it each time you want to validate).

Regarding S1000D, we started an open source project on the Github for creating an oXygen framework to provide S1000D editing support.

The S1000D schemas are not included because of licensing issues, they do not freely license the schemas for redistribution, but a user can freely use the schemas, so you could get the framework and then download and place the schemas in the "XML Schema package" folder.

But this experimental support does not include publishing.

I hope this helps.


Re: How do I mount S1000D Schema?

Posted: Fri Jun 10, 2016 5:48 am
by juicejuice
Just a note to say this is great, and working fine here for S1000D Issue 4.1 data. The framework templates are not quite right for 4.1 and don't include useful examples but it is a good start. If I have time I'll try and update and send a pull request.

Re: How do I mount S1000D Schema?

Posted: Fri Jun 10, 2016 7:56 am
by Radu

Thanks for the input.
We don't have much S1000D experience so any pull request related to templates or to the CSSs would be appreciated.