<domEdits>
Section containing DOM editing specifications. These are modifications done to elements in the DOM during the compilation of a document.
Context:
Content:<elementEdit>
Abstract type used as a base for all element editing definitions. This provides for the definition of which attributes and elements are to be operated on by the derived edit definitions.
Attributes:
elementIds
- Restrict replacement to the elements matching
any of the ids in the space-separate list.
elementClasses
- Restrict replacement to the elements
any of the class names in the space-separate list. These are class attribute
values, as specified by the HTML CLASS
attribute, not Java
class names.
elementTags
- Restrict replacement to the elements matching
any of the tag names in the space-separate list.
Case is ignored for HTML.
<urlEdit>
Abstract type uses as a base for all URL editing definition.
Base type: <elementEdit>
Attributes:
editAttrs
- List of attributes that are to be edited.
If not specified, defaults to the attributes that the
XMLCDomFactory
object for the document defines as containing URLs.
<urlMapping/>
Specifies the literal replacement of URLs in element attributes. When used in the <domEdits> section, it applies globally to elements. When use in a element or sub-document, it applies only to that context.
Base type: <urlEdit>
Attributes:
url
The existing URL. If not specified, all URLs for the matching
elements will be replaced.
newUrl
The replacement URL.
<urlRegExpMapping/>
Specifies the regular expression replacement of URLs in element
attributes. If the regular expression matches, if is edited using a
substituted using a replacement pattern. POSIX extended regular
expressions are used implemented uses the gnu.regexp
package. Set the
documentation on this package for details of the regular expression and
substitution syntax. When used in the <domEdits> section, it applies
globally to elements. When use in a element or sub-document, it applies
only to that context.
Base type: <urlEdit>
Attributes:
regexp
The POSIX regular expression to match against URL tag
attributes.
subst
The substitution expression to use to the generate the
replacement URL.
<deleteElement>
Delete all matching elements. This is often used to specify the element class of mockup data that is to be deleted from the document.
Base type: <elementEdit>
Context: