This document shows you how to validate your PreTeXt source files against the RELAX-NG schema. (It's not necessary to validate against the Schematron rules this way, see the Author's Guide for details.)
Note that the procedure depends on the location of the schema file on disk, so that you will have to do this slightly differently in different computing environments.