<?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>Chryzo's Notepad &#187; WordPress</title>
	<atom:link href="http://www.chryzo.net/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chryzo.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 20 Jul 2010 19:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress Xslt Processor plugin &#8211; follow up</title>
		<link>http://www.chryzo.net/2009/04/wordpress-xslt-processor-plugin-follow-up/</link>
		<comments>http://www.chryzo.net/2009/04/wordpress-xslt-processor-plugin-follow-up/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 06:05:41 +0000</pubDate>
		<dc:creator>Chryzo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.chryzo.net/?p=74</guid>
		<description><![CDATA[So, a user of the plugin asked me on how to make the plugin also have parameters for the xsl file. And I ended up coding it because it seemed simpler that way. This this post servers as much as a test bed as a presentation of the different kind of options one can use: [...]]]></description>
			<content:encoded><![CDATA[<p>So, a user of the plugin asked me on how to make the plugin also have parameters for the xsl file. And I ended up coding it because it seemed simpler that way.</p>
<p>This this post servers as much as a test bed as a presentation of the different kind of options one can use:</p>
<p>So lets start with the most basic way to use this plugin:</p>
<p>Use:</p>
<blockquote><p>
&#91;XmlProcessor wp-content/plugins/CPT_XslProcessor/example]
</p></blockquote>
<p>Result</p>
<blockquote><p>
[XmlProcessor wp-content/plugins/CPT_XslProcessor/example]
</p></blockquote>
<p>or: </p>
<blockquote><p>
&#91;XmlProcessor xml=&#8221;wp-content/plugins/CPT_XslProcessor/example.xml&#8221; xslt=&#8221;wp-content/plugins/CPT_XslProcessor/example.xsl&#8221;]
</p></blockquote>
<p>Result:</p>
<blockquote><p>
[XmlProcessor xml="wp-content/plugins/CPT_XslProcessor/example.xml" xslt="wp-content/plugins/CPT_XslProcessor/example.xsl"]
</p></blockquote>
<p>Now, lets say you want to add options to the xsl file:</p>
<p>Use:</p>
<blockquote><p>
&#91;XmlProcessor wp-content/plugins/CPT_XslProcessor/example params=&#8221;default_param=this is the replaced default parameter&#8221;]
</p></blockquote>
<p>Result:</p>
<blockquote><p>
[XmlProcessor wp-content/plugins/CPT_XslProcessor/example params="default_param=this is the replaced default parameter"]
</p></blockquote>
<p>or:</p>
<blockquote><p>
&#91;XmlProcessor xml=&#8221;xml_filepath&#8221; xslt=&#8221;xslt_filepath&#8221; params=&#8221;default_param=this is the replaced default parameter&#8221;]
</p></blockquote>
<p>Result:</p>
<blockquote><p>
[XmlProcessor xml="wp-content/plugins/CPT_XslProcessor/example.xml" xslt="wp-content/plugins/CPT_XslProcessor/example.xsl" params="default_param=this is the replaced default parameter"]
</p></blockquote>
<p>And that should actually be working now <img src='http://www.chryzo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.chryzo.net/2009/04/wordpress-xslt-processor-plugin-follow-up/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Xslt Processor plugin development</title>
		<link>http://www.chryzo.net/2009/04/wordpress-xslt-processor-plugin-development/</link>
		<comments>http://www.chryzo.net/2009/04/wordpress-xslt-processor-plugin-development/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 12:20:50 +0000</pubDate>
		<dc:creator>Chryzo</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.chryzo.net/?p=50</guid>
		<description><![CDATA[Need If any of you actually read my about me page, you know that this blog ended up being more than foreseen. Thus I required to have more liberty in some of the things i wanted to do. Typically you may have a resume in a pdf or document format. How do I include such [...]]]></description>
			<content:encoded><![CDATA[<h3>Need</h3>
<p>If any of you actually read my about me page, you know that this blog ended up being more than foreseen. Thus I required to have more liberty in some of the things i wanted to do.</p>
<p>Typically you may have a resume in a pdf or document format. How do I include such a document inside the theme of WordPress ? How do I include content from a webservice / an xml document in WordPress?</p>
<p>To answer part of this need, I made a request on the wordpress forum to no avail and I ended up coding it. Fortunately the WordPress API is very well made though the documentation is a bit lacking in some places. In WordPress you can have:</p>
<ul>
<li><a href="http://codex.wordpress.org/Plugin_API/Action_Reference">Actions</a></li>
<li><a href="http://codex.wordpress.org/Plugin_API/Filter_Reference">Filters</a></li>
<li><a href="http://codex.wordpress.org/Shortcode_API">Shortcode</a></li>
</ul>
<p>First I tried using filters but due to the encoding and escaping done by wordpress my regular expressions would not work. I loaded my prefered IRC client and connected to the #wordpress channel on freenode. Lots of help and advice there and information too. Taking their advice into account I used Shortcode which actually remove all the requirements for parsing the code yourself. WordPress provides the Shortcode API for that.</p>
<h3>What about the Plugin ?</h3>
<p>The plugin that I am now using takes an XML and XSLT files, process it and output to the window. For an example of how to use it see my &#8220;resume&#8221; pages.</p>
<p>If you want to use this plugin, you can find the latest version on WordPress: <a href="http://wordpress.org/extend/plugins/xslprocessor/">XslProcessor</a></p>
<p>(At the time of this note, the code is not yet uploaded. Approval from WordPress has not yet been received)</p>
<p>Hope you find it as usefull as I do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chryzo.net/2009/04/wordpress-xslt-processor-plugin-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
