docbook-apps

  • 1.  warning: failed to load external entity

    Posted 07-07-2010 15:38
    Hi,
    I get a weird error:

    XML_CATALOG_FILES="catalog.xml " xsltproc --timing --xinclude
    --stringparam collect.xref.targets "only" --stringparam
    targets.filename "man.tdb" pile.xsl clisp.xml
    Parsing stylesheet pile.xsl took 0 ms
    Parsing document clisp.xml took 334 ms
    XInclude processing clisp.xml took 0 ms
    DocBook XSL stylesheet VERSION is: snapshot_8706
    Writing man.tdb for refentry(clisp)
    Applying stylesheet took 3119 ms
    Saving result took 0 ms

    XML_CATALOG_FILES="catalog.xml " xsltproc --timing --xinclude
    --stringparam collect.xref.targets "only" --stringparam
    targets.filename "clink.tdb" pile.xsl clisp-link.xml
    Parsing stylesheet pile.xsl took 0 ms
    Parsing document clisp-link.xml took 318 ms
    XInclude processing clisp-link.xml took 0 ms
    DocBook XSL stylesheet VERSION is: snapshot_8706
    --->>> warning: failed to load external entity "olinkdb.xml"
    --->>> Olink error: could not open target database 'olinkdb.xml'.
    --->>> Error: unresolved olink: targetdoc/targetptr = 'clink/opt-install'.
    Writing clink.tdb for refentry(clisp-link)
    Applying stylesheet took 2405 ms
    Saving result took 0 ms

    note that the first invocation is virtually identical to the second one,
    but does not generate the error.
    "olinkdb" is never mentioned in my files.
    what is going on?
    thanks!

    --
    Sam Steingold <http://sds.podval.org>



  • 2.  Re: [docbook-apps] warning: failed to load external entity

    Posted 07-07-2010 15:43
    Easy question: are you running xsltproc from the directory in which
    olinkdb.xml is located? If not you will get the "could not open target
    database" error.



    On 7/7/2010 10:38 AM, Sam Steingold wrote:
    > Hi,
    > I get a weird error:
    >
    > XML_CATALOG_FILES="catalog.xml " xsltproc --timing --xinclude
    > --stringparam collect.xref.targets "only" --stringparam
    > targets.filename "man.tdb" pile.xsl clisp.xml
    > Parsing stylesheet pile.xsl took 0 ms
    > Parsing document clisp.xml took 334 ms
    > XInclude processing clisp.xml took 0 ms
    > DocBook XSL stylesheet VERSION is: snapshot_8706
    > Writing man.tdb for refentry(clisp)
    > Applying stylesheet took 3119 ms
    > Saving result took 0 ms
    >
    > XML_CATALOG_FILES="catalog.xml " xsltproc --timing --xinclude
    > --stringparam collect.xref.targets "only" --stringparam
    > targets.filename "clink.tdb" pile.xsl clisp-link.xml
    > Parsing stylesheet pile.xsl took 0 ms
    > Parsing document clisp-link.xml took 318 ms
    > XInclude processing clisp-link.xml took 0 ms
    > DocBook XSL stylesheet VERSION is: snapshot_8706
    > --->>> warning: failed to load external entity "olinkdb.xml"
    > --->>> Olink error: could not open target database 'olinkdb.xml'.
    > --->>> Error: unresolved olink: targetdoc/targetptr = 'clink/opt-install'.
    > Writing clink.tdb for refentry(clisp-link)
    > Applying stylesheet took 2405 ms
    > Saving result took 0 ms
    >
    > note that the first invocation is virtually identical to the second one,
    > but does not generate the error.
    > "olinkdb" is never mentioned in my files.
    > what is going on?
    > thanks!
    >

    --

    ------------

    Steve Johnson, Senior Content Developer
    Caringo
    stevej@caringo.com



  • 3.  Re: [docbook-apps] warning: failed to load external entity

    Posted 07-07-2010 15:55
    On 7/7/10, Steve Johnson <stevej@caringo.com> wrote:
    > Easy question: are you running xsltproc from the directory in which
    > olinkdb.xml is located? If not you will get the "could not open target
    > database" error.

    there is no such file anywhere.
    my question is: why is xsltproc looking for this file?
    I don't mention it anywhere, I don't even know what is supposed to be in it.

    --
    Sam Steingold <http://sds.podval.org>



  • 4.  Re: [docbook-apps] warning: failed to load external entity

    Posted 07-07-2010 16:02
    I might not be correct on this but I believe that xsltproc expects
    olinkdb.xml because there are <olink> tags in your XML. I didn't look
    closely at your command line arguments but I expect you can tell
    xsltproc to look for it with those also.

    Look through your XML for <olinks> and let us know whether or not you
    find them.

    On 7/7/2010 10:54 AM, Sam Steingold wrote:
    > On 7/7/10, Steve Johnson<stevej@caringo.com> wrote:
    >> Easy question: are you running xsltproc from the directory in which
    >> olinkdb.xml is located? If not you will get the "could not open target
    >> database" error.
    >
    > there is no such file anywhere.
    > my question is: why is xsltproc looking for this file?
    > I don't mention it anywhere, I don't even know what is supposed to be in it.
    >

    --

    ------------

    Steve Johnson, Senior Content Developer
    Caringo
    stevej@caringo.com



  • 5.  Re: [docbook-apps] warning: failed to load external entity

    Posted 07-07-2010 16:16
    On 7/7/10, Steve Johnson <stevej@caringo.com> wrote:
    > I might not be correct on this but I believe that xsltproc expects
    > olinkdb.xml because there are <olink> tags in your XML. I didn't look
    > closely at your command line arguments but I expect you can tell xsltproc to
    > look for it with those also.

    I have plenty of olinks in all my files.
    however, I see this error only for the second file, not for the first one.
    please look at the original message: processing of clisp.xml works fine
    while processing of clisp-link.xml generates the error.
    BOTH files contain olinks.
    in fact, the two xsltproc invocations in the original message are
    specifically intended to extract the olink databases (IIUC).

    --
    Sam Steingold <http://sds.podval.org>