Since SQLite knows triggers, SQLite-based XUL templates should be able to rebuild themselves when a database the template relies on is modified. I filed bug 497058, and Laurent Jouanneau is already on it :-)