docbook-apps

  • 1.  What XML parser for xpointer?

    Posted 02-24-2009 06:44
    Hi,



    I am struggling to resolve Docbook documents with xi:include statements that
    specify a xpointer attribute. What XML parser is best suited for that job
    (we reference by id)?



    Thanks in advance for your help.


    Fabrice










  • 2.  RE: [docbook-apps] What XML parser for xpointer?

    Posted 02-24-2009 16:36
    I use xmllint as a pre-processor. I haven't used
    it to reference by id, myself, but it resolves all
    sorts of other xpointer references with no problem,
    so I'm pretty sure it will work fine with ids.

    Dick Hamilton

    Managing Writers: A Real World Guide to Managing Technical Documentation
    http://xmlpress.net/managingwriters.html

    -----Original Message-----
    From: Fabrice (GMail) [mailto:fabrice.talbot@gmail.com]
    Sent: Monday, February 23, 2009 11:44 PM
    To: docbook-apps@lists.oasis-open.org
    Subject: [docbook-apps] What XML parser for xpointer?



    Hi,



    I am struggling to resolve Docbook documents with xi:include statements
    that specify a xpointer attribute. What XML parser is best suited for
    that job (we reference by id)?



    Thanks in advance for your help.


    Fabrice










  • 3.  Re: [docbook-apps] What XML parser for xpointer?

    Posted 02-24-2009 16:36
    I use xmllint to resolve xi:includes before publishing the resolved
    files. My xi:includes also reference elements by ID. There's a note
    describing levels of support for xpointer on this page:

    http://wiki.docbook.org/topic/DocBookCookbook

    Peter

    On Tue, Feb 24, 2009 at 1:44 AM, Fabrice (GMail)
    <fabrice.talbot@gmail.com> wrote:

    > I am struggling to resolve Docbook documents with xi:include statements that
    > specify a xpointer attribute. What XML parser is best suited for that job
    > (we reference by id)?



  • 4.  Re: [docbook-apps] What XML parser for xpointer?

    Posted 02-24-2009 19:00
    Xerces also has some support for XPointer, for details you can see
    http://xerces.apache.org/xerces2-j/faq-xinclude.html#faq-8

    Referencing by IDs works in Xerces if you have a DTD or an XML Schema
    associated with the file.
    In oXygen we patched Xerces to add also support for handling xml:id as
    ID even without a DTD or XML Schema - that covers using DocBook 5 with
    the Relax NG schema as in that case there is no DTD or XML Schema to
    annotate the xml:id as an ID type.
    That patch is recorded here:
    https://issues.apache.org/jira/browse/XERCESJ-1113

    Best Regards,
    George
    --
    George Cristian Bina
    <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
    http://www.oxygenxml.com


    Peter Desjardins wrote:
    > I use xmllint to resolve xi:includes before publishing the resolved
    > files. My xi:includes also reference elements by ID. There's a note
    > describing levels of support for xpointer on this page:
    >
    > http://wiki.docbook.org/topic/DocBookCookbook
    >
    > Peter
    >
    > On Tue, Feb 24, 2009 at 1:44 AM, Fabrice (GMail)
    > <fabrice.talbot@gmail.com> wrote:
    >
    >> I am struggling to resolve Docbook documents with xi:include statements that
    >> specify a xpointer attribute. What XML parser is best suited for that job
    >> (we reference by id)?
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >