--- parser3/src/main/pa_globals.C 2002/08/05 11:28:10 1.135 +++ parser3/src/main/pa_globals.C 2002/08/19 09:26:53 1.138 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_GLOBALS_C="$Date: 2002/08/05 11:28:10 $"; +static const char* IDENT_GLOBALS_C="$Date: 2002/08/19 09:26:53 $"; #include "pa_config_includes.h" @@ -336,7 +336,6 @@ void pa_globals_init(Pool& pool) { charsets_name=NEW String(pool, CHARSETS_NAME); mime_types_name=NEW String(pool, MIME_TYPES_NAME); - vfile_mime_type_name=NEW String(pool, VFILE_MIME_TYPE_NAME); origins_mode_name=NEW String(pool, ORIGINS_MODE_NAME); class_path_name=NEW String(pool, CLASS_PATH_NAME); @@ -397,6 +396,7 @@ void pa_globals_init(Pool& pool) { *columns+=NEW String(pool, column); // .i column name } *columns+=NEW String(pool, DATE_CALENDAR_WEEKNO_NAME); + *columns+=NEW String(pool, DATE_CALENDAR_WEEKYEAR_NAME); date_calendar_table_template=NEW Table(pool, 0, columns); } @@ -449,7 +449,10 @@ void pa_globals_init(Pool& pool) { xmlLoadExtDtdDefaultValue |= XML_DETECT_IDS; // Bit in the loadsubset context field to tell to do complete the elements attributes lists // with the ones defaulted from the DTDs - //never added yet xmlLoadExtDtdDefaultValue |= XML_COMPLETE_ATTRS; + xmlLoadExtDtdDefaultValue |= XML_COMPLETE_ATTRS; + + // validate each document after load/create (?) + //xmlDoValidityCheckingDefaultValue = 1; //regretfully this not only replaces entities on parse, but also on generate xmlSubstituteEntitiesDefault(1); // never switched this on xmlIndentTreeOutput=1;