mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 13:21:51 +00:00
Restructure directory to make it more amenable to CSS by merging output with ./
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@400 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
aa0838492e
commit
9dd4dcb27a
@ -84,8 +84,8 @@ foreach($definition->info as $namespace_name => $namespace_info) {
|
|||||||
|
|
||||||
// print_r($dom_document->saveXML());
|
// print_r($dom_document->saveXML());
|
||||||
|
|
||||||
// save a copy of the raw XML for good measure
|
// save a copy of the raw XML
|
||||||
$dom_document->save('output/configdoc.xml');
|
$dom_document->save('configdoc.xml');
|
||||||
|
|
||||||
// load the stylesheet
|
// load the stylesheet
|
||||||
$xsl_stylesheet_name = 'plain';
|
$xsl_stylesheet_name = 'plain';
|
||||||
@ -104,7 +104,7 @@ $html_output = $xsl_processor->transformToXML($dom_document);
|
|||||||
$html_output = str_replace('/>', ' />', $html_output); // <br /> not <br>
|
$html_output = str_replace('/>', ' />', $html_output); // <br /> not <br>
|
||||||
|
|
||||||
// write it to a file (todo: parse into seperate pages)
|
// write it to a file (todo: parse into seperate pages)
|
||||||
file_put_contents("output/$xsl_stylesheet_name.html", $html_output);
|
file_put_contents("$xsl_stylesheet_name.html", $html_output);
|
||||||
|
|
||||||
// output so you can see the fruits of your work!
|
// output so you can see the fruits of your work!
|
||||||
echo $html_output;
|
echo $html_output;
|
||||||
|
Loading…
Reference in New Issue
Block a user