You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2003/02/05 01:05:47 UTC

cvs commit: xml-xalan/c/src/XSLT Stylesheet.cpp

dbertoni    2003/02/04 16:05:45

  Modified:    c/src/XSLT Stylesheet.cpp
  Log:
  Make sure namespace prefixes resolve properly.  Fixes Bugzilla 16790.
  
  Revision  Changes    Path
  1.89      +4 -3      xml-xalan/c/src/XSLT/Stylesheet.cpp
  
  Index: Stylesheet.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.cpp,v
  retrieving revision 1.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- Stylesheet.cpp	21 Dec 2002 00:22:44 -0000	1.88
  +++ Stylesheet.cpp	5 Feb 2003 00:05:43 -0000	1.89
  @@ -1407,13 +1407,14 @@
   
   	// Build a table of aliases, the key is the stylesheet uri and the
   	// value is the result uri
  -	if (length(*stylesheetNamespace) == 0 ||
  -		length(*resultNamespace) == 0)
  +	if (stylesheetNamespace == 0 || resultNamespace == 0)
   	{
  -		constructionContext.error("Missing namespace URI for specified prefix");
  +		constructionContext.error("Undeclared namespace prefix");
   	}
   	else
   	{
  +		assert(length(*stylesheetNamespace) != 0  && length(*resultNamespace) != 0);
  +
   		m_namespacesHandler.setNamespaceAlias(
   				constructionContext,
   				*stylesheetNamespace,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org