Schematron in oXygen for Ixiasoft

Having trouble installing Oxygen? Got a bug to report? Post it all here.
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Schematron in oXygen for Ixiasoft

Post 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
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

Re: Schematron in oXygen for Ixiasoft

Post 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.
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Schematron in oXygen for Ixiasoft

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: Schematron in oXygen for Ixiasoft

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