<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Design London - Energy House Digital &#187; XML</title>
	<atom:link href="http://web-design-london.biz/category/web/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://web-design-london.biz</link>
	<description>Blog</description>
	<lastBuildDate>Wed, 14 Oct 2009 11:18:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Processing XSLT with PHP</title>
		<link>http://web-design-london.biz/web/processing-xslt-with-php/</link>
		<comments>http://web-design-london.biz/web/processing-xslt-with-php/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 15:04:44 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://web-design-london.biz/?p=7</guid>
		<description><![CDATA[Processing XSLT client-side isn&#8217;t for everyone, not all browsers support it, and out of those that do, there are a few that still don&#8217;t do it well.
Of course you have the option of Saxon or various Apache modules, but what if you want a little more control, from within your web application? Easy, PHP has [...]]]></description>
			<content:encoded><![CDATA[<p>Processing XSLT client-side isn&#8217;t for everyone, not all browsers support it, and out of those that do, there are a few that still don&#8217;t do it well.</p>
<p>Of course you have the option of Saxon or various Apache modules, but what if you want a little more control, from within your web application? Easy, PHP has an XSLT Processor &#8220;built in&#8221;.</p>
<p>Quick Example;</p>
<div class="php">
<code><span style="color: #000000"><br />
<span style="color: #0000BB">&lt;?php<br />
<br />$dom&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">DomDocument</span><span style="color: #007700">();<br />
<br /></span><span style="color: #0000BB">$dom</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">load</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">'test.xml'&nbsp;</span><span style="color: #007700">);<br />
<br /></span><span style="color: #0000BB">$xslt&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">XSLTProcessor</span><span style="color: #007700">();&nbsp;<br />
<br /></span><span style="color: #0000BB">$XSL&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">DOMDocument</span><span style="color: #007700">();&nbsp;<br />
<br /></span><span style="color: #0000BB">$XSL</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">load</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">'xslt/layout.xsl'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">LIBXML_NOCDATA</span><span style="color: #007700">);&nbsp;<br />
<br /></span><span style="color: #0000BB">$xslt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">importStylesheet</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">$XSL&nbsp;</span><span style="color: #007700">);&nbsp;<br />
<br />print&nbsp;</span><span style="color: #0000BB">$xslt</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">transformToXML</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">$dom&nbsp;</span><span style="color: #007700">);<br />
<br /></span><span style="color: #0000BB">?&gt;</span>&nbsp;</span><br />
</code></div>
<p>It&#8217;s as easy as that.</p>
<p>Mike Hughes.</p>
]]></content:encoded>
			<wfw:commentRss>http://web-design-london.biz/web/processing-xslt-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
