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/04/27 21:20:50 UTC

cvs commit: xml-xalan/c/src/XalanSourceTree XalanSourceTreeParserLiaison.cpp XalanSourceTreeParserLiaison.hpp

dbertoni    01/04/27 12:20:50

  Modified:    c/src/XalanSourceTree XalanSourceTreeParserLiaison.cpp
                        XalanSourceTreeParserLiaison.hpp
  Log:
  Fixed problems with creating source documents.
  
  Revision  Changes    Path
  1.10      +4 -3      xml-xalan/c/src/XalanSourceTree/XalanSourceTreeParserLiaison.cpp
  
  Index: XalanSourceTreeParserLiaison.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeParserLiaison.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- XalanSourceTreeParserLiaison.cpp	2001/03/29 22:13:51	1.9
  +++ XalanSourceTreeParserLiaison.cpp	2001/04/27 19:20:49	1.10
  @@ -86,7 +86,8 @@
   	m_xercesDOMSupport(),
   	m_xercesParserLiaison(m_xercesDOMSupport),
   	m_documentMap(),
  -	m_domSupport(theSupport)
  +	m_domSupport(theSupport),
  +	m_poolAllText(true)
   {
   }
   
  @@ -193,7 +194,7 @@
   XalanDocument*
   XalanSourceTreeParserLiaison::createDocument()
   {
  -	return m_xercesParserLiaison.createDocument();
  +	return createXalanSourceTreeDocument();
   }
   
   
  @@ -432,7 +433,7 @@
   XalanSourceTreeParserLiaison::createXalanSourceTreeDocument()
   {
   	XalanSourceTreeDocument* const	theNewDocument =
  -		new XalanSourceTreeDocument;
  +		new XalanSourceTreeDocument(m_poolAllText);
   
   	m_documentMap[theNewDocument] = theNewDocument;
   
  
  
  
  1.7       +26 -0     xml-xalan/c/src/XalanSourceTree/XalanSourceTreeParserLiaison.hpp
  
  Index: XalanSourceTreeParserLiaison.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XalanSourceTree/XalanSourceTreeParserLiaison.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XalanSourceTreeParserLiaison.hpp	2001/02/02 23:10:10	1.6
  +++ XalanSourceTreeParserLiaison.hpp	2001/04/27 19:20:49	1.7
  @@ -95,6 +95,30 @@
   	virtual
   	~XalanSourceTreeParserLiaison();
   
  +	/**
  +	 * Get the value of the flag which determines if the data of all
  +	 * text nodes are pooled, or just whitespace text nodes.
  +	 *
  +	 * @return true if the data of all text nodes are pooled, false otherwise.
  +	 */
  +	bool
  +	getPoolAllText() const
  +	{
  +		return m_poolAllText;
  +	}
  +
  +	/**
  +	 * Set the value of the flag which determines if the data of all
  +	 * text nodes are pooled, or just whitespace text nodes.
  +	 *
  +	 * @param fValue The new value for the flag.
  +	 */
  +	void
  +	setPoolAllText(bool	fValue)
  +	{
  +		m_poolAllText = fValue;
  +	}
  +
   	// These interfaces are inherited from XMLParserLiaison...
   
   	virtual void
  @@ -374,6 +398,8 @@
   	DocumentMapType 				m_documentMap;
   
   	XalanSourceTreeDOMSupport&		m_domSupport;
  +
  +	bool							m_poolAllText;
   };
   
   
  
  
  

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