XSL in PHP5

Programming, for all ages and all languages.
Post Reply
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

XSL in PHP5

Post by B.E »

How do you transform a multiple input documents to a single output html in PHP 5, using XSLT?

I know to do it pre PHP 5 with this:

Code: Select all

<?
	$XML = implode('', file($XML_File));
	$XSL = implode('', file($XSL_File));
	$XML_Messages = $Messages->xml_all_messages();


	$Processor = xslt_create();
	xslt_set_encoding($Processor, 'UTF-8');

	$Args = array('/_xml' => $XML,
		"/_xml_messages" => $XML_Messages,
		'/_xsl' => $XSL);

	$HTML = xslt_process($Processor, 'arg:/_xml', 'arg:/_xsl', NULL, $Args);
	xslt_free($Processor);
?>
But I've been googleing for 3 hours and can't find a single thing.
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

XSLT makes my brain bleed. I used to use it for my documentation (DocBook) - not any more!
Post Reply