doc_type_schematron_file
doc_type_schematron_file([doc[, newFile]])
This function retrieves or sets the list of Schematron files used with the document type associated with doc. If doc is not supplied or is 0, then the current document is used. If newFile is not supplied, then the function returns the full paths to the document type’s Schematron files. If newFile is supplied, then the specified Schematron file is added to the list used with the document type. If newFile is supplied and is an empty string, then no Schematron processing will be done for the document type.
Any Schematron file associated with a document type is used by completeness checking for further validations of a document instance.
For example, the following ACL function call will modify the document type schematron file association for the current document to include the files axdocbook1.sch and axdocbook2.sch:
doc_type_schematron_file(0, "axdocbook1.sch;"axdocbook2.sch");
Note that the semi colon (;) is the required delimiter.
Related Topics