Search in sources :

Example 1 with MCRTemplatesSource

use of org.mycore.common.xsl.MCRTemplatesSource in project mycore by MyCoRe-Org.

the class MCRXSLTransformer method setStylesheets.

public void setStylesheets(String... stylesheets) {
    this.templateSources = new MCRTemplatesSource[stylesheets.length];
    for (int i = 0; i < stylesheets.length; i++) {
        this.templateSources[i] = new MCRTemplatesSource(stylesheets[i].trim());
    }
    this.modified = new long[templateSources.length];
    this.modifiedChecked = 0;
    this.templates = new Templates[templateSources.length];
}
Also used : MCRTemplatesSource(org.mycore.common.xsl.MCRTemplatesSource)

Aggregations

MCRTemplatesSource (org.mycore.common.xsl.MCRTemplatesSource)1