4Suite API Documentation

Module Ft.Server.Common.SchematronStylesheet

Schematron stylesheet preprocessing
Supports Schematron 1.3 w/namespaces.

Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/


ParseSchematron(src, uri, driver=None, external=False)
Given a Schematron stylesheet as a string, returns a stylesheet that can be used for validation, as a Domlette document. For external entity resolution, the stylesheet's base URI must be given, as well as an indication of whether external entities should be assumed to be external to the repository. A repository driver must be given


STYLESHEET = '<?xml version="1.0" ?>\n<!-- Preprocessor for the...="text" />\n</xsl:template>-->\n\n\n</xsl:stylesheet>'