src/SerifHTTPServer/ProcessDocumentTask.cpp
// Check to make sure the language attribute matches our configuration.

Check to make sure the language attribute matches our configuration.
Check to make sure the language attribute matches our configuration .
void checkLanguageAttribute(XMLTheoryElement docElem) {
		using namespace SerifXML;
		xstring language_lib = transcodeToXString(SerifVersion::getSerifLanguage().toString());
		const XMLCh* language = docElem.getAttribute<const XMLCh*>(X_language, 0);
		if (!language)
			throw UnexpectedInputException("checkLanguageAttribute", 
				"The \"language\" attribute is required in the input document"); 
		if (XMLString::compareIString(language, language_lib.c_str()) != 0)
			throw UnexpectedInputException("checkLanguageAttribute", 
				("This server only supports language=\"" +  
				 transcodeToStdString(language_lib.c_str())+"\"").c_str());
	}
void checkLanguageAttribute ( XMLTheoryElement docElem ) { using namespace SerifXML ; xstring language_lib = transcodeToXString ( SerifVersion :: getSerifLanguage ( ) . toString ( ) ) ; const XMLCh * language = docElem . getAttribute < const XMLCh * > ( X_language , 0 ) ; if ( ! language ) throw UnexpectedInputException ( " " , " \" \" " ) ; if ( XMLString :: compareIString ( language , language_lib . c_str ( ) ) != 0 ) throw UnexpectedInputException ( " " , ( " \" " + transcodeToStdString ( language_lib . c_str ( ) ) + " \" " ) . c_str ( ) ) ; }
Check to make sure the language attribute matches our configuration.
Check to make sure the language attribute matches our configuration .