Package org.apache.cocoon.template.xml

Examples of org.apache.cocoon.template.xml.AttributeAwareXMLConsumerImpl


    public void performGeneration(Event startEvent, Event endEvent) throws SAXException {
        newObjectModel.markLocalContext();

        newObjectModel.putAt(ObjectModel.PARAMETERS_PATH, new ParametersMap(parameters));
        newObjectModel.put(ObjectModel.NAMESPACE, namespaces);
        XMLConsumer consumer = new AttributeAwareXMLConsumerImpl(new RedundantNamespacesFilter(this.xmlConsumer));
        newObjectModel.putAt("cocoon/consumer", consumer);
       
        Invoker.execute(consumer, this.newObjectModel, new ExecutionContext(this.definitions, this.scriptManager,
                this.manager), null, namespaces, startEvent, null);
View Full Code Here


        // no need to reference compiled script anymore
        this.startDocument = null;
    }

    public void performGeneration(Event startEvent, Event endEvent) throws SAXException {
        XMLConsumer consumer = new AttributeAwareXMLConsumerImpl(new RedundantNamespacesFilter(this.xmlConsumer));
        ((Map) expressionContext.get("cocoon")).put("consumer", consumer);
        Invoker.execute(consumer, this.expressionContext, new ExecutionContext(this.definitions, this.scriptManager,
                this.manager), null, startEvent, null);
    }
View Full Code Here

    public void performGeneration(Event startEvent, Event endEvent) throws SAXException {
        objectModel.markLocalContext();

        objectModel.putAt(ObjectModel.PARAMETERS_PATH, new ParametersMap(parameters));
        objectModel.put(ObjectModel.NAMESPACE, namespaces);
        XMLConsumer consumer = new AttributeAwareXMLConsumerImpl(new RedundantNamespacesFilter(this.consumer));
        objectModel.putAt("cocoon/consumer", consumer);

        Invoker.execute(consumer, this.objectModel, new ExecutionContext(this.definitions, this.scriptManager,
                this.saxParser), null, namespaces, startEvent, null);
View Full Code Here

        // no need to reference compiled script anymore
        this.startDocument = null;
    }

    public void performGeneration(Event startEvent, Event endEvent) throws SAXException {
        XMLConsumer consumer = new AttributeAwareXMLConsumerImpl(new RedundantNamespacesFilter(this.xmlConsumer));
        ((Map) expressionContext.get("cocoon")).put("consumer", consumer);
        Invoker.execute(consumer, this.expressionContext, new ExecutionContext(this.definitions, this.scriptManager,
                this.manager), null, startEvent, null);
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.template.xml.AttributeAwareXMLConsumerImpl

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.