generate-copy-outer.html 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html
  2. SYSTEM "about:legacy-compat">
  3. <html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2016"><meta name="DC.rights.owner" content="(C) Copyright 2016"><meta name="DC.Type" content="concept"><meta name="description" content="Elaboration on how the generate.copy.outer parameter functions."><meta name="DC.Relation" scheme="URI" content="../parameters/parameters-base-html.html"><meta name="DC.Format" content="XHTML"><meta name="DC.Identifier" content="concept_rcv_xbp_xg"><link rel="stylesheet" type="text/css" href="../css/commonltr.css"><link rel="stylesheet" type="text/css" href="../css/dita-ot-doc.css"><title>generate.copy.outer parameter</title></head><body id="concept_rcv_xbp_xg"><header role="banner"><div class="header">
  4. <p>DITA Open Toolkit</p>
  5. <hr>
  6. </div></header><nav role="toc"><ul><li><a href="../index.html">DITA Open Toolkit 2.3</a></li><li><a href="../release-notes/index.html">Release Notes</a></li><li><a href="../getting-started/index.html">Getting Started</a></li><li><a href="../user-guide/index.html">User Guide</a></li><li><a href="../parameters/index.html">Parameter Reference</a><ul><li><a href="../parameters/dita-command-arguments.html">DITA command arguments</a></li><li><a href="../parameters/parameters_intro.html">DITA-OT parameters</a><ul><li><a href="../parameters/parameters-base.html">Common</a></li><li><a href="../parameters/parameters-base-html.html">HTML-based output</a></li><li><a href="../parameters/parameters-common-html.html">HTML5 and XHTML</a></li><li><a href="../parameters/parameters-html5.html">HTML5</a></li><li><a href="../parameters/parameters-eclipsecontent.html">Eclipse content</a></li><li><a href="../parameters/parameters-eclipsehelp.html">Eclipse Help</a></li><li><a href="../parameters/parameters-htmlhelp.html">HTMLHelp</a></li><li><a href="../parameters/parameters-javahelp.html">JavaHelp</a></li><li><a href="../parameters/parameters-odt.html">Open Document Format</a></li><li><a href="../parameters/parameters-other.html">Other</a></li><li><a href="../parameters/parameters-pdf.html">PDF</a></li></ul></li><li><a href="../parameters/configuration-properties.html">Configuration properties</a></li></ul></li><li><a href="../dev_ref/index.html">Developer Reference</a></li><li><a href="../user-guide/dita-and-dita-ot-resources.html">DITA Resources</a></li></ul></nav><main role="main"><article role="article" aria-labelledby="ariaid-title1">
  7. <h1 class="title topictitle1" id="ariaid-title1"><span class="keyword parmname">generate.copy.outer</span> parameter</h1>
  8. <div class="body conbody"><p class="shortdesc">Elaboration on how the <span class="keyword parmname">generate.copy.outer</span> parameter functions.</p>
  9. <section class="section"><h2 class="title sectiontitle">Background</h2>
  10. <div class="p">This is an issue in the following situations:<ul class="ul">
  11. <li class="li">The DITA map is in a directory that is a peer to directories that contain referenced objects.</li>
  12. <li class="li">The DITA map is in a directory that is below the directories that contain the referenced objects.</li>
  13. </ul></div>
  14. <div class="p">Let's assume that the directory structure for the DITA content looks like the
  15. following:<pre class="pre">maps
  16. topics
  17. images</pre>The DITA map is in the <span class="ph filepath">maps</span> directory, the topics
  18. are in the<span class="ph filepath"> topics</span> directory, and the images are in the <span class="ph filepath">images</span>
  19. directory.</div></section>
  20. <section class="section"><h2 class="title sectiontitle">Setting the <span class="keyword parmname">generate.copy.outer</span> parameter to <span class="keyword option">1</span></h2>
  21. <div class="p">Let's assume that you run the HTML5 transformation and specify an output directory of
  22. <span class="ph filepath">C:\A-test</span>. By default, The DITA-OT uses the <span class="keyword parmname">generate.copy.outer</span>
  23. parameter with a value of <span class="keyword option">1</span>. Output is not built for the topics. You receive only the following
  24. output: <pre class="pre">C:\A-test
  25. --- index.html
  26. --- commonltr.css
  27. --- commonrtl.css</pre>The
  28. <span class="ph filepath">index.html</span> file contains the navigation structure, but all the links are broken, since no
  29. HTML5 files were built for the topics.</div>
  30. <p class="p">How do you fix this? By specifying a value of <span class="keyword option">3</span> for the
  31. <span class="keyword parmname">generate.copy.outer</span> parameter. </p>
  32. </section>
  33. <section class="section"><h2 class="title sectiontitle">Setting the <span class="keyword parmname">generate.copy.outer</span> parameter to <span class="keyword option">3</span></h2>
  34. <div class="p">Now your output directory structure looks like this: <pre class="pre">C:\A-test
  35. --- images\
  36. --- maps\
  37. --- topics\</pre>The
  38. index.html file is in the maps directory, and the CSS and other files are located in the output directory,
  39. <span class="ph filepath">C:\A-test</span>. Copying the output directory is simplified.</div>
  40. </section>
  41. </div>
  42. <nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../parameters/parameters-base-html.html" title="Certain parameters apply to all the HTML-based transformation types: Eclipse help, HTML Help, JavaHelp, TocJS, HTML5, and XHTML.">HTML-based output parameters</a></div></div></nav></article></main></body></html>