final String prefix = generateNamespacePrefix(); handler.startElement(prefix+':'+name.substring(col+1)); handler.namespace(prefix, name.substring(0,col));
final String uri = name.substring(0,col); final String prefix = handler.getPrefix(uri); final String local = name.substring(col+1); if (prefix.equals(EMPTYSTRING)) handler.startElement(local); else handler.startElement(prefix+':'+local);
    public String shallowCopy(final int node, TransletOutputHandler handler)	throws TransletException {	switch(_type[node]) {	case ROOT: // do nothing	    return EMPTYSTRING;	case TEXT:	    handler.characters(_text,			       _offsetOrChild[node],			       _lengthOrAttr[node]);	    return null;	case PROCESSING_INSTRUCTION:	    copyPI(node, handler);	    return null;	case COMMENT:	    return null;	default:                  // element or attribute	    final String name = getNodeName(node);	    if (isElement(node)) {		// Copy element name - start tag		int col = name.lastIndexOf(':');		if (col > 0) {		    final String prefix = generateNamespacePrefix();		    handler.startElement(prefix+':'+name.substring(col+1));		    handler.namespace(prefix, name.substring(0,col));		}		else {		    handler.startElement(name);		}		return(name);	    }	    else {                  // attribute		handler.attribute(name, makeStringValue(node));	    }	    return null;	}    }