Menu

I tried to use the DITA element <bookmap> and it said that "no declaration found for element 'bookmap'"

Help
2015-05-28
2015-06-04
  • Bogdan Marin

    Bogdan Marin - 2015-05-28

    Hi everybody,

    I am new to this forum and to DITA, and I tried to use the <bookmap> element however when I did the validation, it told me that there is no declaration found for the element.
    I tried to put a bookmap.dtd file in the root directory of the DITA project, however it told me the same thing.
    Any idea?
    Thank you.

     
  • Zane U. Ji

    Zane U. Ji - 2015-05-30

    Please put the following line before the <bookmap> element:

    <!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/bookmap.dtd">
    
     
    • Bogdan Marin

      Bogdan Marin - 2015-06-01

      Thank you!

       
  • Bogdan Marin

    Bogdan Marin - 2015-06-01

    I would have another question, if someone could answer me.
    I wish to enter like a quote of code in my documentation the following paragraph:

    var value = COMPONENT.getSelectedMembers();
    if (value === "clearFilters") {
    DATA_SOURCE.clearFilter(dimension);
    } else {
    DATA_SOURCE.setFilterExt(dimension, value);
    }

    with the indentation as it is showed, and if possible with this type of font.
    What would be the best approach?
    Thank you.

     
  • Bogdan Marin

    Bogdan Marin - 2015-06-01

    I forgot to add that I already tried this type of approach:

    <p><tt>var value = <b>COMPONENT</b>.getSelectedMembers();</tt></p>
    <p><tt>if (value === "clearFilter") </tt>{</p>
    <p><tt>&#x9;<b>DATA_SOURCE</b>.clearFilter(dimension);</tt></p>
    <p><tt>} else {</tt></p>
    <p><tt>&#x9;<u><b>DATA_SOURCE</b></u>.<u>setFilterExt</u>(<b><u>dimension</u>,</b> value);</tt></p>
    

    and it did not quite work as I wanted as the spacing between paragraphs is too big.
    Therefore I would have preferred just a <cr> or
    however I did not find it available.
    Thank you.

     
  • Zane U. Ji

    Zane U. Ji - 2015-06-02

    I was wondering if the CDATA tag <![CDATA[]]> is what you're looking for.

     
  • Bogdan Marin

    Bogdan Marin - 2015-06-02

    Thank you.
    I will use it and will let you know the outcome, OK?
    Also, as I am working through my first project in DITA, I am using the align="center" for the <image>, and I do not see any effect on the documentation pdf that I get.
    Also, I am using the <menucascade> tag, and I do not see anything that was claimed to be done by this tag in the output.
    I wonder if I am missing anything...

     
  • Bogdan Marin

    Bogdan Marin - 2015-06-02

    Another thing that I would like to know.
    As you could see in my initial question, there was some indentation (tabs) in the text.
    How would it be possible to get this in DITA?
    I searched the net and what I found was to insert the special character, however it did not have any effect.
    Is there another possibility to obtain that?
    Thank you.

     
  • Bogdan Marin

    Bogdan Marin - 2015-06-02

    I tried to use the tag you suggested however it seems that it is not recognized by the editor...
    Can you give me an example of how to use it?
    Thank you.

     
  • Bogdan Marin

    Bogdan Marin - 2015-06-04

    I managed to use it correctly, however it worked better with <lines>
    Thank you.

     

Log in to post a comment.