. # The default value is configured for a "w2mlclient" directory in the document root of the # webserver (the real document root, not the W2ML root); it is: '/w2mlclient/'. define('W2ML_CLIENT_URI', '/w2mlclient/'); # MAX_FILE_SIZE is the maximum file size (in bytes) loaded by phpW2ML. define('MAX_FILE_SIZE', 8*1024*1024); # REPLACE_W3C_EXTERNAL_DTD_SUBSET is a hack to prevent automatic DTD download from the W3C. # PhpW2ML is not a validating XML processor, but to resolve entity references like é in # documents, it must load the external entities from the doctype declaration. With a doctype # declaration like , phpW2ML (in fact libxml2 called by the # PHP interpretor) will load http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd through the # network, which is slow, unreliable, and makes the W3C server admins angry (see # http://www.w3.org/QA/2008/09/caching_xml_data_at_install_ti.html). # The solution used by phpW2ML is a hack: it replaces URI to W3C servers by an URI to a file # distributed with phpW2ML. This file contains all declarations of XHTML 1.0 named character # entities. # If you have configured a cleaner solution on your system, like local XML catalogs, # then you may set 'REPLACE_W3C_EXTERNAL_DTD_SUBSET' to FALSE. Default is TRUE. define('REPLACE_W3C_EXTERNAL_DTD_SUBSET', TRUE); # ENABLE_FILE_URI enables inclusion with file scheme URIs. Default is TRUE. define('ENABLE_FILE_URI', TRUE); # ENABLE_HTTP_URI enables inclusion with http scheme URIs. Default is TRUE. define('ENABLE_HTTP_URI', TRUE); # ENABLE_EXE_URI enables inclusion with exe scheme URIs. Default is TRUE. define('ENABLE_EXE_URI', TRUE); # DEFAULT_LOG_LIMIT suppresses log messages less important than level limit. Valid limits are # syslog constants: LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, # and LOG_DEBUG. define('DEFAULT_LOG_LIMIT', LOG_DEBUG); # CUSTOM_HTML_SERIALIZATION enables serialization of HTML with custom phpW2ML functions instead # of the PHP DOM saveHTML() method. PhpW2ML functions quote attributes values only when # necessary. FIX_SERIALIZE_* constants (see below) are not used with custom HTML serialization. # Valid values are TRUE and FALSE. define('CUSTOM_HTML_SERIALIZATION', TRUE); # FIX_SERIALIZE_ALL enables all FIX_SERIALIZE_* constants below. # FIX_SERIALIZE_NONE disables all FIX_SERIALIZE_* constants below. # Valid values are TRUE and FALSE. define('FIX_SERIALIZE_ALL', TRUE); define('FIX_SERIALIZE_NONE', FALSE); # FIX_SERIALIZE_XML_DECL enables a function that removes the XML declaration introduced in # serialized markup by libxml2 when it isn't in the W2ML source. # Valid values are TRUE and FALSE. define('FIX_SERIALIZE_XML_DECL', (FALSE || FIX_SERIALIZE_ALL) && !FIX_SERIALIZE_NONE); # FIX_SERIALIZE_META enables a function that removes the meta tag for charset introduced in # serialized markup by libxml2. Valid values are TRUE and FALSE. define('FIX_SERIALIZE_META', (FALSE || FIX_SERIALIZE_ALL) && !FIX_SERIALIZE_NONE); # FIX_SERIALIZE_EMPTY_TAGS enables a function that forces the serialization of all empty # elements with empty tags. Valid values are TRUE and FALSE. define('FIX_SERIALIZE_EMPTY_TAGS', (FALSE || FIX_SERIALIZE_ALL) && !FIX_SERIALIZE_NONE); # FIX_SERIALIZE_W2ML_NS_DECL removes all W2ML namespace declarations from markup serialized to # the HTTP client. Valid values are TRUE and FALSE. define('FIX_SERIALIZE_W2ML_NS_DECL', (FALSE || FIX_SERIALIZE_ALL) && !FIX_SERIALIZE_NONE); # W2ML_SUFFIX is the suffix of W2ML files. Files without this suffix are not parsed by phpW2ML. # All files may be parsed if W2ML_SUFFIX is the empty string. Default value is '.w2ml'. define('W2ML_SUFFIX', '.w2ml'); # W2ML_QUERY_PARAM is the URI query string parameter used to request the W2ML document. # Default value is 'w2mldoc'. define('W2ML_QUERY_PARAM', 'w2mldoc'); ### You should not need to change the next constants. # W2ML namespace name define('W2ML_NS', 'http://w2ml.org/2005/w2ml'); # XHTML namespace name define('XHTML_NS', 'http://www.w3.org/1999/xhtml'); # phpW2ML version define('SOFTWARE_VERSION', '0.8'); # REAL_W2ML_DOC_ROOT is the real path of W2ML_DOC_ROOT with ending directory separator. define('REAL_W2ML_DOC_ROOT', realpath(W2ML_DOC_ROOT).DIRECTORY_SEPARATOR); # W3C_EXTERNAL_DTD_SUBSET_REPLACEMENT is the URI to replace the URI to http://www.w3.org/ when # REPLACE_W3C_EXTERNAL_DTD_SUBSET is TRUE. define('W3C_EXTERNAL_DTD_SUBSET_REPLACEMENT', 'xhtml.ent'); ?>