parameters-other.dita 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
  3. <!--This file is part of the DITA Open Toolkit project. See the accompanying LICENSE.md file for applicable licenses.-->
  4. <reference id="ant-parameters-other">
  5. <title>Other parameters</title>
  6. <titlealts>
  7. <navtitle>Other</navtitle>
  8. </titlealts>
  9. <shortdesc>These parameters enable you to reload style sheets that the DITA-OT uses for specific pre-processing
  10. stages.</shortdesc>
  11. <refbody>
  12. <section>
  13. <parml>
  14. <plentry>
  15. <pt id="dita.preprocess.reloadstylesheet"><parmname>dita.preprocess.reloadstylesheet</parmname></pt>
  16. <pt id="dita.preprocess.reloadstylesheet.conref">
  17. <parmname>dita.preprocess.reloadstylesheet.conref</parmname>
  18. </pt>
  19. <pt id="dita.preprocess.reloadstylesheet.mapref">
  20. <parmname>dita.preprocess.reloadstylesheet.mapref</parmname>
  21. </pt>
  22. <pt id="dita.preprocess.reloadstylesheet.mappull">
  23. <parmname>dita.preprocess.reloadstylesheet.mappull</parmname>
  24. </pt>
  25. <pt id="dita.preprocess.reloadstylesheet.maplink">
  26. <parmname>dita.preprocess.reloadstylesheet.maplink</parmname>
  27. </pt>
  28. <pt id="dita.preprocess.reloadstylesheet.topicpull">
  29. <parmname>dita.preprocess.reloadstylesheet.topicpull</parmname>
  30. </pt>
  31. <pd id="dita.preprocess.reloadstylesheet.desc">
  32. <p>Specifies whether the DITA-OT reloads the XSL style sheets that are used for the transformation. The
  33. allowed values are <option>true</option> and <option>false</option>; the default value is
  34. <option>false</option>.</p>
  35. <p>During the pre-processing stage, DITA-OT processes one DITA topic at a time, using the same XSLT
  36. stylesheet for the entire process. These parameters control whether Ant will use the same
  37. <codeph>Transformer</codeph> object in Java, the object that handles the XSLT processing, for all
  38. topics, or create a separate <codeph>Transformer</codeph> for each topic.</p>
  39. <p>The default (<option>false</option>) option uses the same <codeph>Transformer</codeph>, which is a little
  40. faster, because it will not need to parse/compile the XSLT stylesheets and only needs to read the source
  41. trees with <codeph>document()</codeph> once. The downside is that it will not release the source trees
  42. from memory, so you can run out of memory.</p>
  43. <note type="tip">For large projects that generate Java out-of-memory errors during transformation, set the
  44. parameter to <option>true</option> to allow the XSLT processor to release memory. You may also need to
  45. increase the memory available to Java.</note>
  46. </pd>
  47. </plentry>
  48. </parml>
  49. </section>
  50. </refbody>
  51. </reference>