Project | WXT | Basics | Download | Documentation | Samples

Script: addressing-element

The idea of an addressing element is to tell WXT which addresses that should be considered for readdressing when xml-fragments are moved, for instance from a content file to a template. The definitions element may contain any number of addressing elements.

<addressing tag="" attribute=""/>

You should consider following preset:

<addressing tag="a" attribute="href" />
<addressing tag="img" attribute="src" />
<addressing tag="script" attribute="src" />
<addressing tag="link" attribute="href" />

The attributes named in these elements will be subject to address calculation when file fragments are moved.

NOTE: The tags and attributes given are case sensitive.

tag(mandatory) Any string that identifies a tag name for an element that contains an attribute which is a location/uri that is a candidate for readdressing when we move xmlfragments.
attribute(mandatory) Any string that identifies an attribute in an element with name tag, see above.
cancel(optional) Value yes will turn addressing off for this elements with this attribute. no is default. The reason for turning addressing off is mainly processing speed.

An addressing element may not contain any elements.

Examples:

<addressing tag="a" attribute="href" cancel="yes"/>