About the Include tool feature | |
---|---|
Some menu items may be absent in this menu. If this is the case, you need to enable them by checking "Enable the Include Tool" in → , General|Features section. |
Copies to the clipboard a reference to the selected nodes (i.e. a pointer to selected nodes). This reference can be later pasted into another document[4], using any of the normal paste commands — → (Ctrl+U), → (Ctrl+V), → (Ctrl+W) — in places where the grammar constraining the target document allows to do so.
This command is enabled only for documents associated to a configuration declaring a inclusion scheme (see Section 17, “inclusionScheme” in XMLmind XML Editor - Configuration and Deployment). DITA documents use the conref
inclusion scheme. DocBook and XHTML documents use the XInclude inclusion scheme.
By default, it is possible to copy as a reference only an element having an ID attribute or the root element of a document. However, for documents using the XInclude inclusion scheme, this restriction may be relaxed by using Edit section, Allow advanced use of XInclude checkbox. When this option is turned on, it becomes possible to copy as a reference any range of sibling nodes.
→ ,It is not possible to copy as reference the text selection, a reference, descendant nodes of a reference or any node selection directly containing one or more references. If you want to do so, simply use the normal [5] existing references.
→ command, as this command preservesReplace by an element reference
text selection
OR explicitly selected node or node range.
The element reference to be inserted in the document is specified using the Include tool.
Insert an element reference before
explicitly selected node or node range
OR implicitly selected element.
The element reference to be inserted in the document is specified using the Include tool.
Insert an element reference
replacing text selection if any,
OR, if there is no text selection, insert an element reference in element containing caret, at caret position.
The element reference to be inserted in the document is specified using the Include tool.
Insert an element reference after
explicitly selected node or node range
OR implicitly selected element.
The element reference to be inserted in the document is specified using the Include tool.
Displays a file chooser dialog box allowing to choose a text file (of any kind: XML, HTML, .bat
, C/C++, etc). The content of this text file is then included in the document being edited at caret position.
This kind of inclusion is implemented by the means of an <xi:include parse="text">
element. Therefore, this command is disabled unless the document being edited supports the XInclude inclusion scheme.
Replaces included nodes by the inclusion directive (e.g. xi:include
element).
Any kind of selection inside the included nodes suffices to specify the subject of this command.
Replaces all the included nodes found in the document being edited by the corresponding inclusion directives.
Inverse action of Untransclude Reference: replaces inclusion directive (e.g. xi:include
element) by up-to-date included nodes.
The inclusion directive must be explicitly or implicitly selected.
Using untransclude allows to edit the inclusion directive by hand before retranscluding it. This is useful in the two following cases:
This allows to add attributes (typically an ID) to the conref
elements created using Copy As Reference then Paste.
This allows to fine tune the xpointer
attribute of the XIncludes created using Copy As Reference then Paste. Example: replace xpointer="xpointer(id('disclaimer')/*[position() >= 1 and position() <= 8])"
by, simpler and more stable, xpointer="xpointer(id('disclaimer')/*)"
.
Replaces all the inclusion directives found in the document being edited by the corresponding included nodes.
If current document is referenced by another document already opened in XXE and displayed in another window, this command brings the window of this other document to front. If there is no such referencing document, this command is silently disabled.
Book book.xml
references chapters chap1.xml
, chap2.xml
, chap3.xml
, etc, created in separate documents.
Clicking anywhere inside first chapter displayed in the book.xml
window then using menu item ( → → Ctrl+Shift+E) brings the window containing chap1.xml
to front. (If needed, chap1.xml
is opened in XXE.)
Now being inside the chap1.xml
window, using menu item ( → → Ctrl+Shift+B) brings the window containing book.xml
to front.
If the caret or the selection is inside a reference to an element contained in another document, this command brings the window of this other document to front. If the referenced document is not yet opened in XXE, this command will open it.
See example above.
Shift-click on this menu item to open referenced document in read-only mode. |