Page 1 of 1

Schematron in oXygen for Ixiasoft

Posted: Thu Mar 12, 2015 6:32 pm
by shudson310
I've scoured the web for an answer to no avail. Hoping this list can help.

I'm trying to include a schematron reference in a DITA template for use in oXygen in the Ixiasoft CMS. I know oxygen supports schematron validation, but can't seem to find a way to resolve the reference in Ixiasoft environment.

I get an error: I/O error reported by XM parser processing file: /system/templates/topics/Schematron.sch
Cannot open the specified file: The specified file does not exist: D:\system\templates\topics\Schematron.sch

Re: Schematron in oXygen for Ixiasoft

Posted: Thu Mar 12, 2015 7:18 pm
by shudson310
Kind of a hack, but this works:
<?xml-model href="file:///D:/docbases/Schematron.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>

You have to place the schematron file in a location that can be externally referenced outside of the repository. Ideally, I'd still like to find a way to reference this inside the repository.

Re: Schematron in oXygen for Ixiasoft

Posted: Thu Mar 12, 2015 9:09 pm
by adrian
Hi,

The initial problem was that you were using file paths in the @href from xml-model. You have to use a URI.
Do you also have the Schematron.sch inside the repository?
Can you open it from the repository in Oxygen? If you can, right click on its editor tab, and from the contextual menu use "Copy location". Use that location (URI) in the @href from xml-model.

Another way to do this would be to use a custom URI for the schematron and an XML catalog that redirects this URI to the one from the repository.

Regards,
Adrian

Re: Schematron in oXygen for Ixiasoft

Posted: Fri Mar 13, 2015 12:37 pm
by george
Hi Scott,

You can also edit the DITA framework from oXygen (Options -> oXygen XML Editor ->Document Type Association, select DITA, then use the Edit button, then in the "Validation" tab edit the "DITA" validation scenario and add your Schematron there as an additional validation unit, similar to the other 3 Schematron validations that are performed there. The "Automatic Validation" check allows you to specify if you want that validation unit to be part of the validate as you type functionality or, if it disabled, that validation unit will be applied only when you manually invoke the "Validate" action.

As an alternative to modifying the DITA framework you can also choose "Extend" instead of "Edit" after you select "DITA" in the Document Type Association page and make your changes in the extended framework. This will allow you to easily come back to the DITA default framework by removing or disabling your extended framework.

Best Regards,
George