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/04/06 21:38:39 UTC

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

dbertoni    02/04/06 11:38:39

  Modified:    c/src/XSLT FunctionGenerateID.cpp Stylesheet.cpp
                        Stylesheet.hpp
                        StylesheetExecutionContextDefault.cpp
  Log:
  Removed broken document numbering code.
  
  Revision  Changes    Path
  1.21      +4 -15     xml-xalan/c/src/XSLT/FunctionGenerateID.cpp
  
  Index: FunctionGenerateID.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/FunctionGenerateID.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- FunctionGenerateID.cpp	26 Oct 2001 21:07:30 -0000	1.20
  +++ FunctionGenerateID.cpp	6 Apr 2002 19:38:39 -0000	1.21
  @@ -99,24 +99,13 @@
   	assert(theNode != 0);
   	assert(theNode->getOwnerDocument() != 0);
   
  -	const unsigned long		theNumber = theNode->getOwnerDocument()->getNumber();
  -
  -	UnsignedLongToHexDOMString(theNumber, theResult);
  +	PointerToDOMString(theNode->getOwnerDocument(), theResult);
   
   	append(theResult, XalanDOMChar(XalanUnicode::charFullStop));
   
  -	const unsigned long		theIndex = theNode->getIndex();
  -
  -	if (theIndex == 0)
  -	{
  -		// We're assuming here that each node has an implementation with a 
  -		// unique address that we can convert into a string...
  -		PointerToDOMString(theNode, theResult);
  -	}
  -	else
  -	{
  -		UnsignedLongToHexDOMString(theIndex, theResult);
  -	}
  +	// We're assuming here that each node has an implementation with a 
  +	// unique address that we can convert into a string...
  +	PointerToDOMString(theNode, theResult);
   }
   
   
  
  
  
  1.74      +0 -11     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.73
  retrieving revision 1.74
  diff -u -r1.73 -r1.74
  --- Stylesheet.cpp	4 Apr 2002 06:20:43 -0000	1.73
  +++ Stylesheet.cpp	6 Apr 2002 19:38:39 -0000	1.74
  @@ -1791,17 +1791,6 @@
   
   
   
  -unsigned long
  -Stylesheet::getNumber() const
  -{
  -	// This member functionshould not be called
  -	assert(false);	
  -
  -	return 0;
  -}
  -
  -
  -
   const XalanDOMString*
   Stylesheet::getNamespaceForPrefix(const XalanDOMString& 	prefix) const
   {
  
  
  
  1.44      +0 -3      xml-xalan/c/src/XSLT/Stylesheet.hpp
  
  Index: Stylesheet.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.hpp,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- Stylesheet.hpp	4 Apr 2002 06:20:43 -0000	1.43
  +++ Stylesheet.hpp	6 Apr 2002 19:38:39 -0000	1.44
  @@ -1085,9 +1085,6 @@
   	virtual XalanElement*
   	getElementById(const XalanDOMString&	elementId) const;
   
  -	virtual unsigned long
  -	getNumber() const;
  -
   	virtual bool
   	isIndexed() const;
   
  
  
  
  1.85      +1 -1      xml-xalan/c/src/XSLT/StylesheetExecutionContextDefault.cpp
  
  Index: StylesheetExecutionContextDefault.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/StylesheetExecutionContextDefault.cpp,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- StylesheetExecutionContextDefault.cpp	4 Apr 2002 06:20:43 -0000	1.84
  +++ StylesheetExecutionContextDefault.cpp	6 Apr 2002 19:38:39 -0000	1.85
  @@ -2215,7 +2215,7 @@
   #else
   		m_sourceTreeResultTreeFactory.reset(
   #endif
  -			new XalanSourceTreeDocument(m_xsltProcessor->getXMLParserLiaison().getNextDocumentNumber()));
  +			new XalanSourceTreeDocument);
   	}
   
   	return m_sourceTreeResultTreeFactory.get();
  
  
  

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