bjori@anden:~/Sources/php/phpdoc $ rm -rf doc-base/.manual.xml  out
bjori@anden:~/Sources/php/phpdoc $ /usr/bin/php doc-base/configure.php
--with-php='/usr/bin/php' --generate='en/preface.xml';
configure.php: $Id: configure.php 330577 2013-06-20 23:22:04Z bjori $
PHP version: 5.3.15

LibXML 2.7.4+ added a 'feature' to break things, typically namespace
related, and unfortunately we must require it.
For a few related details, see:
http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg777646.html
Please recompile PHP with a LibXML version 2.7.4 or greater. Version
detected: 2.7.3
Or, pass in --disable-libxml-check if doing so feels safe.

Checking for source directory... /Users/bjori/Sources/php/phpdoc/doc-base
Checking for output filename...
/Users/bjori/Sources/php/phpdoc/doc-base/.manual.xml
Checking whether to include CHM... no
Checking for PHP executable... /usr/bin/php
Checking for language to build... en
Checking whether the language is supported... yes
Checking for partial build... no
Checking whether to enable detailed XML error messages... no
Checking libxml version... 2.7.3
Checking whether to enable detailed error reporting (may segfault)... yes
Checking whether to optimize out the DTD (performance gain, but
segfaults)... yes
Generating /Users/bjori/Sources/php/phpdoc/doc-base/manual.xml... done
Generating /Users/bjori/Sources/php/phpdoc/doc-base/install-unix.xml... done
Generating /Users/bjori/Sources/php/phpdoc/doc-base/install-win.xml... done
Generating /Users/bjori/Sources/php/phpdoc/doc-base/developer.template.xml...
done
Generating /Users/bjori/Sources/php/phpdoc/doc-base/scripts/file-entities.php...
done
Iterating over extension specific version files... OK
Saving it... OK
Creating file 
/Users/bjori/Sources/php/phpdoc/doc-base/entities/file-entities.ent...
done
Checking for if we should generate a simplified file...
/Users/bjori/Sources/php/phpdoc/en/preface.xml
Checking whether to save an invalid .manual.xml... yes
Loading and parsing developer.template.xml... done.
Validating developer.template.xml... failed.

