Package client.net.sf.saxon.ce.trans

Examples of client.net.sf.saxon.ce.trans.RuleManager


                }
            }

            // Finish off the lists of template rules

            RuleManager ruleManager = getPreparedStylesheet().getRuleManager();
            ruleManager.computeRankings();

        } catch (RuntimeException err) {
        // if syntax errors were reported earlier, then exceptions may occur during this phase
        // due to inconsistency of data structures. We can ignore these exceptions as they
        // will go away when the user corrects the stylesheet
View Full Code Here


    public void register(Declaration declaration) throws XPathException {
        if (match != null) {
            StylesheetModule module = declaration.getModule();
            int slots = match.allocateSlots(getStaticContext(), getSlotManager(), 0);
            RuleManager mgr = getPreparedStylesheet().getRuleManager();
            for (int i=0; i<modeNames.length; i++) {
                StructuredQName nc = modeNames[i];
                Mode mode = mgr.getMode(nc, true);
                if (prioritySpecified) {
                    mgr.setTemplateRule(match, compiledTemplate, mode,
                        module, priority, ixslPreventDefault, ixslEventProperty);
                } else {
                    mgr.setTemplateRule(match, compiledTemplate, mode,
                        module, Double.NaN, ixslPreventDefault, ixslEventProperty);
                }
                mode.allocatePatternSlots(slots);
            }
View Full Code Here

     */

    public Mode getCurrentMode() {
        Mode m = currentMode;
        if (m == null) {
            RuleManager rm = getController().getRuleManager();
            if (rm != null) {
                return rm.getUnnamedMode();
            } else {
                return null;
            }
        } else {
            return m;
View Full Code Here

     */

    public PreparedStylesheet(Configuration config, CompilerInfo info) {
        super(config);
        nodeFactory = new StyleNodeFactory(config);
        RuleManager rm = new RuleManager();
        rm.setRecoveryPolicy(info.getRecoveryPolicy());
        setRuleManager(rm);
        compilerInfo = info;

    }
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.trans.RuleManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.