Page 1 of 1

XSLT validation annoyance

Posted: Mon Sep 30, 2019 6:45 pm
by jdwinfodesign
"There is no documentation for the template... ."

Looked in Options>Preferences>Editor>Content Completion>XSLT, don't see any way to turn off this particular message without turning off validation altogether. Any way to do so other than adding more lines to my XSLT?

Re: XSLT validation annoyance

Posted: Tue Oct 01, 2019 8:52 am
by tavy
Hello,

Thanks for your feedback.
This type of warning is presented only if you are using "xd:doc" element to document your stylesheet, but you didn't add documentation for all your templates and functions.

To deactivate the Schematron checks for XSLT you need to go to Option-Preferences->Document Type Association options page, then edit the XSLT document type, and in the Validation tab uncheck the "XSLT" validation scenario to be used as default scenario. In the "XSLT" scenario are defined the Schematron rules. In case you want to use them later you can activate them by setting back the default scenario.

Best Regards,
Octavian