paths.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. See the accompanying LICENSE file for applicable license.
  5. Copyright 2007 Shawn McKenzie
  6. *-->
  7. <?xml-stylesheet href="../../../../xsl/ditaview_shell.xsl" type="text/xsl"?>
  8. <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
  9. "../../../../dtd/concept.dtd">
  10. <concept id="tocjs_paths" xml:lang="en-us">
  11. <title>Resolving path issues</title>
  12. <conbody>
  13. <p>The sample documents and related ant tasks work for a relatively simple directory structure.
  14. They
  15. assume that your content and output directory structure will be something like:
  16. <screen>
  17. sample/
  18. |-- basefiles
  19. |-- concepts
  20. `-- tasks
  21. </screen>However, if your ditamap refers to content in other parallel project directories, your output
  22. will have a deeper path to the same files. For instance, imagine your ditamap file is in the root of
  23. the <filepath>sample</filepath> directory, but it includes a reference to a topic in
  24. <filepath>other</filepath> such as:
  25. <codeblock>
  26. &lt;topicref href=&quot;concepts/foo.xml&quot;&gt;
  27. &lt;topicref href=&quot;concepts/bar.xml&quot;/&gt;
  28. &lt;topicref href=&quot;../other/concepts/baz.xml&quot;/&gt;
  29. &lt;/topicref&gt;
  30. </codeblock>
  31. Referencing content in this way will force a deeper nesting to the output directory. The
  32. directory structure of your content in the output directory would now be:
  33. <screen>
  34. sample/
  35. |-- other
  36. | `-- concepts
  37. `-- sample
  38. |-- concepts
  39. `-- tasks
  40. </screen>
  41. Note that there are now two <filepath>sample</filepath> directories in the output, the main one and one that is a
  42. sibling to the <filepath>other</filepath> directory. The files are generated by the
  43. Open Toolkit for the sample project now wind up in the deeper nested <filepath>sample</filepath>
  44. directory.</p>
  45. </conbody>
  46. </concept>