For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > July 2007 > cvs: phpdoc /scripts extensions.xml.php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /scripts extensions.xml.php
Nuno Lopes

2007-07-27, 8:00 am

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/phpdo...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 <nlopess@php.net> |
+----------------------------------------------------------------------+

- $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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com