docbook-apps

  • 1.  Re: [docbook-apps] xml:base problem with nested XIncludes

    Posted 07-02-2009 20:56
    Hi Ron,
    I'm not able to duplicate this problem. I'm using your files with Oxygen
    10.3, DocBook XSL 1.75.1, Saxon 6 and XEP 4.13, Java 1.6.0_05.

    Two things:

    1. I didn't see where you described the directory structure containing your
    files. As far as I can tell, they all reside in the the current directory,
    except the graphic which is in a subdirectory named 'images'. Is that
    correct? I wasn't clear what you expected the src attribute in the fo file
    to be, as compared to what you got.

    2. Normally the XInclude processor does not add xml:base unless an included
    file is in a different directory, and that doesn't seem to be the case here.

    I'm wondering where the full path information came from, because it does not
    appear to be in the XML files. Normally a processor will work with relative
    paths, but the error message indicates a full path. Is a catalog involved
    here?

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] xml:base problem with nested XIncludes

    Posted 07-02-2009 21:33
    Hi Bob

    Could it be XEP 4.10? I'll move to 4.13 and check. I can't see the
    Java version being responsible. I checked several times with my
    too-chain, it is reproducible with XEP 4.10.

    Bob Stayton wrote:
    > Hi Ron,
    > I'm not able to duplicate this problem. I'm using your files with
    > Oxygen 10.3, DocBook XSL 1.75.1, Saxon 6 and XEP 4.13, Java 1.6.0_05.
    >
    Do you see the picture without doing the 'copy' xsl first? I don't.

    > Two things:
    >
    > 1. I didn't see where you described the directory structure containing
    > your files. As far as I can tell, they all reside in the the current
    > directory, except the graphic which is in a subdirectory named
    > 'images'. Is that correct? I wasn't clear what you expected the src
    > attribute in the fo file to be, as compared to what you got.
    >
    Sorry, I omitted the directory structure. You are right, the files are
    all in one directory and images is a subdirectory. I expected images/...jpg

    > 2. Normally the XInclude processor does not add xml:base unless an
    > included file is in a different directory, and that doesn't seem to be
    > the case here.
    >
    The XInclude processing seems to be fine, no problems. It is only the
    file that is referenced by the nested XInclude that gets the wrong (full
    and duplicated) path and I don't see the picture. As I remember the
    2005 problem did not generate full paths, it just duplicated the
    'images' directory. maybe I am wrong in thinking it the same problem.

    > I'm wondering where the full path information came from, because it does
    > not appear to be in the XML files. Normally a processor will work with
    > relative paths, but the error message indicates a full path. Is a
    > catalog involved here?
    >
    No, nothing via a catalog. The only full path I have is for docbook.xsl

    I'll post when I've checked with XEP 4.13.

    Ron


    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    >
    >