Home Forums DITA and XMetaL Discussion Error: topicref not allowed in container Reply To: Error: topicref not allowed in container

Su-Laine Yeo

Reply to: Error: topicref not allowed in container

The map editor pane in the Resource Manager will let you insert elements in invalid locations in Bookmaps and other types of specialized maps. The XML view, however, will do validation checking whenever it is used to display any type of map. That's why the timing of messages coincides to when you switch views.

Bookmap is a complex structure. Having lots of layers won't be a problem, but having too few layers actually could be. If you look at the DITA Language Reference (http://docs.oasis-open.org/dita/v1.1/OS/langspec/ditaref-type.html), you'll see that the list of elements that can be contained in the element (http://docs.oasis-open.org/dita/v1.1/OS/langspec/langref/booklists.html) does not include . The list of elements that can be contained in the element also does not include .

The easiest way to make sure your bookmaps are always valid is to always use the XML view when editing bookmaps. You can turn off the option to edit bookmaps in the Resource Manager by in DITA Options (click Tools > DITA Options, and then click the Map Editor tab).

Regards,
Su-Laine

Reply

Products
Downloads
Support