schematron support for oxygen browser plugin?

Oxygen general issues.
shudson310
Posts: 156
Joined: Sat Feb 26, 2005 12:09 am
Location: USA
Contact:

schematron support for oxygen browser plugin?

Post by shudson310 »

Hi,

I'm testing a browser-based embedded oxygen editor plugin. Do you know if it would be able to support schematron validation in addition to the DTD / RNG validation?

Thanks,

--Scott
Scott Hudson
Staff Content Engineer
Site: docs.servicenow.com
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: schematron support for oxygen browser plugin?

Post by Radu »

Hi Scott,

You mean our Author Component which can be embedded in a Web Browser as a Java applet, right?

http://www.oxygenxml.com/oxygen_sdk.htm ... _component

Yes it does.

Actually the default validation for DITA content is done using the DTDs + Schematron rules.

So either in each XML file before the root element you specify a link to the Schematron file used for validation like:

Code: Select all

 <?xml-model href="path/to/schematron.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
or you create a default validation scenario which also uses Schematron in the document type.
As an example if you start a standalone version of Oxygen, go to the "Preferences"->"Document Type Association" page and edit the DITA document type, in the "Validation" tab there is a default validation scenario. If you edit it, the validation scenario has two stages for automatic validation. The first stage validates with the schema specified in the document. The second stage validates with a Schematron schema located in: ${framework}/resources/dita-1.2-for-xslt2-mandatory.sch"
Then the framework gets bundled and used in the applet which will validate all DITA content with this default validation scenario.

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