<?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>Wed, 22 May 2013 08:10:17 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Converting DocBook4 to DocBook5]]></title>
      <guid>http://www.phpdeveloper.org/news/16611</guid>
      <link>http://www.phpdeveloper.org/news/16611</link>
      <description><![CDATA[<p>
In <a href="http://weierophinney.net/matthew/archives/264-Converting-DocBook4-to-DocBook5.html">this new post</a> to his blog <i>Matthew Weier O'Phinney</i> looks at the steps he took to convert over the documentation for the Zend Framework 2 from the DocBook 4 formatting over to DocBook 5. Included in the post is some of the (PHP and bash) code he used to make the switch.
</p>
<blockquote>
Within the <a href="https://github.com/zendframework/zf2">Zend Framework 2 repository</a>, I recently performed a conversion from <A href="http://docbook.org/">DocBook</a> 4 to 5. [...] Interestingly, for DocBook5 being available in beta since 2005 and an official standard since 2009, there is very little material on migrating from DocBook 4 to 5.
</blockquote>
<p>
Right from the start he came across a few problems with the included conversion process that're a part of the "db4-update.xsl" definitions. 
 He has a list of eight steps he had to perform on the current DocBook 4 formatted documentation to make the conversion work smoothly including:
</p>
<ul>
<li>Identify files containing entity declarations, and skip them.
<li>Run the XML file through the db4-upgrade.xsl stylesheet and restore XML entities from the previously placed markers
<li>Fix programlisting elements (replaces entities with original text and wraps in CDATA).
</ul>
<p>
He details these steps in a few different sections talking about handling the entities, creating some helper scripts and how to put the two code parts together in a single bash script that can be run on the entire documentation set. If you're just looking for the code, you can find it <a href="https://github.com/weierophinney/docbook5-migration">on his github account</a>.
</p>]]></description>
      <pubDate>Wed, 20 Jul 2011 09:55:50 -0500</pubDate>
    </item>
  </channel>
</rss>
