dbertoni    2003/01/27 09:26:40

  Modified:    c/src/XSLT FunctionSystemProperty.cpp
  Log:
  Make sure an unbound namespace prefix is an error.  Fixes bug 16448.
  
  Revision  Changes    Path
  1.27      +8 -1      xml-xalan/c/src/XSLT/FunctionSystemProperty.cpp
  
  Index: FunctionSystemProperty.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/FunctionSystemProperty.cpp,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- FunctionSystemProperty.cpp        3 Jan 2003 21:44:42 -0000       1.26
  +++ FunctionSystemProperty.cpp        27 Jan 2003 17:26:40 -0000      1.27
  @@ -119,7 +119,14 @@
   
                const XalanDOMString* const             nspace = 
executionContext.getNamespaceForPrefix(theBuffer);
   
  -             if (nspace != 0)
  +             if (nspace == 0)
  +             {
  +                     executionContext.error(
  +                                     "Undeclared namespace prefix",
  +                                     context,
  +                                     locator);
  +             }
  +             else
                {
                        substring(fullName, theBuffer, indexOfNSSep + 1);
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to