<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 09 Jan 2009 06:32:06 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Tim Koschuetzki's Blog: How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisite]]></title>
      <guid>http://www.phpdeveloper.org/news/8518</guid>
      <link>http://www.phpdeveloper.org/news/8518</link>
      <description><![CDATA[<p>
<i>Tim Koschuetzki</i> has a <a href="http://php-coding-practices.com/cakephp-specific/how-to-transform-html-to-textile-markup-the-cakephp-textilehelper-revisited/">new tutorial</a> posted today for CakePHP users out there - it's a method for transforming HTML content into Textile markup via the TextileHelper CakePHP helper.
</p>
<blockquote>
For a current project of mine I had to find a way to decode html into textile markup. Why? Because we are using tinyMCE to process our textareas as wyciwyg editors, which generate HTML. However, we want all output controlled via textile to allow only the textile tags. Yes, we could do it with strip_tags(), but textile is much more elegant. Plus, it was a requirement by the client. Come on and find out how to detextile html.
</blockquote>
<p>
Code is <a href="http://php-coding-practices.com/cakephp-specific/how-to-transform-html-to-textile-markup-the-cakephp-textilehelper-revisited/">included</a>  to work on the transformation: detextile, processTag, detextile_process_glyphs and detextile_process_lists. An example is included as well, showing how to input a block of HTML content to be "textile-ized". The full code is available for cutting and pasting at the bottom of <a href="http://php-coding-practices.com/cakephp-specific/how-to-transform-html-to-textile-markup-the-cakephp-textilehelper-revisited/">the post</a>.
</p>]]></description>
      <pubDate>Thu, 23 Aug 2007 08:34:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Transforming data centered XML into SQL statements]]></title>
      <guid>http://www.phpdeveloper.org/news/7798</guid>
      <link>http://www.phpdeveloper.org/news/7798</link>
      <description><![CDATA[<p>
In <a href="http://raphaelstolt.blogspot.com/2007/05/transforming-data-centered-xml-into-sql.html">this new post</a> on <i>Raphael Stolt</i>'s blog, he shows a way that you can take XML that holds SQL information (in his example INSERTs and DELETEs) and transforms them into SQL statements via XSL stylesheets.
</p>
<blockquote>
A canny data import technique that emerged from praxis, while working on the import of data-centered XML resources, is utilitizing the abilities of Xslt. The generation of the required SQL statements actually only needs a simple Xsl stylesheet which might import for an PHP XSLTProcessor object or pass to the <a href="http://xmlsoft.org/XSLT/xsltproc.html">xsltproc</a> command line tool. Both further described approaches are based upon the libxslt library and are assuming the use of XSLT 1.0.
</blockquote>
<p>
He starts with an example bit of XML that has the XSL stylesheet at the top that will be used to transform the data and the information to perform inserts on several "partner" values in the XML below. Following this, he <a href="http://raphaelstolt.blogspot.com/2007/05/transforming-data-centered-xml-into-sql.html">creates</a> a PHP class to load the file and apply the stylesheet.
</p>
<p>
He also mentions a few different approaches to the same problem - XSLTProcessor class approach returning a single SQL string , xsltproc approach and the XSLTProcessor class approach using the ability to use PHP functions as XSLT functions.
</p>]]></description>
      <pubDate>Tue, 08 May 2007 10:27:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: HTML2PHP - Transformation Tool]]></title>
      <guid>http://www.phpdeveloper.org/news/4720</guid>
      <link>http://www.phpdeveloper.org/news/4720</link>
      <description><![CDATA[Via a post over on digg.com today, there's an interesting little tool called <a href="http://www.quasarcr.com/html2php/">HTML2PHP</a> that could be useful in some certain situations.
<p>
<a href="http://www.quasarcr.com/html2php/">The tool</a> takes in whatever text input you have and performs operations on it. For example, paste in some HTML and hit the button to submit it and out the other side pops HTML formatted to echo in PHP (using print). There are other options on the tool - the ability to use printf and echo along with print, to add in newlines, and to add parenthesis (depending on your preference).
<p>
It's nothing overly impressive, but if you have a large block of HTML that you need to work with, you might <a href="http://www.quasarcr.com/html2php/">check into it</a>...]]></description>
      <pubDate>Tue, 24 Jan 2006 07:11:39 -0600</pubDate>
    </item>
  </channel>
</rss>
