if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
String idIs = XSLMessages.createMessage(((null != template.getName()) ? "nameIs" : "matchPatternIs"), null); Object[] msgArgs = new Object[]{ new Integer(loopCount), idIs, ((null != template.getName()) ? template.getName().toString() : template.getMatch().getPatternString()) }; String msg = XSLMessages.createMessage("recursionTooDeep", msgArgs);
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
if (null == template.getName() && null == matchXPath) if (null != template.getName()) ElemTemplate existingTemplate = (ElemTemplate) m_namedTemplates.get(template.getName()); if (null == existingTemplate) m_namedTemplates.put(template.getName(), template); m_namedTemplates.put(template.getName(), template); new Object[]{ template.getName() });
String idIs = XSLMessages.createMessage(((null != template.getName()) ? "nameIs" : "matchPatternIs"), null); Object[] msgArgs = new Object[]{ new Integer(loopCount), idIs, ((null != template.getName()) ? template.getName().toString() : template.getMatch().getPatternString()) }; String msg = XSLMessages.createMessage("recursionTooDeep", msgArgs);
String idIs = XSLMessages.createMessage(((null != template.getName()) ? "nameIs" : "matchPatternIs"), null); Object[] msgArgs = new Object[]{ new Integer(loopCount), idIs, ((null != template.getName()) ? template.getName().toString() : template.getMatch().getPatternString()) }; String msg = XSLMessages.createMessage("recursionTooDeep", msgArgs);
String idIs = XSLMessages.createMessage(((null != template.getName()) ? "nameIs" : "matchPatternIs"), null); Object[] msgArgs = new Object[]{ new Integer(loopCount), idIs, ((null != template.getName()) ? template.getName().toString() : template.getMatch().getPatternString()) }; String msg = XSLMessages.createMessage("recursionTooDeep", msgArgs);
/** * Called after everything else has been * recomposed, and allows the function to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); // Register the function namespace (if not already registered). String namespace = getName().getNamespace(); String handlerClass = sroot.getExtensionHandlerClass(); Object[] args ={namespace, sroot}; ExtensionNamespaceSupport extNsSpt = new ExtensionNamespaceSupport(namespace, handlerClass, args); sroot.getExtensionNamespacesManager().registerExtension(extNsSpt); // Make sure there is a handler for the EXSLT functions namespace // -- for isElementAvailable(). if (!(namespace.equals(Constants.S_EXSLT_FUNCTIONS_URL))) { namespace = Constants.S_EXSLT_FUNCTIONS_URL; args = new Object[]{namespace, sroot}; extNsSpt = new ExtensionNamespaceSupport(namespace, handlerClass, args); sroot.getExtensionNamespacesManager().registerExtension(extNsSpt); } } }
/** * Called after everything else has been * recomposed, and allows the function to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); // Register the function namespace (if not already registered). String namespace = getName().getNamespace(); String handlerClass = sroot.getExtensionHandlerClass(); Object[] args ={namespace, sroot}; ExtensionNamespaceSupport extNsSpt = new ExtensionNamespaceSupport(namespace, handlerClass, args); sroot.getExtensionNamespacesManager().registerExtension(extNsSpt); // Make sure there is a handler for the EXSLT functions namespace // -- for isElementAvailable(). if (!(namespace.equals(Constants.S_EXSLT_FUNCTIONS_URL))) { namespace = Constants.S_EXSLT_FUNCTIONS_URL; args = new Object[]{namespace, sroot}; extNsSpt = new ExtensionNamespaceSupport(namespace, handlerClass, args); sroot.getExtensionNamespacesManager().registerExtension(extNsSpt); } } }