1 16 package org.apache.cocoon.components.language.markup.xsp; 17 18 import org.apache.cocoon.components.language.markup.CocoonMarkupLanguage; 19 import org.apache.cocoon.components.language.markup.LogicsheetFilter; 20 import org.apache.cocoon.components.language.programming.ProgrammingLanguage; 21 import org.apache.cocoon.xml.AbstractXMLPipe; 22 23 32 public class XSPMarkupLanguage extends CocoonMarkupLanguage { 33 34 37 public String getRootElement() { 38 return "page"; 39 } 40 41 45 protected LogicsheetFilter getLogicsheetFilter() { 46 return new XSPExpressionFilter(this); 47 } 48 49 61 protected AbstractXMLPipe getPreprocessFilter(String filename, 62 AbstractXMLPipe filter, 63 ProgrammingLanguage language) { 64 PreProcessFilter prefilter = new PreProcessFilter(filter, filename, language, this); 65 prefilter.enableLogging(getLogger()); 66 return prefilter; 67 } 68 69 73 79 protected class PreProcessFilter extends CocoonMarkupLanguage.PreProcessFilter { 80 public PreProcessFilter(AbstractXMLPipe filter, String filename, ProgrammingLanguage language, XSPMarkupLanguage markup) { 81 super(new XSPExpressionFilter.XMLPipeAdapter(new XSPExpressionFilter(markup), filter), filename, language); 82 } 83 } 84 } 85 | Popular Tags |