if (null == m_functionTable) m_functionTable = new FunctionTable(); return m_functionTable.functionAvailable(methName) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
/** * Create a StylesheetHandler object, creating a root stylesheet * as the target. * * @param processor non-null reference to the transformer factory that owns this handler. * * @throws TransformerConfigurationException if a StylesheetRoot * can not be constructed for some reason. */ public StylesheetHandler(TransformerFactoryImpl processor) throws TransformerConfigurationException { Class func = org.apache.xalan.templates.FuncDocument.class; m_funcTable.installFunction("document", func); // func = new org.apache.xalan.templates.FuncKey(); // FunctionTable.installFunction("key", func); func = org.apache.xalan.templates.FuncFormatNumb.class; m_funcTable.installFunction("format-number", func); m_optimize =((Boolean) processor.getAttribute( TransformerFactoryImpl.FEATURE_OPTIMIZE)).booleanValue(); m_incremental = ((Boolean) processor.getAttribute( TransformerFactoryImpl.FEATURE_INCREMENTAL)).booleanValue(); m_source_location = ((Boolean) processor.getAttribute( TransformerFactoryImpl.FEATURE_SOURCE_LOCATION)).booleanValue(); // m_schema = new XSLTSchema(); init(processor); }
Function func = m_functionTable.getFunction(funcID); java.lang.String name = m_functionTable.getFunctionName(funcID);
/** * Initiates the function table. */ private void initFunctionTable() { funcTable_ = new FunctionTable(); funcTable_.installFunction("lower-case", LowerCaseFunction.class); }
/** * initial the function table */ private void initFunctionTable(){ m_funcTable = new FunctionTable(); }
Object funcIndexObj = getFunctionID(name);
/** * Initiates the function table. */ private void initFunctionTable() { funcTable_ = new FunctionTable(); funcTable_.installFunction("lower-case", LowerCaseFunction.class); funcTable_.installFunction("is-descendant-of-contextual-form", IsDescendantOfContextualFormFunction.class); }
/** * initial the function table */ private void initFunctionTable(){ m_funcTable = new FunctionTable(); }
Object funcIndexObj = getFunctionID(name);
if (null == m_functionTable) m_functionTable = new FunctionTable(); return m_functionTable.functionAvailable(methName) ? XBoolean.S_TRUE : XBoolean.S_FALSE;
/** * Initiates the function table. */ private void initFunctionTable() { funcTable_ = new FunctionTable(); funcTable_.installFunction("lower-case", LowerCaseFunction.class); funcTable_.installFunction("is-descendant-of-contextual-form", IsDescendantOfContextualFormFunction.class); }
Function func = m_functionTable.getFunction(funcID); java.lang.String name = m_functionTable.getFunctionName(funcID);
/** * initial the function table */ private void initFunctionTable(){ m_funcTable = new FunctionTable(); }
if (null == id) id = m_functionTable.getFunctionID(key); tok = ((Integer) id).intValue();
/** * Create a StylesheetHandler object, creating a root stylesheet * as the target. * * @param processor non-null reference to the transformer factory that owns this handler. * * @throws TransformerConfigurationException if a StylesheetRoot * can not be constructed for some reason. */ public StylesheetHandler(TransformerFactoryImpl processor) throws TransformerConfigurationException { Class func = org.apache.xalan.templates.FuncDocument.class; m_funcTable.installFunction("document", func); // func = new org.apache.xalan.templates.FuncKey(); // FunctionTable.installFunction("key", func); func = org.apache.xalan.templates.FuncFormatNumb.class; m_funcTable.installFunction("format-number", func); m_optimize =((Boolean) processor.getAttribute( TransformerFactoryImpl.FEATURE_OPTIMIZE)).booleanValue(); m_incremental = ((Boolean) processor.getAttribute( TransformerFactoryImpl.FEATURE_INCREMENTAL)).booleanValue(); m_source_location = ((Boolean) processor.getAttribute( TransformerFactoryImpl.FEATURE_SOURCE_LOCATION)).booleanValue(); // m_schema = new XSLTSchema(); init(processor); }
private static synchronized void fixupFunctionTable() { installed = false; if (new FunctionTable().functionAvailable("here")) { LOG.debug("Here function already registered"); installed = true; funcTable = new FunctionTable(); Class<?>[] args = {String.class, Class.class}; Method installFunction = FunctionTable.class.getMethod("installFunction", args);
/** * Initiates the function table. */ private void initFunctionTable() { funcTable_ = new FunctionTable(); funcTable_.installFunction("lower-case", LowerCaseFunction.class); funcTable_.installFunction("is-descendant-of-contextual-form", IsDescendantOfContextualFormFunction.class); }
Function func = m_functionTable.getFunction(funcID); java.lang.String name = m_functionTable.getFunctionName(funcID);
/** * initial the function table */ private void initFunctionTable(){ m_funcTable = new FunctionTable(); }
if (null == id) id = m_functionTable.getFunctionID(key); tok = ((Integer) id).intValue();