OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] DocBook 5 and Chunked Content


Hi,
When DocBook 5.0 was released, the RelaxNG schema was overly strict in specifying which elements could be root elements in a document. It did not take into account modular files. DocBook 5.1 will pretty much allow any element to be a root element.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

On 2/4/2015 6:18 AM, Steve Cuzner wrote:
Ah, legalnotice isn’t a valid top-level element. See
http://doccookbook.sourceforge.net/html/en/dbc.markup.rootelement.html
which contains a list of valid top level elements. However, you are
looking to trick the validation engine. You may still be able to put a
<!DOCTYPE legalnotice []> in the document to do this since this is the
technique used to include text entities. See
http://relaxng.org/tutorial-20011203.html. I’ve not tried it so I can’t
verify that it works, but it seems reasonable.

Steve

*From:*Sascha Manns [mailto:Sascha.Manns@xcom.de]
*Sent:* Wednesday, February 04, 2015 9:06 AM
*To:* Steve Cuzner; docbook@lists.oasis-open.org
*Subject:* Re: [docbook] DocBook 5 and Chunked Content

Hi Steve,

I have putted the whole legalnotice part into an own xml file. So there
is just the legalnotice. In my main article document i'm using xinclude
to place it like:
<article>
       <info>
         <authorgroup>
         <legalnotice>
      </info>

      content
</article>

A similar error message comes with DB 4.5 documents without a correct
<!DOCTYPE> Definition. The error goes away if i paste <!DOCTYPE
legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";
<http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd> >
But such isn't used with DB5 documents.

Greetings
Sascha

-------- Original-Nachricht --------
*Betreff: *Re: [docbook] DocBook 5 and Chunked Content
*Von: *Steve Cuzner <Steve.Cuzner@mathworks.com>
<mailto:Steve.Cuzner@mathworks.com>
*An: *Sascha Manns <Sascha.Manns@xcom.de> <mailto:Sascha.Manns@xcom.de>,
docbook@lists.oasis-open.org <mailto:docbook@lists.oasis-open.org>
<docbook@lists.oasis-open.org> <mailto:docbook@lists.oasis-open.org>
*Datum: *04.02.2015 14:51

    The error message is complaining about the legalnotice not being
    allowed where it is, not about the para content of legalnotice, so
    your code snip doesn’t help much. What is the parent element of
    legalnotice?

    *From:*Sascha Manns [mailto:Sascha.Manns@xcom.de]
    *Sent:* Wednesday, February 04, 2015 6:03 AM
    *To:* docbook@lists.oasis-open.org <mailto:docbook@lists.oasis-open.org>
    *Subject:* [docbook] DocBook 5 and Chunked Content

    Hello List,

    actually i'm working on upgrading some documents from DB4.5 to DB5.
    The Documents are chunked. As example i have one file which contains
    our Legalnotice:

    <legalnotice xmlns="http://docbook.org/ns/docbook";
    <http://docbook.org/ns/docbook> version="5.0">
         <para>My content</para>
    </legalnotice>

    But my Validator says:
    element "legalnotice" not allowed here; expected element
    "acknowledgements", "appendix", "article", "bibliography", "book",
    "chapter", "colophon", "dedication", "glossary", "index",
    "ns:include", "para", "part", "preface", "refentry", "reference",
    "refsect1", "refsect2", "refsect3", "refsection", "sect1", "sect2",
    "sect3", "sect4", "sect5", "section", "set", "setindex" or "toc"
    (with xmlns:ns="http://www.w3.org/2001/XInclude";
    <http://www.w3.org/2001/XInclude>)

    Is there any possibility to pacify the Validator?

    Greetings
    Sascha


    --

    Yours sincerly

    Sascha Manns

    ---------------------------------

    XCOM AG

    Qualitätsmanagement Banksystem Backend

    Rechnungswesen, Meldewesen, Steuern

    Rennweg 60

    Haus 2

    56626 Andernach



    Telefon  +49 2632 9899-158

    Telefax  +49 2632 9899-010

    Sascha.Manns@xcom.de  <mailto:Sascha.Manns@xcom.de>

    http://www.xcom.de



    *** XCOM AG Legal Disclaimer ***



    Diese E-Mail einschliesslich ihrer Anhaenge ist vertraulich und ist allein für den Gebrauch durch den vorgesehenen Empfaenger bestimmt. Dritten ist das Lesen, Verteilen oder Weiterleiten dieser E-Mail untersagt. Wir bitten, eine fehlgeleitete E-Mail unverzueglich vollstaendig zu loeschen und uns eine Nachricht zukommen zu lassen.



    This email may contain material that is confidential and for the sole use of the intended recipient. Any review, distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.



    Hauptsitz: Allee 8, D-47877 Willich, USt-IdNr.: DE 812 885 664

    Kommunikation: Telefon +49 2154 9209-70, Telefax +49 2154 9209-900,www.xcom.de  <http://www.xcom.de>

    Handelsregister: Amtsgericht Krefeld, HRB 10340

    Vorstand: Dirk Franzmeyer, Marco Marty, Dirk Werner, Sascha Bochartz

    Vorsitzender des Aufsichtsrates: Stefan H. Tarach



--

Yours sincerly

Sascha Manns

---------------------------------

XCOM AG

Qualitätsmanagement Banksystem Backend

Rechnungswesen, Meldewesen, Steuern

Rennweg 60

Haus 2

56626 Andernach



Telefon  +49 2632 9899-158

Telefax  +49 2632 9899-010

Sascha.Manns@xcom.de  <mailto:Sascha.Manns@xcom.de>

http://www.xcom.de



*** XCOM AG Legal Disclaimer ***



Diese E-Mail einschliesslich ihrer Anhaenge ist vertraulich und ist allein für den Gebrauch durch den vorgesehenen Empfaenger bestimmt. Dritten ist das Lesen, Verteilen oder Weiterleiten dieser E-Mail untersagt. Wir bitten, eine fehlgeleitete E-Mail unverzueglich vollstaendig zu loeschen und uns eine Nachricht zukommen zu lassen.



This email may contain material that is confidential and for the sole use of the intended recipient. Any review, distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.



Hauptsitz: Allee 8, D-47877 Willich, USt-IdNr.: DE 812 885 664

Kommunikation: Telefon +49 2154 9209-70, Telefax +49 2154 9209-900,www.xcom.de  <http://www.xcom.de>

Handelsregister: Amtsgericht Krefeld, HRB 10340

Vorstand: Dirk Franzmeyer, Marco Marty, Dirk Werner, Sascha Bochartz

Vorsitzender des Aufsichtsrates: Stefan H. Tarach



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]