Fix for attribset24.


git-svn-id: https://svn.apache.org/repos/asf/xalan/java/trunk@336216 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/org/apache/xalan/xsltc/runtime/TextOutput.java b/src/org/apache/xalan/xsltc/runtime/TextOutput.java
index e524977..4e7a27e 100644
--- a/src/org/apache/xalan/xsltc/runtime/TextOutput.java
+++ b/src/org/apache/xalan/xsltc/runtime/TextOutput.java
@@ -791,14 +791,14 @@
      * an attribute. If at runtime, when the qname of the attribute is
      * known, another prefix is specified for the attribute, then we can get 
      * a qname of the form "ns?:otherprefix:name". This function patches the 
-     * qname by simply ignoring the generated prefix.
+     * qname by simply ignoring "otherprefix".
      */
     private static String patchQName(String qname) throws TransletException {
 	final int lastColon = qname.lastIndexOf(':');
 	if (lastColon > 0) {
 	    final int firstColon = qname.indexOf(':');
 	    if (firstColon != lastColon) {
-		return qname.substring(firstColon + 1);
+		return qname.substring(0, firstColon) + qname.substring(lastColon);
 	    }
 	}
 	return qname;