VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/docsrc/readme/DITA1.1-newfeature.xml@ 99012

Last change on this file since 99012 was 98584, checked in by vboxsync, 2 years ago

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 19.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--Arbortext, Inc., 1988-2010, v.4002-->
3<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
4 "concept.dtd">
5<concept id="newfeaturesinthedita1.1standard" xml:lang="en-us">
6<title>New features in the DITA 1.1 Standard</title>
7<shortdesc>DITA 1.1 was released as a public standard in 2007. The
8following items in the DITA 1.1 standard may be useful for users of
9the DITA Open Toolkit.</shortdesc>
10<conbody></conbody>
11<concept id="graphicscalingimprovement" xml:lang="en-us">
12<title>Graphic scaling improvement</title>
13<conbody>
14<p>Graphic scaling improvement is an enhanced feature that DITA Open
15Toolkit 1.3 provides. DITA OT 1.3 supports this feature
16in the transformation for different outputs, such
17as HTML, XHTML, PDF, and FO. This feature is not applicable
18 in RTF output.<note rev="r5"><ul>
19<li>Because OASIS DITA 1.1 is not yet an approved standard as of the
20release of DITA OT 1.3, the functionality
21described here should be considered a <i>preview</i> capability. </li>
22<li>The specification and the defined functions that need to be supported
23 can change by the time OASIS formally approves
24DITA 1.1.</li>
25</ul></note></p>
26<p>To implement this feature, you must first meet the following prerequisites:<ul>
27<li>Install and configure the DITA Open Toolkit 1.3 successfully. </li>
28<li>Ensure that the image file referred to by the <codeph>&lt;image></codeph> tag
29 exists.</li>
30</ul></p>
31<p>In DITA 1.1, there are some attributes that you can use to set
32the actual display size of the pictures in the <codeph>&lt;image></codeph> tag,
33such as "width", "height", and so on. </p>
34<p>You can set the actual display size of the image in the output
35by taking the following steps:<ol>
36<li>Specify the height and width of the picture in the "height" and
37"width" attributes of the <codeph>&lt;image></codeph> tag,
38for example, <codeph>&lt;image height="80"
39width="60" href="a.jpg"/></codeph></li>
40<li rev="r3">(Optional) Specify the metric of the length in the height
41and width attributes fields, for example, <codeph>&lt;image
42height="80pc" width="60pc" href="a.jpg"/></codeph>.
43The metrics currently supported are: px, pc, pt,
44 in, cm, mm, em. The default is px.<note rev="r3">If you do
45not specify the metric of the length,
46the toolkit will use the default metric, px. </note></li>
47<li>Run the transformation to generate the outputs, such as xhtml,
48HTML, and FO, that support graphic scaling. </li>
49</ol>In the final output, you can see the image displayed in the size
50that you expected. As in this example, the picture
51will be displayed by 80 pt in height and 60 pt in
52width.</p>
53<p rev="r1">You can also use the scaling function in setting the actual
54display size of the image in the output by taking
55the following steps:<ol>
56<li>Specify the height and width of the picture in the "height" and
57"width" attributes of the <codeph>&lt;image></codeph> tag,
58and the metric of the length.</li>
59<li>Specify the scale rate in the scale attribute after you specify
60the height and width for the image, for example, <codeph>&lt;image
61height="80pc" width="60pc" href="a.jpg"
62scale="0.8"/></codeph>. Scale="0.8" means the picture in the
63 output will be displayed at 80% of the size that
64you specified by height and width. </li>
65<li>Run the transformation to generate the outputs that support image
66scaling, such as xhtml, HTML, and FO.</li>
67</ol>In the final output, you can see the image displayed in the size
68that you expected. As in this example, the picture
69will be displayed by 64 pt in height and 48 pt in
70width.</p>
71</conbody>
72</concept>
73<concept id="extensiblemetadataattributes" xml:lang="en-us">
74<title>Extensible metadata attributes</title>
75<conbody>
76<p> OASIS DITA 1.1 provides the DITA architects with an enhanced feature,
77 extensible metadata attributes. If the architects
78want to achieve multiple purposes in one attribute,
79especially in a selective attribute, they can use
80the extensible metadata attributes.</p>
81<note rev="r5"><ul>
82<li>Because OASIS DITA 1.1 is not yet an approved standard as
83 of the release of DITA OT 1.3, the functionality described
84here should be considered a <i>preview</i> capability. </li>
85<li>The specification and the defined functions that need to be supported
86 can change by the time OASIS formally approves
87DITA 1.1.</li>
88</ul></note>
89<example><title>Example</title><p>The following example illustrates
90how people of different roles use the extensible metadata
91attributes in DITA 1.1.</p><ul>
92<li>As a DITA architect of a team, you can perform the following actions:<p><ol>
93<li>Define new attributes that the team needs, for example, "proglanguage". </li>
94<li>Express each new attribute as a separate domain package, for example,
95 proglanguage.mod, with the new attribute
96specialized from the "props" attribute.</li>
97<li>Integrate the domain packages into the authoring DTDs or schemas:
98 <ol>
99<li> Redefine the "props" attribute entity to include the "proglanguage"
100attribute. Similarly, you can redefine
101element entities to integrate new domain elements.</li>
102<li rev="r4">Add the new attribute domain to the list of domains in
103the domains attribute, preceded by
104an "a", for example, <codeph>domains="a(props proglanguage)"</codeph>.</li>
105</ol></li>
106</ol></p></li>
107<li>As an author, you can perform the following actions: <ol>
108<li>Add values to the new attributes of an element.</li>
109<li>Define values in the DITA filter file.</li>
110<li>Transform the DITA source files to remove or flag the content
111based on the new attributes, for example,
112flagging all <codeph>proglanguage="Java"</codeph></li>
113</ol><p>After you perform these actions, another user can reuse the
114content. </p><p>A specialization-unaware trademarking
115tool requires generalization of the contributed
116 content. If the user runs all the content through the tool,
117the content is processed and filtered against
118the new attributes after the generalization.
119 The new attributes are now collapsed into the "props" attribute.
120 <ol>
121<li>The generalization turned <codeph>proglanguage="Java"</codeph> into <codeph>props="proglanguage(Java)"</codeph>.</li>
122<li>The conditional processing transform recognizes the new form as
123equivalent to the old, and the instruction
124"<codeph>flag all proglanguage=java</codeph>"
125 operates on either <codeph>props="proglanguage(Java)"</codeph> or <codeph>proglanguage="Java"</codeph>.</li>
126</ol></p></li>
127</ul></example>
128</conbody>
129</concept>
130<concept id="newelementabstract" xml:lang="en-us">
131<title>New element &lt;abstract></title>
132<conbody>
133<p>You can now use a new element &lt;abstract> in DITA topics. The &lt;abstract>
134 element can include complex markups besides the &lt;shortdesc>
135element. You can put the &lt;shortdesc> element inside
136the &lt;abstract> element, together with many other
137elements. The following examples illustrate how you can use
138 the &lt;abstract> element.. </p>
139<p>If you use several &lt;shortdesc> elements inside the &lt;abstract>
140element, they will be concatenated when pulled for
141hover help. After you format the source files, the
142content inside the &lt;abstract> element will be transformed
143 into normal text. <note rev="r5"><ul>
144<li>Because OASIS DITA 1.1 is not yet an approved standard as of the
145release of DITA OT 1.3, the functionality
146described here should be considered a <i>preview</i> capability. </li>
147<li>The specification and the defined functions that need to be supported
148 can change by the time OASIS formally approves
149DITA 1.1.</li>
150</ul></note></p>
151<example><title>Examples</title><p><lines><ph><b>Example 1</b></ph></lines>In
152 DITA 1.0, you can only use the &lt;shortdesc> element
153that cannot contain the &lt;p> element. <codeblock> &lt;shortdesc>This is a short description in DITA 1.0. It &lt;b>cannot&lt;/b> contain paragraphs.&lt;/shortdesc></codeblock></p><p><lines><ph><b>Example 2</b></ph></lines>This
154example illustrates how you can use different
155elements besides &lt;shortdesc> inside the &lt;abstract>
156 element, and apply different styles to the text inside
157the &lt;abstract> element.<codeblock rev="r2"> &lt;abstract>
158 &lt;shortdesc>This is the short description&lt;/shortdesc>
159 &lt;ol>
160 &lt;li>This is a &lt;i>list&lt;/i>.&lt;/li>
161 &lt;/ol>
162 &lt;p>This is a &lt;b>paragraph&lt;/b>.&lt;/p>
163 &lt;codeblock>Here are some codes.&lt;/codeblock>
164 &lt;filepath>This is the file path.&lt;/filepath>
165 &lt;/abstract></codeblock></p><p><lines><ph><b>Example 3</b></ph></lines>This
166 example illustrates how you can use both
167the &lt;shortdesc> element and plain text
168inside the &lt;abstract> element.<codeblock> &lt;abstract>&lt;shortdesc>This topic is about short description.&lt;/shortdesc>.
169 Short description is very important, so read more.&lt;/abstract></codeblock></p></example>
170</conbody>
171</concept>
172<concept id="newelementdata" xml:lang="en-us">
173<title>New element &lt;data></title>
174<conbody>
175<p>In DITA 1.1, you can use new element, &lt;data>. This element and
176the content inside it is ignored in the transformation
177process of DITA files.<note rev="r5"><ul>
178<li>Because OASIS DITA 1.1 is not yet an approved standard as of the
179release of DITA OT 1.3, the functionality
180described here should be considered a <i>preview</i> capability. </li>
181<li>The specification and the defined functions that need to be supported
182 can change by the time OASIS formally approves
183DITA 1.1.</li>
184</ul></note></p>
185<p>As an author, when you create DITA files, you can add the &lt;data>
186element, and put content inside it. When you transform
187the DITA files to the output that you want, the transformation
188ignores the &lt;data> element and any content inside. </p>
189<p rev="r3">As a specializer, when you specialize the &lt;data> element,
190and put information inside the specialized element,
191you can create a transform override to use the information. </p>
192</conbody>
193</concept>
194<concept id="indexing" xml:lang="en-us">
195<title>Indexing</title>
196<conbody>
197<p>DITA 1.1 supports the following new indexing elements:<ul>
198<li>&lt;index-see></li>
199<li>&lt;index-see-also></li>
200<li>&lt;index-sort-as></li>
201<li>&lt;index-range-start></li>
202<li>&lt;index-range-end></li>
203</ul><note rev="r5"><ul>
204<li>Because OASIS DITA 1.1 is not yet an approved standard as of the
205release of DITA OT 1.3, the functionality described
206here should be considered a <i>preview</i> capability. </li>
207<li>The specification and the defined functions that need to be supported
208 can change by the time OASIS formally approves
209DITA 1.1.</li>
210</ul></note></p>
211<section><title>See and See Also indexing elements</title><p>In DITA
2121.0, you cannot specify the &lt;see> and &lt;see also>
213index entries by using the current &lt;indexterm>
214element. The DITA1.1 standard introduces the following
215 new child elements for &lt;indexterm> that support this functionality:</p><ul>
216<li>index-see</li>
217<li>index-see-also</li>
218</ul><p>For example, you can add an index entry, as illustrated in
219the following text in the DITA source file: <codeblock>&lt;indexterm>computer
220 &lt;index-see>monitor&lt;/index-see>
221 &lt;index-see-also>Illustration&lt;/index-see-also>
222 &lt;/indexterm>
223 </codeblock>Then, if you generate a PDF output
224with the indexing function enabled, you can see
225the following index entries in the PDF output:<screen>
226 computer 43
227 See monitor
228 See also Illustration</screen>The "monitor"
229and "Illustration" entries after "see" and "see
230also" will not be links to the "monitor" and "Illustration"
231 index entries in a PDF output.</p><required-cleanup><!--Deleted per Marshall--><p>If you generate HTML output using the same source file, you can get the following index entries; however, instead of displaying page numbers, the HTML file display the terms after "see" and "see also" as hyperlinks. The "Illustration" hyperlink points to the index entry for "Illustration" under "I".<screen><u>Computer</u>
232 See <u>monitor</u>
233 See also <u>Illustration</u>
234 </screen></p></required-cleanup><p rev="r2">Index
235entries will only be processed when you generate
236HTMLHelp and JavaHelp. For HTMLHelp and JavaHelp, the index
237 contains an entry that uses the text "See xxx" or
238"See also xxx". The "See xxx" or "See also
239xxx" index entries<ph rev="r3"> will link to their parent
240 index term.</ph> <note rev="r3"><ul>
241<li>For HTML output, indexing is ignored. </li>
242<li>For PDF output, you must enable indexing using the FO plugin provided
243 by Idiom. </li>
244</ul></note></p><p>For example, if you put the following content in
245the source file, <codeblock>&lt;indexterm>computer
246 &lt;index-see>monitor&lt;/index-see>
247 &lt;/indexterm></codeblock> the
248output is as follows: <screen>
249 computer
250 See monitor</screen></p></section>
251<section><title>Sort order indexing elements</title><p>With the DITA
2521.1 standard, you can specify a sort phrase and sort
253index entries under the sort phrase. This feature
254provides you with the flexibility to sort an index entry in a
255 different way. Typically you can disregard insignificant
256leading text, such as punctuation or words like "the"
257or "a". If you want to sort &lt;data> under the letter
258D rather than the character "&lt;", you can include such an entry
259 under both the punctuation heading and the letter
260D. Thus, there can be two index entry directives differentiated
261only by the sort order. </p><p>For example, if
262you put the following content in the source file,<codeblock rev="r3"> &lt;indexterm>data&lt;index-sort-as>key&lt;/index-sort-as>&lt;/indexterm>
263 &lt;indexterm>indextest&lt;index-sort-as>abc&lt;/index-sort-as>&lt;/indexterm>
264 </codeblock> the output should be:<msgblock>
265 indextest
266 data</msgblock></p><p rev="r3">If you have
267written an XML book with many punctuation-laden
268 entries in its index, you can use the &lt;index-sort-as>
269element to specify how the sorting method
270of the entries if the punctuation marks are eliminated.
271 For example, <codeph>&lt;data></codeph> is always
272displayed as an entry &lt;data> in the
273index term under the letter D; otherwise, all the entries with punctuations
274 will be sorted under "&lt;". </p><p>Here
275is another example. In a translation
276 project, a document needs to be translated into Japanese. Many
277of the index entries contain kanji,
278which need to be sorted in phonetic order. The translators,
279 who can understand the language and see
280the entry in its context, can insert
281 the <codeph>&lt;index-sort-as></codeph> elements into the <codeph>&lt;indexterm></codeph> elements
282 as part of their localization work. </p></section>
283<section><title>Page-range indexing elements</title><p>In DITA OT
2841.3, you can indicate page ranges instead of individual
285references over consecutive pages. Page ranges indicate
286where the index entry links to an extended discussion
287 that goes over a number of pages. This is typically manifested
288as a page range like 34-36. This is distinguished
289from individual references over consecutive pages
290(34, 35, 36). The page-range indexing function is enabled when you
291use the FO plugin.</p><p>For example, you can add
292a page spanning index entry: <codeblock>&lt;indexterm>DITA&lt;index-range-start/>&lt;/indexterm></codeblock>.
293Later in the same topic, you can add a range terminating marker: &lt;indexterm>DITA&lt;index-range-end/>&lt;/indexterm>.
294 This spans 4 pages on the paper, as illustrated
295in the following example.<screen>DITA, 46-49</screen><note>If
296 you generate HTMLHelp, JavaHelp, and XHTML outputs,
297the page-range indexing elements are ignored. </note> </p></section>
298<section><title>Supporting ICU in index sorting</title><p>With enabled
299ICU interface, DITA Open Toolkit 1.3 helps you get
300correctly sorted index output for different languages. </p><p>During
301normal transformation, the toolkit tries to find
302if there are ICU classes inside the <codeph>classpath</codeph> element.
303 If ICU exists, the toolkit uses ICU's Collator
304class to do the comparing and sorting work. If
305no ICU is found, the toolkit will use JDK's Collator class
306 to do the comparing and sorting work. <ph rev="r2">ICU
307is packed in the big package in DITA OT 1.3</ph></p></section>
308</conbody>
309</concept>
310<concept id="unknown" xml:lang="en-us">
311<title>Supporting foreign content vocabulary</title>
312<conbody>
313<p>In DITA 1.1, you can use the &lt;unknown> element to incorporate
314existing standard vocabularies for special content,
315like MathML and SVG, as inline objects. <note rev="r5"><ul>
316<li>Because OASIS DITA 1.1 is not yet an approved standard as of the
317release of DITA OT 1.3, the functionality
318described here should be considered a <i>preview</i> capability. </li>
319<li>The specification and the defined functions that need to be supported
320 can change by the time OASIS formally approves
321DITA 1.1.</li>
322</ul></note></p>
323<p>As an author, when you create DITA files, you can add the &lt;unknown>
324 element, and put content inside it. The &lt;unknown>
325element and any content inside it is ignored when
326you transform the DITA files to your desired output. </p>
327<p id="r" rev="r3">As a specializer, when you specialize the &lt;unknown>
328 element, and then put information inside the specialized
329element, you can create a transform override that
330allows the information to appear correctly in the
331output. </p>
332</conbody>
333</concept>
334</concept><?Pub Caret -3?>
335<?Pub *0000020395?>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette