forked from dita-ot/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters-other.dita
84 lines (83 loc) · 4.11 KB
/
parameters-other.dita
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
<reference id="ant-parameters-other">
<title>Other parameters</title>
<titlealts>
<navtitle>Other</navtitle>
</titlealts>
<shortdesc>These parameters enable you to reload style sheets that DITA-OT uses for specific pre-processing
stages.</shortdesc>
<prolog>
<metadata>
<keywords>
<indexterm>XSLT
<index-see-also>extension points</index-see-also>
<index-see-also>preprocessing</index-see-also></indexterm>
<indexterm>preprocessing
<indexterm>XSLT</indexterm></indexterm>
<indexterm>preprocessing
<index-see-also>Java</index-see-also></indexterm>
<indexterm>preprocessing
<indexterm>extension points, parameters</indexterm></indexterm>
<indexterm>Java
<indexterm>out of memory</indexterm></indexterm>
<indexterm>memory</indexterm>
</keywords>
</metadata>
</prolog>
<refbody>
<section>
<parml>
<plentry>
<pt id="dita.html5.reloadstylesheet">
<parmname>dita.html5.reloadstylesheet</parmname>
</pt>
<pt id="dita.preprocess.reloadstylesheet">
<parmname>dita.preprocess.reloadstylesheet</parmname>
</pt>
<pt id="dita.preprocess.reloadstylesheet.clean-map">
<parmname>dita.preprocess.reloadstylesheet.clean-map</parmname>
</pt>
<pt id="dita.preprocess.reloadstylesheet.conref">
<parmname>dita.preprocess.reloadstylesheet.conref</parmname>
</pt>
<pt id="dita.preprocess.reloadstylesheet.flag-module">
<parmname>dita.preprocess.reloadstylesheet.lag-module</parmname>
</pt>
<pt id="dita.preprocess.reloadstylesheet.mapref">
<parmname>dita.preprocess.reloadstylesheet.mapref</parmname>
</pt>
<pt id="dita.preprocess.reloadstylesheet.mappull">
<parmname>dita.preprocess.reloadstylesheet.mappull</parmname>
</pt>
<pt id="dita.preprocess.reloadstylesheet.maplink">
<parmname>dita.preprocess.reloadstylesheet.maplink</parmname>
</pt>
<pt id="dita.preprocess.reloadstylesheet.topicpull">
<parmname>dita.preprocess.reloadstylesheet.topicpull</parmname>
</pt>
<pt id="dita.xhtml.reloadstylesheet">
<parmname>dita.xhtml.reloadstylesheet</parmname>
</pt>
<pd id="dita.preprocess.reloadstylesheet.desc">
<p>Specifies whether DITA-OT reloads the XSL style sheets that are used for the transformation. The allowed
values are <option>true</option> and <option>false</option>; the default value is
<option>false</option>.</p>
<p>During the pre-processing stage, DITA-OT processes one DITA topic at a time, using the same XSLT
stylesheet for the entire process. These parameters control whether Ant will use the same
<codeph>Transformer</codeph> object in Java, the object that handles the XSLT processing, for all
topics, or create a separate <codeph>Transformer</codeph> for each topic.</p>
<p>The default (<option>false</option>) option uses the same <codeph>Transformer</codeph>, which is a little
faster, because it will not need to parse/compile the XSLT stylesheets and only needs to read the source
trees with <codeph>document()</codeph> once. The downside is that it will not release the source trees
from memory, so you can run out of memory.</p>
<note type="tip">For large projects that generate Java out-of-memory errors during transformation, set the
parameter to <option>true</option> to allow the XSLT processor to release memory. You may also need to
increase the memory available to Java.</note>
</pd>
</plentry>
</parml>
</section>
</refbody>
</reference>