/** * Create an XsltCompiler. An XsltCompiler is used to compile XSLT stylesheets. * @return a newly created XsltCompiler * @throws UnsupportedOperationException if this version of the Saxon product does not support XSLT processing */ public XsltCompiler newXsltCompiler() { if (isSchemaAware() && !config.isSchemaAware(Configuration.XSLT)) { throw new UnsupportedOperationException( "XSLT processing is not supported with this Saxon installation"); } return new XsltCompiler(this); }
/** * Create an XQueryCompiler. An XQueryCompiler is used to compile XQuery queries. * @return a newly created XQueryCompiler * @throws UnsupportedOperationException if this version of the Saxon product does not support XQuery processing */ public XQueryCompiler newXQueryCompiler() { if (isSchemaAware() && !config.isSchemaAware(Configuration.XQUERY)) { throw new UnsupportedOperationException( "XQuery processing is not supported with this Saxon installation"); } return new XQueryCompiler(this); }
public XProcConfiguration(Processor processor) { logger = LoggerFactory.getLogger(this.getClass()); cfgProcessor = processor; loadConfiguration(); if (schemaAware != processor.isSchemaAware()) { throw new XProcException("Schema awareness in configuration conflicts with specified processor."); } init(); }
public XProcConfiguration(Processor processor) { logger = LoggerFactory.getLogger(this.getClass()); cfgProcessor = processor; loadConfiguration(); if (schemaAware != processor.isSchemaAware()) { throw new XProcException("Schema awareness in configuration conflicts with specified processor."); } init(); }
this.schemaAware = cfgProcessor.isSchemaAware(); saxonProcessor = Version.softwareEdition.toLowerCase(); this.schemaAware = cfgProcessor.isSchemaAware(); saxonProcessor = Version.softwareEdition.toLowerCase();
this.schemaAware = cfgProcessor.isSchemaAware(); saxonProcessor = Version.softwareEdition.toLowerCase(); this.schemaAware = cfgProcessor.isSchemaAware(); saxonProcessor = Version.softwareEdition.toLowerCase();
private void init() { this.schemaAware = cfgProcessor.isSchemaAware(); saxonProcessor = Version.softwareEdition.toLowerCase(); findStepClasses();
private void init() { this.schemaAware = cfgProcessor.isSchemaAware(); saxonProcessor = Version.softwareEdition.toLowerCase(); findStepClasses();
public void run() throws SaxonApiException { super.run(); Processor proc = runtime.getProcessor(); if (proc.isSchemaAware()) { SchemaManager manager = proc.getSchemaManager(); validateWithSaxonSA(manager); } else { validateWithXerces(); } }
try { XsltCompiler compiler = runtime.getProcessor().newXsltCompiler(); compiler.setSchemaAware(processor.isSchemaAware()); XsltExecutable exec = compiler.compile(stylesheet.asSource()); XsltTransformer transformer = exec.load();
try { XsltCompiler compiler = runtime.getProcessor().newXsltCompiler(); compiler.setSchemaAware(processor.isSchemaAware()); compiler.setErrorListener(new LogCompileErrors()); XsltExecutable exec = compiler.compile(stylesheet.asSource());