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


Help: OASIS Mailing Lists Help | MarkMail Help

dita message

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

Subject: Re: [dita] Updates to bookmap update proposal.

For this statement:


Create a domain specialization to group <keydefs> prior to <frontmatter>


Do you mean:


Create a domain specialization to group <keydef>s prior to <frontmatter>


That is, the element primarily intended to be grouped is “keydef”. There is currently no “keydefs” element in DITA, although I have in the past proposed such an element equivalent to this proposal’s (better-named) “mapresources” element.






Eliot Kimber




From: <dita@lists.oasis-open.org> on behalf of Eric Sirois <eric.sirois@ixiasoft.com>
Date: Tuesday, March 27, 2018 at 9:34 AM
To: "dita@lists.oasis-open.org" <dita@lists.oasis-open.org>
Subject: [dita] Updates to bookmap update proposal.




Some minor modification based on comments from Robert and Eliot.


  • Fixed class attribute definition
  • Made mapresources a * versus a ?
  • Changed placeholder to container



DITA 2.0 proposed feature #29

The goal of the redesign is to remediate problems but avoid breaking backward compatibility.

Modify bookmap design

Proposal version


Completion date


Champion of the proposal

Eric Sirois

Initial Suggestion


Links to minutes where this proposal was discussed at stage 1 and moved to stage 2


GitHub Issue


Original requirement or use case

Overall the bookmap DTD has not been updated as part general DITA releases for a couple releases. It is missing some convenient key features that were added as part of DITA 1.2 and 1.3. The proposal will make it easier to make use of <ditavalref> at the root level and make it easier to create and maintain keydefs.

Use cases

  1. A writer wants to create a keydefs for a map in a convenient location in the map.

The current version of the DITA Bookmap does allow keydefs to be created, but you need to do it inside one of the main top level elements. like <frontmatter>. But it's not convenient because it's buried in an unrelated element.

  1. A writer wants to specify a ditaval used for the whole map via a <ditavalref>.

The current version of the DITA Bookmap does not allow <ditavalref> as an immediate child of <bookmap>. Creating them inside one of the children of <bookmap>, then the <ditavalref> only applies to the children of that element.

Proposed solution

The purpose of the proposal is to add some enhancements to bookmap, with a minimal amount of impact at the processing end of the pipeline but will make things a bit easier for the end user.

  • Add <ditavalref> before <frontmatter>
  • Create a <mapresources> as an element that will allow users to reference elements that are specializations of <topicref>.
  • Create a domain specialization to group <keydefs> prior to <frontmatter>.


  • Authors will benefit from the more intuitive use of keydefs.
  • Information architects/developers will benefit being able to add a specialization for custom processing of bookmaps.
  • Information architects will be able to use the same bookmap for multiple outputs using different set of conditions

Technical requirements

This change is adding two elements, that already supported in DITA 1.3, to the root content model of the bookmap DTD and as such, will have essentially no technical impact.

Provide a detailed description of how the solution will work. Be sure to include the following details:

DTD and Schema modifications.

New domain

·         Map resources

o    Add a domain specializations that will allow the definition of a wrapper element to define <keydefs> in a <bookmap> or other strictly constrained publication maps. This domain is based on <mapresources>

New element

·         <mapresources>

o    This element is a container that allows specializations of <topicref> to be available in a bookmap. The element is defined a s resource-only element.

o    The element is optional after the <ditavalref>.

·         <ditavalref>

o    This is an existing element that is available in the base <map>. We are simply making it available in the top level portion of <bookmap>

o    The element is optional after the <bookmeta>.

Processing impact

None. <ditavalref> are already supported features of DITA 1.3. And <mapresources> is a specialization of topicref as a resource-only element.

Overall usability

Current DITA users, and current document type shells will be unaffected. Usability of authoring will ultimately be improved due to better management of keydefs and use of ditavalrefs in the bookmap.


  • The main bookmap files need to be updated with the addition of a new domain files to support the solution for this proposal.
  • A new topic for documenting the domain and the container element. As well as an update to the bookmap topic.
  • Since we are adding elements that are already supported in DITA 1.3, there is no impact to processors and XML tools.


Sample usage in a bookmap:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA 2.0 BookMap//EN" "bookmap.dtd">
    <ditavalref href="">
        <keydef keys="test" href="">

Element definition in the bookmap DTD:

     <!ENTITY % bookmap.content
     "((%title; | %booktitle;)?,
     ((%appendices;)? |

Element override in the bookmap shell:

<!ENTITY % mapresources  "%mapresources-d-mapresources;

Domain definition:

<!ENTITY % mapresources
                       "mapresources"                               >
<!-- ============================================================= -->
<!--                    ELEMENT DECLARATIONS                       -->
<!-- ============================================================= -->
<!ENTITY % mapresources.content
<!ENTITY % mapresources.attributes
<!ELEMENT  mapresources %mapresources.content;>
<!ATTLIST  mapresources %mapresources.attributes;>
<!ATTLIST  mapresources %global-atts;  class CDATA "+ map/topicref  mapresources-d/mapresources ">

Domain entity definition:

    <!ENTITY % mapresources-d-mapresources
    <!ENTITY mapresources-d-att
    "(map mapresources-d)"



Éric Sirois

DITA Toolsmith



825 Querbes, Suite 200, Montréal, Québec, Canada, H2V 3X1

tel  + 1 514 279-4942  /  toll free + 1 877 279-4942

mobile + 1 647 462-3620

eric.sirois@ixiasoft.com / www.ixiasoft.com 




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