Specifies a string that identifies an HTML element in the view.
The viewContext attribute is an optional attribute of the xmlToEdit element.
The viewContext attribute names an HTML element that has the xd:CtrlId attribute. For example,
|If the xd:CtrlId attribute is not used in the XSLT/HTML code for the view, then the viewContext attribute is ignored.|
The viewContext attribute can be used to disambiguate controls when two instances of the same control have the same XML context (so that the XML context is identical). An example is a table of contents with chapter titles, and below, the same chapters repeated with full content. Two editWith elements for item="chapter" but different view contexts can specify distinct behavior.
The following is an example of the viewContext attribute as it is used in the xmlToEdit element: