mmidy       00/02/10 12:06:31

  Modified:    src/org/apache/xalan/xslt StylesheetHandler.java
  Log:
  Issue a warning for unresolved namespace prefixes
  
  Revision  Changes    Path
  1.15      +4 -1      
xml-xalan/src/org/apache/xalan/xslt/StylesheetHandler.java
  
  Index: StylesheetHandler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/src/org/apache/xalan/xslt/StylesheetHandler.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- StylesheetHandler.java    2000/01/31 07:55:53     1.14
  +++ StylesheetHandler.java    2000/02/10 20:06:31     1.15
  @@ -406,7 +406,10 @@
       String localName = getLocalName(name);
       ElemTemplateElement elem = null;
       int origStackSize = m_elems.size();
  -    if(isXSLTNameSpace(ns))
  +    // Issue a warning for unresolved prefixes
  +    if (null == ns && name.indexOf(":")>0)
  +      m_processor.warn(XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX, new 
Object[] {name});
  +    else if(isXSLTNameSpace(ns))
       {
         if(null != m_stylesheet.m_XSLNameSpaceURL)
           m_stylesheet.m_XSLNameSpaceURL = ns;
  
  
  

Reply via email to