2003-09-11 12:26:53 +02:00
|
|
|
#ifndef ARABICA_PROPERTY_NAMES_H
|
|
|
|
#define ARABICA_PROPERTY_NAMES_H
|
2002-06-21 13:16:28 +02:00
|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2003-09-09 13:14:48 +02:00
|
|
|
#include <SAX/ArabicaConfig.h>
|
|
|
|
#include <SAX/XMLReader.h>
|
2005-08-15 23:09:13 +02:00
|
|
|
#include <Utils/StringAdaptor.h>
|
2002-06-21 13:16:28 +02:00
|
|
|
|
|
|
|
namespace SAX
|
|
|
|
{
|
|
|
|
|
2003-09-12 16:09:13 +02:00
|
|
|
/** The core SAX 2 parser properties. */
|
2005-08-15 23:09:13 +02:00
|
|
|
template<class string_type, class string_adaptor_type = Arabica::default_string_adaptor<string_type> >
|
2002-06-21 13:16:28 +02:00
|
|
|
struct PropertyNames
|
|
|
|
{
|
2003-09-12 16:09:13 +02:00
|
|
|
/** @name SAX 2 Properties
|
|
|
|
* @{ */
|
|
|
|
/** Register a lexical handler.
|
|
|
|
*
|
|
|
|
* The Lexical Handler is used to see some syntax events that are essential
|
|
|
|
* in some applications: comments, CDATA delimiters, selected general
|
|
|
|
* entity inclusions, and the start and end of the DTD (and declaration of
|
|
|
|
* document element name).
|
|
|
|
*
|
|
|
|
* The value assigned must implement SAX::LexicalHandler.
|
|
|
|
*/
|
|
|
|
const string_type lexicalHandler;
|
|
|
|
/** Register a Declaration Handler.
|
|
|
|
*
|
|
|
|
* Used to see most DTD declarations except those treated as lexical
|
|
|
|
* ("document element name is ...") or which are mandatory for all SAX
|
|
|
|
* parsers (DTDHandler).
|
|
|
|
*
|
|
|
|
* The value assigned must implement SAX::DeclHandler */
|
|
|
|
const string_type declHandler;
|
|
|
|
/** @} */
|
2002-06-21 13:16:28 +02:00
|
|
|
|
|
|
|
PropertyNames() :
|
2005-10-03 14:40:44 +02:00
|
|
|
lexicalHandler(string_adaptor_type::construct_from_utf8("http://xml.org/sax/handlers/LexicalHandler")),
|
|
|
|
declHandler(string_adaptor_type::construct_from_utf8("http://xml.org/sax/handlers/DeclHandler"))
|
2002-06-21 13:16:28 +02:00
|
|
|
{
|
|
|
|
} // PropertyNames
|
|
|
|
}; // struct PropertyNames
|
|
|
|
|
|
|
|
} // namespace SAX
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// end of file
|