docbook-apps

  • 1.  Re: how to upgrade docbook-xml properly w.r.t. nxml-mode -> /usr/share/emacs/site-lisp/nxml-mode/schema/*.rnc

    Posted 05-10-2007 13:11
    >>>>> "JMT" == jmt <jmt@dxdydz.net> writes:

    JMT> Hi, list !

    JMT> I use emacs + nxml mode in Debian ; this package still uses the Docbook
    JMT> schema from V4.2, so I replaced to the original schema by the schema for
    JMT> V5.0RC3.

    My nxml-mode installation keeps emacs mode and specifically docbook related files (*.rnc -> "RELAG NG compact syntax") here:

    /usr/share/emacs/site-lisp/nxml-mode/schema/

    So you are telling us, you took files from /usr/share/xml/docbook/schema/rng/5.0CR3/
    and made them available to emacs nxml-mode, are you?

    JMT> Works like a charm,

    Does that mean "regarding to editing in nxml-mode" or "regarding to creating HTML or PDF"?

    Do you really make use of new features in nxml-mode,
    i.e. features of 5.0, that were not already available in 4.2?

    JMT> except that introducing a xml:id for "person" unvalidates the
    JMT> document.

    I guess every new feature will unvalidate the document,
    as long as the new and right *.rnc files are not properly made available to nxml-mode.

    And how that is carried out -- maybe there is somebody else to tell us how to do that,
    I mean to give us a recipe of "how to upgrade docbook-xml properly w.r.t. nxml-mode -> /usr/share/emacs/site-lisp/nxml-mode/schema/*.rnc".

    Actually I would like to see,
    that the *.rnc files in /usr/share/emacs/site-lisp/nxml-mode/schema/ get removed
    and nxml-mode gets set up to make use of the *.rnc files in /usr/share/xml/docbook/schema/rng/5.0CR3/ or whatever new or old version one wants to make use of.

    Obviously your paths may vary,
    mine are from a mixture of SUSE 10.1 through 10.3alpha...
    and I actually assume, they are file system standard compliant, but who knows ...



  • 2.  RE: [docbook-apps] Re: how to upgrade docbook-xml properly w.r.t. nxml-mode -> /usr/share/emacs/site-lisp/nxml-mode/schema/*.rnc

    Posted 05-10-2007 13:32
    What I do is a bit of a pain, but it works....

    I just reset the schema location to point at what ever *.rnc file I need
    to validate the document against. The pain is that you must do it for
    each document you open at least once.



    >


  • 3.  RE: [docbook-apps] Re: how to upgrade docbook-xml properly w.r.t. nxml-mode -> /usr/share/emacs/site-lisp/nxml-mode/schema/*.rnc

    Posted 05-10-2007 14:12
    Quoting "Johnson, Eric" <Eric.Johnson@iona.com>:

    > What I do is a bit of a pain, but it works....
    >
    > I just reset the schema location to point at what ever *.rnc file I need
    > to validate the document against. The pain is that you must do it for
    > each document you open at least once.
    >

    Why don't you put that schema location into your ~/schemas.xml file?
    This would allow Emacs to open all DocBook files with that schema file.

    regards,
    Markus

    --
    Markus Hoenicka
    markus.hoenicka@cats.de
    (Spam-protected email: replace the quadrupeds with "mhoenicka")
    http://www.mhoenicka.de




  • 4.  RE: [docbook-apps] Re: how to upgrade docbook-xml properly w.r.t.nxml-mode -> /usr/share/emacs/site-lisp/nxml-mode/schema/*.rnc

    Posted 05-10-2007 14:23
    I didn't think of that:( Thanks for the tip!!

    >


  • 5.  Re: [docbook-apps] Re: how to upgrade docbook-xml properly w.r.t. nxml-mode -> /usr/share/emacs/site-lisp/nxml-mode/schema/*.rnc

    Posted 05-10-2007 15:07

    > Actually I would like to see,
    > that the *.rnc files in /usr/share/emacs/site-lisp/nxml-mode/schema/ get
    removed
    > and nxml-mode gets set up to make use of the *.rnc files
    in /usr/share/xml/docbook/schema/rng/5.0CR3/ or whatever new or old version
    one wants to make use of.
    >
    > Obviously your paths may vary,
    > mine are from a mixture of SUSE 10.1 through 10.3alpha...
    > and I actually assume, they are file system standard compliant, but who
    knows ...
    >

    From a Debian "unstable", I made the following changes in the nxml-mode
    package :

    1 - in
    /usr/share/emacs/site-lisp/nxml/schemas
    I renamed docbook.rnc docbook.rnc_V4.2

    2 - I copied
    docbook-5.0CR3/rng/docbook.rnc
    to
    /usr/share/emacs/site-lisp/nxml/schemas/docbook.rnc

    and tested ok : the person element admitted an xml:id attribute

    Then, while I had done the same for a Debian "testing", with the unsuccess I
    have reported, I reinstalled the nxml-mode package, and proceeded to the same
    modification, i.e. remplacing the original docbook schema (V4.2) to the
    V5.0CR3 ; and tested ok.

    No explanation : lisp is out of my reaches.

    Thanks for your help,

    jmt

    --

    --------------------------------------
    Informatique technique et scientifique
    http://www.dxdydz.net

    Jean-Marie Thomas


    mailto:jmt@dxdydz.net

    +33 (0)3 88 32 93 64