How do I mount S1000D Schema?

This should cover W3C XML Schema, Relax NG and DTD related problems.
matrix
Posts: 5
Joined: Fri Sep 27, 2013 7:14 am

How do I mount S1000D Schema?

Post by matrix » Wed Sep 30, 2015 1:03 am

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:

http://public.s1000d.org/Downloads/Page ... 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.

Costin
Posts: 621
Joined: Mon Dec 05, 2011 6:04 pm

Re: How do I mount S1000D Schema?

Post by Costin » Wed Sep 30, 2015 11:24 am

Hello,

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.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

juicejuice
Posts: 15
Joined: Wed Jan 29, 2014 8:29 am

Re: How do I mount S1000D Schema?

Post by juicejuice » Fri Jun 10, 2016 5:48 am

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.

Radu
Posts: 6541
Joined: Fri Jul 09, 2004 5:18 pm

Re: How do I mount S1000D Schema?

Post by Radu » Fri Jun 10, 2016 7:56 am

Hi,

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.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Re: How do I mount S1000D Schema?

Post by jbvalentin » Thu Oct 03, 2019 1:01 pm

Hi,

we have set up a basic oXygen XML framework for S1000D, freely available from GitHub : https://github.com/Amplexor/oxygen-asd-s1000d
It support S1000D in its 4.x version.

Feel free to provide feedback on it!

Regards,
Jean-Baptiste VALENTIN
AMPLEXOR

Post Reply