Page 1 of 1

No option to choose Schematron file for validation of document type

Posted: Mon Apr 18, 2022 6:32 pm
by Martin Holmes
Hi there,
I'm trying to create an association with a Schematron schema for a custom document type (actually XSLT files) in the Preferences, and I don't see Schematron as an option (screenshot attached).
noSchematronChoice.png
I'm sure this used to be an option. Is it a bug, or is there some reason you can't use a separate Schematron file for validation? (Oxygen 24.1).

Re: No option to choose Schematron file for validation of document type

Posted: Mon Apr 18, 2022 10:50 pm
by chrispitude
Hi Martin,

If you are trying to associate a Schematron file for validation purposes, perhaps is the Validation tab what you're looking for?

Re: No option to choose Schematron file for validation of document type

Posted: Mon Apr 18, 2022 11:50 pm
by Martin Holmes
Does a Schematron file not count as a schema for the purposes of document type association?

Re: No option to choose Schematron file for validation of document type

Posted: Tue Apr 19, 2022 5:47 pm
by chrispitude
Hi Martin,

I understood your message to mean that you wanted to validate XSLT files by associating a Schematron validation scenario with them. In our Oxygen environment, I use the Validation tab to add Schematron checks to a particular file type. Maybe you are doing something different and I misunderstood what you're trying to do?

Re: No option to choose Schematron file for validation of document type

Posted: Wed Apr 20, 2022 10:28 am
by adrian
Hi,
Martin Holmes wrote: Mon Apr 18, 2022 11:50 pm Does a Schematron file not count as a schema for the purposes of document type association?
No, the Schema tab from the document type association is meant as the default schema, the one that provides the info that the content completion feature requires (all possible XML components and their values for a specific editing context). Schematron cannot provide that, it can only be used for validation. So, for validation with Schematron alone, the Validation tab is the way to go.

As per your specific situation, for XSLT stylesheets since the actual schema is built into Oxygen, you would break the XSLT content completion, if you were to specify a schema in the Schema tab.

Regards,
Adrian