Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-incubator-dev] XSL Content Assist

One more note. I've added support for showing the Local and Global variables and parameters for the select, test, and match attributes. Here is how it works.

Select and Test attributes:

When content assist is initiated, the Document is retireved and an XPath statement is run against the WTP DOM (thanks to Doug's XPath view code for pointing this out). It runs an XPath statement to get the global variables, and then it runs a second Xpath statement to get the locally scoped variables. These are all added to the content assist. This is dynamic, so if a user adds a variable to the stylesheet, and it's in scope it will show in the content assist.

Match attributes:

These only get global defined variables and params added to the content assist.

The insertion of the variables and params probably needs some tweaking, but it should be good to play with and see how it works.

Match also gets XPath content assistance as well.

Having the ability to run XPath statements against the WTP DOM, is a huge time saver. All code is checked into CVS.


Dave

DOUG SATCHWELL wrote:
I've had a play and this looks fantastic! I'll have a proper play later this week, do you want me to log any bugs/suggestions in bugzilla? Thanks, Doug

----- Original Message ----
From: David Carver <d_a_carver@xxxxxxxxx>
To: WTP Incubator Dev list <wtp-incubator-dev@xxxxxxxxxxx>
Sent: Saturday, 8 March, 2008 9:05:48 PM
Subject: [wtp-incubator-dev] XSL Content Assist

I've checked in code, that implements XSL Content Assist for XPath,
Axis, and Operators on the select and test attributes in the XML
Editor.  It also adds a new preference page to the XSL Preferences for
XPath templates.

All code is checked into cvs.

Dave


_______________________________________________
wtp-incubator-dev mailing list
wtp-incubator-dev@xxxxxxxxxxx <mailto:wtp-incubator-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/wtp-incubator-dev

------------------------------------------------------------------------

_______________________________________________
wtp-incubator-dev mailing list
wtp-incubator-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-incubator-dev




Back to the top