Exemplo n.º 1
0
        // internal constructor

        internal SchemaValidator(JConfiguration config)
        {
            this.config = config;
            Object obj = config.getConfigurationProperty(FeatureKeys.USE_XSI_SCHEMA_LOCATION);

            useXsiSchemaLocation = ((java.lang.Boolean)obj).booleanValue();
        }
Exemplo n.º 2
0
        private static void RegisterCollations(XPathCompiler xpc, XdmItem env, Environment environment)
        {
            CompareInfo    info    = CultureInfo.CurrentCulture.CompareInfo;
            CompareOptions options = CompareOptions.IgnoreCase;

            foreach (XdmItem basei in xpc.Evaluate("collation", env))
            {
                string uri        = ((XdmNode)basei).GetAttributeValue(new QName("uri"));
                String defaultAtt = ((XdmNode)basei).GetAttributeValue(new QName("default"));
                bool   isDefault  = defaultAtt != null && (defaultAtt.Trim().Equals("true") || defaultAtt.Trim().Equals("1"));
                if (uri.Equals("http://www.w3.org/2010/09/qt-fots-catalog/collation/caseblind") ||
                    uri.Equals("http://www.w3.org/xslts/collation/caseblind"))
                {
                    JConfiguration  config   = xpc.Processor.Implementation;
                    JStringCollator collator = config.getCollationURIResolver().resolve("http://saxon.sf.net/collation?ignore-case=yes", config);

                    environment.xpathCompiler.DeclareCollation(new Uri(uri), info, options, isDefault);//(Collator) ((SimpleCollation) collator.).getCollation());
                    environment.xqueryCompiler.DeclareCollation(new Uri(uri), info, options, isDefault);
                    if (environment.xsltCompiler != null)
                    {
                        environment.xsltCompiler.DeclareCollation(new Uri(uri), info, options, isDefault);
                    }
                }
            }
        }
        // internal constructor: the public interface is a factory method
        // on the Processor object

        internal XsltCompiler(JConfiguration config) {
            this.factory = new TransformerFactoryImpl(config);
            this.config = config;
            this.info = new JCompilerInfo();
            info.setURIResolver(config.getURIResolver());
            info.setErrorListener(config.getErrorListener());
        }
Exemplo n.º 4
0
        // internal constructor: the public interface is a factory method
        // on the Processor object

        internal XsltCompiler(JConfiguration config)
        {
            this.factory = new TransformerFactoryImpl(config);
            this.config  = config;
            this.info    = new JCompilerInfo();
            info.setURIResolver(config.getURIResolver());
            info.setErrorListener(config.getErrorListener());
        }
Exemplo n.º 5
0
        // internal constructor: the public interface is a factory method
        // on the Processor object

        internal XsltCompiler(Processor processor)
        {
            this.processor = processor;
            this.config = processor.config;
            this.factory = new TransformerFactoryImpl(config);
            this.info = new JCompilerInfo();
            info.setURIResolver(config.getURIResolver());
            info.setErrorListener(config.getErrorListener());
        }
Exemplo n.º 6
0
        // internal constructor: the public interface is a factory method
        // on the Processor object

        internal SchemaManager(net.sf.saxon.Configuration config)
        {
            this.config = (JConfiguration)config;
        }
Exemplo n.º 7
0
        // internal constructor

        internal SchemaValidator(JConfiguration config)
        {
            this.config = config;
        }
Exemplo n.º 8
0
 public JResource makeResource(JConfiguration c, AbstractResourceCollection.InputDetails details)
 {
     return(new ResourceWrapper(resourceFactory.MakeResource(proc)));
 }
Exemplo n.º 9
0
 public void setConfiguration(JConfiguration config)
 {
     this.config = config;
 }
Exemplo n.º 10
0
 internal SchemaManager(Processor processor)
 {
     this.processor     = processor;
     this.schemaManager = processor.JProcessor.getSchemaManager();
     this.config        = (JConfiguration)processor.Implementation;
 }
Exemplo n.º 11
0
 public void setConfiguration(JConfiguration config)
 {
     this.config = config;
 }
Exemplo n.º 12
0
        // internal constructor: the public interface is a factory method
        // on the Processor object

        internal SchemaManager(net.sf.saxon.Configuration config)
        {
            this.config = (JConfiguration)config;
        }
Exemplo n.º 13
0
        // internal constructor

        internal SchemaValidator(JConfiguration config)
        {
            this.config = config;
            Object obj = config.getConfigurationProperty(JFeatureKeys.USE_XSI_SCHEMA_LOCATION);
            useXsiSchemaLocation = ((java.lang.Boolean)obj).booleanValue();
        }