83. searchReplaceElement

Parameter syntax:

[ search|searchBackwards|replace|replaceBackwards|
  findAgain|findAgainBackwards|
  replaceAgain|replaceAgainBackwards|
  find search_spec|findBackwards search_spec]?

Displays a modal dialog box which lets the user search and replace elements in the document being edited.

The parameter defaults to search.

search

Displays the dialog box ready to be used to search elements from explicitly or implicitly selected node to the end of the document.

searchBackwards

Displays the dialog box ready to be used to search elements from explicitly or implicitly selected node to the beginning of the document (backwards).

replace

Displays the dialog box ready to be used to search and replace elements from explicitly or implicitly selected node to the end of the document.

replaceBackwards

Displays the dialog box ready to be used to search and replace elements from explicitly or implicitly selected node to the beginning of the document (backwards).

findAgain

The dialog box is not displayed. Repeats last specified search operation starting at explicitly or implicitly selected node and ending at the end of the document.

findAgainBackwards

The dialog box is not displayed. Repeats last specified search operation starting at explicitly or implicitly selected node and ending at the beginning of the document (backwards).

replaceAgain

The dialog box is not displayed. Repeats last specified search and replace operation starting at explicitly or implicitly selected node and ending at the end of the document.

replaceAgainBackwards

The dialog box is not displayed. Repeat last specified search and replace operation starting at explicitly or implicitly selected node and ending at the beginning of the document (backwards).

find search_spec

The dialog box is not displayed. Performs specified search operation starting at explicitly or implicitly selected node and ending at the end of the document.

findBackwards search_spec

The dialog box is not displayed. Performs specified search operation starting at explicitly or implicitly selected node and ending at the beginning of the document (backwards).

search_spec, the argument of find and findBackwards, contains up to 7 fields separated with whitespace. An empty field is specified as character minus (-) without a quote of any kind. A field containing whitespace must be quoted (e.g. "1 2 3" or 'a b c'). Character minus (-) when used as an actual field value must be quoted (that is, "-" or '-').

These 7 fields are:

Examples:

{http://www.w3.org/1999/xhtml}caption - - - - - -

- xml:id - - - - -

"{http://www.w3.org/1999/xhtml}a {http://www.w3.org/1999/xhtml}area" {}href =~ ^http(s)?:// - - -