jkesselm 01/10/05 08:15:52 Modified: java/src/org/apache/xalan/templates ElemTemplateElement.java Log: Bugzilla 1549 -- resolve xml: prefix Revision Changes Path 1.45 +6 -1 xml-xalan/java/src/org/apache/xalan/templates/ElemTemplateElement.java Index: ElemTemplateElement.java =================================================================== RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemTemplateElement.java,v retrieving revision 1.44 retrieving revision 1.45 diff -u -r1.44 -r1.45 --- ElemTemplateElement.java 2001/09/28 14:49:40 1.44 +++ ElemTemplateElement.java 2001/10/05 15:15:52 1.45 @@ -838,7 +838,6 @@ */ public String getNamespaceForPrefix(String prefix, org.w3c.dom.Node context) { - this.error(XSLTErrorResources.ER_CANT_RESOLVE_NSPREFIX, null); return null; @@ -883,6 +882,12 @@ // Not found; ask our ancestors if (null != m_parentNode) return m_parentNode.getNamespaceForPrefix(prefix); + + // JJK: No ancestors; try implicit + // %REVIEW% Are there literals somewhere that we should use instead? + // %REVIEW% Is this really the best place to patch? + if("xml".equals(prefix)) + return "http://www.w3.org/XML/1998/namespace"; // No parent, so no definition return null;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]