/// <summary> /// Create a new Processor /// </summary> public Processor() { config = new JConfiguration(); config.setURIResolver(new DotNetURIResolver(new XmlUrlResolver())); config.setCollectionURIResolver(new DotNetCollectionURIResolver()); config.registerExternalObjectModel(new DotNetObjectModelDefinition()); }
/// <summary> /// Create a Processor, based on configuration information supplied in a configuration file. /// </summary> /// <remarks> /// Not fully supported in this release: for experimental use only. /// </remarks> /// <param name="configurationFile">A stream holding the text of the XML configuration file. Details of the file format /// can be found in the Saxon documentation.</param> /// public Processor(Stream configurationFile) { StreamSource ss = new StreamSource(new DotNetInputStream(configurationFile)); config = JConfiguration.readConfiguration(ss); config.registerExternalObjectModel(new DotNetObjectModelDefinition()); config.setProcessor(this); }
/// <summary> /// Create a Processor. /// </summary> /// <param name="licensedEdition">Set to true if the Processor is to use a licensed edition of Saxon /// (that is, Saxon-PE or Saxon-EE). If true, the Processor will attempt to enable the capabilities /// of the licensed edition of Saxon, according to the version of the software that is loaded, and will /// verify the license key. If false, the Processor will load a default Configuration that gives restricted /// capability and does not require a license, regardless of which version of the software is actually being run.</param> /// <param name="loadLocally">This option has no effect at this release.</param> public Processor(bool licensedEdition, bool loadLocally) { if (licensedEdition) { config = JConfiguration.newConfiguration(); schemaManager = new SchemaManager(config); } else { config = new JConfiguration(); } config.registerExternalObjectModel(new DotNetObjectModelDefinition()); config.setProcessor(this); }
/// <summary> /// Create a new Processor. This Processor will have capabilities that depend on the version /// of the software that has been loaded, and on the features that have been licensed. /// </summary> public Processor() { config = JConfiguration.newConfiguration(); config.registerExternalObjectModel(new DotNetObjectModelDefinition()); config.setProcessor(this); }