File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 4444 <dd >Add new strings to generated text file. </dd >
4545 </dlentry >
4646 </dl >
47+ <note id =" note_gff_13d_fqb" >There are two different XML structures for adding new or modifying
48+ existing strings. Both can be used with the latest DITA-OT. The new structure (root element
49+ <xmlelement >vars</xmlelement >) has the benefit to add custom parameters to the string,
50+ such as the current page number, but the old structure (root element
51+ <xmlelement >strings</xmlelement >) is still valid. For example, the old structure is still
52+ used in the <b >org.dita.base</b > plugin and the new structure is used in
53+ <b >org.dita.pdf2</b >. The following code snippets represent the same information in the
54+ old and the new structure. If you are interested in the capabilities of the parameter
55+ mechanism, please have a look at the XML files stored in
56+ <filepath >org.dita.pdf2\cfg\common\vars</filepath >.<codeblock id =" codeblock_hnb_h3d_fqb" outputclass =" language-xml normalize-space show-line-numbers show-whitespace" >< ?xml version="1.0" encoding="utf-8"?>
57+ < strings xml:lang="en-US">
58+ < str name="String1">English generated text< /str>
59+ < /strings></codeblock ><codeblock id =" codeblock_lxd_k3d_fqb" outputclass =" language-xml normalize-space show-line-numbers show-whitespace" >< ?xml version="1.0" encoding="UTF-8"?>
60+ < vars xmlns="http://www.idiominc.com/opentopic/vars">
61+ < variable id="String1">English generated text< /variable>
62+ < /vars></codeblock ></note >
4763 </section >
4864 <example >
4965 <title >Example: adding new strings</title >
You can’t perform that action at this time.
0 commit comments