VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/docsrc/dev_ref/extending-the-ot.dita@ 99507

最後變更 在這個檔案從99507是 98584,由 vboxsync 提交於 2 年 前

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

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.1 KB
 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--Arbortext, Inc., 1988-2011, v.4002-->
3<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
4 "reference.dtd">
5<?Pub Inc?>
6<reference id="extending-the-ot" xml:lang="en-us">
7<title>Extending the DITA Open Toolkit</title>
8<shortdesc>There are several methods that can be used to extend the
9toolkit; not all of them are recommended or supported. The best way
10to create most extensions is with a plug-in; extended documentation
11for creating plug-ins is provided in the next section.</shortdesc>
12<refbody>
13<section><ul>
14<li>Creating a plug-in can be very simple to very complex, and is generally the best method for
15 changing or extending the toolkit. Plug-ins can be used to accomplish almost any
16 modification that is needed for toolkit processing, from minor style tweaks to extensive,
17 complicated new output formats.</li><?Pub Caret 244?>
18<li>The PDF process was initially developed independently of the toolkit,
19and created its own extension mechanism using customization directories.
20Many (but not quite all) of the capabilities available through PDF
21customization directories are now available through plug-ins.</li>
22<li>Using a single XSL file as an override by passing it in as a parameter.
23For example, when building XHTML content, the XSL parameter allows
24users to specify a single local XSL file (inside or outside of the
25toolkit) that is called in place of the default XHTML code. Typically,
26this code imports the default processing code, and overrides a couple
27of processing routines. This approach is best when the override is
28very minimal, or when the style varies from build to build. However,
29any extension made with this sort of override is also possible with
30a plug-in.</li>
31<li>Editing DITA-OT code directly may work in some cases, but is not
32advised. Modifying the code directly significantly increases the work
33and risk involved with future upgrades. It is also likely that such
34modifications will break plug-ins provided by others, limiting the
35function available to the toolkit.</li>
36</ul></section>
37</refbody>
38</reference>
39<?Pub *0000002122?>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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