applyXSLT('opml-to-xoxo.xsl', $data, array( )); $sane = $driver->applyXSLT('sanitize-document.xsl', $doc, array( 'key' => $key)); $out = $sane->saveXML(); } else { } if ($out !== FALSE) { // Attempt to store the sanitized document. if (FALSE !== $driver->store->put($key, $out)) { header("Location: ".$driver->config['BASE_URL'].'/outlines'.$key); return; } } $driver->tpl->assign('out', $out); $driver->tpl->assign('data', $data); $driver->tpl->assign('is_url', $is_url); $driver->tpl->display('import.tpl.php'); ?>