xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkess...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/templates ElemTemplateElement.java
Date Fri, 05 Oct 2001 15:15:52 GMT
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: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message