Schematron in oXygen for Ixiasoft

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
shudson310
Posts: 124
Location: USA

Schematron in oXygen for Ixiasoft

Thu Mar 12, 2015 6:32 pm

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
Scott Hudson
Content Strategist
Jeppesen
Site: jeppesen.com
shudson310
Posts: 124
Location: USA

Re: Schematron in oXygen for Ixiasoft

Thu Mar 12, 2015 7:18 pm

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.
Scott Hudson
Content Strategist
Jeppesen
Site: jeppesen.com
adrian
Posts: 2443

Re: Schematron in oXygen for Ixiasoft

Thu Mar 12, 2015 9:09 pm

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
george
Site Admin
Posts: 2100

Re: Schematron in oXygen for Ixiasoft

Fri Mar 13, 2015 12:37 pm

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
George Cristian Bina

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 2 guests