The document didn't validate, writing .manual.xml anyway, and here are
the errors I got:
(If this isn't enough information, try again with --enable-xml-details)
 Element set content does not follow the DTD, expecting (((title | titleabbrev |
 subtitle)* , info?) , toc? , (set | book)+ , setindex?), got (title preface )
 IDREF attribute linkend references an unknown ID "about"
 IDREF attribute linkend references an unknown ID "appendices"
 IDREF attribute linkend references an unknown ID "history"
 IDREF attribute linkend references an unknown ID "funcref"
 IDREF attribute linkend references an unknown ID "langref"
 IDREF attribute linkend references an unknown ID "features"
bjori@anden:~/Sources/php/phpdoc $ /usr/bin/php ../phd/render.php
--package PHP --format php --memoryindex -d doc-base/.manual.xml
--output out/
[11:44:01 - Rendering Style       ] Running full build
[11:44:01 - Indexing              ] Indexing...
[11:44:01 - Indexing              ] Indexing done
[11:44:01 - Rendering Style       ] Running full build
[11:44:01 - Rendering Format      ] Starting PHP-Web rendering
[11:44:01 - Writing TOC           ] Wrote TOC (out/php-web/toc/index.inc)
[11:44:01 - Rendering Format      ] Writing search indexes..
[11:44:01 - Rendering Format      ] Index written
[11:44:01 - Rendering Format      ] Finished rendering
bjori@anden:~/Sources/php/phpdoc $ find out
out
out/php-web
out/php-web/index.php
out/php-web/preface.php
out/php-web/search-description.json
out/php-web/search-index.json
out/php-web/toc
out/php-web/toc/index.inc



This is working just fine for me, using the exact same command as you
are running (copy&pasted... changing /home/yannick... to out/)


Try using -d  
/home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base/.manual.xml
(i.e. full path), as the cwd could maybe be weird?

-Hannes


On Sun, Aug 4, 2013 at 3:22 PM, Yannick Torrès <yannick.tor...@gmail.com> wrote:
> I get this error from my Apache error's file :
>
> [00:20:56 - E_USER_ERROR          ]
> /home/yannick/Logiciels/doc-editor/data/phd/render.php:30
>         No Docbook file given. Specify it on the command line with
> --docbook.
>
> I just try without -d parameter, and steel the same
>
>
> 2013/8/4 Hannes Magnusson <bj...@php.net>
>>
>> On Sun, Aug 4, 2013 at 2:23 PM, Yannick Torrès <yannick.tor...@gmail.com>
>> wrote:
>> > Hi Hannes,
>> >
>> > Sorry for the late, I'm just back from holidays.
>> >
>> >
>> > 2013/7/19 Hannes Magnusson <bj...@php.net>
>> >>
>> >> So.. How does it work?
>> >> Does it execute PhD from a specific path, or uses the globally
>> >> installed
>> >> binary?
>> >
>> >
>> > When I install the preview functionality, all works as espected. But now
>> > (and I don't know when this stop), it's just don't work at all.
>> >
>> > Here is a command line example to make a preview file :
>> >
>> > ====
>> > cd '/home/yannick/Logiciels/doc-editor/data/phpdoc-all/';
>> >
>> >  /usr/bin/php doc-base/configure.php --with-php='/usr/bin/php'
>> > --generate='en/preface.xml';
>> >
>> >  /usr/bin/php ../phd/render.php --package PHP --format php --memoryindex
>> > -d
>> > doc-base/.manual.xml --output
>> >
>> > '/home/yannick/Logiciels/doc-editor/data/phpdoc-all-new/output-9c337aaf8d50bdb5a69126867ce5e2c6/'
>> > ====
>> >
>> > On the edit.php.net server, PHP binary is the one who are here :
>> > /usr/bin/php
>> >
>> > When this command line is executed, I take this error :
>> >
>> > ===
>> > configure.php: $Id: configure.php 330577 2013-06-20 23:22:04Z bjori $"
>> > 1: "PHP version: 5.4.9-4ubuntu2.2"
>> > 2: ""
>> > 3: "Checking for source directory...
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base"
>> > 4: "Checking for output filename...
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base/.manual.xml"
>> > 5: "Checking whether to include CHM... no"
>> > 6: "Checking for PHP executable... /usr/bin/php5"
>> > 7: "Checking for language to build... en"
>> > 8: "Checking whether the language is supported... yes"
>> > 9: "Checking for partial build... no"
>> > 10: "Checking whether to enable detailed XML error messages... no"
>> > 11: "Checking libxml version... 2.9.0"
>> > 12: "Checking whether to enable detailed error reporting (may
>> > segfault)...
>> > yes"
>> > 13: "Checking whether to optimize out the DTD (performance gain, but
>> > segfaults)... yes"
>> > 14: "Generating
>> >
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base/manual.xml...
>> > done"
>> > 15: "Generating
>> >
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base/install-unix.xml...
>> > done"
>> > 16: "Generating
>> >
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base/install-win.xml...
>> > done"
>> > 17: "Generating
>> >
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base/developer.template.xml...
>> > done"
>> > 18: "Generating
>> >
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base/scripts/file-entities.php...
>> > done"
>> > 19: "Iterating over extension specific version files... OK"
>> > 20: "Saving it... OK"
>> > 21: "Creating file
>> >
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/doc-base/entities/file-entities.ent...
>> > done"
>> > 22: "Checking for if we should generate a simplified file...
>> > /home/yannick/Logiciels/doc-editor/data/phpdoc-all/en/preface.xml"
>> > 23: "Checking whether to save an invalid .manual.xml... yes"
>> > 24: "Loading and parsing developer.template.xml... done."
>> > 25: "Validating developer.template.xml... failed."
>> > 26: ""
>> > 27: "The document didn't validate, writing .manual.xml anyway, and here
>> > are
>> > the errors I got:"
>> > 28: "(If this isn't enough information, try again with
>> > --enable-xml-details)"
>> > 29: " [01;32m[23:09:20 - Rendering Style       ] [m Running full build"
>> > 30: " [01;32m[23:09:20 - Indexing              ] [m Indexing..."
>> > 31: ""
>> > ===
>> >
>> >>
>> >>
>> >> And how does it work today, does the OE somehow svn checkout PhD or
>> >> something like that?
>> >
>> >
>> > No. Actually, there is no checkout for PhD.
>> > I just check and... PhD have been suppress from data/ folder into
>> > edit.php.net server ?! It's not the case before my holydays.....
>> > Anyways, could you please tell me how I can install again PhD into data/
>> > folder in the right way ? And could you tell me why I receive this error
>> > ?
>> > Is there a problem with the command line used ?
>>
>>
>>
>>
>> The error you are getting from configure.php is normal.
>> The "preview" functionality doesn't include the full manual, and only
>> guesses what the container chunk should be, so minor validation errors
>> such as missing IDREF and invalid container are expected - which is
>> why configure.php happily continues and saves the file.
>>
>> When PhD is executing.. Is the last line really the indexing line?
>> There is no output whatsoever after that?
>> Does it write any files?
>>
>> The only issue I can see in that command is you are passing
>> .manual.xml to -d, which means you are telling PhD to build the entire
>> manual.. Where as the argument to configure.php tells it to save
>> developer.template.xml
>>
>> -Hannes
>
>

Reply via email to