compiler.startDocument();
XMLConsumer nextConsumer = compiler;
NodeList transformations = DOMUtil.selectNodeList(copletConf,
"transformation/stylesheet", this.processor);
XSLTProcessor xslt = null;
ArrayList transformers = null;
ArrayList sources = null;
Request request = ObjectModelHelper.getRequest(this.objectModel);
XMLConsumer stylesheet =null;
try {
if (transformations != null && transformations.getLength() > 0) {
transformers = new ArrayList();
sources = new ArrayList();
nextConsumer = new IncludeXMLConsumer(nextConsumer);
for(int k = transformations.getLength()-1; k >=0; k--) {
xslt = (XSLTProcessor)this.manager.lookup(XSLTProcessor.ROLE);
transformers.add(xslt);
Source source = this.resolver.resolveURI(DOMUtil.getValueOfNode(transformations.item(k)));
sources.add(source);
TransformerHandler handler = xslt.getTransformerHandler(source);
final SAXResult result = new SAXResult(nextConsumer);
result.setLexicalHandler(nextConsumer);
handler.setResult(result);
nextConsumer = new ContentHandlerWrapper(handler, handler);