<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: OPML to HTML via JavaScript</title>
	<atom:link href="http://www.phpied.com/opml-to-html-via-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/opml-to-html-via-javascript/</link>
	<description>Stoyan&#039;s blog about &#60;a href=&#34;/category/xhtml&#34; class=&#34;tag-minor&#34;&#62;(x)html(5)&#60;/a&#62;, &#60;a href=&#34;/category/ajax&#34; class=&#34;tag-major&#34;&#62;ajax&#60;/a&#62;, &#60;a href=&#34;/category/bookmarklets&#34; class=&#34;tag-major&#34;&#62;bookmarklets&#60;/a&#62;, &#60;a href=&#34;/category/browsers&#34; class=&#34;tag-minor&#34;&#62;browsers&#60;/a&#62;, &#60;a href=&#34;/category/css&#34; class=&#34;tag-normal&#34;&#62;css&#60;/a&#62;, &#60;a href=&#34;/category/firebug&#34; class=&#34;tag-minor&#34;&#62;firebug&#60;/a&#62;, &#60;a href=&#34;/category/javascript&#34; class=&#34;tag-numero-uno&#34;&#62;javascript&#60;/a&#62;, &#60;a href=&#34;/category/json&#34; class=&#34;tag-normal&#34;&#62;json&#60;/a&#62;, &#60;a href=&#34;/category/mdb2&#34; class=&#34;tag-minor&#34;&#62;mdb2&#60;/a&#62;, &#60;a href=&#34;/category/mysql&#34; class=&#34;tag-normal&#34;&#62;mysql&#60;/a&#62;, &#60;a href=&#34;/category/pear&#34; class=&#34;tag-numero-uno&#34;&#62;pear&#60;/a&#62;, &#60;a href=&#34;/category/performance&#34; class=&#34;tag-major&#34;&#62;performance&#60;/a&#62;, &#60;a href=&#34;/category/php&#34; class=&#34;tag-numero-uno&#34;&#62;php&#60;/a&#62;, &#60;a href=&#34;/category/phpbb&#34; class=&#34;tag-major&#34;&#62;phpbb&#60;/a&#62;, &#60;a href=&#34;/category/tools&#34; class=&#34;tag-normal&#34;&#62;tools&#60;/a&#62;, &#60;a href=&#34;/category/yslow&#34; class=&#34;tag-minor&#34;&#62;yslow&#60;/a&#62;, &#60;a href=&#34;/category/yui&#34; class=&#34;tag-normal&#34;&#62;yui&#60;/a&#62;, &#60;a href=&#34;/category/writing&#34; class=&#34;tag-minor&#34;&#62;writing&#60;/a&#62;, &#60;a href=&#34;/category/music&#34; class=&#34;tag-major&#34;&#62;music&#60;/a&#62;,... &#60;a href=&#34;/category/life-and-everything&#34; class=&#34;tag-normal&#34;&#62;life and everything&#60;/a&#62;.</description>
	<lastBuildDate>Sat, 11 Feb 2012 14:07:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: phpied.com &#187; Blog Archive &#187; Personal news update Nov/06</title>
		<link>http://www.phpied.com/opml-to-html-via-javascript/#comment-28050</link>
		<dc:creator>phpied.com &#187; Blog Archive &#187; Personal news update Nov/06</dc:creator>
		<pubDate>Thu, 02 Nov 2006 16:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/opml-to-html-via-javascript/#comment-28050</guid>
		<description>[...] I think that&#039;s about it for SAP. Otherwise, as usual, I get easily excited by different things, so I&#039;ve been doing this and that, here and there, on my own terms, relaxing, without any deadlines preasure. [...]</description>
		<content:encoded><![CDATA[<p>[...] I think that&#8217;s about it for SAP. Otherwise, as usual, I get easily excited by different things, so I&#8217;ve been doing this and that, here and there, on my own terms, relaxing, without any deadlines preasure. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.phpied.com/opml-to-html-via-javascript/#comment-18467</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Thu, 12 Oct 2006 19:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/opml-to-html-via-javascript/#comment-18467</guid>
		<description>Thanks Gonzo for sharrng this! I must admit, the thought of using XSLT did cross my mind, I mean that&#039;s what it&#039;s made for - translating documents. Actually this would have been a by-the-book example of why XSLT is useful. I find it however just a bit harder to implement and in my case I needed a quick/dirty solution. My solution is maybe shorter than what the XSL sheet alone would&#039;ve been.

Thanks again fo sharing the code.

BTW, have you looked at G&#039;s &lt;a href=&quot;http://goog-ajaxslt.sourceforge.net/&quot; rel=&quot;nofollow&quot;&gt;ajaxslt&lt;/a&gt; library? It should probably work in Opera too.

BBTW, are you the same Gonzo from the Math High School in Sofia? You had that cool 12-string guitar? ;) Drop me an email - ssttoo at gmail</description>
		<content:encoded><![CDATA[<p>Thanks Gonzo for sharrng this! I must admit, the thought of using XSLT did cross my mind, I mean that&#8217;s what it&#8217;s made for &#8211; translating documents. Actually this would have been a by-the-book example of why XSLT is useful. I find it however just a bit harder to implement and in my case I needed a quick/dirty solution. My solution is maybe shorter than what the XSL sheet alone would&#8217;ve been.</p>
<p>Thanks again fo sharing the code.</p>
<p>BTW, have you looked at G&#8217;s <a href="http://goog-ajaxslt.sourceforge.net/" rel="nofollow">ajaxslt</a> library? It should probably work in Opera too.</p>
<p>BBTW, are you the same Gonzo from the Math High School in Sofia? You had that cool 12-string guitar? <img src='http://www.phpied.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Drop me an email &#8211; ssttoo at gmail</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy Stephen</title>
		<link>http://www.phpied.com/opml-to-html-via-javascript/#comment-16546</link>
		<dc:creator>Amy Stephen</dc:creator>
		<pubDate>Fri, 06 Oct 2006 16:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/opml-to-html-via-javascript/#comment-16546</guid>
		<description>Wow! lol! OK. I gotta learn this stuff - it&#039;s way to marvelously geeky to not jump in and partake! You are very motivating!

Thanks Stoyan - you are the coolest and the sweetest, too!

Amy :)</description>
		<content:encoded><![CDATA[<p>Wow! lol! OK. I gotta learn this stuff &#8211; it&#8217;s way to marvelously geeky to not jump in and partake! You are very motivating!</p>
<p>Thanks Stoyan &#8211; you are the coolest and the sweetest, too!</p>
<p>Amy <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gonzo</title>
		<link>http://www.phpied.com/opml-to-html-via-javascript/#comment-16445</link>
		<dc:creator>Gonzo</dc:creator>
		<pubDate>Fri, 06 Oct 2006 07:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/opml-to-html-via-javascript/#comment-16445</guid>
		<description>Hi, Stoyan, I&#039;ve been reading your blog for a while, cool! 
While working on this, did you consider using XSLT? &#039;Cause I,ve been doing the same thing (converting XML to HTML in the browser) with XSLT and it&#039;s quite simple. The only problem is that Opera does not support it.
The code:

/**
* Transform XML document into HTML string 
*
* @param xslStylesheet DOM object, containing the XSL transformation definition
* @param xmlData DOM object, containing the XML to be transformed
*/
function applyXSL(xslStylesheet,xmlData) {
	var output;
	if (browser==&#039;ie&#039;){
		// IE stuff
		objSrcTree = new ActiveXObject(Microsoft.XMLDOM);
		objSrcTree.async = false;
		objSrcTree.load(xmlData);
		
		objXSLT=new ActiveXObject(Msxml2.FreeThreadedDOMDocument.5.0);
		objXSLT.async = false;
		objXSLT.load(xslStylesheet);
		
		objCache = new ActiveXObject(Msxml2.XSLTemplate.5.0);
		objCache.stylesheet = objXSLT;
		
		var objXSLTProc = objCache.createProcessor();
		objXSLTProc.input = objSrcTree;
		
		objXSLTProc.transform();
		output=objXSLTProc.output
	}
	else{
		// Mozilla
		var processor = new XSLTProcessor();
		processor.importStylesheet(xslStylesheet);
		
		var newDocument = processor.transformToDocument(xmlData);
		var serializer = new XMLSerializer();
		output = serializer.serializeToString(newDocument);
	}
	return output;
}

This function expects you have previously done some browser detection and have created DOM objects for the XML document and the stylesheet.</description>
		<content:encoded><![CDATA[<p>Hi, Stoyan, I&#8217;ve been reading your blog for a while, cool!<br />
While working on this, did you consider using XSLT? &#8216;Cause I,ve been doing the same thing (converting XML to HTML in the browser) with XSLT and it&#8217;s quite simple. The only problem is that Opera does not support it.<br />
The code:</p>
<p>/**<br />
* Transform XML document into HTML string<br />
*<br />
* @param xslStylesheet DOM object, containing the XSL transformation definition<br />
* @param xmlData DOM object, containing the XML to be transformed<br />
*/<br />
function applyXSL(xslStylesheet,xmlData) {<br />
	var output;<br />
	if (browser==&#8217;ie&#8217;){<br />
		// IE stuff<br />
		objSrcTree = new ActiveXObject(Microsoft.XMLDOM);<br />
		objSrcTree.async = false;<br />
		objSrcTree.load(xmlData);</p>
<p>		objXSLT=new ActiveXObject(Msxml2.FreeThreadedDOMDocument.5.0);<br />
		objXSLT.async = false;<br />
		objXSLT.load(xslStylesheet);</p>
<p>		objCache = new ActiveXObject(Msxml2.XSLTemplate.5.0);<br />
		objCache.stylesheet = objXSLT;</p>
<p>		var objXSLTProc = objCache.createProcessor();<br />
		objXSLTProc.input = objSrcTree;</p>
<p>		objXSLTProc.transform();<br />
		output=objXSLTProc.output<br />
	}<br />
	else{<br />
		// Mozilla<br />
		var processor = new XSLTProcessor();<br />
		processor.importStylesheet(xslStylesheet);</p>
<p>		var newDocument = processor.transformToDocument(xmlData);<br />
		var serializer = new XMLSerializer();<br />
		output = serializer.serializeToString(newDocument);<br />
	}<br />
	return output;<br />
}</p>
<p>This function expects you have previously done some browser detection and have created DOM objects for the XML document and the stylesheet.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

