src/Generic/apf/APF4GenericResultCollector.cpp
// PRINTING NOTE: a former version used hard tabs here. for each former
//                hard tab, there are now two spaces.

PRINTING NOTE: a former version used hard tabs here. for each former
hard tab, there are now two spaces.
PRINTING NOTE : a former version used hard tabs here . for each former hard tab there are now two spaces .
void APF4GenericResultCollector::_printAPFDocumentHeader(OutputStream& stream,
												  const wchar_t* doc_name,
												  const wchar_t* doc_source)
{
	if(_includeXMLHeaderInfo) {
		stream << L"<?xml version=\"1.0\"?>\n";
		if (MODE == APF2004)
			stream << L"<!DOCTYPE source_file SYSTEM \"apf.v4.0.1.dtd\">\n";
		else if (MODE == APF2005)
			stream << L"<!DOCTYPE source_file SYSTEM \"apf.v5.1.1.dtd\">\n";	
		else if (MODE == APF2007)
			stream << L"<!DOCTYPE source_file SYSTEM \"apf.v5.1.2.dtd\">\n";
		else if (MODE == APF2008)
			stream << L"<!DOCTYPE source_file SYSTEM \"apf.v5.2.0.dtd\">\n";
	}
	stream << L"<source_file SOURCE=\"" << (doc_source?doc_source:L"UNKNOWN") 
		<< L"\" TYPE=\"text\" VERSION=\"2.0\" URI=\"" << doc_name
		<< L"\">\n";
	stream << L"  <document DOCID=\"" << doc_name << L"\">\n\n";
}
void APF4GenericResultCollector :: _printAPFDocumentHeader ( OutputStream & stream , const wchar_t * doc_name , const wchar_t * doc_source ) { if ( _includeXMLHeaderInfo ) { stream << L" \" \" \n " ; if ( MODE == APF2004 ) stream << L" \" \" \n " ; else if ( MODE == APF2005 ) stream << L" \" \" \n " ; else if ( MODE == APF2007 ) stream << L" \" \" \n " ; else if ( MODE == APF2008 ) stream << L" \" \" \n " ; } stream << L" \" " << ( doc_source ? doc_source : L" " ) << L" \" \" \" \" \" \" " << doc_name << L" \" \n " ; stream << L" \" " << doc_name << L" \" \n \n " ; }
PRINTING NOTE: a former version used hard tabs here.
PRINTING NOTE : a former version used hard tabs here .