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 2002/11/03 04:32:29 UTC

cvs commit: xml-xalan/c/src/XPath XalanQNameByValue.cpp

dbertoni    2002/11/02 19:32:29

  Modified:    c/src/XPath XalanQNameByValue.cpp
  Log:
  Simplified logic.
  
  Revision  Changes    Path
  1.8       +15 -13    xml-xalan/c/src/XPath/XalanQNameByValue.cpp
  
  Index: XalanQNameByValue.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XalanQNameByValue.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XalanQNameByValue.cpp	21 Sep 2002 01:24:21 -0000	1.7
  +++ XalanQNameByValue.cpp	3 Nov 2002 03:32:29 -0000	1.8
  @@ -318,23 +318,25 @@
   		if(::equals(m_localpart, DOMServices::s_XMLNamespace))
   		{
   			::clear(m_localpart);
  -
  -			return;
  -		}
  -
  -		const XalanDOMString* const		theNamespace = 
  -					getNamespaceForPrefix(namespaces, m_localpart);
  -
  -		if(theNamespace == 0 || 0 == length(*theNamespace))
  -		{
  -			throwException(TranscodeFromLocalCodePage("Prefix must resolve to a namespace: ") + m_localpart, locator);
   		}
   		else
   		{
  -			m_namespace = *theNamespace;
  -		}
  +			const XalanDOMString* const		theNamespace = 
  +						getNamespaceForPrefix(namespaces, m_localpart);
   
  -		m_localpart.assign(qname + indexOfNSSep + 1);
  +			if(theNamespace == 0 || 0 == length(*theNamespace))
  +			{
  +				throwException(
  +					TranscodeFromLocalCodePage("Prefix must resolve to a namespace: ") + m_localpart,
  +					locator);
  +			}
  +			else
  +			{
  +				m_namespace = *theNamespace;
  +			}
  +
  +			m_localpart.assign(qname + indexOfNSSep + 1);
  +		}
   	}
   	else
   	{
  
  
  

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