docbook-apps

Expand all | Collapse all

RE: [docbook-apps] saxon, xerces, xinclude, and DB5 (was Re: [docbook-apps] trouble using FOP to process FO file generated by Xalan or Saxon)

  • 1.  RE: [docbook-apps] saxon, xerces, xinclude, and DB5 (was Re: [docbook-apps] trouble using FOP to process FO file generated by Xalan or Saxon)

    Posted 06-12-2007 19:52
    OK, I guess I was wrong to say that Xerces "completely" supports XInclude.

    I'm using Saxon 6.5.3 with Xerces 2.7.0 and it handles xi:include with xpointer fine when I use shorthand pointers to a DTD-determined ID. For example, I have the following chapter in one of my books and Saxon-Xerces has no trouble parsing and transforming the content. As you can see, the chapter has xi:include elements with xpointer attributes.


    "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
    [

    %VoceraEntities;
    ]>
    <chapter id="CSIPARef">

    <xi:include
    href="../cg/ChangingIPAddress.xml"
    xpointer="ChangeIPIntroFirst"
    xmlns:xi="http://www.w3.org/2001/XInclude" />
    <xi:include
    href="../cg/ChangingIPAddress.xml"
    xpointer="ChangeIPEnvironment"
    xmlns:xi="http://www.w3.org/2001/XInclude" />
    <xi:include
    href="../cg/ChangingIPAddress.xml"
    xpointer="ChangeIPSteps"
    xmlns:xi="http://www.w3.org/2001/XInclude" />
    </chapter>

    For more info on using XInclude with Xerces, go here: http://xerces.apache.org/xerces2-j/faq-xinclude.html#faq-8

    Regards,
    Jeff Powanda


    -----Original Message-----
    From: Dave Pawson [mailto:davep@dpawson.co.uk]
    Sent: Tuesday, June 12, 2007 5:19 AM
    To: Camille Bégnis
    Cc: apps docbook
    Subject: Re: [docbook-apps] saxon, xerces, xinclude, and DB5 (was Re: [docbook-apps] trouble using FOP to process FO file generated by Xalan or Saxon)

    Camille Bégnis wrote:
    > Hi all,
    >
    > funny I'm struggling with similar issue.
    >
    > I did set up saxon to use Xerces 2.9.0 and while full inclusions like
    >
    > <xi:include href="Inserted.xml"/>
    >
    > works, referencing an id with
    >
    > <xi:include href="Inserted.xml" xpointer="para"/>
    >
    > doesn't work:
    >
    > -------------------

    I don't think the Xerces parser fully implements the xpointer stuff
    Camille. Simple xincludes yes, but not partial includes.





    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




  • 2.  Re: [docbook-apps] saxon, xerces, xinclude, and DB5 (was Re: [docbook-apps] trouble using FOP to process FO file generated by Xalan or Saxon)

    Posted 06-13-2007 06:53
    Jeff Powanda wrote:
    > OK, I guess I was wrong to say that Xerces "completely" supports XInclude.
    >
    > I'm using Saxon 6.5.3 with Xerces 2.7.0 and it handles xi:include with xpointer fine when I use shorthand pointers to a DTD-determined ID.

    I stand corrected Jeff.
    I'll add it to the faq.


    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk