Menu

Skeleton for Set of Books

Anonymous
2015-12-03
2015-12-04
  • Anonymous

    Anonymous - 2015-12-03

    Dear All,

    would anybody be so nice to outline the setup for a set of books for me or point me to some examples? Let's say I want to have three books Book_A, Book_B, and Book_C. How should the MAIN-, DC- and Book-XML files look like? Especially the headers for DocBook 5. I just started learning XML and DocBook so I am sure that I can not completely follow the DAPS documentation. Is a root file MAIN.xml like the following a good start?

    <?xml version="1.0" encoding="UTF-8"?>
       <set lang="en">
          <title>Book Set</title>
          <xi:include href="book.book_a.xml" xmlns:xi="http//www.w3.org/2001/XInclude"/>
          <xi:include href="book.book_b.xml" xmlns:xi="http//www.w3.org/2001/XInclude"/>
          <xi:include href="book.book_c.xml" xmlns:xi="http//www.w3.org/2001/XInclude"/>
    </set>
    

    Is there a best practice for organizing the files if I would like to have separate files for books and chapters, like

    book_set/
    DC-Book_A
    DC-Book_B
    DC-Book_C
    --images/
    --xml/
    MAIN.xml
    book.book_a.xml
    book.book_b.xml
    book.book_c.xml
    book.book_a.ch_preface.xml
    book.book_a.ch_overviews.xml
    book.book_a.ch_howtos.xml
    book.book_b.ch_preface.xml
    book.book_b.ch_overviews.xml
    book.book_b.ch_howtos.xml

    Thank you very much.

    Best regards,
    Willi

     
    • Thomas Schraitle

      I just started learning XML and DocBook so I am sure that I can not completely follow the DAPS documentation. Is a root file MAIN.xml like the following a good start?

      Sorry, forgot to mention that in my previous answer.

      Yes, that is a good start if you would like to maintain a set of different books. With this setup, it is possible to create cross references from one book into another.

       
    • Thomas Schraitle

      I just started learning XML and DocBook so I am sure that I can not completely follow the DAPS documentation.

      Do you miss anything particular? Any recommendations how to improve the documentation?

      If you like, enter an issue on our GitHub project: https://github.com/openSUSE/daps/issues/new

      Regarding the files, we have something in our DAPS documentation:
      http://opensuse.github.io/daps/doc/cha.daps.user.features.html#sec.daps.user.basics.files

       
  • Thomas Schraitle

    Hi Willi,

    would anybody be so nice to outline the setup for a set of books for me or point me to some examples?

    we have a couple of public Git repositories, published under a free license (usually GFDL). The following links point to the official SUSE documentation:

    The repositories contain everything of our documentation. Look for the MAIN*.xml files. They have a <set> element and books are xincluded.

    The filenames can be choosen freely. Of course, it would be good practise to invent some common, consistent naming scheme. Our main entry point is the mentioned MAIN*.xml files. Books are named book*.xml and articles contain art*.xml. Chapter files don't have any convention. Oh, by the way, files which are used for different books are named common*.xml.

    That's our convention. You are free to choose whatever you like.

    Oh, keep in mind, the files make heavy use of "profiling" (some kind of "conditional text").

    If you have any question, just ask.

    Have fun!

     
    • Anonymous

      Anonymous - 2015-12-04

      Hello Thomas,

      wow! Thank you for the fast and very helpful answer. The examples from the SUSE documentation will help me a lot. Everything is fine with your documentation. The problem is lack knowledge on my side. I have to get used to some main concepts. For example, when you write

      In this example, art.daps.quick is the root ID of the DAPS Quick Start, contained in MAIN.DAPS.xml

      I did not know that root ID actually is a tag within the quick start xml file. But now I have some guidance with the SUSE documentation.

      Thank you very much.

      Best regards,
      Willi

       
      • Thomas Schraitle

        Hi Willi,

        you're welcome! :-)

        Everything is fine with your documentation. The problem is lack knowledge on my side.

        Ok, thanks. Let us know when you find some issues in our documentation.

        I have to get used to some main concepts

        Yes, I know, if you don't use it daily (as we do) some concepts looks quite strange at a first glance. ;)

        I did not know that root ID actually is a tag within the quick start xml file.

        Actually it's an attribute. The term "root id" is coined from the upstream DocBook XSL stylesheets: It is used to identify a specific part of your complete documentation.

        For example, if you have a book and you are only interested in transforming a single, specific chapter from that book, you need something to identify this chapter. Of course, this identification should be unique throughout the whole book.

        In DocBook, this "uniqueness" is created by the id (DocBook 4) or xml:id (DocBook 5) attributes. And this is the "root id" which you can point to.

        That's the reason why we have so many different DC* files: they point to the MAIN* file, but contain the ID (root id) for a specific book or article.

        Hope that makes sense. :-)

         

        Last edit: Thomas Schraitle 2015-12-04

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.