$format = $render->attach(new Index()); $reader->open(Config::xml_file(), NULL, $readerOpts); $render->execute($reader); $render->detach($format); v("Indexing done", VERBOSE_INDEXING); } else { v("Skipping indexing", VERBOSE_INDEXING); } foreach ((array) Config::package() as $package) { $factory = Format_Factory::createFactory($package); // Default to all output formats specified by the package if (count(Config::output_format()) == 0) { Config::set_output_format((array) $factory->getOutputFormats()); } // Register the formats foreach (Config::output_format() as $format) { $render->attach($factory->createFormat($format)); } } // Render formats $reader = make_reader(); $reader->open(Config::xml_file(), NULL, $readerOpts); foreach ($render as $format) { $format->notify(Render::VERBOSE, true); } $render->execute($reader); v("Finished rendering", VERBOSE_FORMAT_RENDERING); /* * vim600: sw=4 ts=4 syntax=php et * vim<600: sw=4 ts=4 */