Sunday, 24 February 2008

XPath & Intellisense

The very composability of XPath makes designing a smart Intellisense feature somewhat of a challenge.

How does the system know if the currently itemed type is going to be a node-name, an axis-specifier or a function? Well, the answer is, it doesn't - but I'm looking into this, so any ideas would be welcome.

Currently SketchPath only dynamically populates node-names and values where the context in an XPath expression makes them legal. Other XPath constructs are available through a static grid (called the Assist Pane).

Even node-names in intellisense are less than obvious. It wouldn't be that useful, for example, to wait for the full prefix to be typed before selecting the nearest name match.

Anyway, this is one area I'm concentrating on in the next release of SketchPath - this should help out those users who like to keep their hands on the keyboard, rather than straying to the mouse every minute - some extra conventions for shortcuts may need to be introduced to facilitiate this.

0 comments:

Post a Comment