XMLRules and "the selection"?
Hi all-
I'm impressed by the speed of XMLRules over an iteration through the XML tree, but I wonder if it's possible to operate on a user-selection of XML elements with XMLRules? I'm guessing it's not, because a user selection wouldn't necessarily form a tree for an XMLRule to move through.
But is there any way to determine whether a given XML element is part of the current user selection? This information shows up as an underlined element in the Structure window, but I can't seem to find a parallel property in the InDesign object model.
Related to this, but a more general question, is whether the start element for the XMLRules processor can be something other than the root element? All of the published examples start at the root, but is it possible to pass an arbitrary element as the root for use by the processor?
Many thanks!
Charles Turner