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 2001/02/14 01:11:19 UTC

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

dbertoni    01/02/13 16:11:19

  Modified:    c/src/XSLT StylesheetRoot.cpp
  Log:
  Get URI from base class, rather than constructing it again.
  
  Revision  Changes    Path
  1.36      +4 -5      xml-xalan/c/src/XSLT/StylesheetRoot.cpp
  
  Index: StylesheetRoot.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/StylesheetRoot.cpp,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- StylesheetRoot.cpp	2001/02/12 02:34:54	1.35
  +++ StylesheetRoot.cpp	2001/02/14 00:11:16	1.36
  @@ -155,12 +155,11 @@
   	m_defaultRootRule(0)
   
   {
  -	const XalanDOMString urlString = constructionContext.getURLStringFromString(m_baseIdent);
  +	// Our base class has already resolved the URI and pushed it on
  +	// the back of the include stack, so get it from there...
  +	assert(getIncludeStack().empty() == false);
   
  -	if (length(urlString) != 0)
  -	{
  -		m_importStack.push_back(urlString);
  -	}
  +	m_importStack.push_back(getIncludeStack().back());
   }