anker
. XHTML-stykker kan derefter blive dynamisk indsat i disse dokumenter under runtime.
<!ELEMENT extension (contentExtension+)>
<!ATTLIST-udvidelse
point CDATA #REQUIRED
id CDATA #IMPLIED
navn CDATA #IMPLIED>
<!ELEMENT contentExtension EMPTY>
<!ATTLIST contentExtension
file CDATA #REQUIRED>
Definerer indholdsudvidelser til en eller flere sider i hjælpen. Placeringen af indholdsudvidelsesfilen er angivet af attributten file
.
<contentExtension>
<topicExtension content=
"plugin/relative/path/topicExtensionFile.xhml"
path=
"plugin_id/path_to_xhtml_file/anchor_id"
/>
<topicReplace content=
"topicReplaceFile.xhml"
path=
"plugin_id/path_to_xhtml_file/element_id"
/>
</contentExtension>
topicExtension
er en markup, der anvendes til at indsætte indhold på placeringen af målankret.
topicReplace
er den markup, der anvendes til at erstatte målelementets indhold med det angivne indhold. Med andre ord kan indhold leveres, der enten tilføjer til målplaceringen eller erstatter indholdet af målplaceringen. (i filen plugin.xml)
<extension point=
"org.eclipse.help.contentExtension"
>
<contentExtension file=
"contentExtensionFile.xml"
/>
</extension>
(i filen contentExtensionFile.xml)
<contentExtension>
<topicExtension content=
"xhtml/topicA.xhtml"
path=
"org.xxx.yyy.somePluginId/xhtml/someHelpPage.xhtml/topicAnchor"
/>
</contentExtension>
Bidraget ovenfor indsætter indholdet af XHTML filen topicA.xhtml på målsiden i hjælpen, der er angivet med attributten path. I dette tilfælde indsættes indholdsudvidelsen på placeringen af ankret topicAnchor på siden someHelpPage.xhtml i plugin'en org.xxx.yyy.somePluginId.
Bidraget ovenfor indsætter indholdet af XHTML filen topicA.xhtml på målsiden i hjælpen, der er angivet med attributten path. I dette tilfælde indsættes indholdsudvidelsen på placeringen af ankret topicAnchor på siden someHelpPage.xhtml i plugin'en org.xxx.yyy.somePluginId.
Copyright (c) 2000, 2006 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html