else if ((_xsltc.getStylesheet() != null) && (_xsltc.getStylesheet().isExtension(uri))) { node = new UnsupportedElement(uri, prefix, local); UnsupportedElement element = (UnsupportedElement)node; element.setErrorMessage(UNSUPPORTED_EXT_ERROR+ prefix+":"+local);
else { Stylesheet sheet = _xsltc.getStylesheet(); if ((sheet != null) && (sheet.isExtension(uri))) { if (sheet != (SyntaxTreeNode)_parentStack.peek()) { node = new UnsupportedElement(uri, prefix, local); UnsupportedElement elem = (UnsupportedElement)node; elem.setErrorMessage(UNSUPPORTED_EXT_ERROR+ prefix+":"+local); } }
    public SyntaxTreeNode makeInstance(String uri, String prefix, String local){	QName  qname = getQName(uri, prefix, local);	String className = (String)_instructionClasses.get(qname);	SyntaxTreeNode node = null;	if (className != null) {	    try {		final Class clazz = Class.forName(className);		node = (SyntaxTreeNode)clazz.newInstance();		node.setQName(qname);		node.setParser(this);		if (node instanceof Stylesheet) {		    _xsltc.setStylesheet((Stylesheet)node);		}	    }	    catch (ClassNotFoundException e) {		reportError(Constants.ERROR,		    new ErrorMsg(CLASS_NOT_FOUND+className));	    }	    catch (Exception e) {		reportError(Constants.ERROR,		    new ErrorMsg(INTERNAL_ERROR+e.getMessage()));	    }	}	else {	    if (uri != null) {		// Check if the element belongs in our namespace		if (uri.equals(XSLT_URI)) {		    node = new UnsupportedElement(uri, prefix, local);		    UnsupportedElement element = (UnsupportedElement)node;		    element.setErrorMessage(UNSUPPORTED_XSL_ERROR+local);		}		// Check if this is an XSLTC extension element		else if (uri.equals(TRANSLET_URI)) {		    node = new UnsupportedElement(uri, prefix, local);		    UnsupportedElement element = (UnsupportedElement)node;		    element.setErrorMessage(INVALID_EXT_ERROR+local);		}		// Check if this is an extension of some other XSLT processor		else if ((_xsltc.getStylesheet() != null) &&			 (_xsltc.getStylesheet().isExtension(uri))) {		    node = new UnsupportedElement(uri, prefix, local);		    UnsupportedElement element = (UnsupportedElement)node;		    element.setErrorMessage(UNSUPPORTED_EXT_ERROR+					    prefix+":"+local);		}	    }	    if (node == null) node = new LiteralElement();	}	if ((node != null) && (node instanceof LiteralElement)) {	    ((LiteralElement)node).setQName(qname);	}	return(node);    }