Re: Re: Docbook conversion - I could use some help.
| From: | Brett Bieber | Date: | Sun, 13 Jan 2008 04:09:05 +0000 |
| Subject: | Re: Re: Docbook conversion - I could use some help. | ||
| References: | 1 2 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-10378@lists.php.net to get a copy of this message | ||
On Jan 12, 2008 2:09 PM, Mark Wiesemann <wiesemann@php.net> wrote:
> Brett Bieber wrote:
> > Ok folks... this is where I'm at with the peardoc conversion.
> > I've got a simple script which will run through the files, convert to
> > docbook 5 the files it can, and return a list of any files with
> > errors. The files with errors need to be fixed (with the exception of
> > 1 type of error). When I last checked, there were 207 files with
> > errors. I've fixed all but 5 in /en/, and the rest are in the various
> > translations.
>
> I would help but I get the "has a problem" error on every file. xsltproc
> returns 6 (= "Error in one of the documents").
>
> Is there maybe a step missing in your list in the wiki?
Hey Mark, thanks for trying. I'm not sure what the issue is here...
my guess is the cloak script isn't working, before xsltproc transforms
the files. You might try removing the cleanup/unlink calls to have it
leave some traces for you to follow.
You might try manually running the cloak script on a file.
./cloak peardoc/en/preface.xml
It should send the cloaked file to standard output. Then xsltproc can
be used to transform the cloaked file to docbook 5.
I've used the same script in the wiki on two separate machines.... so
the script should work... I must be leaving something out. You may
have to
chmod +x cloak to make the cloak script executable. The only
other issue I can think of is executing the script in the wrong
directory. It should be in the directory above a peardoc checkout, not
inside.
If the cloak script is working, it may be xsltproc. My specs are:
xsltproc -V
Using libxml 20630, libxslt 10121 and libexslt 813
xsltproc was compiled against libxml 20629, libxslt 10121 and libexslt 813
libxslt 10121 was compiled against libxml 20629
libexslt 813 was compiled against libxml 20629
I don't know if any of that helps or not... but thanks for trying.
With Takagi syncing my changes to /ja/ we're down to only 203 errors,
and considering there's about 8900 xml files in peardoc, that's
actually really good. :-)
--
-Brett Bieber
http://saltybeagle.com/