On Fri, 21 May 2010 10:05:49 +0100, Richard Quadling wrote: > On 21 May 2010 10:00, pedram salehpoor <pedram.salehp...@gmail.com> > wrote: >> On Fri, May 21, 2010 at 1:20 PM, Richard Quadling >> <rquadl...@googlemail.com> wrote: >>> >>> On 21 May 2010 05:01, Philip Olson <phi...@roshambo.org> wrote: >>> > >>> > On May 20, 2010, at 8:52 PM, Yago Ferrer wrote: >>> > >>> >> Hi Philip! >>> >> >>> >> When I´m trying to compile the Spanish PHP manual I´m getting these >>> >> errors, do you know what is it? >>> >> >>> >> Warning: DOMDocument::xinclude(): XPointer evaluation failed: >>> >> #xmlns(db=http://docbook.org/ns/docbook) >>> >> xpointer(id('class.datetime')/db:refentry/db:refsect1 [...@role='description']/descendant::db:destructorsynopsis[not (@role='procedural')]) >>> >> in >>> >> /local/web/sites/edit.php.net/data/phpdoc-all/doc-base/ configure.phpon >>> >> line 613 >>> >> >>> >> Warning: DOMDocument::xinclude(): XPointer evaluation failed: >>> >> #xmlns(db=http://docbook.org/ns/docbook) >>> >> xpointer(id('class.datetimezone')/db:refentry/db:refsect1 [...@role='description']/descendant::db:destructorsynopsis[not (@role='procedural')]) >>> >> in >>> >> /local/web/sites/edit.php.net/data/phpdoc-all/doc-base/ configure.php >>> >> on line 613 >>> >> >>> >> Warning: DOMDocument::xinclude(): XPointer evaluation failed: >>> >> #xmlns(db=http://docbook.org/ns/docbook) >>> >> xpointer(id('class.dateinterval')/db:refentry/db:refsect1 [...@role='description']/descendant::db:destructorsynopsis[not (@role='procedural')]) >>> >> in >>> >> /local/web/sites/edit.php.net/data/phpdoc-all/doc-base/ configure.phpon >>> >> line 613 >>> >> >>> >> Warning: DOMDocument::xinclude(): XPointer evaluation failed: >>> >> #xmlns(db=http://docbook.org/ns/docbook) >>> >> xpointer(id('class.dateperiod')/db:refentry/db:refsect1 [...@role='description']/descendant::db:destructorsynopsis[not (@role='procedural')]) >>> >> in >>> >> /local/web/sites/edit.php.net/data/phpdoc-all/doc-base/ configure.phpon >>> >> line 613 >>> >> >>> >> Warning: DOMDocument::xinclude(): XPointer evaluation failed: >>> >> #xmlns(db=http://docbook.org/ns/docbook) >>> >> xpointer(id('class.dateperiod')/db:refentry/db:refsect1 [...@role='description']/descendant::db:methodsynopsis[not (@role='procedural')]) >>> >> in >>> >> /local/web/sites/edit.php.net/data/phpdoc-all/doc-base/ configure.php >>> >> on line 613 >>> > >>> > Nope, and I can't reproduce (even after trying a fresh doc-es >>> > checkout). >>> > >>> > However, yesterday people saw these errors when unrelated errors >>> > occurred in the manual. The mongo docs briefly had a <para> in the >>> > wrong place, yet these nasty looking datetime errors showed up >>> > (along with the correct mongo errors too). Therefore I wonder, >>> > whenever we have a problem we might see these too which is very >>> > confusing. Anyone have an idea regarding how to fix that? >>> > >>> > Regards, >>> > Philip >>> >>> Can you check the version of libxml that is being used by the online >>> editor please? >>> >>> I recently added the new xinclude/xpointer/xfallback to the datetime >>> (in all the translations). >>> >>> I did do a thorough test locally. >>> >>> I'm using Windows and have to use the --disable-libxml-check as the >>> last official win32 version of PHP is using ... >>> >>> Constant [ integer LIBXML_VERSION ] { 20703 } Constant [ string >>> LIBXML_DOTTED_VERSION ] { 2.7.3 } Constant [ string >>> LIBXML_LOADED_VERSION ] { 20703 } >>> >>> and 2.7.4+ is required or use the --disable-libxml-check to skip the >>> version check. >>> >>> >> The problem comes from some xinclude tags added recently which I can't >> trace them. >> >> Regards, >> Pedram >> >> > The problem is not the tags per se. I can and have successfully compiled > all the manuals I've altered (en, es, fa, fr, ja, tr) from the XML > through to a Windows CHM (I'm on Windows after all). > > I'm not getting the warnings that you are seeing. > > > [2010/05/21 9:42:59] [D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base] > [] >configure --with-lang=es --enable-xml-details > --with-partial=book.datetime --disable-libxml-check configure.php: $Id: > configure.php 299087 2010-05-06 17:17:45Z philip $ PHP version: > 5.3.3-dev > > Checking for source directory... D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base > Checking for output filename... D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base/.manual.xml > Checking whether to save an invalid .manual.xml... no Checking whether > to include CHM... no Checking for PHP executable... C:/PHP5/php.exe > Checking for language to build... es > Checking whether the language is supported... yes Checking for partial > build... book.datetime Checking whether to enable detailed XML error > messages... yes Generating D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base/manual.xml... > done > Generating D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base/entities/version.ent... > done > Generating D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base/scripts/file-entities.php... > done > Iterating over extension specific version files... OK Saving it... OK > Creating file D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base/entities/file-entities.ent... > done > Loading and parsing manual.xml... done. Validating manual.xml... done. > Partial manual saved to D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base/.manual.book.datetime.xml. > To build it, run 'phd -d D:\Personal > Files\Downloads\Software\Programming\PHP\Checkouts\svn\phpdoc\modules \doc-all\doc-base/.manual.book.datetime.xml'
The problem is definitely the xi:include tags. They reference sections that don't exist, notably destructorsynopsis for the datetime classes. Your patch to standardize the xi:include tags in the datetime files, r299458, introduced the bug. configure.php hides the warnings by default and that's why you're able to build all the manuals without seeing any of the warnings (the xi:fallback tag is a recovery for the missing resources but a warning is still generated). When a non-recoverable error occurs, configure.php iterates over all the warnings/errors printing them out which explains why the datetime xi:include warnings only show up when there is another error in the documentation tree. David