preprocess-metadata.dita 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "referenceconcept.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <concept id="preprocess-metadata" xml:lang="en-US">
  5. <title>Move metadata (move-meta-entries) and pull content into maps (mappull) </title>
  6. <shortdesc>The <codeph>move-meta-entries</codeph> step pushes metadata back and forth between maps and topics. For
  7. example, index entries and copyrights in the map are pushed into affected topics, so that the topics can be
  8. processed later in isolation while retaining all relevant metadata. This step is implemented in Java.</shortdesc>
  9. <conbody>
  10. <note>As of DITA-OT 2.2, the <codeph>move-meta-entries</codeph> and <codeph>mappull</codeph> steps have been merged.
  11. The <codeph>mappull</codeph> step has been moved into <codeph>move-meta-entries</codeph>.</note>
  12. <section>
  13. <p>The <codeph>mappull</codeph> step pulls content from referenced topics into maps, and then cascades data within
  14. maps. This step is implemented in XSLT.</p>
  15. <p>The <codeph>mappull</codeph> step makes the following changes to the DITA map:
  16. <ul>
  17. <li>Titles are pulled from referenced DITA topics. Unless the <xmlatt>locktitle</xmlatt> attribute is set to
  18. "yes", the pulled titles replace the navigation titles specified on the <xmlelement>topicref</xmlelement>
  19. elements.</li>
  20. <li>The <xmlelement>linktext</xmlelement> element is set based on the title of the referenced topic, unless it
  21. is already specified locally.</li>
  22. <li>The <xmlelement>shortdesc</xmlelement> element is set based on the short description of the referenced
  23. topic, unless it is already specified locally.</li>
  24. <li>The <xmlatt>type</xmlatt> attribute is set on <xmlelement>topicref</xmlelement> elements that reference
  25. local DITA topics. The value of the <xmlatt>type</xmlatt> attribute is set to value of the root element of
  26. the topic; for example, a <xmlelement>topicref</xmlelement> element that references a task topic is given a
  27. <xmlatt>type</xmlatt> attribute set to "task"".</li>
  28. <li>Attributes that cascade, such as <xmlatt>toc</xmlatt> and <xmlatt>print</xmlatt>, are made explicit on any
  29. child <xmlelement>topicref</xmlelement> elements. This allows future steps to work with the attributes
  30. directly, without reevaluating the cascading behavior.</li>
  31. </ul>
  32. </p>
  33. </section>
  34. </conbody>
  35. </concept>