Changed to generate wrapped document/literal