<documentResources> Content: [ resource|selector ]+ </documentResources> <resource> path = Absolute XPath (subset) action = (auto|reference|copy) : auto /> <selector action = (auto|reference|copy) : auto > <class>Content: Java class name</class> </selector>
Specifies which resources are logically part of the document being edited. Generally these resources are external image files.
Attributes of child element resource
:
XPath expression used to find the URIs of the resources within the document content. These URIs are generally attribute values but could also be element values.
Suggested action for the resources matched by the above XPath. This suggested action is displayed by the Resources dialog box of XXE. See Section 6.2, “The "Resources" dialog box” in XMLmind XML Editor - Online Help.
Auto
means: suggest simplest action, copy
or reference
, for each resource.
In complex cases, specifying document resources using simple XPath expressions (see XPath subset below) is not sufficient. In such case, use selector
child elements instead of resource
s. The class
element contains the name of a Java™ class which implements com.xmlmind.xmledit.doc.XNodeSelector
.
XHTML example:
<cfg:documentResources xmlns=""> <cfg:resource path="//img/@src" /> <cfg:resource path="//object/@data" /> </cfg:documentResources>
DocBook example:
<cfg:documentResources xmlns=""> <cfg:resource path="//@fileref" /> </cfg:documentResources>