This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Onechunk problem
On Wed, May 15, 2002 at 04:15:20AM -0400, Daniel Veillard wrote:
> On Wed, May 15, 2002 at 03:03:34AM -0500, Michael Smith wrote:
> > Bob Stayton writes:
> >
> > > On Fri, May 03, 2002 at 03:30:17PM -0500, Dennis Grace wrote:
> > > > > About my error message:
> > > > >
> > > > > Error chapter is not a chunk!
> > > > > Writing for chapter
> > > > > runtime error: file
> > > > > /usr/share/sgml/docbook/docbook-xsl-1.50.0/html/chunker.xsl
> > > > > line 79 element document
> > > > > xsltDocumentElem: URL computation failed for
> > > [...]
> > >
> > > The line number reported is the line with the closing ">"
> > > for exsl:document element. I think the xsltproc parser
> > > is using that as the element line. I have several files
> > > that do not generate the error, and two that do, so it is
> > > not happening with all files. I haven't had time to
> > > investigate what is different about those two files.
> >
> > It appears that at least one thing that will cause this problem is
> > having spaces in a refname. The current db2man code takes the refname
>
> yes libxslt doesn't cope well with the document extension if there
> are unescaped spaces in the target chunk name (in the URI sense because
> I assume the name is an URI Reference, and then pass it to libxml2 layer
> doing the URI- Ref computation job, which itself fails because "a b" is
> not an URI-Reference).
> I don't know what's the best way to handle this, maybe libxslt could
> URI escape the returned string automatically ...
If you escape a string containing spaces, what does the filename
look like?
I experienced this xsltproc error with db2man but my refname didn't
seem to have spaces. But the XML file looked like this:
<refnamediv><refname>mycommandname
</refname><refpurpose>...
The carriage return whitespace after the name triggered the
error.
I think db2man should be fixing this bug, however.
It should strip leading and trailing whitespace, and
translate spaces to underscores in the name.
I seriously doubt anyone using db2man wants filenames
with spaces or carriage returns, escaped or not.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com