nlopess Fri Jul 27 10:42:59 2007 UTC
Modified files:
/phpdoc/scripts extensions.xml.php
Log:
updates for docbook 5
http://cvs.php.net/viewvc.cgi/phpdoc/scripts/extensions.xml.php?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/scripts/extensions.xml.php
diff -u phpdoc/scripts/extensions.xml.php:1.7
phpdoc/scripts/extensions.xml.php:1.8
--- phpdoc/scripts/extensions.xml.php:1.7 Thu Jun 14 01:51:18 2007
+++ phpdoc/scripts/extensions.xml.php Fri Jul 27 10:42:59 2007
@@ -16,7 +16,7 @@
| Authors: Nuno Lopes <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: extensions.xml.php,v 1.7 2007/06/14 01:51:18 philip Exp $
+ $Id: extensions.xml.php,v 1.8 2007/07/27 10:42:59 nlopess Exp $
*/
@@ -42,7 +42,7 @@
$miss = array('Purpose'=>1, 'Membership'=>1);
// get the extension's name
- preg_match('/<reference\s+id=[\'"]([^\'"]+)[\'"]>/S', $file, $match);
+ preg_match('/<reference[^>]+(?:xml:)?id=[\'"]([^\'"]+)[\'"]/S', $file,
$match);
if (empty($match[1])) {
$debug['unknown-extension'][] = $filename;
continue;
@@ -113,17 +113,17 @@
foreach ($simplexml->children() as $node) {
- $tmp = explode('.', (string)$node->attributes());
+ $tmp = explode('.', (string)$node->attributes('xml', true));
$section = ucfirst($tmp[1]); // Purpose, State or Membership
foreach ($node->children() as $topnode) {
- $tmp = explode('.', (string)$topnode->attributes());
+ $tmp = explode('.', (string)$topnode->attributes('xml',
true));
$topname = $tmp[count($tmp)-1];
// this means that we have 2 levels (e.g. basic.*)
if ($topnode->section->itemizedlist) {
foreach ($topnode as $lastnode) {
- $tmp = explode('.',
(string)$lastnode->attributes());
+ $tmp = explode('.',
(string)$lastnode->attributes('xml', true));
$name = $tmp[1].'.'.$tmp[2];
$lastnode->itemizedlist = PHP_EOL; // clean the
list