Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 319020975da465fb738b1a376cb19f8fe874f605 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
/*******************************************************************************
 * Copyright (c) 2000, 2018 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Bruno Haible haible@ilog.fr - bug 228890
 *******************************************************************************/
package org.eclipse.ui.internal.handlers;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExecutableExtension;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.ui.internal.ExceptionHandler;

/**
 * Handles the cut command in both dialogs and windows. This handler is enabled
 * if the focus control supports the "cut", "copy" or "paste" methods.
 *
 * @since 3.0
 */
public class WidgetMethodHandler extends AbstractHandler implements
		IExecutableExtension {

	/**
	 * The parameters to pass to the method this handler invokes. This handler
	 * always passes no parameters.
	 */
	public WidgetMethodHandler() {
		display = Display.getCurrent();
		if (display != null) {
			focusListener = event -> updateEnablement();
			display.addFilter(SWT.FocusIn, focusListener);
		}
	}

	void updateEnablement() {
		boolean rc = isHandled();
		if (rc != isEnabled()) {
			setBaseEnabled(rc);
		}
	}

	/**
	 * The name of the method to be invoked by this handler. This value should
	 * never be <code>null</code>.
	 */
	protected String methodName;
	private Listener focusListener;
	private Display display;

	@Override
	public Object execute(final ExecutionEvent event) throws ExecutionException {
		final Method methodToExecute = getMethodToExecute();
		if (methodToExecute != null) {
			try {
				final Control focusControl = Display.getCurrent()
						.getFocusControl();
				if ((focusControl instanceof Composite)
						&& ((((Composite) focusControl).getStyle() & SWT.EMBEDDED) != 0)) {
					/*
					 * Okay. Have a seat. Relax a while. This is going to be a
                     * bumpy ride. If it is an embedded widget, then it *might*
                     * be a Swing widget. At the point where this handler is
					 * executing, the key event is already bound to be
					 * swallowed. If I don't do something, then the key will be
					 * gone for good. So, I will try to forward the event to the
					 * Swing widget. Unfortunately, we can't even count on the
					 * Swing libraries existing, so I need to use reflection
					 * everywhere. And, to top it off, I need to dispatch the
					 * event on the Swing event queue, which means that it will
					 * be carried out asynchronously to the SWT event queue.
					 */
					try {
						final Object focusComponent = getFocusComponent();
						if (focusComponent != null) {
							Runnable methodRunnable = () -> {
								try {
									methodToExecute.invoke(focusComponent);
								} catch (final IllegalAccessException e1) {
									// The method is protected, so do
									// nothing.
								} catch (final InvocationTargetException e2) {
									/*
									 * I would like to log this exception --
									 * and possibly show a dialog to the
									 * user -- but I have to go back to the
									 * SWT event loop to do this. So, back
									 * we go....
									 */
									focusControl.getDisplay().asyncExec(
											() -> ExceptionHandler
													.getInstance()
													.handleException(
															new ExecutionException(
																	"An exception occurred while executing " //$NON-NLS-1$
																			+ methodToExecute
																					.getName(),
																	e2
																			.getTargetException())));
								}
							};

							swingInvokeLater(methodRunnable);
						}
					} catch (final ClassNotFoundException e) {
						// There is no Swing support, so do nothing.

					} catch (final NoSuchMethodException e) {
						// The API has changed, which seems amazingly unlikely.
						throw new Error("Something is seriously wrong here"); //$NON-NLS-1$
					}

				} else {

					methodToExecute.invoke(focusControl);
				}

			} catch (IllegalAccessException e) {
				// The method is protected, so do nothing.

			} catch (InvocationTargetException e) {
				throw new ExecutionException(
						"An exception occurred while executing " //$NON-NLS-1$
								+ methodToExecute.getName(), e
								.getTargetException());

			}
		}

		return null;
	}

	/**
	 * Invoke a runnable on the swing EDT.
	 *
	 * @param methodRunnable
	 * @throws ClassNotFoundException
	 * @throws NoSuchMethodException
	 * @throws IllegalAccessException
	 * @throws InvocationTargetException
	 */
	protected void swingInvokeLater(Runnable methodRunnable)
			throws ClassNotFoundException, NoSuchMethodException,
			IllegalAccessException, InvocationTargetException {
		final Class swingUtilitiesClass = Class.forName("javax.swing.SwingUtilities"); //$NON-NLS-1$
		final Method swingUtilitiesInvokeLaterMethod = swingUtilitiesClass.getMethod("invokeLater", //$NON-NLS-1$
				Runnable.class);
		swingUtilitiesInvokeLaterMethod.invoke(swingUtilitiesClass, methodRunnable);
	}

	/**
	 * Find the swing focus component, if it is available.
	 *
	 * @return Hopefully, the swing focus component, but it can return
	 * 	<code>null</code>.
	 * @throws ClassNotFoundException
	 * @throws NoSuchMethodException
	 * @throws IllegalAccessException
	 * @throws InvocationTargetException
	 */
	protected Object getFocusComponent() throws ClassNotFoundException,
			NoSuchMethodException, IllegalAccessException,
			InvocationTargetException {
		/*
		 * Before JRE 1.4, one has to use
		 * javax.swing.FocusManager.getCurrentManager().getFocusOwner(). Since
		 * JRE 1.4, one has to use
		 * java.awt.KeyboardFocusManager.getCurrentKeyboardFocusManager
		 * ().getFocusOwner(); the use of the older API would install a
		 * LegacyGlueFocusTraversalPolicy which causes endless recursions in
		 * some situations.
		 */
		Class keyboardFocusManagerClass = null;
		try {
			keyboardFocusManagerClass = Class
					.forName("java.awt.KeyboardFocusManager"); //$NON-NLS-1$
		} catch (ClassNotFoundException e) {
			// switch to the old guy
		}
		if (keyboardFocusManagerClass != null) {
			// Use JRE 1.4 API
			final Method keyboardFocusManagerGetCurrentKeyboardFocusManagerMethod = keyboardFocusManagerClass
					.getMethod("getCurrentKeyboardFocusManager"); //$NON-NLS-1$
			final Object keyboardFocusManager = keyboardFocusManagerGetCurrentKeyboardFocusManagerMethod
					.invoke(keyboardFocusManagerClass);
			final Method keyboardFocusManagerGetFocusOwner = keyboardFocusManagerClass
					.getMethod("getFocusOwner"); //$NON-NLS-1$
			final Object focusComponent = keyboardFocusManagerGetFocusOwner
					.invoke(keyboardFocusManager);
			return focusComponent;
		}
		// Use JRE 1.3 API
		final Class focusManagerClass = Class
				.forName("javax.swing.FocusManager"); //$NON-NLS-1$
		final Method focusManagerGetCurrentManagerMethod = focusManagerClass
				.getMethod("getCurrentManager"); //$NON-NLS-1$
		final Object focusManager = focusManagerGetCurrentManagerMethod
		        .invoke(focusManagerClass);
		final Method focusManagerGetFocusOwner = focusManagerClass
		        .getMethod("getFocusOwner"); //$NON-NLS-1$
		final Object focusComponent = focusManagerGetFocusOwner
		        .invoke(focusManager);
		return focusComponent;

	}

	@Override
	public final boolean isHandled() {
		return getMethodToExecute() != null;
	}

	/**
	 * Looks up the method on the focus control.
	 *
	 * @return The method on the focus control; <code>null</code> if none.
	 */
	protected Method getMethodToExecute() {
		Display display = Display.getCurrent();
		if (display == null)
			return null;
		final Control focusControl = display.getFocusControl();
		Method method = null;

		if (focusControl != null) {
			final Class clazz = focusControl.getClass();
			try {
				method = clazz.getMethod(methodName);
			} catch (NoSuchMethodException e) {
				// Fall through...
			}
		}

		if ((method == null)
				&& (focusControl instanceof Composite)
				&& ((((Composite) focusControl).getStyle() & SWT.EMBEDDED) != 0)) {
			/*
			 * We couldn't find the appropriate method on the current focus
			 * control. It is possible that the current focus control is an
			 * embedded SWT composite, which could be containing some Swing
			 * components. If this is the case, then we should try to pass
			 * through to the underlying Swing component hierarchy. Insha'allah,
			 * this will work.
			 */
			try {
				final Object focusComponent = getFocusComponent();
				if (focusComponent != null) {
					final Class clazz = focusComponent.getClass();

					try {
						method = clazz.getMethod(methodName);
					} catch (NoSuchMethodException e) {
						// Do nothing.
					}
				}
			} catch (final ClassNotFoundException e) {
				// There is no Swing support, so do nothing.

			} catch (final NoSuchMethodException e) {
				// The API has changed, which seems amazingly unlikely.
				throw new Error("Something is seriously wrong here"); //$NON-NLS-1$
			} catch (IllegalAccessException e) {
				// The API has changed, which seems amazingly unlikely.
				throw new Error("Something is seriously wrong here"); //$NON-NLS-1$
			} catch (InvocationTargetException e) {
				// The API has changed, which seems amazingly unlikely.
				throw new Error("Something is seriously wrong here"); //$NON-NLS-1$
			}
		}

		return method;
	}

	@Override
	public void setInitializationData(IConfigurationElement config,
			String propertyName, Object data) {
		// The data is really just a string (i.e., the method name).
		methodName = data.toString();
	}

	@Override
	public void dispose() {
		if (display!=null && !display.isDisposed()) {
			display.removeFilter(SWT.FocusIn, focusListener);
		}
		display = null;
		focusListener = null;
	}
}

Back to the top

right'>1708
-rw-r--r--bundles/org.eclipse.wst.xsl.core/xslt-schemas/xslt-2.0.xsd1173
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/.cvsignore4
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/.project28
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.core.prefs25
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.ui.prefs3
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.pde.prefs16
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/META-INF/MANIFEST.MF23
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/build.properties8
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/icons/brkp_obj.gifbin197 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/icons/localvariable_obj.gifbin152 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/icons/operation.gifbin142 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/icons/sample.gifbin983 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_launch.gifbin300 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_output.gifbin352 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/plugin.properties12
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/plugin.xml113
-rwxr-xr-xbundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLDebugPluginImages.java34
-rwxr-xr-xbundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLPluginImageHelper.java162
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/ui/Messages.java254
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/ui/messages.properties61
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/AbstractTableBlock.java98
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/ResourceSelectionBlock.java572
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIConstants.java41
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUILaunchListener.java151
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIPlugin.java191
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchConfigurationTab.java140
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java332
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLTTabGroup.java58
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractParameterAction.java125
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractStylesheetAction.java201
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddExternalFileAction.java75
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddParameterAction.java65
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddWorkspaceFileAction.java121
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/ControlAccessibleListener.java54
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveDownAction.java79
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveUpAction.java82
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MultipleInputDialog.java435
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/OpenDialogAction.java66
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveAction.java59
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveParameterAction.java54
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/breakpoint/XSLBreakpointProvider.java160
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLBreakpointAdapterFactory.java49
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLLineBreakpointAdapter.java105
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLModelPresentation.java104
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IParametersChangedListener.java16
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IStylesheetEntriesChangedListener.java16
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/InputFileBlock.java149
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/MainTabMessages.java63
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/MainTabMessages.properties23
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/Messages.java32
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParameterViewer.java121
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersBlock.java243
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersContentProvider.java81
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersLabelProvider.java54
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetContentProvider.java73
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetLabelProvider.java85
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetViewer.java130
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/TransformsBlock.java207
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/XSLMainTab.java222
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/messages.properties12
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/Messages.java91
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputFileBlock.java299
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputTab.java72
-rw-r--r--bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/messages.properties48
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.project34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/META-INF/MANIFEST.MF25
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/build.properties8
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/icons/xslt_processor.gifbin161 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.properties5
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.xml70
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/JAXPDebugUIPlugin.java61
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/AddProcessorDialog.java384
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/BasePreferencePage.java30
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/InstalledProcessorsBlock.java646
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/Messages.java51
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorLibraryBlock.java344
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorsPreferencePage.java162
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/messages.properties31
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributeDialog.java161
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributesBlock.java365
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/InstallStandin.java29
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarContentProvider.java34
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarLabelProvider.java26
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/Messages.java22
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertiesBlock.java376
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertyDialog.java160
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorBlock.java376
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDescriptor.java16
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDetailsDialog.java113
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.java37
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.properties14
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/XSLProcessorTab2.java97
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/messages.properties11
-rw-r--r--bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultView.java189
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.cvsignore4
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.project28
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.pde.prefs24
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/META-INF/MANIFEST.MF22
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/build.properties8
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/plugin.properties9
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/plugin.xml50
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/LaunchingPlugin.java71
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Messages.java22
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Utils.java57
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLPropertyTester.java21
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupDirector.java22
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupParticipant.java30
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourcePathComputerDelegate.java105
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/messages.properties2
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLLaunchConfigurationConstants.java25
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLTRuntime.java46
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/BaseLaunchHelper.java199
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchAttribute.java55
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchPipeline.java148
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchTransform.java205
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/Messages.java22
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/PreferenceUtil.java156
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/messages.properties2
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLConstants.java19
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLDebugTarget.java21
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/Messages.java22
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLDebugElement.java54
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLLineBreakpoint.java78
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLStackFrame.java248
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLThread.java178
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLValue.java56
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLVariable.java99
-rw-r--r--bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/messages.properties9
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/.project28
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/META-INF/MANIFEST.MF8
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/SaxonAttributes.properties89
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/SaxonOutputProperties.properties27
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/build.properties9
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/plugin.properties7
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/plugin.xml28
-rw-r--r--bundles/org.eclipse.wst.xsl.saxon/src-debugger/README.txt1
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.classpath7
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.cvsignore4
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.project28
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.pde.prefs24
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/META-INF/MANIFEST.MF17
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/XalanAttributes.properties21
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/XalanOutputProperties.properties37
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/build.properties10
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/plugin.properties8
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/plugin.xml45
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanDebugger.java89
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanPrintTraceListener.java104
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanRootStyleFrame.java74
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanStyleFrame.java197
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanTraceListener.java164
-rw-r--r--bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanVariable.java156
-rw-r--r--bundles/org.eclipse.wst.xsl/.project22
-rw-r--r--bundles/org.eclipse.wst.xsl/META-INF/MANIFEST.MF7
-rw-r--r--bundles/org.eclipse.wst.xsl/about.html34
-rw-r--r--bundles/org.eclipse.wst.xsl/about.ini31
-rw-r--r--bundles/org.eclipse.wst.xsl/about.mappings6
-rw-r--r--bundles/org.eclipse.wst.xsl/about.properties20
-rw-r--r--bundles/org.eclipse.wst.xsl/build.properties8
-rw-r--r--bundles/org.eclipse.wst.xsl/plugin.properties3
-rw-r--r--bundles/org.eclipse.wst.xsl/wtp_prod32.gifbin1752 -> 0 bytes-rw-r--r--bundles/org.eclipse.wst.xsl/wtp_prod32.pngbin2672 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/.cvsignore1
-rw-r--r--docs/org.eclipse.wst.xsl.doc/.project27
-rw-r--r--docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.wst.validation.prefs15
-rw-r--r--docs/org.eclipse.wst.xsl.doc/META-INF/MANIFEST.MF10
-rw-r--r--docs/org.eclipse.wst.xsl.doc/about.html34
-rw-r--r--docs/org.eclipse.wst.xsl.doc/build.properties9
-rw-r--r--docs/org.eclipse.wst.xsl.doc/build.xml41
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/.cvsignore1
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/concepts/RescuingXSLTfromNicheStatus.xml502
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/concepts/concepts.xml40
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/concepts/gettingstarted.xml10
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/editor/editor.xml353
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/general/general.xml62
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist1.pngbin58353 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist2.pngbin60069 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/calltemplate.pngbin26069 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/hrefAssistance.pngbin24019 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/modeAssistance.pngbin25596 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override1.pngbin8801 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override2.pngbin8848 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/editor/xslproposals.pngbin39002 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/launchShortct.pngbin52144 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/launching/resultView.pngbin38017 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/XPathTemplates.pngbin52055 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xm_template_xslnewfile.pngbin51651 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_InstalledProcessors.pngbin19110 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_outputproperties.pngbin35947 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslfeatures.pngbin15952 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslpreferences.pngbin34200 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/launching/launching.xml49
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/legal.xml20
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/preferences/preferences.xml155
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/samples/samples.xml35
-rw-r--r--docs/org.eclipse.wst.xsl.doc/docbook/xslhelp.dbk25
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/about.html34
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/book.css214
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/concepts/concepts.html418
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/concepts/resources.html5
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor.html27
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist.html141
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_debugging.html6
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_markers.html13
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_templates.html21
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_validation.html36
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/general/general.html27
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist1.pngbin58353 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist2.pngbin60069 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/calltemplate.pngbin26069 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/hrefAssistance.pngbin24019 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/modeAssistance.pngbin25596 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/override1.pngbin8801 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/override2.pngbin8848 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/editor/xslproposals.pngbin39002 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/general/xinclude.pngbin2834 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/launchShortct.pngbin52144 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/launching/resultView.pngbin38017 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/XPathTemplates.pngbin52055 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xm_template_xslnewfile.pngbin51651 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_InstalledProcessors.pngbin19110 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_outputproperties.pngbin35947 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslfeatures.pngbin15952 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslpreferences.pngbin34200 -> 0 bytes-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/index.html6
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/index.xml1
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/introduction/gettingstarted.html3
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/debugging.html9
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/debuglaunching.html3
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/launching/launching.html8
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/legal.html11
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xpathtemplates.html28
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xsloutputproperties.html9
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xslpreferences.html20
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/preferences/xslprocessors.html5
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/reference/maintopic.html13
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/reference/subtopic.html13
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/reference/subtopic2.html13
-rw-r--r--docs/org.eclipse.wst.xsl.doc/html/samples/samples.html11
-rw-r--r--docs/org.eclipse.wst.xsl.doc/plugin.properties3
-rw-r--r--docs/org.eclipse.wst.xsl.doc/plugin.xml5
-rw-r--r--docs/org.eclipse.wst.xsl.doc/toc.xml1
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/.classpath7
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/.project33
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.wst.validation.prefs17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/META-INF/MANIFEST.MF11
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/about.html34
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/build.properties13
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/build.xml80
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/.cvsignore299
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/.cvsignore1
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_debugger.html61
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_invoke.html41
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processor.html63
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processorType.html73
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.XPathCorePlugin.html17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper.html117
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathUIMessages.html53
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathViewPlugin.html63
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMNodeLabelProvider.html11
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMTreeContentProvider.html33
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMViewerFilter.html17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.EditNamespacePrefixDialog.html37
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.EditorReferenceLabelProvider.html15
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.RefreshAction.html9
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.ShowInSourceAction.html9
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.XMLEditorsContentProvider.html21
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.XPathAction.html9
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.html45
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.Messages.html71
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.ValidationPreferences.html95
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.XSLCore.html40
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.resolver.ResolverExtension.html21
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.core.resolver.XSLVersionHandler.html67
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanDebugger.html17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanPrintTraceListener.html17
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanRootStyleFrame.html13
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanStyleFrame.html35
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanTraceListener.html23
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xsl.xalan.debugger.XalanVariable.html29
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/toc.html13
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/jeltohtml.xsl393
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/jeltotoc.xsl40
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/doc/schema.css71
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/lib/.cvsignore2
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/plugin.properties14
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/plugin.xml13
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/src/org/eclipse/wst/xsl/sdk/documentation/Activator.java50
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/toc.xml58
-rw-r--r--docs/org.eclipse.wst.xsl.sdk.documentation/tocExtension.xml15
-rw-r--r--features/org.eclipse.wst.xsl.feature/.cvsignore1
-rw-r--r--features/org.eclipse.wst.xsl.feature/.project15
-rw-r--r--features/org.eclipse.wst.xsl.feature/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--features/org.eclipse.wst.xsl.feature/.settings/org.eclipse.pde.prefs16
-rw-r--r--features/org.eclipse.wst.xsl.feature/build.properties5
-rw-r--r--features/org.eclipse.wst.xsl.feature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.xsl.feature/feature.properties138
-rw-r--r--features/org.eclipse.wst.xsl.feature/feature.xml171
-rw-r--r--features/org.eclipse.wst.xsl.feature/license.html96
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/about.html34
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/about.ini31
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/about.mappings6
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/about.properties17
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/build.properties3
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/plugin.properties2
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/wtp_prod32.gifbin1752 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateBundle/wtp_prod32.pngbin2672 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/build.properties16
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/feature.properties138
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplateFeature/license.html82
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/about.html34
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/about.ini31
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/about.mappings6
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/about.properties27
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/build.properties3
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/plugin.properties2
-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/wtp_prod32.gifbin1752 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl.feature/sourceTemplatePlugin/wtp_prod32.pngbin2672 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/.project17
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/.settings/org.eclipse.pde.prefs16
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/build.properties7
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/eclipse_update_120.jpgbin21695 -> 0 bytes-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/epl-v10.html328
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/feature.properties138
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/feature.xml40
-rw-r--r--features/org.eclipse.wst.xsl_sdk.feature/license.html96
403 files changed, 0 insertions, 28928 deletions
diff --git a/bundles/org.eclipse.wst.xsl.core/.classpath b/bundles/org.eclipse.wst.xsl.core/.classpath
deleted file mode 100644
index d2b5cb3..0000000
--- a/bundles/org.eclipse.wst.xsl.core/.classpath
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="src_sse"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
- <accessrules>
- <accessrule kind="accessible" pattern="org/apache/xerces/**"/>
- <accessrule kind="accessible" pattern="org/apache/xalan/**"/>
- <accessrule kind="accessible" pattern="org/apache/xml/**"/>
- <accessrule kind="accessible" pattern="org/apache/xpath/**"/>
- </accessrules>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins">
- <accessrules>
- <accessrule kind="accessible" pattern="*org/eclipse/wst/xsl/**"/>
- <accessrule kind="accessible" pattern="**/validation/**"/>
- <accessrule kind="accessible" pattern="**/sse/**"/>
- <accessrule kind="accessible" pattern="**/xml/**"/>
- </accessrules>
- </classpathentry>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.core/.cvsignore b/bundles/org.eclipse.wst.xsl.core/.cvsignore
deleted file mode 100644
index 964f6df..0000000
--- a/bundles/org.eclipse.wst.xsl.core/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-src_xpath
-xpathgrammar
diff --git a/bundles/org.eclipse.wst.xsl.core/.project b/bundles/org.eclipse.wst.xsl.core/.project
deleted file mode 100644
index 24f0cf1..0000000
--- a/bundles/org.eclipse.wst.xsl.core/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.core</name>
- <comment>JavaCC Nature</comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>sf.eclipse.javacc.javaccbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>sf.eclipse.javacc.javaccnature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.core/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.core/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 35c4745..0000000
--- a/bundles/org.eclipse.wst.xsl.core/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,73 +0,0 @@
-#Tue Mar 18 11:38:33 GMT 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=ignore
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=warning
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=protected
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=protected
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=error
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeUncheckedExceptions=disabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
diff --git a/bundles/org.eclipse.wst.xsl.core/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.wst.xsl.core/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index c2645f4..0000000
--- a/bundles/org.eclipse.wst.xsl.core/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Tue Mar 18 11:38:05 GMT 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
diff --git a/bundles/org.eclipse.wst.xsl.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.core/META-INF/MANIFEST.MF
deleted file mode 100644
index 1232750..0000000
--- a/bundles/org.eclipse.wst.xsl.core/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,42 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.core;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.core.internal.XSLCorePlugin
-Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.common.uriresolver;bundle-version="[1.1.301,2.0.0)",
- org.eclipse.wst.xml.core;bundle-version="[1.1.300,2.0.0)",
- org.eclipse.core.resources;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.sse.core;bundle-version="[1.1.300,2.0.0)",
- org.apache.ant;bundle-version="[1.7.0,2.0.0)";resolution:=optional,
- org.eclipse.wst.validation;bundle-version="[1.1.103,2.0.0)",
- org.apache.xalan;bundle-version="[2.7.1,2.8.0)",
- org.eclipse.wst.xml.xpath.core;bundle-version="[1.0.0,2.0.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ClassPath: .
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.core;uses:="org.eclipse.wst.xsl.core.internal.model,org.eclipse.core.resources,org.eclipse.core.runtime",
- org.eclipse.wst.xsl.core.internal;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.ant;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.encoding;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.modelhandler;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.parser;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.parser.regions;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.preferences;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.regions;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.text;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.text.rules;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.util;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.validation;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.validation.eclipse;x-internal:=true,
- org.eclipse.wst.xsl.core.internal.xinclude;x-internal:=true,
- org.eclipse.wst.xsl.core.model,
- org.eclipse.wst.xsl.core.resolver;
- uses:="org.eclipse.wst.common.uriresolver.internal.provisional,
- org.xml.sax,
- org.xml.sax.ext,
- org.xml.sax.helpers,
- org.eclipse.core.resources"
diff --git a/bundles/org.eclipse.wst.xsl.core/about.html b/bundles/org.eclipse.wst.xsl.core/about.html
deleted file mode 100644
index 991d714..0000000
--- a/bundles/org.eclipse.wst.xsl.core/about.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-
-<h3>Third Party Content</h3>
-<p>The Content includes items that have been sourced from third parties as set out below. If you
-did not receive this Content directly from the Eclipse Foundation, the following is provided
-for informational purposes only, and you should look to the Redistributor's license for
-terms and conditions of use.</p>
-<p>
-<strong>XSLT and XInclude Schema</strong> <br/><br/>
-
-The following XML Schema in the plug-in are based on W3C code available on the World Wide Web Consortium website
-and shall be defined as the "W3C-Derived Work":<br/><br/>
-
-xslt-schemas/xslt-1.0.xsd (derived from <a href="http://www.w3.org/XML/2000/04schema-hacking/xslt.xsd">W3C XSLT 1.0 Schema</a>)<br/>
-xslt-schemas/xslt-2.0.xsd (derived from <a href="http://www.w3.org/2005/02/schema-for-xslt20.xsd">W3C XSLT 2.0 Schema</a>)<br/>
-xslt-schemas/xinclude.xsd (copied from <a href="http://www.w3.org/TR/xinclude/">XInclude Schema</a>)<br/><br/>
-
-Your use of the W3C-Derived Work is subject to the terms and conditions of the W3C Software License.<br/>
-A copy of the license is contained in the file <a href="about_files/W3CSoftwareLicense.html">W3CSoftwareLicense.html</a> and is
-also available at <a href="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231</a>.
-</p>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.core/about_files/W3CSoftwareLicense.html b/bundles/org.eclipse.wst.xsl.core/about_files/W3CSoftwareLicense.html
deleted file mode 100644
index 1dffe56..0000000
--- a/bundles/org.eclipse.wst.xsl.core/about_files/W3CSoftwareLicense.html
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>W3C Software License</title>
- <link rel="stylesheet" type="text/css" href="/StyleSheets/base.css" />
- <style type="text/css">
- <!--
-h3#version { margin-top: -0.8em;}
--->
-
-
-
-
-
-
-
-
-
- </style>
-</head>
-
-<body text="#000000" bgcolor="#FFFFFF">
-<h1>W3C<sup></sup> SOFTWARE NOTICE AND LICENSE</h1>
-
-<h3 id="version"><a
-href="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231</a></h3>
-
-<p>This work (and included software, documentation such as READMEs, or other
-related items) is being provided by the copyright holders under the following
-license. By obtaining, using and/or copying this work, you (the licensee)
-agree that you have read, understood, and will comply with the following
-terms and conditions.</p>
-
-<p>Permission to copy, modify, and distribute this software and its
-documentation, with or without modification,&nbsp;for any purpose and without
-fee or royalty is hereby granted, provided that you include the following on
-ALL copies of the software and documentation or portions thereof, including
-modifications:</p>
-<ol>
- <li>The full text of this NOTICE in a location viewable to users of the
- redistributed or derivative work.</li>
- <li>Any pre-existing intellectual property disclaimers, notices, or terms
- and conditions. If none exist, the <a
- href="copyright-software-short-notice-20021231.html">W3C Software Short
- Notice</a> should be included (hypertext is preferred, text is permitted)
- within the body of any redistributed or derivative code.</li>
- <li>Notice of any changes or modifications to the files, including the date
- changes were made. (We recommend you provide URIs to the location from
- which the code is derived.)</li>
-</ol>
-
-<p>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS
-MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT
-LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
-PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE
-ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
-
-<p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
-DOCUMENTATION.</p>
-
-<p>The name and trademarks of copyright holders may NOT be used in
-advertising or publicity pertaining to the software without specific, written
-prior permission. Title to copyright in this software and any associated
-documentation will at all times remain with copyright holders.</p>
-
-<p></p>
-
-<p>____________________________________</p>
-
-<p>This formulation of W3C's notice and license became active on December 31
-2002. This version removes the copyright ownership notice such that this
-license can be used with materials other than those owned by the W3C,
-reflects that ERCIM is now a host of the W3C, includes references to this
-specific dated version of the license, and removes the ambiguous grant of
-"use". Otherwise, this version is the same as the <a
-href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">previous
-version</a> and is written so as to preserve the <a
-href="http://www.gnu.org/philosophy/license-list.html#GPLCompatibleLicenses">Free
-Software Foundation's assessment of GPL compatibility</a> and <a
-href="http://www.opensource.org/licenses/W3C.php">OSI's certification</a>
-under the <a href="http://www.opensource.org/docs/definition.php">Open Source
-Definition</a>. Please see our <a
-href="http://www.w3.org/Consortium/Legal/IPR-FAQ">Copyright FAQ</a> for
-common questions about using materials from our site, including specific
-terms and conditions for packages like libwww, Amaya, and Jigsaw. Other
-questions about this notice can be directed to <a
-href="mailto:site-policy@w3.org">site-policy@w3.org</a>.<br />
-&nbsp;</p>
-<address>
- Joseph Reagle &lt;<a
- href="mailto:site-policy@w3.org">site-policy@w3.org&gt;</a>
-</address>
-
-<p>Last revised $Id: W3CSoftwareLicense.html,v 1.1 2008/08/02 13:03:11 dsatchwel Exp $</p>
-</body>
-</html>
diff --git a/bundles/org.eclipse.wst.xsl.core/build.properties b/bundles/org.eclipse.wst.xsl.core/build.properties
deleted file mode 100644
index 2c3b42d..0000000
--- a/bundles/org.eclipse.wst.xsl.core/build.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-source.. = src/,\
- src_sse/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- plugin.properties,\
- xslt-schemas/,\
- lib/,\
- bin/,\
- about.html,\
- about_files/
diff --git a/bundles/org.eclipse.wst.xsl.core/lib/.cvsignore b/bundles/org.eclipse.wst.xsl.core/lib/.cvsignore
deleted file mode 100644
index 6dc6df9..0000000
--- a/bundles/org.eclipse.wst.xsl.core/lib/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-antlr-runtime-3.0.1.jar
-commons-jxpath-1.2.jar
diff --git a/bundles/org.eclipse.wst.xsl.core/lib/xinclude.jar b/bundles/org.eclipse.wst.xsl.core/lib/xinclude.jar
deleted file mode 100644
index fc3203a..0000000
--- a/bundles/org.eclipse.wst.xsl.core/lib/xinclude.jar
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.core/plugin.properties b/bundles/org.eclipse.wst.xsl.core/plugin.properties
deleted file mode 100644
index 0765552..0000000
--- a/bundles/org.eclipse.wst.xsl.core/plugin.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.core
-Bundle-Name.0 = XSL Core (Incubating)
-Bundle-Vendor.0 =Eclipse.org
-XSL.ContentType.Name=XSL Template
-DITA_Content_Type_Extension_Element.name=DITA
-Docbook_Content_Type_Extension_Element.name=Docbook
-XSL.Validator.Name=XSL Validator
-XSL.ValidatorDelegate.Name=XSL Validator del
-# ====================================================================
-pluginName = XSL Core (Incubating)
-providerName = Eclipse.org
diff --git a/bundles/org.eclipse.wst.xsl.core/plugin.xml b/bundles/org.eclipse.wst.xsl.core/plugin.xml
deleted file mode 100644
index bf8c0ec..0000000
--- a/bundles/org.eclipse.wst.xsl.core/plugin.xml
+++ /dev/null
@@ -1,127 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
-
- <!-- Team provider info -->
-
- <extension point="org.eclipse.team.core.fileTypes">
- <fileTypes type="text" extension="xsl" />
- <fileTypes type="text" extension="xslt" />
- </extension>
-
- <extension point="org.eclipse.core.runtime.contentTypes">
- <!-- content-type
- file-extensions="xsl,xslt"
- priority="normal"
- name="%XSL.ContentType.Name"
- id="xslsource"
- base-type="org.eclipse.core.runtime.xml"
- default-charset="UTF-8">
- <describer class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
- <parameter name="element" value="stylesheet"/>
- </describer>
- </content-type -->
- <content-type
- base-type="org.eclipse.core.runtime.xml"
- file-extensions="dita,ditamap"
- id="org.eclipse.wst.xsl.core.content-type.ditasource"
- name="%DITA_Content_Type_Extension_Element.name"
- priority="high">
- </content-type>
- <content-type
- base-type="org.eclipse.core.runtime.xml"
- file-extensions="dbk"
- id="org.eclipse.wst.xsl.core.content-type.docbooksource"
- name="%Docbook_Content_Type_Extension_Element.name"
- priority="high">
- </content-type>
- </extension>
-
- <!-- The magic which detects XSLT 1.0 or 2.0 stylesheets and supplies the correct XSD -->
- <extension
- point="org.eclipse.wst.common.uriresolver.resolverExtensions">
- <resolverExtension
- class="org.eclipse.wst.xsl.core.resolver.ResolverExtension"
- stage="prenormalization">
- </resolverExtension>
- </extension>
-
- <extension
- id="problem"
- name="XSL Problem"
- point="org.eclipse.core.resources.markers">
- <super type="org.eclipse.wst.xml.core.validationMarker"/>
- <persistent value="true"/>
- </extension>
-
- <extension
- point="org.eclipse.ant.core.antTasks">
- <antTask
- class="org.eclipse.wst.xsl.core.internal.ant.XIncludeTask"
- headless="true"
- library="lib/xinclude.jar"
- name="xsl.xinclude">
- </antTask>
- </extension>
- <!-- Extra Classpath -->
- <extension
- point="org.eclipse.ant.core.extraClasspathEntries">
- <extraClasspathEntry
- library="lib/xinclude.jar">
- </extraClasspathEntry>
- </extension>
-
- <extension id="xsl" name="%XSL.Validator.Name" point="org.eclipse.wst.validation.validatorV2">
- <validator
- build="true"
- class="org.eclipse.wst.xsl.core.internal.validation.eclipse.Validator"
- sourceid="org.eclipse.wst.xsl.ui.internal.validation.DelegatingSourceValidatorForXSL"
- manual="true"
- markerId="org.eclipse.wst.xsl.core.problem"
- version="2">
- <include>
- <rules>
- <fileext caseSensitive="false" ext="xsl"/>
- <contentType id="org.eclipse.wst.xml.core.xslsource"/>
- </rules>
- </include>
- </validator>
- </extension>
-
-
- <extension
- point="org.eclipse.core.filebuffers.documentCreation"
- id="org.eclipse.wst.xml.core.documentfactories"
- name="%Structured_XML_Document_Factory_Extension.name">
- <factory
- contentTypeId="org.eclipse.wst.xml.core.xslsource"
- class="org.eclipse.wst.sse.core.internal.filebuffers.BasicStructuredDocumentFactory" />
- </extension>
- <extension
- point="org.eclipse.wst.sse.core.modelHandler">
- <modelHandler
- default="true"
- class="org.eclipse.wst.xsl.core.internal.modelhandler.ModelHandlerForXSL"
- associatedContentTypeId="org.eclipse.wst.xml.core.xslsource"
- id="org.eclipse.wst.xsl.core.handler">
- </modelHandler>
- </extension>
- <extension
- point="org.eclipse.wst.xml.core.catalogContributions">
- <catalogContribution>
- <uri
- id="org.w3c.xinclude"
- name="http://www.w3.org/2001/XInclude"
- uri="xslt-schemas/xinclude.xsd">
- </uri>
- </catalogContribution>
- </extension>
- <extension
- point="org.eclipse.core.runtime.preferences">
- <initializer
- class="org.eclipse.wst.xsl.core.internal.preferences.PreferenceInitializer">
- </initializer>
- </extension>
-
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/Messages.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/Messages.java
deleted file mode 100644
index 74bda71..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/Messages.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others. All rights reserved. This
- * program and the accompanying materials are made available under the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and is
- * available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- * Jesper Steen M�ller - adapted from org.eclipse.core.internal.content
- **********************************************************************/
-package org.eclipse.wst.xsl.core;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * @author Jesper Steen
- *
- */
-// Runtime plugin message catalog
-
-public class Messages extends NLS {
-
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.core.messages"; //$NON-NLS-1$
-
- /**
- * TODO: Add JavaDoc
- */
- // Content type manager
- public static String XSLCorePlugin_parserConfiguration;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XSLCorePlugin_badInitializationData;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XSLCorePlugin_coreError;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_0;
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_1;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_2;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_3;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_4;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_5;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_6;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_7;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_8;
-
- /**
- * TODO: Add JavaDoc
- */
- public static String XIncludeTask_9;
- public static String XSLValidator_1;
- /**
- * Stylesheet importing itself
- */
- public static String XSLValidator_10;
- /**
- * Template conflict (internal)
- */
- public static String XSLValidator_11;
- /**
- * Template conflict (included)
- */
- public static String XSLValidator_12;
- /**
- * Template conflict (external)
- */
- public static String XSLValidator_13;
- /**
- * Parameter missing name attribute
- */
- public static String XSLValidator_14;
- /**
- * Parameter with empty name attribute
- */
- public static String XSLValidator_15;
- /**
- * Duplicate parameter
- */
- public static String XSLValidator_16;
- /**
- * Unresolved named template
- */
- public static String XSLValidator_18;
- /**
- * Circular reference
- */
- public static String XSLValidator_2;
- /**
- * Parameter without default value
- */
- public static String XSLValidator_20;
- /**
- * Parameter does not exist
- */
- public static String XSLValidator_22;
- /**
- * href attribute is required
- */
- public static String XSLValidator_23;
- /**
- * Missing parameter
- */
- public static String XSLValidator_3;
- /**
- * Unresolved include
- */
- public static String XSLValidator_4;
- /**
- * Stylesheet includes itself
- */
- public static String XSLValidator_6;
- /**
- * Unresolved import
- */
- public static String XSLValidator_8;
-
-
-
- static {
- // load message values from bundle file
- reloadMessages();
- }
-
- /**
- * TODO: Add JavaDoc
- */
- public static void reloadMessages() {
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/ValidationPreferences.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/ValidationPreferences.java
deleted file mode 100644
index 816fbd3..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/ValidationPreferences.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core;
-
-/**
- * Preference constants specific to the XSL validator.
- *
- * @author Doug Satchwell
- * @see org.eclipse.core.resources.IMarker
- */
-public class ValidationPreferences
-{
-
- /**
- * The maximum number of errors allowed per XSL file.
- * <p>
- * Value is of type <code>Integer</code>.
- * </p>
- */
- public static final String MAX_ERRORS = "MAX_ERRORS"; //$NON-NLS-1$
-
- /**
- * The level at which a missing parameter is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String MISSING_PARAM = "MISSING_PARAM"; //$NON-NLS-1$
-
- /**
- * The level at which an invalid XPath is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String XPATHS = "CHECK_XPATHS"; //$NON-NLS-1$
-
- /**
- * The level at which an unresolved called template is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String CALL_TEMPLATES = "CHECK_CALL_TEMPLATES"; //$NON-NLS-1$
-
- /**
- * The level at which a parameter that does not have a default value and does not specify a value is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String EMPTY_PARAM = "EMPTY_PARAM"; //$NON-NLS-1$
-
- /**
- * The level at which an unresolved import or included is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String MISSING_INCLUDE = "MISSING_INCLUDE"; //$NON-NLS-1$
-
- /**
- * The level at which an include/import circular references is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String CIRCULAR_REF = "CIRCULAR_REF"; //$NON-NLS-1$
-
- /**
- * The level at which a template conflict is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String TEMPLATE_CONFLICT = "TEMPLATE_CONFLICT"; //$NON-NLS-1$
-
- /**
- * The level at which a parameter without a name attribute is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String NAME_ATTRIBUTE_MISSING = "NAME_ATTRIBUTE_MISSING"; //$NON-NLS-1$
-
- /**
- * The level at which a parameter with an empty name attribute is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String NAME_ATTRIBUTE_EMPTY = "NAME_ATTRIBUTE_EMPTY"; //$NON-NLS-1$
-
- /**
- * The level at which a duplicate parameter is reported.
- * <p>
- * Value is one of <code>IMarker.SEVERITY_ERROR, IMarker.SEVERITY_WARNING, IMarker.SEVERITY_INFO</code>
- * </p>
- */
- public static final String DUPLICATE_PARAMETER = "DUPLICATE_PARAMETER"; //$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/XSLCore.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/XSLCore.java
deleted file mode 100644
index b29a993..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/XSLCore.java
+++ /dev/null
@@ -1,180 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core;
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.eclipse.wst.xsl.core.internal.StylesheetBuilder;
-import org.eclipse.wst.xsl.core.internal.util.FileUtil;
-import org.eclipse.wst.xsl.core.model.Stylesheet;
-import org.eclipse.wst.xsl.core.model.StylesheetModel;
-
-/**
- * The interface to all aspects of the XSL core functionality.
- * <p>
- * This is responsible for building and maintaining the cache of built XSL models.
- * </p>
- *
- * @author Doug Satchwell
- */
-public class XSLCore
-{
- /**
- * The XSL namespace URI (= http://www.w3.org/1999/XSL/Transform)
- */
- public static final String XSL_NAMESPACE_URI = "http://www.w3.org/1999/XSL/Transform"; //$NON-NLS-1$
-
- /**
- * The XSL content type (= org.eclipse.wst.xml.core.xslsource)
- */
- public static final String XSL_CONTENT_TYPE = "org.eclipse.wst.xml.core.xslsource"; //$NON-NLS-1$
-
- private static XSLCore instance;
- private Map<IFile, StylesheetModel> stylesheetsComposed = new HashMap<IFile, StylesheetModel>();
-
- private XSLCore()
- {}
-
- /**
- * Get the cached stylesheet, or build it if it has not yet been built.
- *
- * @param file
- * @return source file, or null if could not be built
- */
- public synchronized StylesheetModel getStylesheet(IFile file)
- {
- StylesheetModel stylesheet = stylesheetsComposed.get(file);
- if (stylesheet == null)
- stylesheet = buildStylesheet(file);
- return stylesheet;
- }
-
- /**
- * Completely rebuild the source file from its DOM
- *
- * @param file
- * @return the stylesheet model, or null if it could not be created.
- */
- public synchronized StylesheetModel buildStylesheet(IFile file)
- {
- Stylesheet stylesheet = StylesheetBuilder.getInstance().getStylesheet(file, true);
- if (stylesheet == null)
- return null;
- StylesheetModel stylesheetComposed = new StylesheetModel(stylesheet);
- stylesheetsComposed.put(file, stylesheetComposed);
- stylesheetComposed.fix();
- return stylesheetComposed;
- }
-
- /**
- * Clean all of the stylesheets from the given project.
- *
- * @param project the project to be cleaned
- * @param monitor a progress monitor to track the clean progress
- */
- public synchronized void clean(IProject project, IProgressMonitor monitor)
- {
- for (Iterator<StylesheetModel> iter = stylesheetsComposed.values().iterator(); iter.hasNext();)
- {
- StylesheetModel model = iter.next();
- if (project == null || project.equals(model.getStylesheet().getFile().getProject()))
- {
- iter.remove();
- }
- }
- }
-
- /**
- * Get the singleton <code>XSLCore</code> instance.
- *
- * @return the <code>XSLCore</code> instance
- */
- public static synchronized XSLCore getInstance()
- {
- if (instance == null)
- instance = new XSLCore();
- return instance;
- }
-
- /**
- * Locates a file for the given current file and URI.
- *
- * @param currentFile the file to resolve relative to
- * @param uri the relative URI
- * @return the file at the URI relative to this <code>currentFile</code>
- */
- // TODO depends on how we resolve URIs
- public static IFile resolveFile(IFile currentFile, String uri)
- {
- if (uri == null || uri.trim().length() == 0)
- return null;
- IResource resource = currentFile.getParent().findMember(new Path(uri));
- if (resource == null || resource.getType() != IResource.FILE)
- return null;
- return (IFile)resource;
- }
- /**
- * Determine whether the given file is an XML file by inspecting its content types.
- *
- * @param file the file to inspect
- * @return true if this file is an XML file
- */
-
- public static boolean isXMLFile(IFile file)
- {
- return FileUtil.isXMLFile(file);
- }
-
- /**
- * Determine whether the given file is an XSL file by inspecting its content types.
- *
- * @param file the file to inspect
- * @return true if this file is an XSL file
- */
- public static boolean isXSLFile(IFile file)
- {
- return FileUtil.isXSLFile(file);
- }
-
-
- /**
- * Takes a given <code>IDOMNode</code> and returns whether it
- * is part of the the XSLT Namespace.
- * @param node The IDOMNode to be checked.
- * @return True if part of the XSLT namespace, false otherwise.
- */
- public static boolean isXSLNamespace(IDOMNode node) {
- if (hasNamespace(node)) {
- return false;
- }
- return node.getNamespaceURI().equals(XSL_NAMESPACE_URI);
- }
-
- /**
- * Determine if the Node that was passed has a Namespace. If it
- * doesn't the node is either going to be false, or the call to the
- * getNamespace() method will return null.
- * @param node
- * @return
- */
- private static boolean hasNamespace(IDOMNode node) {
- return node == null || node.getNamespaceURI() == null;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/StylesheetBuilder.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/StylesheetBuilder.java
deleted file mode 100644
index fa59b97..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/StylesheetBuilder.java
+++ /dev/null
@@ -1,289 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver - fix issue with xslElm being null on local variables.
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal;
-
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Stack;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.util.Debug;
-import org.eclipse.wst.xsl.core.model.CallTemplate;
-import org.eclipse.wst.xsl.core.model.Import;
-import org.eclipse.wst.xsl.core.model.Include;
-import org.eclipse.wst.xsl.core.model.Parameter;
-import org.eclipse.wst.xsl.core.model.Stylesheet;
-import org.eclipse.wst.xsl.core.model.Template;
-import org.eclipse.wst.xsl.core.model.Variable;
-import org.eclipse.wst.xsl.core.model.XSLAttribute;
-import org.eclipse.wst.xsl.core.model.XSLElement;
-import org.eclipse.wst.xsl.core.model.XSLNode;
-import org.w3c.dom.Element;
-import org.w3c.dom.NamedNodeMap;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-
-/**
- * A builder that creates and maintains a cache of <code>Stylesheet</code>'s.
- *
- * @author Doug Satchwell
- */
-public class StylesheetBuilder {
- private static StylesheetBuilder instance;
- private final Map<IFile, Stylesheet> builtFiles = new HashMap<IFile, Stylesheet>();
-
- private StylesheetBuilder() {
- }
-
- /**
- * Get the <code>Stylesheet</code> associated with the given file. If either
- * the <code>Stylesheet</code> has not yet been created or
- * <code>force</code> is specified then the <code>Stylesheet</code> is
- * built.
- *
- * @param file
- * the XSL file
- * @param force
- * <code>true</code> to force a parse of the file
- * @return the <code>Stylesheet</code>
- */
- public Stylesheet getStylesheet(IFile file, boolean force) {
- Stylesheet stylesheet = builtFiles.get(file);
- if (stylesheet == null || force) {
- stylesheet = build(file);
- builtFiles.put(file, stylesheet);
- }
- return stylesheet;
- }
-
- private Stylesheet build(IFile file) {
- long start = System.currentTimeMillis();
- if (Debug.debugXSLModel) {
- System.out.println("Building " + file + "...");
- }
-
- Stylesheet stylesheet = null;
- IStructuredModel smodel = null;
- try {
- smodel = StructuredModelManager.getModelManager()
- .getExistingModelForRead(file);
- if (smodel == null) {
- smodel = StructuredModelManager.getModelManager()
- .getModelForRead(file);
- if (Debug.debugXSLModel) {
- long endParse = System.currentTimeMillis();
- System.out.println("PARSE " + file + " in "
- + (endParse - start) + "ms");
- }
- } else if (Debug.debugXSLModel) {
- long endParse = System.currentTimeMillis();
- System.out.println("NO-PARSE " + file + " in "
- + (endParse - start) + "ms");
- }
- // start = System.currentTimeMillis();
- if (smodel != null && smodel instanceof IDOMModel) {
- IDOMModel model = (IDOMModel) smodel;
- stylesheet = parseModel(model, file);
- }
- } catch (IOException e) {
- XSLCorePlugin.log(e);
- } catch (CoreException e) {
- XSLCorePlugin.log(e);
- } finally {
- if (smodel != null)
- smodel.releaseFromRead();
- }
- if (Debug.debugXSLModel) {
- long end = System.currentTimeMillis();
- System.out.println("BUILD " + file + " in " + (end - start) + "ms");
- }
- return stylesheet;
- }
-
- private Stylesheet parseModel(IDOMModel model, IFile file) {
- IDOMDocument document = model.getDocument();
- Stylesheet sf = new Stylesheet(file);
- StylesheetParser walker = new StylesheetParser(sf);
- walker.walkDocument(document);
- return sf;
- }
-
- /**
- * Get the singleton <code>StylesheetBuilder</code> instance.
- *
- * @return the <code>StylesheetBuilder</code> instance
- */
- public static synchronized StylesheetBuilder getInstance() {
- if (instance == null) {
- instance = new StylesheetBuilder();
- }
- return instance;
- }
-
- private static class StylesheetParser {
- private final Stylesheet sf;
- private final Stack<Element> elementStack = new Stack<Element>();
- private Template currentTemplate;
- private Stack<CallTemplate> callTemplates = new Stack<CallTemplate>();
- private XSLElement parentEl;
-
- public StylesheetParser(Stylesheet stylesheet) {
- this.sf = stylesheet;
- }
-
- public void walkDocument(IDOMDocument document) {
-
- if (document.getDocumentElement() != null)
- recurse(document.getDocumentElement());
- }
-
- private void recurse(Element element) {
- XSLElement xslEl = null;
- if (XSLCore.XSL_NAMESPACE_URI.equals(element.getNamespaceURI())) {
- String elName = element.getLocalName();
- if ("stylesheet".equals(elName) && elementStack.size() == 0) //$NON-NLS-1$
- {
- NamedNodeMap map = element.getAttributes();
- String version = element.getAttribute("version");
- sf.setVersion(version);
- xslEl = sf;
- } else if ("include".equals(elName) && elementStack.size() == 1) //$NON-NLS-1$
- {
- Include include = new Include(sf);
- sf.addInclude(include);
- xslEl = include;
- } else if ("import".equals(elName) && elementStack.size() == 1) //$NON-NLS-1$
- {
- Import include = new Import(sf);
- sf.addImport(include);
- xslEl = include;
- } else if ("template".equals(elName) && elementStack.size() == 1) //$NON-NLS-1$
- {
- currentTemplate = new Template(sf);
- sf.addTemplate(currentTemplate);
- xslEl = currentTemplate;
- } else if ("param".equals(elName) && elementStack.size() == 2 && currentTemplate != null) //$NON-NLS-1$
- {
- Parameter param = new Parameter(sf);
- // determine whether param has a value
- NodeList childNodes = element.getChildNodes();
- for (int i = 0; i < childNodes.getLength(); i++) {
- Node childNode = childNodes.item(i);
- if (childNode.getNodeType() != Node.ATTRIBUTE_NODE) {
- param.setValue(true);
- break;
- }
- }
- currentTemplate.addParameter(param);
- xslEl = param;
- } else if ("call-template".equals(elName) && elementStack.size() >= 2) //$NON-NLS-1$
- {
- CallTemplate currentCallTemplate = new CallTemplate(sf);
- callTemplates.push(currentCallTemplate);
- sf.addCalledTemplate(currentCallTemplate);
- xslEl = currentCallTemplate;
- } else if ("with-param".equals(elName) && elementStack.size() >= 3 && callTemplates.size() > 0) //$NON-NLS-1$
- {
- Parameter param = new Parameter(sf);
- // determine whether param has a value
- NodeList childNodes = element.getChildNodes();
- for (int i = 0; i < childNodes.getLength(); i++) {
- Node childNode = childNodes.item(i);
- if (childNode.getNodeType() != Node.ATTRIBUTE_NODE) {
- param.setValue(true);
- break;
- }
- }
- // get the previous call-template
- CallTemplate currentCallTemplate = callTemplates.peek();
- currentCallTemplate.addParameter(param);
- xslEl = param;
- } else if ("variable".equals(elName)) //$NON-NLS-1$
- {
- if (elementStack.size() == 1)
- {// global variable
- Variable var = new Variable(sf);
- sf.addGlobalVariable(var);
- xslEl = var;
- }
- else if (elementStack.size() > 1 && currentTemplate != null)
- {// local variable
- Variable var = new Variable(sf);
- currentTemplate.addVariable(var);
- xslEl = var;
- }
- }
- else {
- xslEl = new XSLElement(sf);
- }
- if (xslEl!=null)
- configure((IDOMNode) element, xslEl);
- }
- elementStack.push(element);
- NodeList childNodes = element.getChildNodes();
- for (int i = 0; i < childNodes.getLength(); i++) {
- Node node = childNodes.item(i);
- if (node.getNodeType() == Node.ELEMENT_NODE) {
- recurse((Element) node);
- }
- }
- if (xslEl instanceof CallTemplate)
- callTemplates.pop();
- elementStack.pop();
- // currentTemplate = null;
- // currentCallTemplate = null;
- }
-
- private void configure(IDOMNode node, XSLElement element) {
- setPositionInfo(node, element);
- NamedNodeMap map = node.getAttributes();
- for (int i = 0; i < map.getLength(); i++) {
- IDOMAttr attr = (IDOMAttr) map.item(i);
- XSLAttribute xslatt = new XSLAttribute(element, attr.getName(),
- attr.getValue());
- setPositionInfo(attr, xslatt);
- element.setAttribute(xslatt);
- }
- if (parentEl != null)
- parentEl.addChild(element);
- parentEl = element;
- }
-
- private static void setPositionInfo(IDOMNode node, XSLNode inc) {
- try {
- IStructuredDocument structuredDocument = node
- .getStructuredDocument();
- int line = structuredDocument.getLineOfOffset(node
- .getStartOffset());
- int lineOffset = structuredDocument.getLineOffset(line);
- int col = node.getStartOffset() - lineOffset;
- inc.setOffset(node.getStartOffset());
- inc.setLineNumber(line);
- inc.setColumnNumber(col);
- inc.setLength(node.getLength());
- } catch (BadLocationException e) {
- XSLCorePlugin.log(e);
- }
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/XSLCorePlugin.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/XSLCorePlugin.java
deleted file mode 100644
index e1b7641..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/XSLCorePlugin.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Jesper Steen M�ller and others
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Jesper Steen M�ller - XSL core plugin
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.core.internal;
-
-import javax.xml.parsers.SAXParserFactory;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdapterFactory;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.core.Messages;
-import org.eclipse.wst.xsl.core.model.StylesheetModel;
-import org.osgi.framework.BundleContext;
-import org.osgi.util.tracker.ServiceTracker;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class XSLCorePlugin extends Plugin {
-
- // The plug-in ID
- /**
- * TODO: Add JavaDoc
- */
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.core"; //$NON-NLS-1$
-
- // The shared instance
- private static XSLCorePlugin plugin;
-
- private ServiceTracker parserTracker = null;
-
- private BundleContext bundleContext;
-
- /**
- * The constructor
- */
- public XSLCorePlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- bundleContext = context;
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static XSLCorePlugin getDefault() {
- return plugin;
- }
-
- /**
- * Return the registered SAX parser factory or null if one
- * does not exist. * @return
- * @return returns a SAXParserFactory
- */
- public SAXParserFactory getFactory() {
- if (parserTracker == null) {
- parserTracker = new ServiceTracker(bundleContext, SAXParserFactory.class.getName(), null);
- parserTracker.open();
- }
- SAXParserFactory theFactory = (SAXParserFactory) parserTracker.getService();
- if (theFactory != null)
- theFactory.setNamespaceAware(true);
- return theFactory;
- }
-
- /**
- * Logs the specified status with this plug-in's log.
- *
- * @param status status to log
- */
- public static void log(IStatus status) {
- getDefault().getLog().log(status);
- }
-
- /**
- * Logs the specified exception.
- *
- * @param e throwable to log
- */
- public static void log(Throwable e) {
- if (e instanceof CoreException) {
- log(((CoreException)e).getStatus());
- } else {
- log(newErrorStatus(Messages.XSLCorePlugin_coreError, e));
- }
- }
-
- /**
- * Returns a new error status for this plug-in with the given message
- * @param message the message to be included in the status
- * @param exception the exception to be included in the status or <code>null</code> if none
- * @return a new error status
- */
- public static IStatus newErrorStatus(String message, Throwable exception) {
- return new Status(IStatus.ERROR, PLUGIN_ID, message, exception);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/ant/XIncludeTask.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/ant/XIncludeTask.java
deleted file mode 100644
index 9a06391..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/ant/XIncludeTask.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/******************************************************************************
-* Copyright (c) 2008 Lars Vogel
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/eplv10.html
-*
-* Contributors:
-* Lars Vogel - Lars.Vogel@gmail.com - initial API and implementation
-*******************************************************************************/
-
-package org.eclipse.wst.xsl.core.internal.ant;
-
-import java.io.File;
-import java.util.Collection;
-import java.util.Vector;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Project;
-import org.apache.tools.ant.Task;
-import org.eclipse.wst.xsl.core.internal.xinclude.XIncluder;
-import org.eclipse.wst.xsl.core.Messages;
-
-/**
- * This class provides an XInclude ANT task definition.
- *
- * @author Lars Vogel
- *
- */
-public class XIncludeTask extends Task {
- private String inFile;
-
- private String outFile;
-
- /**
- * TODO: Add JavaDoc
- * @param inFile
- */
- public void setIn(String inFile) {
- log(Messages.XIncludeTask_0 + inFile, Project.MSG_VERBOSE);
- this.inFile = inFile;
- }
-
- /**
- * TODO: Add JavaDoc
- * @param outFile
- */
- public void setOut(String outFile) {
- log(Messages.XIncludeTask_1 + outFile, Project.MSG_VERBOSE);
- this.outFile = outFile;
- }
-
- public void execute() {
- validate();
- log(Messages.XIncludeTask_2, Project.MSG_VERBOSE);
- File file = new File(inFile);
- if (!file.exists()) {
- throw new BuildException(Messages.XIncludeTask_3
- + inFile);
- }
- // We will check if the file exists, if not we will try to create the
- // output file and or the output directory
- File fileout = new File(outFile);
- File dir = new File(fileout.getParent());
- if (!dir.exists()) {
- log(Messages.XIncludeTask_4 + dir.getAbsolutePath());
-
- Boolean success = (new File(dir.getAbsolutePath())).mkdirs();
- if (!success) {
- throw new BuildException(Messages.XIncludeTask_5
- + outFile);
- }
- }
- // check if the included files are modified after the last run
- // Assumption that all the included files are part of the input file
- // directory
- if (checkmodified(inFile, outFile)) {
- log(Messages.XIncludeTask_6,
- Project.MSG_INFO);
- XIncluder la = new XIncluder();
- try {
- la.extractXMLFile(inFile, outFile);
- } catch (Exception e) {
- throw new BuildException(Messages.XIncludeTask_7
- + e.getMessage());
- }
- }
- }
-
- private boolean checkmodified(String inFile, String outFile) {
- File in = new File(inFile);
- File out = new File(outFile);
- File dir = new File(in.getParent());
-
- Collection<File> allFiles = listFiles(dir, true);
- for (File f : allFiles) {
- if (f.lastModified() > out.lastModified()) {
- return true;
- }
- }
- return false;
- }
-
- /**
- * TODO: Add JavaDoc
- * @param directory
- * @param recurse
- * @return
- */
- public Collection<File> listFiles(File directory, boolean recurse) {
- // List of files / directories
- Vector<File> files = new Vector<File>();
-
- // Get files / directories in the directory
- File[] entries = directory.listFiles();
-
- // Go over entries
- for (File entry : entries) {
-
- files.add(entry);
-
- // If the file is a directory and the recurse flag
- // is set, recurse into the directory
- if (recurse && entry.isDirectory()) {
- files.addAll(listFiles(entry, recurse));
- }
- }
-
- // Return collection of files
- return files;
- }
-
- private void validate() {
- if (inFile == null) {
- throw new BuildException(Messages.XIncludeTask_8);
- }
- if (outFile == null) {
- throw new BuildException(Messages.XIncludeTask_9);
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/preferences/PreferenceInitializer.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/preferences/PreferenceInitializer.java
deleted file mode 100644
index 3c00b80..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/preferences/PreferenceInitializer.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.preferences;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
-import org.eclipse.core.runtime.preferences.DefaultScope;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
-import org.eclipse.wst.xsl.core.ValidationPreferences;
-import org.eclipse.wst.xsl.core.internal.XSLCorePlugin;
-
-/**
- * Preferences initializer for XSL core preferences.
- *
- * @author Doug Satchwell
- */
-public class PreferenceInitializer extends AbstractPreferenceInitializer
-{
- @Override
- public void initializeDefaultPreferences()
- {
- IEclipsePreferences node = new DefaultScope().getNode(XSLCorePlugin.getDefault().getBundle().getSymbolicName());
- node.putInt(ValidationPreferences.MAX_ERRORS, 100);
- node.putInt(ValidationPreferences.MISSING_PARAM, IMarker.SEVERITY_WARNING);
- node.putInt(ValidationPreferences.XPATHS, IMarker.SEVERITY_ERROR);
- node.putInt(ValidationPreferences.CALL_TEMPLATES, IMarker.SEVERITY_ERROR);
- node.putInt(ValidationPreferences.EMPTY_PARAM, IMarker.SEVERITY_WARNING);
- node.putInt(ValidationPreferences.MISSING_INCLUDE, IMarker.SEVERITY_ERROR);
- node.putInt(ValidationPreferences.CIRCULAR_REF, IMarker.SEVERITY_ERROR);
- node.putInt(ValidationPreferences.TEMPLATE_CONFLICT, IMarker.SEVERITY_ERROR);
- node.putInt(ValidationPreferences.NAME_ATTRIBUTE_MISSING, IMarker.SEVERITY_ERROR);
- node.putInt(ValidationPreferences.NAME_ATTRIBUTE_EMPTY, IMarker.SEVERITY_ERROR);
- node.putInt(ValidationPreferences.DUPLICATE_PARAMETER, IMarker.SEVERITY_ERROR);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/Debug.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/Debug.java
deleted file mode 100755
index bd67ca6..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/Debug.java
+++ /dev/null
@@ -1,217 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation based on WTP SSE Debug class
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.util;
-
-
-
-import java.util.Enumeration;
-
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegionList;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionCollection;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionContainer;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList;
-
-
-/**
- * Debug Class is used to determine when Debugging output to system out.
- * @author dcarver
- *
- */
-public final class Debug {
- public static final boolean checkForMemoryLeaks = false;
-
- public static final boolean collectStats = false;
-
- public static final int DEBUG = 0;
-
- public static final boolean DEBUG_THREADLOCAL = false;
-
- public static final boolean debugBreakpoints = false;
- public static final boolean debugCaretMediator = false;
- public static final boolean debugDisplayTreePositions = false;
- //
- public static final boolean debugMediator = false;
- //
- public static final boolean debugNotification = false;
- public static final boolean debugNotificationAndEvents = false;
-
- public static final boolean debugNotifyDeferred = false;
- public static final boolean debugReconciling = false;
- //
- public static final boolean debugRtfFormatProvider = false;
- //
- public static final boolean debugStructuredDocument = false;
- public static final boolean debugTaglibs = false;
- //
- public static final boolean debugTokenizer = false;
-
- //
- public static final boolean debugLauncher = false;
-
- /**
- * Output Modeling Messages.
- */
- public static final boolean debugXSLModel = false;
- //
- public static final boolean debugTreeModel = false;
- public static final boolean debugUpdateTreePositions = false;
- public static final boolean displayInfo = false;
-
- /** effects output of Logger */
- public static final boolean displayToConsole = true;
- public static final boolean displayWarnings = false;
- //
- public static final boolean headParsing = false;
- public static final boolean jsDebugContextAssist = false;
- //
- public static final boolean jsDebugSyntaxColoring = false;
-
- public static final boolean LOCKS = false;
- //
- public static final boolean perfTest = false;
- public static final boolean perfTestAdapterClassLoading = false;
- public static final boolean perfTestFormat = false;
- public static final boolean perfTestRawStructuredDocumentOnly = false;
- public static final boolean perfTestStructuredDocumentEventOnly = false;
- public static final boolean perfTestStructuredDocumentOnly = false;
-
- //
- public static final boolean syntaxHighlighting = false;
- //
- public static final boolean useStandardEolInWidget = false;
-
- /**
- * For tests and debug only
- */
-
- public static final void dump(IStructuredDocument structuredDocument) {
- dump(structuredDocument, false);
- }
-
- public static final void dump(IStructuredDocument structuredDocument, boolean verbose) {
- ITextRegionCollection flatNode = null;
- System.out.println("Dump of structuredDocument:"); //$NON-NLS-1$
- IStructuredDocumentRegionList flatNodes = structuredDocument.getRegionList();
- Enumeration structuredDocumentRegions = flatNodes.elements();
- while (structuredDocumentRegions.hasMoreElements()) {
- flatNode = (ITextRegionCollection) structuredDocumentRegions.nextElement();
- if (!verbose) {
- String outString = flatNode.toString();
- outString = org.eclipse.wst.sse.core.utils.StringUtils.escape(outString);
- System.out.println(outString);
- } else {
- dump(flatNode, verbose);
- }
- }
- System.out.println();
- System.out.println("= = = = = ="); //$NON-NLS-1$
- System.out.println();
- }
-
- /**
- * @param flatNode
- * @param verbose
- */
- public static final void dump(ITextRegionCollection region, boolean verbose) {
- if (region == null)
- return;
- if (verbose) {
- printParent(region);
- }
- printChildRegions(region, 0);
- }
-
- private static void printChildRegions(ITextRegionCollection region, int depth) {
- if (region != null) {
- // ==> // ITextRegionCollection regionCollection = region;
- System.out.println(region);
- ITextRegionList regionList = region.getRegions();
- for (int i = 0; i < regionList.size(); i++) {
- ITextRegion r = regionList.get(i);
- if (r instanceof ITextRegionCollection) {
- ITextRegionCollection rc = (ITextRegionCollection) r;
- printChildRegions(rc, depth++);
- } else {
- System.out.println(space(depth) + r);
- depth--;
- }
- }
- }
- }
-
- /**
- * Simple utility to make sure println's are some what in order
- */
- public static final synchronized void println(String msg) {
- System.out.println(System.currentTimeMillis() + "\t" + msg); //$NON-NLS-1$
- }
-
- private static void printParent(IStructuredDocumentRegion region) {
- System.out.println(" [parent document: " + toStringUtil(region.getParentDocument()) + "]"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- private static void printParent(ITextRegionCollection region) {
- if (region instanceof IStructuredDocumentRegion) {
- printParent((IStructuredDocumentRegion) region);
- } else if (region instanceof ITextRegionContainer) {
- printParent((ITextRegionContainer) region);
- } else
- System.out.println(" [parent document: " + "(na)" + "]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-
- private static void printParent(ITextRegionContainer region) {
- System.out.println(" [parent document: " + toStringUtil(region.getParent()) + "]"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- /**
- * @param depth
- * @return
- */
- private static String space(int depth) {
- String result = " "; //$NON-NLS-1$
- for (int i = 0; i < depth; i++) {
- result += " "; //$NON-NLS-1$
- }
- return result;
- }
-
- public static final String toStringUtil(IStructuredDocument object) {
- String className = object.getClass().getName();
- String shortClassName = className.substring(className.lastIndexOf(".") + 1); //$NON-NLS-1$
- String result = shortClassName;
- // NOTE: if the document held by any region has been updated and the
- // region offsets have not
- // yet been updated, the output from this method invalid.
- return result;
-
- }
-
- public static final String toStringUtil(ITextRegionCollection object) {
- String className = object.getClass().getName();
- String shortClassName = className.substring(className.lastIndexOf(".") + 1); //$NON-NLS-1$
- String result = shortClassName;
- // NOTE: if the document held by any region has been updated and the
- // region offsets have not
- // yet been updated, the output from this method invalid.
- return result;
-
- }
-
- /**
- * Debug constructor comment.
- */
- public Debug() {
- super();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/FileUtil.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/FileUtil.java
deleted file mode 100644
index 45f9404..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/FileUtil.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.eclipse.wst.xsl.core.internal.util;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.content.IContentType;
-import org.eclipse.core.runtime.content.IContentTypeManager;
-import org.eclipse.wst.xsl.core.XSLCore;
-
-/**
- * This is a general file utility class.
- *
- * @author dcarver
- *
- */
-public class FileUtil {
-
- /**
- * Determines if a file is one of the valid XML content types.
- * @param file The input IFile to check
- * @return True if it is a XML file, false otherwise.
- */
- public static boolean isXMLFile(IFile file)
- {
- IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
- IContentType[] types = contentTypeManager.findContentTypesFor(file.getName());
- for (IContentType contentType : types)
- {
- if (contentType.isKindOf(contentTypeManager.getContentType("org.eclipse.core.runtime.xml")) || contentType.isKindOf(contentTypeManager.getContentType("org.eclipse.wst.xml.core.xmlsource"))) //$NON-NLS-1$ //$NON-NLS-2$
- {
- return true;
- }
- }
- return false;
- }
-
- /**
- * Determines if a file is a XSLT File.
- * @param file The input IFile to check.
- * @return True if it is a XSLT file, false otherwise.
- *
- */
- public static boolean isXSLFile(IFile file)
- {
- IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
- IContentType[] types = contentTypeManager.findContentTypesFor(file.getName());
- for (IContentType contentType : types)
- {
- if (contentType.equals(contentTypeManager.getContentType(XSLCore.XSL_CONTENT_TYPE)))
- {
- return true;
- }
- }
- return false;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/StructuredDocumentUtil.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/StructuredDocumentUtil.java
deleted file mode 100644
index 1827d31..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/util/StructuredDocumentUtil.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.eclipse.wst.xsl.core.internal.util;
-
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
-
-/**
- * General Purpose utility classes to convert from StructuredDocument to DOM.
- *
- * @author dcarver
- *
- */
-public class StructuredDocumentUtil {
-
- /**
- * Given a StructuredDocumentRegion and a TextRegion, return a
- * IDOMNode for that particular position in the StructuredDocument
- *
- * @param documentRegion
- * @param textRegion
- * @return IDOMNode
- */
- public static IDOMNode getNode(IStructuredDocumentRegion documentRegion, ITextRegion textRegion) {
- IStructuredModel sModel = StructuredModelManager.getModelManager().getExistingModelForRead(documentRegion.getParentDocument());
- IDOMDocument documentNode = ((IDOMModel) sModel).getDocument();
-
- return (IDOMNode)documentNode.getModel().getIndexedRegion(documentRegion.getStartOffset(textRegion));
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/MaxErrorsExceededException.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/MaxErrorsExceededException.java
deleted file mode 100644
index d60bc8b..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/MaxErrorsExceededException.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.validation;
-
-/**
- * An exception used to indicate whether the maximum number of errors has been reached
- * for a given Stylesheet validation.
- *
- * @author Doug Satchwell
- */
-public class MaxErrorsExceededException extends Exception
-{
- private static final long serialVersionUID = 1L;
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidationMessage.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidationMessage.java
deleted file mode 100644
index 0297c3f..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidationMessage.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.validation;
-
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationMessage;
-import org.eclipse.wst.xsl.core.model.XSLNode;
-
-/**
- * A validation message specific to the XSL validator which adds the ability
- * to specify the XSL node.
- *
- * @author Doug Satchwell
- * @see org.eclipse.wst.xml.core.internal.validation.core.ValidationMessage
- */
-public class XSLValidationMessage extends ValidationMessage
-{
- private XSLNode node;
- private int realSeverity;
-
- /**
- * Create a new instance of this.
- *
- * @param message
- * The message for the validation message.
- * @param lineNumber
- * The line location of the message.
- * @param columnNumber
- * The column location of the message.
- * @param uri
- * The uri of the file the message is for.
- */
- public XSLValidationMessage(String message, int lineNumber, int columnNumber, String uri)
- {
- super(message, lineNumber, columnNumber, uri);
- }
-
- /**
- * Set the node that this message applies to.
- *
- * @param node the node
- */
- public void setNode(XSLNode node)
- {
- this.node = node;
- }
-
- /**
- * Get the node that this message applies to.
- * @return the node
- */
- public XSLNode getNode()
- {
- return node;
- }
-
- /**
- * The severity set here should be the org.eclipse.wst.validation.internal.provisional.core.IMessage severity.
- */
- @Override
- public void setSeverity(int sev)
- {
- this.realSeverity = sev;
- // the superclass only understands high and low.
- int severity;
- switch(sev)
- {
- case IMessage.HIGH_SEVERITY:
- severity = ValidationMessage.SEV_HIGH;
- break;
- default:
- severity = ValidationMessage.SEV_LOW;
- }
- super.setSeverity(severity);
- }
-
- /**
- * Workaround for superclass's bizarre handling of severity
- *
- * @return
- */
- public int getRealSeverity()
- {
- return realSeverity;
- }
-
- public String toString()
- {
- return node.toString();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidationReport.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidationReport.java
deleted file mode 100644
index f8b0aff..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidationReport.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.validation;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationMessage;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationReport;
-import org.eclipse.wst.xsl.core.model.XSLNode;
-
-
-/**
- * A validation report for the XSL validator.
- *
- * @author Doug Satchwell
- * @see org.eclipse.wst.xml.core.internal.validation.core.ValidationReport
- */
-public class XSLValidationReport implements ValidationReport
-{
- private boolean valid = true;
- private String uri;
- private List<XSLValidationMessage> errors = new ArrayList<XSLValidationMessage>();
- private List<XSLValidationMessage> warnings = new ArrayList<XSLValidationMessage>();
- private List<XSLValidationMessage> infos = new ArrayList<XSLValidationMessage>();
-
- /**
- * Create a new instance of this.
- *
- * @param uri
- * the URI of the entity that this report applies to
- */
- public XSLValidationReport(String uri)
- {
- this.uri = uri;
- }
-
- /**
- * Get the validation messages.
- *
- * @return validation messages
- */
- public List<XSLValidationMessage> getErrors()
- {
- return errors;
- }
-
- /**
- * Get the validation messages.
- *
- * @return validation messages
- */
- public List<XSLValidationMessage> getWarnings()
- {
- return warnings;
- }
-
- /**
- * Get the validation messages.
- *
- * @return validation messages
- */
- public List<XSLValidationMessage> getInfos()
- {
- return infos;
- }
-
- /**
- * Add an error message for the given XSL node.
- *
- * @param node
- * the node the warning applies to
- * @param message
- * the message to associate with the node
- * @return the validation message created
- */
- public ValidationMessage addError(XSLNode node, String message)
- {
- valid = false;
- XSLValidationMessage msg = new XSLValidationMessage(message, node.getLineNumber() + 1, node.getColumnNumber() + 1, getFileURI());
- msg.setSeverity(IMessage.HIGH_SEVERITY);
- msg.setNode(node);
- errors.add(msg);
- return msg;
- }
-
- /**
- * Add an warning message for the given XSL node.
- *
- * @param node
- * the node the warning applies to
- * @param message
- * the message to associate with the node
- * @return the validation message created
- */
- public ValidationMessage addWarning(XSLNode node, String message)
- {
- XSLValidationMessage msg = new XSLValidationMessage(message, node.getLineNumber() + 1, node.getColumnNumber() + 1, getFileURI());
- msg.setSeverity(IMessage.NORMAL_SEVERITY);
- msg.setNode(node);
- warnings.add(msg);
- return msg;
- }
-
- /**
- * Add an info message for the given XSL node.
- *
- * @param node
- * the node the warning applies to
- * @param message
- * the message to associate with the node
- * @return the validation message created
- */
- public ValidationMessage addInfo(XSLNode node, String message)
- {
- XSLValidationMessage msg = new XSLValidationMessage(message, node.getLineNumber() + 1, node.getColumnNumber() + 1, getFileURI());
- msg.setSeverity(IMessage.LOW_SEVERITY);
- msg.setNode(node);
- infos.add(msg);
- return msg;
- }
-
- /**
- * Get the URI that this report applies to.
- *
- * @return the URI
- */
- public String getFileURI()
- {
- return uri;
- }
-
- /**
- * @see org.eclipse.wst.xml.core.internal.validation.core.getNestedMessages
- *
- * @return null
- */
- @SuppressWarnings("unchecked")
- public HashMap getNestedMessages()
- {
- return null;
- }
-
- /**
- * Returns an array of validation messages.
- *
- * @return An array of validation messages.
- */
- public ValidationMessage[] getValidationMessages()
- {
- List<ValidationMessage> messages = new ArrayList<ValidationMessage>();
- messages.addAll(errors);
- messages.addAll(warnings);
- messages.addAll(infos);
- return messages.toArray(new ValidationMessage[0]);
- }
-
- /**
- * Returns whether the file is valid. The file may have warnings associated with it.
- *
- * @return True if the file is valid, false otherwise.
- */
- public boolean isValid()
- {
- return valid;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidator.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidator.java
deleted file mode 100644
index 1aff9a0..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/XSLValidator.java
+++ /dev/null
@@ -1,369 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.validation;
-
-import java.text.MessageFormat;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import javax.xml.xpath.XPathExpressionException;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationReport;
-import org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper;
-import org.eclipse.wst.xsl.core.ValidationPreferences;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.XSLCorePlugin;
-import org.eclipse.wst.xsl.core.internal.util.Debug;
-import org.eclipse.wst.xsl.core.model.CallTemplate;
-import org.eclipse.wst.xsl.core.model.Include;
-import org.eclipse.wst.xsl.core.model.Parameter;
-import org.eclipse.wst.xsl.core.model.StylesheetModel;
-import org.eclipse.wst.xsl.core.model.Template;
-import org.eclipse.wst.xsl.core.model.XSLAttribute;
-import org.eclipse.wst.xsl.core.model.XSLElement;
-import org.eclipse.wst.xsl.core.model.XSLNode;
-import org.eclipse.wst.xsl.core.Messages;
-
-
-/**
- * The XSL validator for workspace XSL files.
- *
- * @author Doug Satchwell
- */
-public class XSLValidator
-{
- private static XSLValidator instance;
-
- private XSLValidator()
- {
- }
-
- /**
- * Validate the given XSL file. Same as <code>validate(xslFile,report,forceBuild)</code> except a new report is created and returned.
- *
- * @param xslFile the XSL file
- * @param forceBuild true if build should always be forced
- * @return the validation report
- * @throws CoreException if any exception occurs while validating
- */
- public ValidationReport validate(IFile xslFile, boolean forceBuild) throws CoreException
- {
- XSLValidationReport report = new XSLValidationReport(xslFile.getLocationURI().toString());
- validate(xslFile, report, forceBuild);
- return report;
- }
-
- /**
- * Validate the given XSL file using the specified report.
- *
- * @param xslFile the XSL file
- * @param report the report to use for reporting validation errors
- * @param forceBuild true if build should always be forced
- * @return the validation report
- * @throws CoreException if any exception occurs while validating
- */
- public void validate(IFile xslFile, XSLValidationReport report, boolean forceBuild) throws CoreException
- {
- StylesheetModel stylesheet;
- if (forceBuild)
- stylesheet = XSLCore.getInstance().buildStylesheet(xslFile);
- else
- stylesheet = XSLCore.getInstance().getStylesheet(xslFile);
-
- long start;
- if (Debug.debugXSLModel) {
- start = System.currentTimeMillis();
- }
- if (stylesheet!=null)
- {
- try
- {
- calculateProblems(stylesheet, report);
- }
- catch (MaxErrorsExceededException e)
- {
- // do nothing
- }
- }
- if (Debug.debugXSLModel) {
- long end = System.currentTimeMillis();
- System.out.println("VALIDATE "+xslFile+" in "+(end-start)+"ms");
- }
- }
-
- private void calculateProblems(StylesheetModel stylesheetComposed, XSLValidationReport report) throws MaxErrorsExceededException
- {
- // circular reference check
- checkCircularRef(stylesheetComposed, report);
- // include checks
- checkIncludes(stylesheetComposed, report);
- // template checks
- checkTemplates(stylesheetComposed, report);
- // call-template checks
- checkCallTemplates(stylesheetComposed, report);
- // call-template checks
- if (getPreference(ValidationPreferences.XPATHS) > IMarker.SEVERITY_INFO)
- checkXPaths(stylesheetComposed.getStylesheet(), report);
-
- // TODO a) check globals and b) apply-templates where mode does not exist
- }
-
- private int getPreference(String key)
- {
- return XSLCorePlugin.getDefault().getPluginPreferences().getInt(key);
- }
-
- private void checkXPaths(XSLElement xslEl, XSLValidationReport report) throws MaxErrorsExceededException
- {
- validateXPath(xslEl, report, "select"); //$NON-NLS-1$
- validateXPath(xslEl, report, "test"); //$NON-NLS-1$
- validateXPath(xslEl, report, "match"); //$NON-NLS-1$
- for (XSLElement childEl : xslEl.getChildElements())
- {
- checkXPaths(childEl, report);
- }
- }
-
- private void validateXPath(XSLElement xslEl, XSLValidationReport report, String attName) throws MaxErrorsExceededException
- {
- XSLAttribute att = xslEl.getAttribute(attName);
- if (att != null && att.getValue() != null)
- {
- try
- {
- XSLTXPathHelper.compile(att.getValue());
- }
- catch (XPathExpressionException e)
- {
- createMarker(report, att, getPreference(ValidationPreferences.XPATHS), Messages.XSLValidator_1);
- }
- catch (NullPointerException e)
- {
- // not sure why NPE is being thrown here
- }
- }
- }
-
- private void checkCircularRef(StylesheetModel stylesheetComposed, XSLValidationReport report) throws MaxErrorsExceededException
- {
- if (stylesheetComposed.hasCircularReference())
- createMarker(report, stylesheetComposed.getStylesheet(), getPreference(ValidationPreferences.CIRCULAR_REF), Messages.XSLValidator_2);
- }
-
- private void checkIncludes(StylesheetModel stylesheetComposed, XSLValidationReport report) throws MaxErrorsExceededException
- {
- // includes
- for (Include include : stylesheetComposed.getStylesheet().getIncludes())
- {
- IFile includedFile = include.getHrefAsFile();
- if (includedFile == null || !includedFile.exists())
- { // included file does not exist
- XSLAttribute att = include.getAttribute("href"); //$NON-NLS-1$
- if (att != null)
- createMarker(report, att, getPreference(ValidationPreferences.MISSING_INCLUDE), Messages.XSLValidator_4 + include.getHref());
- else
- createMarker(report, include, getPreference(ValidationPreferences.NAME_ATTRIBUTE_EMPTY), Messages.XSLValidator_23 );
- }
- else if (includedFile.equals(include.getStylesheet().getFile()))
- { // stylesheet including itself!
- createMarker(report, include.getAttribute("href"), getPreference(ValidationPreferences.CIRCULAR_REF), Messages.XSLValidator_6); //$NON-NLS-1$
- }
- }
- //imports
- for (Include include : stylesheetComposed.getStylesheet().getImports())
- {
- IFile includedFile = include.getHrefAsFile();
- if (includedFile == null || !includedFile.exists())
- { // included file does not exist
- createMarker(report, include.getAttribute("href"), getPreference(ValidationPreferences.MISSING_INCLUDE), Messages.XSLValidator_8 + include.getHref()); //$NON-NLS-1$
- }
- else if (includedFile.equals(include.getStylesheet().getFile()))
- { // stylesheet including itself!
- createMarker(report, include.getAttribute("href"), getPreference(ValidationPreferences.CIRCULAR_REF), Messages.XSLValidator_10); //$NON-NLS-1$
- }
- }
- }
-
- private void checkTemplates(StylesheetModel stylesheetComposed, XSLValidationReport report) throws MaxErrorsExceededException
- {
- for (Template template : stylesheetComposed.getStylesheet().getTemplates())
- {
- // check attributes are correct
- if (template.getName() != null)
- {// named template
-// if (template.getMatch() != null)
-// createMarker(report, template, IMarker.SEVERITY_ERROR, "Template cannot specify both name and match attributes");
-// if (template.getMode() != null)
-// createMarker(report, template, IMarker.SEVERITY_ERROR, "Named templates cannot specify a mode");
- checkParameters(report, template);
- }
-
- for (Template checkTemplate : stylesheetComposed.getTemplates())
- {
- if (checkTemplate != template && checkTemplate.equals(template))
- {
- if (template.getStylesheet() == stylesheetComposed.getStylesheet() && checkTemplate.getStylesheet() == stylesheetComposed.getStylesheet())
- {// templates in this stylesheet conflict with each other
- createMarker(report, template, getPreference(ValidationPreferences.TEMPLATE_CONFLICT), Messages.XSLValidator_11);
- }
- else if (template.getStylesheet() == stylesheetComposed.getStylesheet())
- {// template in included stylesheet conflicts with this
- createMarker(report, template, getPreference(ValidationPreferences.TEMPLATE_CONFLICT), Messages.XSLValidator_12);
- }
- else
- {// templates in included stylesheets conflict with each other
- createMarker(report, template.getStylesheet(), getPreference(ValidationPreferences.TEMPLATE_CONFLICT), Messages.XSLValidator_13);
- }
- }
- }
- }
- }
-
- private void checkParameters(XSLValidationReport report, Template template) throws MaxErrorsExceededException
- {
- List<Parameter> parameters = new ArrayList<Parameter>(template.getParameters());
- // reverse the parameters order for checking - for duplicate parameters
- // the first one is valid
- Collections.reverse(parameters);
- Set<Parameter> duplicateParameters = new HashSet<Parameter>();
- // check parameters
- for (Parameter param : parameters)
- {
- if (param.getName() == null)
- {// name is required
- createMarker(report, param, getPreference(ValidationPreferences.NAME_ATTRIBUTE_MISSING), Messages.XSLValidator_14);
- }
- else if (param.getName().trim().length() == 0)
- {// name value is required
- createMarker(report, param, getPreference(ValidationPreferences.NAME_ATTRIBUTE_EMPTY), Messages.XSLValidator_15);
- }
- else if (duplicateParameters.contains(param))
- {// don't recheck the parameter
- continue;
- }
- else
- {// check a parameter with the same name does not exist
- for (Parameter checkParam : parameters)
- {
- if (param != checkParam)
- {
- if (param.getName().equals(checkParam.getName()))
- {
- duplicateParameters.add(checkParam);
- createMarker(report, param, getPreference(ValidationPreferences.DUPLICATE_PARAMETER), Messages.XSLValidator_16);
- }
- }
- }
- }
- }
- }
-
- private void checkCallTemplates(StylesheetModel stylesheetComposed, XSLValidationReport report) throws MaxErrorsExceededException
- {
- for (CallTemplate calledTemplate : stylesheetComposed.getStylesheet().getCalledTemplates())
- {
- if (calledTemplate.getName() != null)
- {
- // get the list of templates that might be being called by this
- // template call
- List<Template> templateList = stylesheetComposed.getTemplatesByName(calledTemplate.getName());
- if (templateList.size() == 0)
- {
- Object[] messageArgs = { calledTemplate.getName() };
- createMarker(report, calledTemplate.getAttribute("name"), getPreference(ValidationPreferences.CALL_TEMPLATES), MessageFormat.format(Messages.XSLValidator_18, messageArgs)); //$NON-NLS-1$
- }
- else
- {
- Template namedTemplate = templateList.get(0);
- for (Parameter calledTemplateParam : calledTemplate.getParameters())
- {
- boolean found = false;
- for (Parameter namedTemplateParam : namedTemplate.getParameters())
- {
- if (calledTemplateParam.getName().equals(namedTemplateParam.getName()))
- {
- found = true;
- if (!namedTemplateParam.isValue() && !calledTemplateParam.isValue()) {
- Object[] messageArgs = { calledTemplateParam.getName() };
- createMarker(report, calledTemplateParam, getPreference(ValidationPreferences.EMPTY_PARAM), MessageFormat.format(Messages.XSLValidator_20, messageArgs));
- }
- break;
-
- }
- }
- if (!found) {
- Object[] messageArgs = { calledTemplateParam.getName() };
- createMarker(report, calledTemplateParam.getAttribute("name"), getPreference(ValidationPreferences.MISSING_PARAM), MessageFormat.format(Messages.XSLValidator_22, messageArgs)); //$NON-NLS-1$
- }
- }
- if (getPreference(ValidationPreferences.MISSING_PARAM) > IMarker.SEVERITY_INFO)
- {
- for (Parameter namedTemplateParam : namedTemplate.getParameters())
- {
- if (!namedTemplateParam.isValue())
- {
- boolean found = false;
- for (Parameter calledTemplateParam : calledTemplate.getParameters())
- {
- if (calledTemplateParam.getName().equals(namedTemplateParam.getName()))
- {
- found = true;
- break;
- }
- }
- if (!found) {
- Object[] messageArgs = { namedTemplateParam.getName() };
- createMarker(report, calledTemplate, getPreference(ValidationPreferences.MISSING_PARAM), MessageFormat.format(Messages.XSLValidator_3, messageArgs));
- }
- }
- }
- }
- }
- }
- }
- }
-
- private void createMarker(XSLValidationReport report, XSLNode xslNode, int severity, String message) throws MaxErrorsExceededException
- {
- if (severity > IMarker.SEVERITY_INFO)
- {
- if (report.getErrors().size() + report.getWarnings().size() > getPreference(ValidationPreferences.MAX_ERRORS))
- throw new MaxErrorsExceededException();
- switch (severity)
- {
- case IMarker.SEVERITY_ERROR:
- report.addError(xslNode, message);
- break;
- case IMarker.SEVERITY_WARNING:
- report.addWarning(xslNode, message);
- break;
- }
- }
- }
-
- /**
- * Get the singleton XSLValidator instance.
- *
- * @return the singleton XSLValidator instance
- */
- public static XSLValidator getInstance()
- {
- if (instance == null)
- instance = new XSLValidator();
- return instance;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/eclipse/Validator.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/eclipse/Validator.java
deleted file mode 100644
index 8b98367..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/eclipse/Validator.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver - STAR - bug 224777 - fix spaces in path names in URIs.
- * bug 226578 - remove extraneous @override statements
- * this was causing compilation problems
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.validation.eclipse;
-
-import java.io.InputStream;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.wst.common.uriresolver.internal.util.URIEncoder;
-import org.eclipse.wst.validation.ValidationResult;
-import org.eclipse.wst.validation.ValidationState;
-import org.eclipse.wst.validation.ValidatorMessage;
-import org.eclipse.wst.validation.internal.ResourceUnavailableError;
-import org.eclipse.wst.validation.internal.core.ValidationException;
-import org.eclipse.wst.validation.internal.plugin.ValidationPlugin;
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
-import org.eclipse.wst.validation.internal.provisional.core.IValidationContext;
-import org.eclipse.wst.xml.core.internal.validation.core.AbstractNestedValidator;
-import org.eclipse.wst.xml.core.internal.validation.core.NestedValidatorContext;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationMessage;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationReport;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.XSLCorePlugin;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidationMessage;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidator;
-import org.eclipse.wst.xsl.core.model.StylesheetModel;
-import org.eclipse.wst.xsl.core.model.XSLAttribute;
-import org.eclipse.wst.xsl.core.model.XSLNode;
-
-/**
- * The XSL validator extends the XML <code>AbstractNestedValidator</code>.
- *
- * @author Doug Satchwell
- */
-public class Validator extends AbstractNestedValidator
-{
- // ////////////////////////////////////////////////////////////////////////////////////////////////
- // BUILD VALIDATION METHODS
- // ////////////////////////////////////////////////////////////////////////////////////////////////
-
- private boolean asYouTypeValidation;
-
- @Override
- public void clean(IProject project, ValidationState state, IProgressMonitor monitor)
- {
- super.clean(project, state, monitor);
- XSLCore.getInstance().clean(project,monitor);
- }
-
- @Override
- public ValidationResult validate(IResource resource, int kind, ValidationState state, IProgressMonitor monitor)
- {
- ValidationResult res = super.validate(resource, kind, state, monitor);
- if (resource.getType() == IResource.FILE)
- {
- StylesheetModel stylesheet = XSLCore.getInstance().getStylesheet((IFile) resource);
- IFile[] dependencies = stylesheet.getFileDependencies().toArray(new IFile[0]);
- res.setDependsOn(dependencies);
- }
- return res;
- }
-
-
- // ////////////////////////////////////////////////////////////////////////////////////////////////
- // AS YOU TYPE VALIDATION METHODS
- // ////////////////////////////////////////////////////////////////////////////////////////////////
-
- public IStatus validateInJob(IValidationContext context, IReporter reporter) throws ValidationException
- {
- asYouTypeValidation = true;
- return super.validateInJob(context, reporter);
- }
-
- // ////////////////////////////////////////////////////////////////////////////////////////////////
- // COMMON METHODS
- // ////////////////////////////////////////////////////////////////////////////////////////////////
-
- public ValidationReport validate(final String uri, InputStream inputstream, NestedValidatorContext context)
- {
- ValidationReport valreport = new ValidationReport(){
-
- public String getFileURI()
- {
- return uri;
- }
-
- @SuppressWarnings("unchecked")
- public HashMap getNestedMessages()
- {
- return new HashMap();
- }
-
- public ValidationMessage[] getValidationMessages()
- {
- return new ValidationMessage[0];
- }
-
- public boolean isValid()
- {
- return true;
- }};
- try
- {
- String encUri = URIEncoder.encode(uri);
- IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(new URI(encUri));
- if (files.length > 0)
- {
- IFile xslFile = files[0];
- valreport = XSLValidator.getInstance().validate(xslFile,asYouTypeValidation);
- }
- }
- catch (URISyntaxException e)
- {
- XSLCorePlugin.log(e);
- }
- catch (CoreException e)
- {
- XSLCorePlugin.log(e);
- }
- return valreport;
- }
-
- @Override
- protected void addInfoToMessage(ValidationMessage validationMessage, IMessage message)
- {
- XSLValidationMessage msg = (XSLValidationMessage) validationMessage;
- XSLNode node = msg.getNode();
- // set this here as it gets set to the wrong value by the superclass
- message.setSeverity(msg.getRealSeverity());
- // constants are defined in org.eclipse.wst.xml.ui.internal.validation.DelegatingSourceValidator
- if (node.getNodeType() == XSLNode.ATTRIBUTE_NODE)
- {
- message.setAttribute("ERROR_SIDE", "ERROR_SIDE_RIGHT"); //$NON-NLS-1$//$NON-NLS-2$
- message.setAttribute(COLUMN_NUMBER_ATTRIBUTE, new Integer(validationMessage.getColumnNumber()));
- message.setAttribute(SQUIGGLE_SELECTION_STRATEGY_ATTRIBUTE, "ATTRIBUTE_VALUE"); // whether to squiggle the element, attribute or text //$NON-NLS-1$
- message.setAttribute(SQUIGGLE_NAME_OR_VALUE_ATTRIBUTE, ((XSLAttribute) node).getName());
- }
- else if (node.getNodeType() == XSLNode.ELEMENT_NODE)
- {
- message.setAttribute("ERROR_SIDE", "ERROR_SIDE_RIGHT"); //$NON-NLS-1$//$NON-NLS-2$
- message.setAttribute(COLUMN_NUMBER_ATTRIBUTE, new Integer(validationMessage.getColumnNumber()));
- message.setAttribute(SQUIGGLE_SELECTION_STRATEGY_ATTRIBUTE, "START_TAG"); // whether to squiggle the element, attribute or text //$NON-NLS-1$
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/eclipse/Validator2.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/eclipse/Validator2.java
deleted file mode 100644
index 8c8c7a2..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/validation/eclipse/Validator2.java
+++ /dev/null
@@ -1,111 +0,0 @@
-package org.eclipse.wst.xsl.core.internal.validation.eclipse;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.jobs.ISchedulingRule;
-import org.eclipse.wst.validation.AbstractValidator;
-import org.eclipse.wst.validation.ValidationResult;
-import org.eclipse.wst.validation.ValidationState;
-import org.eclipse.wst.validation.ValidatorMessage;
-import org.eclipse.wst.validation.internal.core.ValidationException;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
-import org.eclipse.wst.validation.internal.provisional.core.IValidationContext;
-import org.eclipse.wst.validation.internal.provisional.core.IValidatorJob;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationMessage;
-import org.eclipse.wst.xml.core.internal.validation.core.ValidationReport;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.XSLCorePlugin;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidationMessage;
-import org.eclipse.wst.xsl.core.internal.validation.XSLValidator;
-import org.eclipse.wst.xsl.core.model.StylesheetModel;
-
-/**
- * Validator for both build validation (AbstractValidator) and as-you-type validation (IValidatorJob).
- *
- * @author Doug
- */
-public class Validator2 extends AbstractValidator implements IValidatorJob
-{
- // ////////////////////////////////////////////////////////////////////////////////////////////////
- // BUILD VALIDATION METHODS
- // ////////////////////////////////////////////////////////////////////////////////////////////////
-
- @Override
- public void clean(IProject project, ValidationState state, IProgressMonitor monitor)
- {
- XSLCore.getInstance().clean(project, monitor);
- super.clean(project, state, monitor);
- }
-
- public ValidationResult validate(IResource resource, int kind, ValidationState state, IProgressMonitor monitor)
- {
- /*
- * String s; switch(kind) { case IResourceDelta.ADDED: s = "added"; break; case IResourceDelta.CHANGED: s = "CHANGED"; break; case IResourceDelta.CONTENT: s = "CONTENT"; break; case
- * IResourceDelta.REMOVED: s = "REMOVED"; break; default: s = "other"; } System.out.println(s);
- */
- ValidationResult result = new ValidationResult();
- if (resource.getType() == IResource.FILE)
- {
- IFile file = (IFile)resource;
- ValidationReport report = doValidation(file, kind, state, monitor);
- StylesheetModel stylesheet = XSLCore.getInstance().getStylesheet(file);
- IFile[] dependencies = stylesheet.getFileDependencies().toArray(new IFile[0]);
- result.setDependsOn(dependencies);
-
- for (ValidationMessage message : report.getValidationMessages())
- {
- XSLValidationMessage xslMsg = (XSLValidationMessage)message;
- ValidatorMessage msg = ValidatorMessage.create(message.getMessage(), resource);
- msg.setAttribute("lineNumber", xslMsg.getLineNumber());
- msg.setAttribute("severity", xslMsg.getSeverity());
- result.add(msg);
- }
- }
- return result;
- }
-
- private ValidationReport doValidation(IFile file, int kind, ValidationState state, IProgressMonitor monitor)
- {
- ValidationReport valreport = null;
- try
- {
- valreport = XSLValidator.getInstance().validate(file,true);
- }
- catch (CoreException e)
- {
- XSLCorePlugin.log(e);
- }
- return valreport;
- }
-
- // ////////////////////////////////////////////////////////////////////////////////////////////////
- // AS YOU TYPE VALIDATION METHODS
- // ////////////////////////////////////////////////////////////////////////////////////////////////
-
- public ISchedulingRule getSchedulingRule(IValidationContext helper)
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- public IStatus validateInJob(IValidationContext helper, IReporter reporter) throws ValidationException
- {
- // TODO Auto-generated method stub
- return null;
- }
-
- public void cleanup(IReporter reporter)
- {
- // TODO Auto-generated method stub
-
- }
-
- public void validate(IValidationContext helper, IReporter reporter) throws ValidationException
- {
- validateInJob(helper,reporter);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/xinclude/XIncluder.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/xinclude/XIncluder.java
deleted file mode 100644
index c2d83ce..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/internal/xinclude/XIncluder.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/******************************************************************************
-* Copyright (c) 2008 Lars Vogel
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/eplv10.html
-*
-* Contributors:
-* Lars Vogel - Lars.Vogel@gmail.com - initial API and implementation
-* David Carver - STAR - bug 217919 - renamed to XIncluder from MyXIncluder
-* Added feature call to make sure we get
-* an XInclude aware configuration. Also
-* removed Docbook DTD hard coding.
-*******************************************************************************/
-
-package org.eclipse.wst.xsl.core.internal.xinclude;
-
-import java.io.File;
-import java.io.FileOutputStream;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
-
-import org.w3c.dom.Document;
-
-/**
- * XIncluder will read an XML file, that has elements from the XInclude
- * namespace and follows the W3C XInclude specification (http://www.w3.org/TR/xinclude/).
- * It will output a merged file.
- * @author Lars Vogel
- *
- */
-public class XIncluder {
-
- /**
- * extracXMLFile merges the files referenced by xinclude include elements.
- * @param in The full path to the input XML file
- * @param out The full path to the merged XML file
- * @throws Exception
- */
- public void extractXMLFile(String in, String out) throws Exception {
- Document document = null;
- File file;
-
- file = new File(in);
- file.getAbsolutePath();
- file.lastModified();
-
- DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
-
- // Make sure we are getting a configuration that is XInclude Aware
- dbf.setAttribute("http://apache.org/xml/features/xinclude", true); //$NON-NLS-1$
- dbf.setXIncludeAware(true);
- dbf.setNamespaceAware(true);
-
-
- DocumentBuilder dom = dbf.newDocumentBuilder();
- document = dom.parse(file);
-
- // ---- Use a XSLT transformer for writing the new XML file ----
- Transformer transformer = TransformerFactory.newInstance()
- .newTransformer();
-
- DOMSource source = new DOMSource(document);
- FileOutputStream os = new FileOutputStream(new File(out));
- StreamResult result = new StreamResult(os);
- transformer.transform(source, result);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/messages.properties b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/messages.properties
deleted file mode 100644
index c55859e..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/messages.properties
+++ /dev/null
@@ -1,45 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2005, 2008 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-# Jesper Steen Mller - adapted from org.eclipse.core.internal.content
-###############################################################################
-
-### Resolver problems
-XSLCorePlugin_badInitializationData = Invalid initialization data for "{0}".
-XSLCorePlugin_parserConfiguration = XSL parser configuration error during content description.
-XSLCorePlugin_coreError=Error logged from XSL core plug-in\:
-# XInclude
-XIncludeTask_0=Setting the output File to:
-XIncludeTask_1=Setting the output File to:
-XIncludeTask_2=Executing the XIncludeTask
-XIncludeTask_3=Specified Inputfile does not exists
-XIncludeTask_4=Creating the output directory
-XIncludeTask_5=Could not create outputfile
-XIncludeTask_6=Changes detected. Creating a new output file
-XIncludeTask_7=Problems with accessing the files.
-XIncludeTask_8=Please specify inputfile
-XIncludeTask_9=Please specify outputfile
-# Validation
-XSLValidator_1=Xpath is invalid
-XSLValidator_10=A stylesheet must not import itself
-XSLValidator_11=Template conflicts with another template in this stylesheet
-XSLValidator_12=Template conflicts with an included template
-XSLValidator_13=Included templates conflict with each other
-XSLValidator_14=Name attribute is required
-XSLValidator_23=href attribute is required
-XSLValidator_15=Name must be specified
-XSLValidator_16=Parameter already defined
-XSLValidator_18=Named template {0} is not available
-XSLValidator_2=Included stylesheets form a circular reference
-XSLValidator_20=Parameter {0} does not have a default value
-XSLValidator_22=Parameter {0} does not exist
-XSLValidator_3=Missing parameter: {0}
-XSLValidator_4=Missing include:
-XSLValidator_6=A stylesheet must not include itself
-XSLValidator_8=Missing import:
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/CallTemplate.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/CallTemplate.java
deleted file mode 100644
index d4ac0c6..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/CallTemplate.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.wst.xsl.core.model.XSLModelObject.Type;
-
-/**
- * The <code>xsl:call-template</code> model element.
- *
- * @author Doug Satchwell
- */
-public class CallTemplate extends XSLElement
-{
- final List<Parameter> parameters = new ArrayList<Parameter>();
-
- /**
- * Create a new instance of this.
- *
- * @param stylesheet the stylesheet that this belongs to
- */
- public CallTemplate(Stylesheet stylesheet)
- {
- super(stylesheet);
- }
-
- /**
- * Add a parameter to this.
- *
- * @param parameter the parameter to add
- */
- public void addParameter(Parameter parameter)
- {
- parameters.add(parameter);
- }
-
- /**
- * Get the value of the <code>name</code> attribute if one exists.
- *
- * @return the template name, or null
- */
- public String getName()
- {
- return getAttributeValue("name"); //$NON-NLS-1$
- }
-
- /**
- * Get the list of parameters associated with this.
- *
- * @return a list of parameters
- */
- public List<Parameter> getParameters()
- {
- return parameters;
- }
-
- public Type getModelType()
- {
- return Type.CALL_TEMPLATE;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Import.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Import.java
deleted file mode 100644
index 55931f4..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Import.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-/**
- * The <code>xsl:import</code> model element.
- *
- * @author Doug Satchwell
- */
-public class Import extends Include
-{
- /**
- * Create a new instance of this.
- *
- * @param stylesheet the stylesheet that this belongs to
- */
- public Import(Stylesheet stylesheet)
- {
- super(stylesheet,IMPORT);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Include.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Include.java
deleted file mode 100644
index ae8c0d5..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Include.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.wst.xsl.core.XSLCore;
-
-/**
- * The <code>xsl:include</code> model element.
- *
- * @author Doug Satchwell
- */
-public class Include extends XSLElement
-{
- /**
- * Constant indicating that this is an <code>Include</code>.
- */
- public static final int INCLUDE = 1;
-
- /**
- * Constant indicating that this is an <code>Import</code>.
- */
- public static final int IMPORT = 2;
-
- private final int type;
-
- /**
- * Create a new instance of this.
- *
- * @param stylesheet the stylesheet that this belongs to
- */
- public Include(Stylesheet stylesheet)
- {
- this(stylesheet,INCLUDE);
- }
-
- /**
- * Create a new instance of this, specifying whether an <code>Include</code> or an <code>Import</code>.
- *
- * @param stylesheet the stylesheet that this belongs to
- * @param type one of the constants <code>INCLUDE</code> or <code>IMPORT</code>
- */
- protected Include(Stylesheet stylesheet, int type)
- {
- super(stylesheet);
- this.type = type;
- }
-
- /**
- * Get the type of include, whether an <code>Include</code> or an <code>Import</code>.
- *
- * @return one of the constants <code>INCLUDE</code> or <code>IMPORT</code>
- */
- public int getIncludeType()
- {
- return type;
- }
-
- /**
- * Get the value of the <code>href</code> attribute if one exists.
- *
- * @return the <code>href</code> value, or null
- */
- public String getHref() {
- return getAttributeValue("href"); //$NON-NLS-1$
- }
-
-
- /**
- * Gets the included file as a source file, if possible (returned file may be null and need not exist).
- *
- * @return the included file, or null
- */
- public IFile getHrefAsFile()
- {
- return XSLCore.resolveFile(getStylesheet().getFile(), getHref());
- }
-
- public Type getModelType()
- {
- return Type.INCLUDE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Parameter.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Parameter.java
deleted file mode 100644
index 5303538..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Parameter.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-/**
- * The <code>xsl:parameter</code> or <code>xsl:with-param</code> model element.
- *
- * @author Doug Satchwell
- */
-public class Parameter extends Variable
-{
- private boolean valueSet;
-
- /**
- * Create a new instance of this.
- *
- * @param stylesheet the stylesheet that this belongs to
- */
- public Parameter(Stylesheet stylesheet)
- {
- super(stylesheet);
- }
-
- /**
- * Set whether this has a value.
- *
- * @param valueSet <code>true</code> if this has a value
- */
- public void setValue(boolean valueSet)
- {
- this.valueSet = valueSet;
- }
-
- /**
- * Get whether this has a value.
- *
- * @return <code>true</code> if this has a value
- */
- public boolean isValue()
- {
- if (valueSet)
- return true;
- if (getAttributeValue("select") != null) //$NON-NLS-1$
- return true;
- return false;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Stylesheet.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Stylesheet.java
deleted file mode 100644
index 37dab7e..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Stylesheet.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-
-/**
- * The <code>xsl:stylesheet</code> model element.
- *
- * @author Doug Satchwell
- */
-public class Stylesheet extends XSLElement
-{
- final IFile file;
- final List<Include> includes = new ArrayList<Include>();
- final List<Import> imports = new ArrayList<Import>();
- final List<Template> templates = new ArrayList<Template>();
- final List<CallTemplate> calledTemplates = new ArrayList<CallTemplate>();
- final List<Variable> globalVariables = new ArrayList<Variable>();
- final List<XSLElement> elements = new ArrayList<XSLElement>();
- String version;
-
- /**
- * Create an instance of this.
- *
- * @param file the file that this represents
- */
- public Stylesheet(IFile file)
- {
- super(null);
- this.file = file;
- }
-
- @Override
- public Stylesheet getStylesheet()
- {
- return this;
- }
-
- /**
- * Add an <code>Include</code> to this.
- *
- * @param include the include to add
- */
- public void addInclude(Include include)
- {
- includes.add(include);
- }
-
- /**
- * Add an <code>Import</code> to this.
- *
- * @param include the import to add
- */
- public void addImport(Import include)
- {
- imports.add(include);
- }
-
- /**
- * Add a <code>Template</code> to this.
- *
- * @param template the template to add
- */
- public void addTemplate(Template template)
- {
- templates.add(template);
- }
-
- /**
- * Add a <code>CallTemplate</code> to this.
- *
- * @param template the template to add
- */
- public void addCalledTemplate(CallTemplate template)
- {
- calledTemplates.add(template);
- }
-
- /**
- * Get the file that this represents.
- *
- * @return the file that this represents
- */
- public IFile getFile()
- {
- return file;
- }
-
- /**
- * Get the list of includes for this.
- *
- * @return the list of includes
- */
- public List<Include> getIncludes()
- {
- return includes;
- }
-
- /**
- * Get the list of imports for this.
- *
- * @return the list of imports
- */
- public List<Import> getImports()
- {
- return imports;
- }
-
- /**
- * Get the list of templates for this.
- *
- * @return the list of templates
- */
- public List<Template> getTemplates()
- {
- return templates;
- }
-
- /**
- * Get the list of called templates for this.
- *
- * @return the list of called templates
- */
- public List<CallTemplate> getCalledTemplates()
- {
- return calledTemplates;
- }
-
- /**
- * Add a global variable to this.
- *
- * @param var the variable to add
- */
- public void addGlobalVariable(Variable var)
- {
- globalVariables.add(var);
- }
-
- public Type getModelType()
- {
- return Type.STYLESHEET;
- }
-
- /**
- * Set the stylesheet version.
- *
- * @param version the version to set
- */
- public void setVersion(String version)
- {
- this.version = version;
- }
-
- /**
- * Get the stylesheet version.
- */
- public String getVersion()
- {
- return version;
- }
-
- public List<Variable> getGlobalVariables()
- {
- return globalVariables;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/StylesheetModel.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/StylesheetModel.java
deleted file mode 100644
index 1b419c4..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/StylesheetModel.java
+++ /dev/null
@@ -1,247 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.util.Debug;
-
-/**
- * The composed stylesheet, consisting of all templates and variables available via imports and includes.
- *
- * <p>
- * The <code>fix()</code> method does the actual work of populating the fields of this, so it must be called before calling any of the other methods.
- * </p>
- *
- * <p>
- * Note that this model may not be valid - for instance there may be more than one named template for a given name or more than one global variable with a given name.
- * </p>
- *
- * @author Doug Satchwell
- */
-public class StylesheetModel extends XSLModelObject
-{
- private final Stylesheet stylesheet;
- boolean circularReference;
- final Set<IFile> files = new HashSet<IFile>();
- final Set<Stylesheet> stylesheets = new HashSet<Stylesheet>();
- final List<Include> includeModel = new ArrayList<Include>();
- final List<Import> importModel = new ArrayList<Import>();
- final Set<Template> templateSet = new HashSet<Template>();
- final List<Template> templates = new ArrayList<Template>();
- final List<Variable> globalVariables = new ArrayList<Variable>();
-
- /**
- * Create a new instance of this.
- *
- * @param stylesheet
- * the stylesheet that this is the model for
- */
- public StylesheetModel(Stylesheet stylesheet)
- {
- this.stylesheet = stylesheet;
- }
-
- /**
- * Get all stylesheets that are included in this stylesheet anywhere in the hierarchy via either import or include.
- *
- * @return the set of stylesheets in the entire hierarchy
- */
- public List<Include> getIncludes()
- {
- return includeModel;
- }
-
- /**
- * Get all files that are included in this stylesheet anywhere in the hierarchy via either import or include.
- *
- * @return the set of files in the entire hierarchy
- */
- public Set<IFile> getFileDependencies()
- {
- return files;
- }
-
- /**
- * Get the stylesheet that this is the model for.
- *
- * @return the stylesheet that this is the model for
- */
- public Stylesheet getStylesheet()
- {
- return this.stylesheet;
- }
-
- /**
- * Get all global variables that are included in this stylesheet anywhere in the hierarchy via either import or include.
- *
- * @return the set of files in the entire hierarchy
- */
- public List<Variable> getGlobalVariables()
- {
- return globalVariables;
- }
-
- /**
- * Get all templates that are included in this stylesheet anywhere in the hierarchy via either import or include.
- *
- * @return the set of templates in the entire hierarchy
- */
- public List<Template> getTemplates()
- {
- return templates;
- }
-
- /**
- * A utility method that traverses all stylesheet in the hierarchy of stylesheets (not including the current stylesheet), and adds all their templates to the returned list.
- * Therefore the returned list has no regard for whether a template is 'visible' (i.e. whether it might be overridden since it
- * was included via an import). The order of the templates in the list is arbitrary.
- *
- * @return an unordered list of all templates from all stylesheets.
- */
- public List<Template> findAllNestedTemplates()
- {
- List<Template> allTemplates = new ArrayList<Template>();
- for (Stylesheet stylesheet : stylesheets)
- {
- allTemplates.addAll(stylesheet.getTemplates());
- }
- return allTemplates;
- }
-
- /**
- * Get all named templates that are included in this stylesheet anywhere in the hierarchy via either import or include which have the given name.
- *
- * @param name
- * the template name
- * @return the set of named templates with the given name
- */
- public List<Template> getTemplatesByName(String name)
- {
- List<Template> matching = new ArrayList<Template>(templates.size());
- for (Template template : templates)
- {
- if (name.equals(template.getName()))
- matching.add(template);
- }
- return matching;
- }
-
- /**
- * Get all templates that match the given template (determined from <code>Template.equals()</code>).
- *
- * @param toMatch
- * the template to match
- * @return the set of templates that match
- */
- public List<Template> findMatching(Template toMatch)
- {
- List<Template> matching = new ArrayList<Template>(templates.size());
- for (Template template : templates)
- {
- if (template.equals(toMatch))
- matching.add(template);
- }
- return matching;
- }
-
- /**
- * Get whether this has a circular reference anywhere in its import/included hierarchy.
- *
- * @return <code>true</code> if this has a circular reference
- */
- public boolean hasCircularReference()
- {
- return circularReference;
- }
-
- /**
- * Perform the process of traversing the hierarchy to determine all of the properties of this. Note that this method may force other <code>StylesheetModel</code>'s to be built during the process
- * of fixing.
- */
- public void fix()
- {
- long start = System.currentTimeMillis();
-
- if (Debug.debugXSLModel)
- {
- System.out.println("Fixing " + stylesheet.getFile() + "...");
- }
- templates.addAll(stylesheet.getTemplates());
- templateSet.addAll(stylesheet.getTemplates());
- globalVariables.addAll(stylesheet.globalVariables);
- for (Include inc : stylesheet.getIncludes())
- {
- handleInclude(inc);
- }
- for (Import inc : stylesheet.getImports())
- {
- handleInclude(inc);
- }
- if (Debug.debugXSLModel)
- {
- long end = System.currentTimeMillis();
- System.out.println("FIX " + stylesheet.getFile() + " in " + (end - start) + "ms");
- }
- }
-
- private void handleInclude(Include include)
- {
- IFile file = include.getHrefAsFile();
-
- if (file == null || !file.exists())
- {
- return;
- }
- else if (stylesheet.getFile().equals(file) || files.contains(file))
- {
- circularReference = true;
- return;
- }
- files.add(file);
-
- StylesheetModel includedModel = XSLCore.getInstance().getStylesheet(file);
- if (includedModel == null)
- return;
- stylesheets.add(includedModel.getStylesheet());
- globalVariables.addAll(includedModel.globalVariables);
-
- if (include.getIncludeType() == Include.INCLUDE)
- {
- includeModel.add(include);
- templates.addAll(includedModel.getTemplates());
- templateSet.addAll(includedModel.getTemplates());
- }
- else
- {
- importModel.add((Import)include);
- for (Template includedTemplate : includedModel.getTemplates())
- {
- if (!templateSet.contains(includedTemplate))
- {
- templates.add(includedTemplate);
- templateSet.add(includedTemplate);
- }
- }
- }
- }
-
- public Type getModelType()
- {
- return Type.STYLESHEET_MODEL;
- }
-
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Template.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Template.java
deleted file mode 100644
index bb76b48..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Template.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.wst.xsl.core.model.XSLModelObject.Type;
-
-/**
- * The <code>xsl:template</code> model element.
- *
- * @author Doug Satchwell
- */
-public class Template extends XSLElement
-{
- final List<Variable> variables = new ArrayList<Variable>();
- final List<Parameter> parameters = new ArrayList<Parameter>();
-
- /**
- * Create a new instance of this.
- *
- * @param stylesheet the stylesheet that this belongs to
- */
- public Template(Stylesheet stylesheet)
- {
- super(stylesheet);
- }
-
- /**
- * Add a parameter to this.
- *
- * @param parameter the parameter to add
- */
- public void addParameter(Parameter parameter)
- {
- parameters.add(parameter);
- }
-
- /**
- * Add a variable to this.
- *
- * @param var the variable to add
- */
- public void addVariable(Variable var)
- {
- variables.add(var);
- }
-
- /**
- * Get the value of the <code>name</code> attribute if one exists.
- *
- * @return the template name, or null
- */
- public String getName()
- {
- return getAttributeValue("name"); //$NON-NLS-1$
- }
-
- /**
- * Get the value of the <code>match</code> attribute if one exists.
- *
- * @return the match value, or null
- */
- public String getMatch()
- {
- return getAttributeValue("match"); //$NON-NLS-1$
- }
-
- /**
- * Get the value of the <code>mode</code> attribute if one exists.
- *
- * @return the mode value, or null
- */
- public String getMode()
- {
- return getAttributeValue("mode"); //$NON-NLS-1$
- }
-
- /**
- * Get the value of the <code>priority</code> attribute if one exists.
- *
- * @return the priority value, or null
- */
- public String getPriority()
- {
- return getAttributeValue("priority"); //$NON-NLS-1$
- }
-
- /**
- * Get the list of parameters of this.
- *
- * @return the list of parameters
- */
- public List<Parameter> getParameters()
- {
- return parameters;
- }
-
- @Override
- public int hashCode()
- {
- String name = getName();
- if (name != null)
- {
- return 3 + name.hashCode();
- }
- String match = getMatch();
- String mode = getMode();
- String priority = getPriority();
- if (match != null)
- {
- int hash = 3*match.hashCode();
- if (priority != null)
- hash += 5*priority.hashCode();
- if (mode != null)
- hash += 7*mode.hashCode();
- return 5 + hash;
- }
- return super.hashCode();
- }
-
- @Override
- public boolean equals(Object obj)
- {
- if (obj == null)
- return false;
- if (obj == this)
- return true;
- if (obj instanceof Template)
- {
- Template includedTemplate = (Template)obj;
- if (!matchesByMatchOrName(includedTemplate))
- return false;
- // only possibility is that priority is different
- String priority1 = getPriority();
- String priority2 = includedTemplate.getPriority();
- if (priority1 == null && priority2 == null || priority1 != null && priority1.equals(priority2))
- return true;
- }
- return false;
- }
-
- public boolean matchesByMatchOrName(Template includedTemplate)
- {
- String name1 = getName();
- String match1 = getMatch();
- String mode1 = getMode();
- String name2 = includedTemplate.getName();
- String match2 = includedTemplate.getMatch();
- String mode2 = includedTemplate.getMode();
- if (name1 != null && name1.equals(name2))
- return true;
- if (match1 != null && match1.equals(match2) && (mode1 == null && mode2 == null || mode1 != null && mode1.equals(mode2)))
- return true;
- return false;
- }
-
-
- @Override
- public String toString()
- {
- String name = getName();
- String match = getMatch();
- return "file="+getStylesheet().getFile()+", name="+name+", match="+match; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- }
-
- public Type getModelType()
- {
- return Type.TEMPLATE;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Variable.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Variable.java
deleted file mode 100644
index 959e6c5..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/Variable.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-import org.eclipse.wst.xsl.core.model.XSLModelObject.Type;
-
-/**
- * The <code>xsl:variable</code> model element.
- *
- * @author Doug Satchwell
- */
-public class Variable extends XSLElement
-{
- /**
- * Create a new instance of this.
- *
- * @param stylesheet the stylesheet that this belongs to
- */
- public Variable(Stylesheet stylesheet)
- {
- super(stylesheet);
- }
-
- /**
- * Get the value of the <code>name</code> attribute if one exists.
- *
- * @return the variable name, or null
- */
- public String getName()
- {
- return getAttributeValue("name"); //$NON-NLS-1$
- }
-
- /**
- * Get the value of the <code>select</code> attribute if one exists.
- *
- * @return the select value, or null
- */
- public String getSelect()
- {
- return getAttributeValue("select"); //$NON-NLS-1$
- }
-
- public Type getModelType()
- {
- return Type.VARIABLE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLAttribute.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLAttribute.java
deleted file mode 100644
index b00f57b..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLAttribute.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-/**
- * An attribute of an element in the XSL namespace.
- *
- * @author Doug Satchwell
- */
-public class XSLAttribute extends XSLNode
-{
- final String name;
- final String value;
-
- /**
- * Create a new instance of this.
- *
- * @param element the element this belongs to
- * @param name the name of the attribute
- * @param value the value of the attribute
- */
- public XSLAttribute(XSLElement element, String name, String value)
- {
- super(element.getStylesheet(), XSLNode.ATTRIBUTE_NODE);
- this.name = name;
- this.value = value;
- }
-
- /**
- * Get the name of this.
- *
- * @return the attribute's name
- */
- public String getName()
- {
- return name;
- }
-
- /**
- * Get the value of this.
- *
- * @return the attribute's value
- */
- public String getValue()
- {
- return value;
- }
-
- public Type getModelType()
- {
- return Type.ATTRIBUTE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLElement.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLElement.java
deleted file mode 100644
index 6fdc545..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLElement.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * An element in the XSL namespace.
- *
- * @author Doug Satchwell
- */
-public class XSLElement extends XSLNode
-{
- final Map<String, XSLAttribute> attributes = new HashMap<String, XSLAttribute>();
- final List<XSLElement> childElements = new ArrayList<XSLElement>();
-
- /**
- * Create a new instance of this.
- *
- * @param stylesheet the stylesheet that this belongs to
- */
- public XSLElement(Stylesheet stylesheet)
- {
- super(stylesheet, XSLNode.ELEMENT_NODE);
- }
-
- /**
- * Add an attribute of this
- *
- * @param attribute the attribute to add
- */
- public void setAttribute(XSLAttribute attribute)
- {
- attributes.put(attribute.name, attribute);
- }
-
- /**
- * Get the attribute with the given name.
- *
- * @param name the name of the attribute
- * @return the attribute
- */
- public XSLAttribute getAttribute(String name)
- {
- return attributes.get(name);
- }
-
- /**
- * Get the attributes keyed by their names.
- *
- * @return the map of attribute names and instances
- */
- public Map<String, XSLAttribute> getAttributes()
- {
- return attributes;
- }
-
- /**
- * Get the value of the attribute with the given name.
- *
- * @param name the name of the attribute
- * @return the attribute value
- */
- public String getAttributeValue(String name)
- {
- XSLAttribute attribute = attributes.get(name);
- return attribute == null ? null : attribute.getValue();
- }
-
- /**
- * Add a child element of this.
- *
- * @param element the chold element
- */
- public void addChild(XSLElement element)
- {
- childElements.add(element);
- }
-
- /**
- * Get the list of child elements
- *
- * @return the list of children
- */
- public List<XSLElement> getChildElements()
- {
- return childElements;
- }
-
- @Override
- public Type getModelType()
- {
- return Type.OTHER_ELEMENT;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLModelObject.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLModelObject.java
deleted file mode 100644
index c1ed3fa..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLModelObject.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.eclipse.wst.xsl.core.model;
-
-import org.eclipse.core.runtime.PlatformObject;
-
-public abstract class XSLModelObject extends PlatformObject
-{
- public enum Type {STYLESHEET_MODEL,IMPORT,INCLUDE,TEMPLATE,VARIABLE, CALL_TEMPLATE, STYLESHEET, ATTRIBUTE, OTHER_ELEMENT};
-
- public abstract Type getModelType();
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLNode.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLNode.java
deleted file mode 100644
index 24f334e..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/model/XSLNode.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.model;
-
-import org.w3c.dom.Node;
-
-/**
- * A node in the XSL namespace.
- *
- * @author Doug Satchwell
- */
-public abstract class XSLNode extends XSLModelObject
-{
- /**
- * A constant for the element node (= <code>org.w3c.dom.Node.ELEMENT_NODE</code>)
- */
- public static final short ELEMENT_NODE = Node.ELEMENT_NODE;
-
- /**
- * A constant for the attribute node (= <code>org.w3c.dom.Node.ATTRIBUTE_NODE</code>)
- */
- public static final short ATTRIBUTE_NODE = Node.ATTRIBUTE_NODE;
-
-
- private final Stylesheet stylesheet;
- int lineNumber;
- int columnNumber;
- private int offset;
- private int length;
- private short type;
-
- /**
- * Create a new instance of this.
- *
- * @param stylesheet the stylesheet this belongs to
- * @param type one of <code>ELEMENT_NODE</code> or <code>ATTRIBUTE_NODE</code>
- */
- public XSLNode(Stylesheet stylesheet, short type)
- {
- this.stylesheet = stylesheet;
- this.type = type;
- }
-
- /**
- * Set the line number where this node occurs in the XSL file.
- *
- * @param lineNumber the line number
- */
- public void setLineNumber(int lineNumber)
- {
- this.lineNumber = lineNumber;
- }
-
- /**
- * Set the columns number where this node occurs in the XSL file.
- *
- * @param columnNumber the column number
- */
- public void setColumnNumber(int columnNumber)
- {
- this.columnNumber = columnNumber;
- }
-
- /**
- * Get the stylesheet that this belongs to.
- *
- * @return the stylesheet
- */
- public Stylesheet getStylesheet()
- {
- return stylesheet;
- }
-
- /**
- * Set the line number where this node occurs in the XSL file.
- * @return the line number where this node occurs in the XSL file.
- */
- public int getLineNumber()
- {
- return lineNumber;
- }
-
- /**
- * Set the column number where this node occurs in the XSL file.
- * @return the column number where this node occurs in the XSL file.
- */
- public int getColumnNumber()
- {
- return columnNumber;
- }
-
- /**
- * Set the document offset where this node occurs.
- * @param offset the document offset
- */
- public void setOffset(int offset)
- {
- this.offset = offset;
- }
-
- /**
- * Get the document offset where this node occurs.
- * @return the document offset
- */
- public int getOffset()
- {
- return offset;
- }
-
- /**
- * Set the length of this node.
- * @param length the node length
- */
- public void setLength(int length)
- {
- this.length = length;
- }
-
- /**
- * Get the length of this node.
- * @return the node length
- */
- public int getLength()
- {
- return length;
- }
-
- /**
- * Get the type of node.
- *
- * @return one of <code>ELEMENT_NODE</code> or <code>ATTRIBUTE_NODE</code>
- */
- public short getNodeType()
- {
- return type;
- }
-
- @Override
- public String toString() {
- return "file="+stylesheet+", line="+lineNumber+", col="+columnNumber; //$NON-NLS-1$ //$NON-NLS-2$//$NON-NLS-3$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/resolver/ResolverExtension.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/resolver/ResolverExtension.java
deleted file mode 100644
index cfb19de..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/resolver/ResolverExtension.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Jesper Steen Moeller and others
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Jesper Steen Moeller - XSL core plugin
- * Doug Satchwell - bug 225304
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.core.resolver;
-
-import java.io.IOException;
-import java.net.URL;
-
-import javax.xml.parsers.ParserConfigurationException;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.common.uriresolver.internal.provisional.URIResolverExtension;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.eclipse.wst.xsl.core.Messages;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.XSLCorePlugin;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-
-/**
- * TODO: Javadoc
- *
- * @author Jesper Steen Moeller
- *
- */
-public class ResolverExtension implements URIResolverExtension
-{
- private static final Double DEFAULT_XSLT_VERSION = 1.0;
- private static final String XSLT_STYLESHEET = "stylesheet"; //$NON-NLS-1$
- private static final String XSLT_TEMPLATE = "template"; //$NON-NLS-1$
- private static final String XSLT_VERSION = "version"; //$NON-NLS-1$
-
- private boolean initialised;
- private String xslt_1_0_fileURL;
- private String xslt_2_0_fileURL;
-
- public String resolve(IFile file, String baseLocation, String publicId, String systemId)
- {
-
- // Is someone looking for "our" schema?
- if (!XSLCore.XSL_NAMESPACE_URI.equals(publicId))
- {
- // Not this time, return right away
- return null;
- }
-
- String version = null;
-
- if (file != null)
- version = peekVersionAttributeFromSSE(file);
- if (version == null)
- version = peekVersionFromFile(file, baseLocation);
-
- if (version == null)
- return null;
-
- Double versionNumber = null;
- try
- {
- versionNumber = Double.valueOf(version);
- }
- catch (Throwable t)
- {
- // Not interested
- }
-
- if (versionNumber == null)
- {
- versionNumber = DEFAULT_XSLT_VERSION;
- }
-
- // We carelessly ditch the fraction part
- int intVersion = versionNumber.intValue();
- checkInitialised();
- if (intVersion == 1)
- {
- return xslt_1_0_fileURL;
- }
- else if (intVersion == 2)
- {
- return xslt_2_0_fileURL;
- }
- else
- return null;
- }
-
- private void checkInitialised()
- {
- if (!initialised)
- {
- initialised = true;
- try
- {
- URL pluginURL = FileLocator.find(XSLCorePlugin.getDefault().getBundle(), new Path("/xslt-schemas/xslt-1.0.xsd"), null); //$NON-NLS-1$
- xslt_1_0_fileURL = FileLocator.toFileURL(pluginURL).toExternalForm();
- pluginURL = FileLocator.find(XSLCorePlugin.getDefault().getBundle(), new Path("/xslt-schemas/xslt-2.0.xsd"), null); //$NON-NLS-1$
- xslt_2_0_fileURL = FileLocator.toFileURL(pluginURL).toExternalForm();
- }
- catch (IOException e)
- {
- XSLCorePlugin.log(e);
- }
- }
- }
-
- private String peekVersionFromFile(IFile file, String baseLocation)
- {
- XSLVersionHandler handler = new XSLVersionHandler();
- try
- {
- handler.parseContents(file != null ? createInputSource(file) : createInputSource(baseLocation));
- }
- catch (SAXException se)
- {
- XSLCorePlugin.log(se);
- // drop through, since this is almost to be expected
- }
- catch (IOException ioe)
- {
- XSLCorePlugin.log(new CoreException(XSLCorePlugin.newErrorStatus("Can't parse XSL document", ioe))); //$NON-NLS-1$
- // drop through, since this is not really a show-stopper
- }
- catch (ParserConfigurationException pce)
- {
- // some bad thing happened - force this describer to be disabled
- String message = Messages.XSLCorePlugin_parserConfiguration;
- XSLCorePlugin.log(new Status(IStatus.ERROR, XSLCorePlugin.PLUGIN_ID, 0, message, pce));
- throw new RuntimeException(message);
- // drop through, since this is not really a show-stopper
- }
- catch (CoreException ce)
- {
- XSLCorePlugin.log(ce);
- // drop through, since this is not really a show-stopper
- }
-
- String versionX = handler.getVersionAttribute();
- return versionX;
- }
-
- private String peekVersionAttributeFromSSE(IFile file)
- {
- IModelManager manager = StructuredModelManager.getModelManager();
-
- if (manager != null)
- {
- String id = manager.calculateId(file);
- IStructuredModel model = manager.getExistingModelForRead(id);
- try
- {
- if (model instanceof IDOMModel)
- {
- Document doc = ((IDOMModel) model).getDocument();
- if (doc != null && doc.getDocumentElement() != null)
- {
- Element documentElement = doc.getDocumentElement();
- if (XSLT_STYLESHEET.equals(documentElement.getLocalName()) || XSLT_TEMPLATE.equals(documentElement.getLocalName()))
- {
- return documentElement.getAttribute(XSLT_VERSION);
- }
- else
- return ""; //$NON-NLS-1$
- }
- }
- }
- finally
- {
- // bug 225304
- if (model != null)
- model.releaseFromRead();
- }
- }
- return null;
- }
-
- private InputSource createInputSource(String systemId) throws CoreException
- {
- return new InputSource(systemId);
- }
-
- private InputSource createInputSource(IFile file) throws CoreException
- {
- InputSource src = new InputSource(file.getContents());
- src.setSystemId(file.getLocationURI().toString());
- return src;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/resolver/XSLVersionHandler.java b/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/resolver/XSLVersionHandler.java
deleted file mode 100644
index 8d1f99f..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/resolver/XSLVersionHandler.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/**********************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others. All rights reserved. This
- * program and the accompanying materials are made available under the terms of
- * the Eclipse Public License v1.0 which accompanies this distribution, and is
- * available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- * Jesper Steen M�ller - adapted from org.eclipse.core.internal.content
- **********************************************************************/
-
-package org.eclipse.wst.xsl.core.resolver;
-
-import java.io.IOException;
-import java.io.StringReader;
-import javax.xml.parsers.*;
-
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.XSLCorePlugin;
-import org.xml.sax.*;
-import org.xml.sax.ext.LexicalHandler;
-import org.xml.sax.helpers.DefaultHandler;
-
-/**
- * A simple XML parser to find the XSL version of a given XML file, expectedly a XSLT stylesheet.
- */
-public final class XSLVersionHandler extends DefaultHandler implements LexicalHandler, ErrorHandler {
- /**
- * An exception indicating that the parsing should stop. This is usually
- * triggered when the top-level element has been found.
- *
- * @since 3.0
- */
- private class StopParsingException extends SAXException {
- /**
- * All serializable objects should have a stable serialVersionUID
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * Constructs an instance of <code>StopParsingException</code> with a
- * <code>null</code> detail message.
- */
- public StopParsingException() {
- super((String) null);
- }
- }
-
- private static final String XSLT_STYLESHEET = "stylesheet"; //$NON-NLS-1$
-
- private static final String XSLT_TEMPLATE = "template"; //$NON-NLS-1$
-
- private static final String XSLT_VERSION = "version"; //$NON-NLS-1$
-
- /**
- * This is the value of the version attribute in the XSLT file.
- * This member variable is <code>null</code> unless the file has been
- * parsed successful to the point of finding the top-level element,
- * and locating the 'version' attribute there.
- */
- private String versionAttribute = null;
-
- /**
- * TODO: Add Javadoc
- */
- public XSLVersionHandler() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
- */
- public final void comment(final char[] ch, final int start, final int length) {
- // Not interested.
- }
-
- /**
- * Creates a new SAX parser for use within this instance.
- *
- * @return The newly created parser.
- *
- * @throws ParserConfigurationException
- * If a parser of the given configuration cannot be created.
- * @throws SAXException
- * If something in general goes wrong when creating the parser.
- * @throws SAXNotRecognizedException
- * If the <code>XMLReader</code> does not recognize the
- * lexical handler configuration option.
- * @throws SAXNotSupportedException
- * If the <code>XMLReader</code> does not support the lexical
- * handler configuration option.
- */
- private final SAXParser createParser(SAXParserFactory parserFactory) throws ParserConfigurationException, SAXException, SAXNotRecognizedException, SAXNotSupportedException {
- // Initialize the parser.
- final SAXParser parser = parserFactory.newSAXParser();
- final XMLReader reader = parser.getXMLReader();
- reader.setProperty("http://xml.org/sax/properties/lexical-handler", this); //$NON-NLS-1$
- reader.setErrorHandler(this); // This helps to ignore errors
- // disable DTD validation
- try {
- // be sure validation is "off" or the feature to ignore DTD's will not apply
- reader.setFeature("http://xml.org/sax/features/validation", false); //$NON-NLS-1$
- reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false); //$NON-NLS-1$
- } catch (SAXNotRecognizedException e) {
- // not a big deal if the parser does not recognize the features
- } catch (SAXNotSupportedException e) {
- // not a big deal if the parser does not support the features
- }
- return parser;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.xml.sax.ext.LexicalHandler#endCDATA()
- */
- public final void endCDATA() {
- // Not interested.
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.xml.sax.ext.LexicalHandler#endDTD()
- */
- public final void endDTD() {
- // Not interested.
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.xml.sax.ext.LexicalHandler#endEntity(java.lang.String)
- */
- public final void endEntity(final String name) {
- // Not interested.
- }
-
- /**
- * TODO: Add Javadoc
- * @return
- */
- public String getVersionAttribute() {
- return versionAttribute;
- }
-
- /**
- * TODO: Add Javadoc
- * @param contents
- * @return
- * @throws IOException
- * @throws ParserConfigurationException
- * @throws SAXException
- */
- public boolean parseContents(InputSource contents) throws IOException, ParserConfigurationException, SAXException {
- // Parse the file into we have what we need (or an error occurs).
- try {
- SAXParserFactory factory = XSLCorePlugin.getDefault().getFactory();
- if (factory == null)
- return false;
- final SAXParser parser = createParser(factory);
- // to support external entities specified as relative URIs (see bug 63298)
- parser.parse(contents, this);
- } catch (StopParsingException e) {
- // Abort the parsing normally. Fall through...
- }
- return true;
- }
-
- /*
- * Resolve external entity definitions to an empty string. This is to speed
- * up processing of files with external DTDs. Not resolving the contents
- * of the DTD is ok, as only the System ID of the DTD declaration is used.
- * @see org.xml.sax.helpers.DefaultHandler#resolveEntity(java.lang.String, java.lang.String)
- */
- public InputSource resolveEntity(String publicId, String systemId) throws SAXException {
- return new InputSource(new StringReader("")); //$NON-NLS-1$
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.xml.sax.ext.LexicalHandler#startCDATA()
- */
- public final void startCDATA() {
- // Not interested.
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.xml.sax.ext.LexicalHandler#startDTD(java.lang.String,
- * java.lang.String, java.lang.String)
- */
- public final void startDTD(final String name, final String publicId, final String systemId) throws SAXException {
- // Not interested.
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.xml.sax.ContentHandler#startElement(java.lang.String,
- * java.lang.String, java.lang.String, org.xml.sax.Attributes)
- */
- public final void startElement(final String uri, final String elementName, final String qualifiedName, final Attributes attributes) throws SAXException {
- if (uri.equals(XSLCore.XSL_NAMESPACE_URI) && (XSLT_TEMPLATE.equals(elementName) || XSLT_STYLESHEET.equals(elementName))) {
- versionAttribute = attributes.getValue(XSLT_VERSION);
- } else {
- versionAttribute = ""; //$NON-NLS-1$
- }
- throw new StopParsingException();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.xml.sax.ext.LexicalHandler#startEntity(java.lang.String)
- */
- public final void startEntity(final String name) {
- // Not interested.
- }
-
- @Override
- public void warning(SAXParseException e) throws SAXException {
- // Not interested.
- }
-
- @Override
- public void error(SAXParseException e) throws SAXException {
- // Not interested.
- }
-
- @Override
- public void fatalError(SAXParseException e) throws SAXException {
- // Not interested.
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/encoding/XSLDocumentLoader.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/encoding/XSLDocumentLoader.java
deleted file mode 100755
index eb8da74..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/encoding/XSLDocumentLoader.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.encoding;
-
-import org.eclipse.jface.text.IDocumentPartitioner;
-import org.eclipse.wst.sse.core.internal.document.AbstractDocumentLoader;
-import org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector;
-import org.eclipse.wst.sse.core.internal.document.IDocumentLoader;
-import org.eclipse.wst.sse.core.internal.document.StructuredDocumentFactory;
-import org.eclipse.wst.sse.core.internal.ltk.parser.RegionParser;
-import org.eclipse.wst.sse.core.internal.provisional.document.IEncodedDocument;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
-import org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument;
-import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector;
-import org.eclipse.wst.xml.core.internal.parser.XMLStructuredDocumentReParser;
-import org.eclipse.wst.xsl.core.internal.parser.XSLSourceParser;
-import org.eclipse.wst.xsl.core.internal.text.rules.StructuredTextPartitionerForXSL;
-
-
-/**
- * This class reads an XSL file and creates an XML Structured Model.
- *
- */
-public class XSLDocumentLoader extends AbstractDocumentLoader {
-
- public XSLDocumentLoader() {
- super();
- }
-
- @Override
- public IDocumentPartitioner getDefaultDocumentPartitioner() {
- return new StructuredTextPartitionerForXSL();
- }
-
- public IDocumentCharsetDetector getDocumentEncodingDetector() {
- if (fDocumentEncodingDetector == null) {
- fDocumentEncodingDetector = new XMLDocumentCharsetDetector();
- }
- return fDocumentEncodingDetector;
- }
-
- public RegionParser getParser() {
- return new XSLSourceParser();
- }
-
- protected String getSpecDefaultEncoding() {
- // by default, UTF-8 as per XML spec
- final String enc = "UTF-8"; //$NON-NLS-1$
- return enc;
- }
-
- @Override
- protected IEncodedDocument newEncodedDocument() {
- IStructuredDocument structuredDocument = StructuredDocumentFactory.getNewStructuredDocumentInstance(getParser());
- if (structuredDocument instanceof BasicStructuredDocument) {
- ((BasicStructuredDocument) structuredDocument).setReParser(new XMLStructuredDocumentReParser());
- }
- return structuredDocument;
- }
-
- public IDocumentLoader newInstance() {
- return new XSLDocumentLoader();
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/modelhandler/ModelHandlerForXSL.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/modelhandler/ModelHandlerForXSL.java
deleted file mode 100755
index 5b0af71..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/modelhandler/ModelHandlerForXSL.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.core.internal.modelhandler;
-
-import org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector;
-import org.eclipse.wst.sse.core.internal.document.IDocumentLoader;
-import org.eclipse.wst.sse.core.internal.ltk.modelhandler.IModelHandler;
-import org.eclipse.wst.sse.core.internal.provisional.IModelLoader;
-import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector;
-import org.eclipse.wst.xml.core.internal.modelhandler.ModelHandlerForXML;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.core.internal.encoding.XSLDocumentLoader;
-
-
-/**
- * Provides generic XML model handling. It is also marked as the default
- * content type handler. There should be only one implementation of the
- * default.
- */
-public class ModelHandlerForXSL extends ModelHandlerForXML implements IModelHandler {
- /**
- * Needs to match what's in plugin registry. In fact, can be overwritten
- * at run time with what's in registry! (so should never be 'final')
- */
- static String AssociatedContentTypeID = XSLCore.XSL_CONTENT_TYPE;
- /**
- * Needs to match what's in plugin registry. In fact, can be overwritten
- * at run time with what's in registry! (so should never be 'final')
- */
- private static String ModelHandlerID = "org.eclipse.wst.xsl.core.modelhandler"; //$NON-NLS-1$
-
- public ModelHandlerForXSL() {
- super();
- setId(ModelHandlerID);
- setAssociatedContentTypeId(AssociatedContentTypeID);
- }
-
- public IDocumentLoader getDocumentLoader() {
- return new XSLDocumentLoader();
- }
-
- public IDocumentCharsetDetector getEncodingDetector() {
- return new XMLDocumentCharsetDetector();
- }
-
- public IModelLoader getModelLoader() {
- return new XSLModelLoader();
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/modelhandler/XSLModelLoader.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/modelhandler/XSLModelLoader.java
deleted file mode 100755
index 88f7a79..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/modelhandler/XSLModelLoader.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.core.internal.modelhandler;
-
-import org.eclipse.wst.sse.core.internal.PropagatingAdapter;
-import org.eclipse.wst.sse.core.internal.document.IDocumentLoader;
-import org.eclipse.wst.sse.core.internal.provisional.IModelLoader;
-import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.sse.core.internal.util.Debug;
-import org.eclipse.wst.xml.core.internal.DebugAdapterFactory;
-import org.eclipse.wst.xml.core.internal.document.DOMModelImpl;
-import org.eclipse.wst.xml.core.internal.modelhandler.XMLModelLoader;
-import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
-import org.eclipse.wst.xsl.core.internal.encoding.XSLDocumentLoader;
-
-
-/**
- * This class reads an XML file and creates an XML Structured Model.
- *
- */
-public class XSLModelLoader extends XMLModelLoader {
-
- // private static final String STR_ENCODING = "encoding"; //$NON-NLS-1$
-
- /**
- * XMLLoader constructor comment.
- */
- public XSLModelLoader() {
- super();
- }
-
-// @Override
-// public List getAdapterFactories() {
-// List result = new ArrayList();
-// INodeAdapterFactory factory = null;
-// factory = new ModelQueryAdapterFactoryForXML();
-// result.add(factory);
-// // Does XML need propagating adapter? Or just JSP?
-// factory = new PropagatingAdapterFactoryImpl();
-// result.add(factory);
-// return result;
-// }
-
- @Override
- public IDocumentLoader getDocumentLoader() {
- if (documentLoaderInstance == null) {
- documentLoaderInstance = new XSLDocumentLoader();
- }
- return documentLoaderInstance;
- }
-
- @Override
- public IModelLoader newInstance() {
- return new XSLModelLoader();
- }
-
- @Override
- public IStructuredModel newModel() {
- return new DOMModelImpl();
- }
-
- @Override
- protected void preLoadAdapt(IStructuredModel structuredModel) {
- super.preLoadAdapt(structuredModel);
- IDOMModel domModel = (IDOMModel) structuredModel;
- // if there is a model in the adapter, this will adapt it to
- // first node. After that the PropagatingAdater spreads over the
- // children being
- // created. Each time that happends, a side effect is to
- // also "spread" sprecific registered adapters,
- // they two can propigate is needed.
- ((INodeNotifier) domModel.getDocument()).getAdapterFor(PropagatingAdapter.class);
-
- if (Debug.debugNotificationAndEvents) {
- PropagatingAdapter propagatingAdapter = (PropagatingAdapter) ((INodeNotifier) domModel.getDocument()).getAdapterFor(PropagatingAdapter.class);
- propagatingAdapter.addAdaptOnCreateFactory(new DebugAdapterFactory());
- }
-
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/parser/XSLSourceParser.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/parser/XSLSourceParser.java
deleted file mode 100644
index ec063af..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/parser/XSLSourceParser.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.core.internal.parser;
-
-import org.eclipse.wst.sse.core.internal.ltk.parser.BlockTokenizer;
-import org.eclipse.wst.sse.core.internal.ltk.parser.RegionParser;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionContainer;
-import org.eclipse.wst.sse.core.internal.util.Debug;
-import org.eclipse.wst.xml.core.internal.parser.XMLSourceParser;
-import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext;
-
-public class XSLSourceParser extends XMLSourceParser {
-
-
- public XSLSourceParser() {
- super();
- }
-
- @Override
- public RegionParser newInstance() {
- XSLSourceParser newInstance = new XSLSourceParser();
- newInstance.setTokenizer(getTokenizer().newInstance());
- return newInstance;
- }
- @Override
- protected void setTokenizer(BlockTokenizer newTokenizer) {
- // TODO Auto-generated method stub
- super.setTokenizer(newTokenizer);
- }
-
- protected IStructuredDocumentRegion parseNodes() {
- // regions are initially reported as complete offsets within the
- // scanned input
- // they are adjusted here to be indexes from the currentNode's start
- // offset
- IStructuredDocumentRegion headNode = null;
- IStructuredDocumentRegion lastNode = null;
- ITextRegion region = null;
- IStructuredDocumentRegion currentNode = null;
- String type = null;
-
- while ((region = getNextRegion()) != null) {
- type = region.getType();
- // these types (might) demand a IStructuredDocumentRegion for each
- // of them
-
- if (type == DOMRegionContext.BLOCK_TEXT) {
- if (currentNode != null && currentNode.getLastRegion().getType() == DOMRegionContext.BLOCK_TEXT) {
- // multiple block texts indicated embedded containers; no
- // new IStructuredDocumentRegion
- currentNode.addRegion(region);
- currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
- region.adjustStart(-currentNode.getStart());
- // DW 4/16/2003 regions no longer have parents
- // region.setParent(currentNode);
- }
- else {
- // not continuing a IStructuredDocumentRegion
- if (currentNode != null) {
- // ensure that any existing node is at least
- // terminated
- if (!currentNode.isEnded()) {
- currentNode.setLength(region.getStart() - currentNode.getStart());
- // fCurrentNode.setTextLength(region.getStart() -
- // fCurrentNode.getStart());
- }
- lastNode = currentNode;
- }
- fireNodeParsed(currentNode);
- currentNode = createStructuredDocumentRegion(type);
- if (lastNode != null) {
- lastNode.setNext(currentNode);
- }
- currentNode.setPrevious(lastNode);
- currentNode.setStart(region.getStart());
- currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
- currentNode.setEnded(true);
- region.adjustStart(-currentNode.getStart());
- currentNode.addRegion(region);
- // DW 4/16/2003 regions no longer have parents
- // region.setParent(currentNode);
- }
- }
- // the following contexts OPEN new StructuredDocumentRegions
- else if ((currentNode != null && currentNode.isEnded()) || (type == DOMRegionContext.XML_CONTENT) || (type == DOMRegionContext.XML_CHAR_REFERENCE) || (type == DOMRegionContext.XML_ENTITY_REFERENCE) || (type == DOMRegionContext.XML_PI_OPEN) || (type == DOMRegionContext.XML_TAG_OPEN) || (type == DOMRegionContext.XML_END_TAG_OPEN) || (type == DOMRegionContext.XML_COMMENT_OPEN) || (type == DOMRegionContext.XML_CDATA_OPEN) || (type == DOMRegionContext.XML_DECLARATION_OPEN)) {
- if (currentNode != null) {
- // ensure that any existing node is at least terminated
- if (!currentNode.isEnded()) {
- currentNode.setLength(region.getStart() - currentNode.getStart());
- // fCurrentNode.setTextLength(region.getStart() -
- // fCurrentNode.getStart());
- }
- lastNode = currentNode;
- }
- fireNodeParsed(currentNode);
- currentNode = createStructuredDocumentRegion(type);
- if (lastNode != null) {
- lastNode.setNext(currentNode);
- }
- currentNode.setPrevious(lastNode);
- currentNode.setStart(region.getStart());
- currentNode.addRegion(region);
- currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
- region.adjustStart(-currentNode.getStart());
- // DW 4/16/2003 regions no longer have parents
- // region.setParent(currentNode);
- }
- // the following contexts neither open nor close
- // StructuredDocumentRegions; just add to them
- else if ((type == DOMRegionContext.XML_TAG_NAME) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_NAME) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_EQUALS) || (type == DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE) || (type == DOMRegionContext.XML_COMMENT_TEXT) || (type == DOMRegionContext.XML_PI_CONTENT) || (type == DOMRegionContext.XML_DOCTYPE_INTERNAL_SUBSET)) {
- currentNode.addRegion(region);
- currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
- region.adjustStart(-currentNode.getStart());
- // DW 4/16/2003 regions no longer have parents
- // region.setParent(currentNode);
- }
- // the following contexts close off StructuredDocumentRegions
- // cleanly
- else if ((type == DOMRegionContext.XML_PI_CLOSE) || (type == DOMRegionContext.XML_TAG_CLOSE) || (type == DOMRegionContext.XML_EMPTY_TAG_CLOSE) || (type == DOMRegionContext.XML_COMMENT_CLOSE) || (type == DOMRegionContext.XML_DECLARATION_CLOSE) || (type == DOMRegionContext.XML_CDATA_CLOSE)) {
- currentNode.setEnded(true);
- currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
- currentNode.addRegion(region);
- region.adjustStart(-currentNode.getStart());
- // DW 4/16/2003 regions no longer have parents
- // region.setParent(currentNode);
- }
- // this is extremely rare, but valid
- else if (type == DOMRegionContext.WHITE_SPACE) {
- ITextRegion lastRegion = currentNode.getLastRegion();
- // pack the embedded container with this region
- if (lastRegion instanceof ITextRegionContainer) {
- ITextRegionContainer container = (ITextRegionContainer) lastRegion;
- container.getRegions().add(region);
- // containers must have parent set ...
- // setting for EACH subregion is redundent, but not sure
- // where else to do, so will do here for now.
- container.setParent(currentNode);
- // DW 4/16/2003 regions no longer have parents
- // region.setParent(container);
- region.adjustStart(container.getLength() - region.getStart());
- }
- currentNode.getLastRegion().adjustLength(region.getLength());
- currentNode.adjustLength(region.getLength());
- }
- else if (type == DOMRegionContext.UNDEFINED && currentNode != null) {
- // skip on a very-first region situation as the default
- // behavior is good enough
- // combine with previous if also undefined
- if (currentNode.getLastRegion() != null && currentNode.getLastRegion().getType() == DOMRegionContext.UNDEFINED) {
- currentNode.getLastRegion().adjustLength(region.getLength());
- currentNode.adjustLength(region.getLength());
- }
- // previous wasn't undefined
- else {
- currentNode.addRegion(region);
- currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
- region.adjustStart(-currentNode.getStart());
- }
- }
- else {
- // if an unknown type is the first region in the document,
- // ensure that a node exists
- if (currentNode == null) {
- currentNode = createStructuredDocumentRegion(type);
- currentNode.setStart(region.getStart());
- }
- currentNode.addRegion(region);
- currentNode.setLength(region.getStart() + region.getLength() - currentNode.getStart());
- region.adjustStart(-currentNode.getStart());
- // DW 4/16/2003 regions no longer have parents
- // region.setParent(currentNode);
- if (Debug.debugTokenizer)
- System.out.println(getClass().getName() + " found region of not specifically handled type " + region.getType() + " @ " + region.getStart() + "[" + region.getLength() + "]"); //$NON-NLS-4$//$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$
- //$NON-NLS-3$//$NON-NLS-2$//$NON-NLS-1$
- }
-
- // these regions also get their own node, so close them cleanly
- // NOTE: these regions have new StructuredDocumentRegions created
- // for them above; it may
- // be more readable if that is handled here as well, but the
- // current layout
- // ensures that they open StructuredDocumentRegions the same way
- if ((type == DOMRegionContext.XML_CONTENT) || (type == DOMRegionContext.XML_CHAR_REFERENCE) || (type == DOMRegionContext.XML_ENTITY_REFERENCE)) {
- currentNode.setEnded(true);
- }
- if (headNode == null && currentNode != null) {
- headNode = currentNode;
- }
- }
- if (currentNode != null) {
- fireNodeParsed(currentNode);
- currentNode.setPrevious(lastNode);
- }
- // fStringInput = null;
- primReset();
- return headNode;
- }
-
-}
-
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/parser/regions/XPathSeparatorRegion.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/parser/regions/XPathSeparatorRegion.java
deleted file mode 100755
index 2714045..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/parser/regions/XPathSeparatorRegion.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.parser.regions;
-
-import org.eclipse.wst.sse.core.internal.provisional.events.StructuredDocumentEvent;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
-import org.eclipse.wst.xml.core.internal.parser.regions.RegionToStringUtil;
-import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext;
-
-
-
-public class XPathSeparatorRegion implements ITextRegion {
- static private final byte fTextLength = 1;
- static private final String fType = DOMRegionContext.XML_TAG_ATTRIBUTE_EQUALS;
- private short fLength;
- private int fStart;
-
-
- public XPathSeparatorRegion() {
- super();
- }
-
- public XPathSeparatorRegion(int start, int textLength, int length) {
- this();
- fStart = start;
- fLength = (short) length;
- }
-
-
- public void adjustLength(int i) {
- fLength += i;
-
- }
-
- public void adjustStart(int i) {
- fStart += i;
-
- }
-
- public void adjustTextLength(int i) {
- // not supported
-
- }
-
- public void equatePositions(ITextRegion region) {
- fStart = region.getStart();
- fLength = (short) region.getLength();
- }
-
- public int getEnd() {
- return fStart + fLength;
- }
-
- public int getLength() {
- return fLength;
- }
-
- public int getStart() {
- return fStart;
- }
-
- public int getTextEnd() {
- return fStart + fTextLength;
- }
-
- public int getTextLength() {
- return fTextLength;
- }
-
- public String getType() {
- return fType;
- }
-
- public String toString() {
- return RegionToStringUtil.toString(this);
- }
-
- public StructuredDocumentEvent updateRegion(Object requester, IStructuredDocumentRegion parent, String changes, int requestStart, int lengthToReplace) {
- // can never be updated
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/regions/XPathRegionContext.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/regions/XPathRegionContext.java
deleted file mode 100755
index f46db8a..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/regions/XPathRegionContext.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.regions;
-
-public interface XPathRegionContext {
-
- public static final String BLOCK_TEXT = "BLOCK_TEXT"; //$NON-NLS-1$
-
- public static final String UNDEFINED = "UNDEFINED"; //$NON-NLS-1$
-
- public static final String WHITE_SPACE = "WHITE_SPACE"; //$NON-NLS-1$
-
- public static final String XPATH_CONTENT = "XPATH_CONTENT"; //$NON-NLS-1$
- public static final String XPATH_SEPARATOR_DIV = "XPATH_SEPARATOR_DIV"; //$NON-NLS-1$
- public static final String XPATH_FUNCTION_PARAMETERS_OPEN = "XPATH_FUNCTION_PARAMETERS_OPEN"; //$NON-NLS-1$
- public static final String XPATH_FUNCTION_PARAMETERS_CLOSE = "XPATH_FUNCTION_PARAMETERS_CLOSE"; //$NON-NLS-1$
- public static final String XPATH_FUNCTION_NAME = "XPATH_FUNCTION_NAME"; //$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/regions/XSLParserRegionFactory.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/regions/XSLParserRegionFactory.java
deleted file mode 100644
index 45c11df..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/regions/XSLParserRegionFactory.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-
-package org.eclipse.wst.xsl.core.internal.regions;
-
-import org.eclipse.wst.xml.core.internal.parser.regions.XMLParserRegionFactory;
-
-public class XSLParserRegionFactory extends XMLParserRegionFactory {
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/text/IXSLPartitions.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/text/IXSLPartitions.java
deleted file mode 100755
index 48b1c42..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/text/IXSLPartitions.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.text;
-
-
-
-/**
- * This interface is not intended to be implemented.
- * It defines the partition types for XSL.
- * Clients should reference the partition type Strings defined here directly.
- *
- * @since 0.5M7
- */
-public interface IXSLPartitions {
-
- String XSL_XPATH = "org.eclipse.wst.xsl.XSL_XPATH"; //$NON-NLS-1$
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/text/rules/StructuredTextPartitionerForXSL.java b/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/text/rules/StructuredTextPartitionerForXSL.java
deleted file mode 100755
index f9cd56d..0000000
--- a/bundles/org.eclipse.wst.xsl.core/src_sse/org/eclipse/wst/xsl/core/internal/text/rules/StructuredTextPartitionerForXSL.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.core.internal.text.rules;
-
-import org.eclipse.jface.text.IDocumentPartitioner;
-import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredTextPartitioner;
-import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
-import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext;
-import org.eclipse.wst.xml.core.internal.text.rules.StructuredTextPartitionerForXML;
-import org.eclipse.wst.xml.core.text.IXMLPartitions;
-import org.eclipse.wst.xsl.core.internal.text.IXSLPartitions;
-
-/**
- * Contains information specific to setting up Structured Document Partions
- * in XSL documents.
- * @author dcarver
- *
- */
-public class StructuredTextPartitionerForXSL extends StructuredTextPartitionerForXML implements IStructuredTextPartitioner {
-
- private final static String[] configuredContentTypes = new String[]{IXMLPartitions.XML_DEFAULT, IXMLPartitions.XML_CDATA, IXMLPartitions.XML_PI, IXMLPartitions.XML_DECLARATION, IXMLPartitions.XML_COMMENT, IXMLPartitions.DTD_SUBSET, IXSLPartitions.XSL_XPATH};
-
- /**
- * The StructuredTextPartitionerForXSL adds the necessary
- * Partition types to help Identify potential XPath areas.
- * This is also used for Line Styling and Content Assistance.
- */
- public StructuredTextPartitionerForXSL() {
- super();
- }
-
- @Override
- public String getPartitionType(ITextRegion region, int offset) {
- String result = null;
- if (region.getType() == DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE) {
- result = IXSLPartitions.XSL_XPATH;
- } else {
- result = super.getPartitionType(region, offset);
- }
- return result;
- }
-
- public static String[] getConfiguredContentTypes() {
- return configuredContentTypes;
- }
-
- @Override
- public IDocumentPartitioner newInstance() {
- StructuredTextPartitionerForXML instance = new StructuredTextPartitionerForXML();
- return instance;
- }
-
-
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xinclude.xsd b/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xinclude.xsd
deleted file mode 100644
index 4b1cb30..0000000
--- a/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xinclude.xsd
+++ /dev/null
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*******************************************************************************
- * W3C® SOFTWARE NOTICE AND LICENSE
- * http://www.w3.org/Consortium/Legal/copyright-software-19980720
- *
- * Copyright © 1994-2002 World Wide Web Consortium, (Massachusetts Institute of
- * Technology, Institut National de Recherche en Informatique et en Automatique,
- * Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/
- *
- * This W3C work (including software, documents, or other related items) is being
- * provided by the copyright holders under the following license. By obtaining,
- * using and/or copying this work, you (the licensee) agree that you have read,
- * understood, and will comply with the following terms and conditions:
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation, with or without modification, for any purpose and without fee
- * or royalty is hereby granted, provided that you include the following on ALL copies
- * of the software and documentation or portions thereof, including modifications, that
- * you make:
- *
- * 1. The full text of this NOTICE in a location viewable to users of the redistributed
- * or derivative work.
- * 2. Any pre-existing intellectual property disclaimers, notices, or terms and
- * conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/"
- * 3. Notice of any changes or modifications to the W3C files, including the date changes
- * were made. (We recommend you provide URIs to the location from which the code is
- * derived.)
- *
- * THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
- * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,
- * WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
- * THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
- * TRADEMARKS OR OTHER RIGHTS.
- *
- * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL
- * DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
- *
- * The name and trademarks of copyright holders may NOT be used in advertising or publicity
- * pertaining to the software without specific, written prior permission. Title to copyright
- * in this software and any associated documentation will at all times remain with copyright
- * holders.
- ********************************************************************************************
- -->
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:xi="http://www.w3.org/2001/XInclude"
- targetNamespace="http://www.w3.org/2001/XInclude"
- finalDefault="extension">
-
- <xs:element name="include" type="xi:includeType" />
-
- <xs:complexType name="includeType" mixed="true">
- <xs:choice minOccurs='0' maxOccurs='unbounded' >
- <xs:element ref='xi:fallback' />
- <xs:any namespace='##other' processContents='lax' />
- <xs:any namespace='##local' processContents='lax' />
- </xs:choice>
- <xs:attribute name="href" use="optional" type="xs:anyURI"/>
- <xs:attribute name="parse" use="optional" default="xml"
- type="xi:parseType" />
- <xs:attribute name="xpointer" use="optional" type="xs:string"/>
- <xs:attribute name="encoding" use="optional" type="xs:string"/>
- <xs:attribute name="accept" use="optional" type="xs:string"/>
- <xs:attribute name="accept-language" use="optional" type="xs:string"/>
- <xs:anyAttribute namespace="##other" processContents="lax"/>
- </xs:complexType>
-
- <xs:simpleType name="parseType">
- <xs:restriction base="xs:token">
- <xs:enumeration value="xml"/>
- <xs:enumeration value="text"/>
- </xs:restriction>
- </xs:simpleType>
-
- <xs:element name="fallback" type="xi:fallbackType" />
-
- <xs:complexType name="fallbackType" mixed="true">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="xi:include"/>
- <xs:any namespace="##other" processContents="lax"/>
- <xs:any namespace="##local" processContents="lax"/>
- </xs:choice>
- <xs:anyAttribute namespace="##other" processContents="lax" />
- </xs:complexType>
-
-</xs:schema>
diff --git a/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xslt-1.0.xsd b/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xslt-1.0.xsd
deleted file mode 100644
index c922450..0000000
--- a/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xslt-1.0.xsd
+++ /dev/null
@@ -1,1708 +0,0 @@
-<?xml version="1.0"?>
-<!--
- *******************************************************************************
- * Copyright (c) 2001, 2007 - W3C, Standards for Technology in Automotive Retail,
- * and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - 20071228 - STAR - Updated to XML Schemas 2001 1.0
- * Note this schemas is a modified version of the schema for XSLT 2.0, it has
- * been stripped of all XSLT 2.0 additions, to bring it in line with the XSLT 1.0
- * specification.
- * The original version may be found at http://www.w3.org/2007/schema-for-xslt20.xsd
- * The original W3C copyright notice is included:
- * David Carver - 20080330 - STAR - bug 224819 - changed procesContents from lax to skip
- *******************************************************************************
- *******************************************************************************
- * W3C® SOFTWARE NOTICE AND LICENSE
- * http://www.w3.org/Consortium/Legal/copyright-software-19980720
- *
- * Copyright © 1994-2002 World Wide Web Consortium, (Massachusetts Institute of
- * Technology, Institut National de Recherche en Informatique et en Automatique,
- * Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/
- *
- * This W3C work (including software, documents, or other related items) is being
- * provided by the copyright holders under the following license. By obtaining,
- * using and/or copying this work, you (the licensee) agree that you have read,
- * understood, and will comply with the following terms and conditions:
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation, with or without modification, for any purpose and without fee
- * or royalty is hereby granted, provided that you include the following on ALL copies
- * of the software and documentation or portions thereof, including modifications, that
- * you make:
- *
- * 1. The full text of this NOTICE in a location viewable to users of the redistributed
- * or derivative work.
- * 2. Any pre-existing intellectual property disclaimers, notices, or terms and
- * conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/"
- * 3. Notice of any changes or modifications to the W3C files, including the date changes
- * were made. (We recommend you provide URIs to the location from which the code is
- * derived.)
- *
- * THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
- * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,
- * WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
- * THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
- * TRADEMARKS OR OTHER RIGHTS.
- *
- * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL
- * DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
- *
- * The name and trademarks of copyright holders may NOT be used in advertising or publicity
- * pertaining to the software without specific, written prior permission. Title to copyright
- * in this software and any associated documentation will at all times remain with copyright
- * holders.
- ********************************************************************************************
- -->
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- targetNamespace="http://www.w3.org/1999/XSL/Transform"
- elementFormDefault="qualified" >
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
-
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<!--
-The declaration of xml:space and xml:lang may need to be commented out because
-of problems processing the schema using various tools
--->
-
-<xs:import namespace="http://www.w3.org/XML/1998/namespace"
- schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
- PART A: definitions of complex types and model groups used as the basis
- for element definitions
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<xs:complexType name="generic-element-type" mixed="true">
- <xs:anyAttribute namespace="##other" processContents="skip"/>
-</xs:complexType>
-
-<!-- <xs:complexType name="versioned-element-type" mixed="true">
- <xs:complexContent>
- <xs:extension base="xsl:generic-element-type">
- <xs:attribute name="version" type="xs:decimal" use="optional"/>
-
- </xs:extension>
- </xs:complexContent>
-</xs:complexType>
--->
-
-<xs:complexType name="element-only-versioned-element-type" mixed="false">
- <xs:complexContent>
- <xs:restriction base="xsl:generic-element-type">
- <xs:anyAttribute namespace="##other" processContents="skip"/>
- </xs:restriction>
- </xs:complexContent>
-
-</xs:complexType>
-
-<xs:complexType name="sequence-constructor">
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:generic-element-type">
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:extension>
- </xs:complexContent>
-</xs:complexType>
-
-<xs:group name="sequence-constructor-group">
- <xs:choice>
-
- <xs:element ref="xsl:variable"/>
- <xs:element ref="xsl:instruction"/>
- <xs:group ref="xsl:result-elements"/>
- </xs:choice>
-</xs:group>
-
-<xs:element name="declaration" type="xsl:generic-element-type" abstract="true"/>
-
-<xs:element name="instruction" type="xsl:generic-element-type" abstract="true"/>
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
-
- PART B: definitions of individual XSLT elements
- Elements are listed in alphabetical order.
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<xs:element name="apply-imports" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- This command applies template rule from an imported style sheet.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type"/>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="apply-templates" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Applies template rules based on a given XPath selection criteria. If no template
- is found the built in templates are used.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="xsl:sort"/>
- <xs:element ref="xsl:with-param"/>
- </xs:choice>
- <xs:attribute name="select" type="xsl:expression" default="child::node()">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Specifies the XPath criteria to be used to apply the templates.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="mode" type="xsl:mode">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Specifies the type of template to be used if there is more than
- one way in which to process the given criteria.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="attribute" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Defines an attribute that will be put in the result set.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:avt" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The name of the attribute to be created.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="namespace" type="xsl:avt">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The namespace for the attribute.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="attribute-set" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Defines a group of attributes that will be created and can be reused
- by other portions of the stylesheet during processing. These attributes
- will appear on the resulting document when used.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="xsl:attribute"/>
- </xs:sequence>
- <xs:attribute name="name" type="xsl:QName" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. Name of the attribute set.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="use-attribute-sets" type="xsl:QNames" default="">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- A list of attributes-sets separated by spaces to be used in this
- attribute set.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="call-template" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Specifies the name of a template to be called. A called template
- is only executed when it is called. It is not executed directly by
- an apply-templates command.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
-
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:with-param" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="name" type="xsl:QName" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The name of the template to be called.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="choose" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Choose is the beginning of a When/Otherwise combination. It is
- the way to implement case selection of If/Then/ElseIf type logical
- processing.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:when" maxOccurs="unbounded"/>
- <xs:element ref="xsl:otherwise" minOccurs="0"/>
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="comment" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Creates a comment node in the result document.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor"/>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="copy" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Copy creates a duplicate of the current node being processed. It
- does not copy the attributes or children nodes. See copy-of for
- copying attributes and children nodes.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="use-attribute-sets" type="xsl:QNames" default="">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. A space separated list of attributes sets to apply to the
- result document.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="copy-of" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Creates a copy-of the current node and all attributes, and children nodes.
- It copies the nodes specified by the XPath selection criteria.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:generic-element-type">
- <xs:attribute name="select" type="xsl:expression" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. XPath expressions that select the nodes to be copied.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="decimal-format" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Defines the output format to be used when converting numbers into strings when
- used with the XPath function format-number().
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="name" type="xsl:QName">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The unique name for this format.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="decimal-separator" type="xsl:char" default=".">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to use to represent a decimal point.
- The default value is a period.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="grouping-separator" type="xsl:char" default=",">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to be used to seperate thousands. The
- default is a comma.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="infinity" type="xs:string" default="Infinity">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The string to be used to represent infinity. The default
- is Infinity.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="minus-sign" type="xsl:char" default="-">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to be used to represent negative numbers.
- The default is the minus sign.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="NaN" type="xs:string" default="NaN">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The string to be used when the input is Not a Number.
- The default is NaN.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="percent" type="xsl:char" default="%">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to be used to represent a percent.
- The default is a percent sign.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="per-mille" type="xsl:char" default="&#x2030;">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to be used to represet per thousand.
- The default is &#x2030;
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="zero-digit" type="xsl:char" default="0">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to be used to represent the digit zero.
- The default is the number zero.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="digit" type="xsl:char" default="#">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to be used to indicated where a digit
- is required. The default values is # character.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="pattern-separator" type="xsl:char" default=";">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to be used to separate positive and
- negative sub-patterns in a pattern. The default is a semi-colon.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="element" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Creates an element in the result document.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType mixed="true">
- <xs:complexContent>
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:avt" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The name of the element to be created.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="namespace" type="xsl:avt">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The namespace the element belongs.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="use-attribute-sets" type="xsl:QNames" default="">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. A space separated list of attribute-set names to
- be included on the element.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="fallback" substitutionGroup="xsl:instruction" type="xsl:sequence-constructor">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Specifies alternate code to be run if the XSLT processor doesn't understand
- a particular xsl element.
- </xs:documentation>
- </xs:annotation>
-</xs:element>
-
-<xs:element name="for-each" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- A looping command that processes each node returned from the
- XPath selection criteria.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:generic-element-type">
- <xs:sequence>
- <xs:element ref="xsl:sort" minOccurs="0" maxOccurs="unbounded"/>
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="select" type="xsl:expression" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The XPath selection criteria to be used to retrieve the
- node set to be processed by the loop.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="if" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- A logical construct, that will only be applied when the XPath expression
- test returns true. It does not support a Else statement, see Choose
- for implementing If/Then/ElseIf logic.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="test" type="xsl:expression" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The XPath expression to test the variable or node against.
- The statements nested will only be executed if the test returns
- true.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="import">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Allows the inclusion of one stylesheet into another. If there are
- templates that are the same in the parent stylesheet that are in the
- stylesheet being imported, the parent stylesheet's templates will
- take precedence.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="href" type="xs:anyURI" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The URI for the stylesheet. This is either a relative
- or physical URI. If it is relative, it is relative to the location
- of the stylesheet.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-
-<xs:element name="include" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Include brings in another stylesheet into the current one. Unlike
- the Import statement, the stylesheet templates have the same precedence
- as the one being included in to.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="href" type="xs:anyURI" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The URI for the stylesheet. This is either a relative
- or physical URI. If it is relative, it is relative to the location
- of the stylesheet.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="key" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- A key is a way to index a set of nodes to be retrieved later by the XPath
- key() function. It allows faster access to a series of nodes based off of a
- unique key with in a list of nodes.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
-
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:QName" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The name of the key to be created.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="match" type="xsl:pattern" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Defines the XPath expression to which the nodes will
- be applied.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="use" type="xsl:expression" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The value of the key for each of the nodes.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-
-</xs:element>
-
-<xs:element name="message" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Writes a message to the output, usually stdout or stderro. Typically
- used to report errors during processing.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="terminate" type="xsl:avt" default="no">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Indicates whether processing should be ended after
- producing the message. The default value is no.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="namespace-alias" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Allows replacing of a particular namespace from the style sheet to a different
- namespace when writing the result document.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="stylesheet-prefix" type="xsl:prefix-or-default" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. Specifies the name of the prefix you want to change.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="result-prefix" type="xsl:prefix-or-default" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. Specifies the name of the prefix the result is to use.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="number" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Used to determine the integer position of the current node. Also used
- in formatting a number.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:generic-element-type">
- <xs:attribute name="value" type="xsl:expression">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. A number provided by the implementor instead of
- a system generated number. The position() xpath function can
- be used as well.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="level" type="xsl:level" default="single">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Specifies how the sequence number is assigned. Valid values
- are single (default), multiple, and any.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="count" type="xsl:pattern">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. An XPath expression that indicates what nodes are to be
- counted.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="from" type="xsl:pattern">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. An XPath expression that indicates where counting will start.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="format" type="xsl:avt" default="1">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The format string in which the number is to be formatted.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="lang" type="xsl:avt">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The language code used to indicate what spoken language is
- to be used for the format string.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="letter-value" type="xsl:avt">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Specifies whether the number is alphabetical or traditional.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="grouping-separator" type="xsl:avt">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The character to be used to seperate a group of numbers.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="grouping-size" type="xsl:avt">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. A number indicating the number of digits in a group. The
- default is 3.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="otherwise" type="xsl:sequence-constructor">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Otherwise is used to indicate the default action when none of the
- When tests are true, in a Choose statement.
- </xs:documentation>
- </xs:annotation>
-</xs:element>
-
-<xs:element name="output" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Specifies the format for the result document.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:generic-element-type">
- <xs:attribute name="method" type="xsl:method">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Valid values are xml, html, and text.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="cdata-section-elements" type="xsl:QNames">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. A space separated list of elements whose content should
- be wrapped with CDATA.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="doctype-public" type="xs:string">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Sets the value of the Public doctype attribute.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="doctype-system" type="xs:string">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Sets the value of the System doctype attribute.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="encoding" type="xs:string">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Specifies the type of encoding to use. i.e. UTF-8, UTF-16, etc.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="indent" type="xsl:yes-or-no">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Should the result document be pretty-printed.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="media-type" type="xs:string">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The mime type of the result document. i.e. text/xml
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="omit-xml-declaration" type="xsl:yes-or-no">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Whether the xml declation should be created in the
- result document.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="standalone" type="xsl:yes-or-no-or-omit">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Indicates if a standalone declartion should occcur in the
- result document.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="version" type="xs:NMTOKEN">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Sets the W3C version number to be used with the
- result document. Only used for HTML or XML output.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="param">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Used to declare a local or global parameter.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:QName" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The name of the parameter to be created.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="select" type="xsl:expression">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. An XPath expression to be used to populate the parameter
- if nothing is passed to it.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-
-<xs:element name="preserve-space" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Indicates the elements that are to have white space preserved when
- creating the result document.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="elements" type="xsl:nametests" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. A space seperated list of elements in which
- white space is significant and should be preserved when
- creating the result document.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="processing-instruction" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Creates a processing instruction in the result document.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:avt" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The name of the processing instruction to be created.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="sort">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Sorts the output of the node set.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="select" type="xsl:expression">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Specifies the XPath expression to be used to create the nodeset
- to be sorted.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="lang" type="xsl:avt">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The language code to be used for sorting.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="data-type" type="xsl:avt" default="text">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The type of data that is being sorted. The default
- is text.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="order" type="xsl:avt" default="ascending">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The order in which the data is to be sorted. The
- default is ascending.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="case-order" type="xsl:avt">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Specifies if upper or lowercase letters are to
- be sorted first.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="strip-space" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Defines which elements are to have white space stripped when
- writing the result document.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="elements" type="xsl:nametests" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. A space separeated list of elements are to have
- white space removed when writing the result document.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="stylesheet" substitutionGroup="xsl:transform">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- The root element of a style sheet. Also see the transform element.
- Either stylesheet or transform can be used. Typically stylsheet is
- used.
- </xs:documentation>
- </xs:annotation>
-</xs:element>
-
-<xs:element name="template" substitutionGroup="xsl:declaration">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- A template contains processing instructions and commands for nodes in the
- input document that match the specified XPath expression.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:generic-element-type">
- <xs:sequence>
- <xs:element ref="xsl:param" minOccurs="0" maxOccurs="unbounded"/>
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="match" type="xsl:pattern">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. An XPath expression or expressions that this template will
- be applied to. Note if this is omitted, then a name attribute must
- be used. Either a namoe or a match are to be used, but not both.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="priority" type="xs:decimal">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Indicates the numeric priortity for processing the
- template.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="mode" type="xsl:modes">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The name of the mode for this template. Used to match
- up with the apply-templates mode attribute.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="name" type="xsl:QName">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The name of a called template. Note that if name is
- not used, then match must be used. You can have one or the other
- but not both.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:complexType name="text-element-base-type">
- <xs:simpleContent>
- <xs:restriction base="xsl:generic-element-type">
-
- <xs:simpleType>
- <xs:restriction base="xs:string"/>
- </xs:simpleType>
- <xs:anyAttribute namespace="##other" processContents="skip"/>
- </xs:restriction>
- </xs:simpleContent>
-</xs:complexType>
-
-<xs:element name="text" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Writes text data to the output. i.e. #PCData
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xsl:text-element-base-type">
- <xs:attribute name="disable-output-escaping" type="xsl:yes-or-no" default="no">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Indicates if non friendly html and xml content should be converted
- to their entity types.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
-</xs:element>
-
-<xs:complexType name="transform-element-base-type">
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="version" type="xs:decimal" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The version number corresponding the the
- XSLT specification being used. For XSLT 1.0, this will
- be 1.0.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="exclude-result-prefixes" type="xsl:prefixes" use="optional">
- <xs:annotation>
- <xs:documentation source="http:/www.w3.org/TR/xslt">
- Optional. A list of namespace prefixes to exclude from the result document.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="extension-element-prefixes" type="xsl:prefixes" use="optional">
- <xs:annotation>
- <xs:documentation source="http:/www.w3.org/TR/xslt">
- Optional. A list of extension namespace prefixes. This is used to identify namespaces that
- contain XSLT processor extensions.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:anyAttribute namespace="##other" processContents="skip"/>
- </xs:extension>
- </xs:complexContent>
-</xs:complexType>
-
-<xs:element name="transform">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- The root element of a style sheet. Also see the stylesheet element.
- Either stylesheet or transform can be used. Typically stylsheet is
- used.
- </xs:documentation>
- </xs:annotation>
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:transform-element-base-type">
- <xs:sequence>
- <xs:element ref="xsl:import" minOccurs="0" maxOccurs="unbounded"/>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="xsl:declaration"/>
- <xs:element ref="xsl:variable"/>
- <xs:element ref="xsl:param"/>
- <xs:any namespace="##other" processContents="skip"/> <!-- weaker than XSLT 1.0 -->
- </xs:choice>
- </xs:sequence>
- <xs:attribute name="id" type="xs:ID">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. A unique ID for the stylesheet.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="value-of" substitutionGroup="xsl:instruction">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Used to pull the data value from the selected node or XPath expression.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="select" type="xsl:expression" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The XPath expression or current node to be used
- to pull the data from.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="disable-output-escaping" type="xsl:yes-or-no" default="no">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. Whether non-xml friendly data should be entity escaped.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="variable">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Declares a local or global variable to be used during processing.
- The contents of variable can be populated by either a series of
- XSLT commands or XPath expressions.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:QName" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The name of the variable. This is how the
- variable is accessed later in the stylesheet.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="select" type="xsl:expression" use="optional">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. The XPath expression in which the variable is
- populated from. This specifies where the variable is to get
- it's data value from.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="when">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- A conditional statement similiar to an if statement, used to test
- if a particular expression is true or false. Use with the Choose and
- Other wise elements.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="test" type="xsl:expression" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- An XPath expression that tests to true or false. If true
- the statements within are executed.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="with-param">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Defines the value of a parameter to be passed to a called template.
- </xs:documentation>
- </xs:annotation>
-
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:QName" use="required">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Required. The name of the parameter to be set. This
- must exist in the template that is being called.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="select" type="xsl:expression">
- <xs:annotation>
- <xs:documentation source="http://www.w3.org/TR/xslt">
- Optional. An XPath expression that is used to set
- the value for the parameter being passed to a template.
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
- PART C: definition of literal result elements
-
- There are three ways to define the literal result elements
- permissible in a stylesheet.
-
- (a) do nothing. This allows any element to be used as a literal
- result element, provided it is not in the XSLT namespace
-
- (b) declare all permitted literal result elements as members
- of the xsl:literal-result-element substitution group
-
- (c) redefine the model group xsl:result-elements to accommodate
- all permitted literal result elements.
-
- Literal result elements are allowed to take certain attributes
- in the XSLT namespace. These are defined in the attribute group
- literal-result-element-attributes, which can be included in the
- definition of any literal result element.
-
- </xs:documentation>
-
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<xs:element name="literal-result-element" abstract="true" type="xs:anyType"/>
-
-<xs:attributeGroup name="literal-result-element-attributes">
- <xs:attribute name="default-collation" form="qualified" type="xsl:uri-list"/>
- <xs:attribute name="extension-element-prefixes" form="qualified" type="xsl:prefixes"/>
- <xs:attribute name="exclude-result-prefixes" form="qualified" type="xsl:prefixes"/>
- <xs:attribute name="xpath-default-namespace" form="qualified" type="xs:anyURI"/>
- <xs:attribute name="inherit-namespaces" form="qualified" type="xsl:yes-or-no" default="yes"/>
- <xs:attribute name="use-attribute-sets" form="qualified" type="xsl:QNames" default=""/>
-
- <xs:attribute name="use-when" form="qualified" type="xsl:expression"/>
- <xs:attribute name="version" form="qualified" type="xs:decimal"/>
- <xs:attribute name="type" form="qualified" type="xsl:QName"/>
- <xs:attribute name="validation" form="qualified" type="xsl:validation-type"/>
-</xs:attributeGroup>
-
-<xs:group name="result-elements">
- <xs:choice>
- <xs:element ref="xsl:literal-result-element"/>
- <xs:any namespace="##other" processContents="skip"/>
-
- <xs:any namespace="##local" processContents="skip"/>
- </xs:choice>
-</xs:group>
-
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
- PART D: definitions of simple types used in stylesheet attributes
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<xs:simpleType name="avt">
- <xs:annotation>
- <xs:documentation>
- This type is used for all attributes that allow an attribute value template.
- The general rules for the syntax of attribute value templates, and the specific
- rules for each such attribute, are described in the XSLT 2.0 Recommendation.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string"/>
-</xs:simpleType>
-
-<xs:simpleType name="char">
- <xs:annotation>
-
- <xs:documentation>
- A string containing exactly one character.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:length value="1"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="expression">
- <xs:annotation>
-
- <xs:documentation>
- An XPath 2.0 expression.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:pattern value=".+"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="input-type-annotations-type">
- <xs:annotation>
-
- <xs:documentation>
- Describes how type annotations in source documents are handled.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:enumeration value="preserve"/>
- <xs:enumeration value="strip"/>
- <xs:enumeration value="unspecified"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="level">
- <xs:annotation>
- <xs:documentation>
- The level attribute of xsl:number:
- one of single, multiple, or any.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NCName">
- <xs:enumeration value="single"/>
- <xs:enumeration value="multiple"/>
- <xs:enumeration value="any"/>
-
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="mode">
- <xs:annotation>
- <xs:documentation>
- The mode attribute of xsl:apply-templates:
- either a QName, or #current, or #default.
- </xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="xsl:QName">
- <xs:simpleType>
-
- <xs:restriction base="xs:token">
- <xs:enumeration value="#default"/>
- <xs:enumeration value="#current"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="modes">
- <xs:annotation>
-
- <xs:documentation>
- The mode attribute of xsl:template:
- either a list, each member being either a QName or #default;
- or the value #all
- </xs:documentation>
- </xs:annotation>
- <xs:union>
- <xs:simpleType>
- <xs:list>
- <xs:simpleType>
- <xs:union memberTypes="xsl:QName">
-
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="#default"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
- </xs:simpleType>
- </xs:list>
- </xs:simpleType>
-
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="#all"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="nametests">
- <xs:annotation>
-
- <xs:documentation>
- A list of NameTests, as defined in the XPath 2.0 Recommendation.
- Each NameTest is either a QName, or "*", or "prefix:*", or "*:localname"
- </xs:documentation>
- </xs:annotation>
- <xs:list>
- <xs:simpleType>
- <xs:union memberTypes="xsl:QName">
- <xs:simpleType>
- <xs:restriction base="xs:token">
-
- <xs:enumeration value="*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:pattern value="\i\c*:\*"/>
- <xs:pattern value="\*:\i\c*"/>
- </xs:restriction>
- </xs:simpleType>
-
- </xs:union>
- </xs:simpleType>
- </xs:list>
-</xs:simpleType>
-
-<xs:simpleType name="prefixes">
- <xs:list itemType="xs:NCName"/>
-</xs:simpleType>
-
-<xs:simpleType name="prefix-list-or-all">
- <xs:union memberTypes="xsl:prefix-list">
- <xs:simpleType>
-
- <xs:restriction base="xs:token">
- <xs:enumeration value="#all"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="prefix-list">
- <xs:list itemType="xsl:prefix-or-default"/>
-</xs:simpleType>
-
-<xs:simpleType name="method">
- <xs:annotation>
- <xs:documentation>
- The method attribute of xsl:output:
- Either one of the recognized names "xml", "xhtml", "html", "text",
- or a QName that must include a prefix.
- </xs:documentation>
- </xs:annotation>
- <xs:union>
- <xs:simpleType>
- <xs:restriction base="xs:NCName">
- <xs:enumeration value="xml"/>
-
- <xs:enumeration value="xhtml"/>
- <xs:enumeration value="html"/>
- <xs:enumeration value="text"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType>
- <xs:restriction base="xsl:QName">
- <xs:pattern value="\c*:\c*"/>
- </xs:restriction>
-
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="pattern">
- <xs:annotation>
- <xs:documentation>
- A match pattern as defined in the XSLT 2.0 Recommendation.
- The syntax for patterns is a restricted form of the syntax for
- XPath 2.0 expressions.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xsl:expression"/>
-
-</xs:simpleType>
-
-<xs:simpleType name="prefix-or-default">
- <xs:annotation>
- <xs:documentation>
- Either a namespace prefix, or #default.
- Used in the xsl:namespace-alias element.
- </xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="xs:NCName">
- <xs:simpleType>
- <xs:restriction base="xs:token">
-
- <xs:enumeration value="#default"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="QNames">
- <xs:annotation>
- <xs:documentation>
- A list of QNames.
- Used in the [xsl:]use-attribute-sets attribute of various elements,
- and in the cdata-section-elements attribute of xsl:output
- </xs:documentation>
-
- </xs:annotation>
- <xs:list itemType="xsl:QName"/>
-</xs:simpleType>
-
-<xs:simpleType name="QName">
- <xs:annotation>
- <xs:documentation>
- A QName.
- This schema does not use the built-in type xs:QName, but rather defines its own
- QName type. Although xs:QName would define the correct validation on these attributes,
- a schema processor would expand unprefixed QNames incorrectly when constructing the PSVI,
- because (as defined in XML Schema errata) an unprefixed xs:QName is assumed to be in
- the default namespace, which is not the correct assumption for XSLT.
- The data type is defined as a restriction of the built-in type Name, restricted
- so that it can only contain one colon which must not be the first or last character.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:Name">
-
- <xs:pattern value="([^:]+:)?[^:]+"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="sequence-type">
- <xs:annotation>
- <xs:documentation>
- The description of a data type, conforming to the
- SequenceType production defined in the XPath 2.0 Recommendation
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
-
- <xs:pattern value=".+"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="uri-list">
- <xs:list itemType="xs:anyURI"/>
-</xs:simpleType>
-
-<xs:simpleType name="validation-strip-or-preserve">
- <xs:annotation>
- <xs:documentation>
- Describes different ways of type-annotating an element or attribute.
- </xs:documentation>
-
- </xs:annotation>
- <xs:restriction base="xsl:validation-type">
- <xs:enumeration value="preserve"/>
- <xs:enumeration value="strip"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="validation-type">
- <xs:annotation>
- <xs:documentation>
- Describes different ways of type-annotating an element or attribute.
- </xs:documentation>
-
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:enumeration value="strict"/>
- <xs:enumeration value="lax"/>
- <xs:enumeration value="preserve"/>
- <xs:enumeration value="strip"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="yes-or-no">
- <xs:annotation>
-
- <xs:documentation>
- One of the values "yes" or "no".
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:enumeration value="yes"/>
- <xs:enumeration value="no"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="yes-or-no-or-omit">
- <xs:annotation>
- <xs:documentation>
- One of the values "yes" or "no" or "omit".
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:enumeration value="yes"/>
- <xs:enumeration value="no"/>
- <xs:enumeration value="omit"/>
-
- </xs:restriction>
-</xs:simpleType>
-
-</xs:schema>
diff --git a/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xslt-2.0.xsd b/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xslt-2.0.xsd
deleted file mode 100644
index 91fd200..0000000
--- a/bundles/org.eclipse.wst.xsl.core/xslt-schemas/xslt-2.0.xsd
+++ /dev/null
@@ -1,1173 +0,0 @@
-<?xml version="1.0"?>
-<!--
- *******************************************************************************
- * Copyright (c) 2001, 2007 - W3C, Standards for Technology in Automotive Retail,
- * and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - 20080330 - STAR - bug 224819 - changed procesContents from lax to skip
- *******************************************************************************
-*******************************************************************************
- * W3C® SOFTWARE NOTICE AND LICENSE
- * http://www.w3.org/Consortium/Legal/copyright-software-19980720
- *
- * Copyright © 1994-2002 World Wide Web Consortium, (Massachusetts Institute of
- * Technology, Institut National de Recherche en Informatique et en Automatique,
- * Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/
- *
- * This W3C work (including software, documents, or other related items) is being
- * provided by the copyright holders under the following license. By obtaining,
- * using and/or copying this work, you (the licensee) agree that you have read,
- * understood, and will comply with the following terms and conditions:
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation, with or without modification, for any purpose and without fee
- * or royalty is hereby granted, provided that you include the following on ALL copies
- * of the software and documentation or portions thereof, including modifications, that
- * you make:
- *
- * 1. The full text of this NOTICE in a location viewable to users of the redistributed
- * or derivative work.
- * 2. Any pre-existing intellectual property disclaimers, notices, or terms and
- * conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/"
- * 3. Notice of any changes or modifications to the W3C files, including the date changes
- * were made. (We recommend you provide URIs to the location from which the code is
- * derived.)
- *
- * THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
- * REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,
- * WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
- * THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
- * TRADEMARKS OR OTHER RIGHTS.
- *
- * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL
- * DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
- *
- * The name and trademarks of copyright holders may NOT be used in advertising or publicity
- * pertaining to the software without specific, written prior permission. Title to copyright
- * in this software and any associated documentation will at all times remain with copyright
- * holders.
- ********************************************************************************************
- -->
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3.org/1999/XSL/Transform" elementFormDefault="qualified" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
-
- This is a schema for XSLT 2.0 stylesheets.
-
- It defines all the elements that appear in the XSLT namespace; it also
- provides hooks that allow the inclusion of user-defined literal result elements,
- extension instructions, and top-level data elements.
-
- The schema is derived (with kind permission) from a schema for XSLT 1.0 stylesheets
- produced by Asir S Vedamuthu of WebMethods Inc.
-
- This schema is available for use under the conditions of the W3C Software License
- published at http://www.w3.org/Consortium/Legal/copyright-software-19980720
-
- The schema is organized as follows:
-
- PART A: definitions of complex types and model groups used as the basis
- for element definitions
- PART B: definitions of individual XSLT elements
- PART C: definitions for literal result elements
- PART D: definitions of simple types used in attribute definitions
-
- This schema does not attempt to define all the constraints that apply to a valid
- XSLT 2.0 stylesheet module. It is the intention that all valid stylesheet modules
- should conform to this schema; however, the schema is non-normative and in the event
- of any conflict, the text of the Recommendation takes precedence.
-
- This schema does not implement the special rules that apply when a stylesheet
- has sections that use forwards-compatible-mode. In this mode, setting version="3.0"
- allows elements from the XSLT namespace to be used that are not defined in XSLT 2.0.
-
- Simplified stylesheets (those with a literal result element as the outermost element)
- will validate against this schema only if validation starts in lax mode.
-
- This version is dated 2005-02-11
- Authors: Michael H Kay, Saxonica Limited
- Jeni Tennison, Jeni Tennison Consulting Ltd.
-
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<!--
-The declaration of xml:space and xml:lang may need to be commented out because
-of problems processing the schema using various tools
--->
-
-<xs:import namespace="http://www.w3.org/XML/1998/namespace"
- schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-
-<!--
- An XSLT stylesheet may contain an in-line schema within an xsl:import-schema element,
- so the Schema for schemas needs to be imported
--->
-
-<xs:import namespace="http://www.w3.org/2001/XMLSchema"
- schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"/>
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
- PART A: definitions of complex types and model groups used as the basis
- for element definitions
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<xs:complexType name="generic-element-type" mixed="true">
- <xs:attribute name="default-collation" type="xsl:uri-list"/>
- <xs:attribute name="exclude-result-prefixes" type="xsl:prefix-list-or-all"/>
- <xs:attribute name="extension-element-prefixes" type="xsl:prefix-list"/>
- <xs:attribute name="use-when" type="xsl:expression"/>
- <xs:attribute name="xpath-default-namespace" type="xs:anyURI"/>
- <xs:anyAttribute namespace="##other" processContents="skip"/>
-</xs:complexType>
-
-<xs:complexType name="versioned-element-type" mixed="true">
- <xs:complexContent>
- <xs:extension base="xsl:generic-element-type">
- <xs:attribute name="version" type="xs:decimal" use="optional"/>
- </xs:extension>
- </xs:complexContent>
-</xs:complexType>
-
-<xs:complexType name="element-only-versioned-element-type" mixed="false">
- <xs:complexContent>
- <xs:restriction base="xsl:versioned-element-type">
- <xs:anyAttribute namespace="##other" processContents="skip"/>
- </xs:restriction>
- </xs:complexContent>
-</xs:complexType>
-
-<xs:complexType name="sequence-constructor">
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:versioned-element-type">
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:extension>
- </xs:complexContent>
-</xs:complexType>
-
-<xs:group name="sequence-constructor-group">
- <xs:choice>
- <xs:element ref="xsl:variable"/>
- <xs:element ref="xsl:instruction"/>
- <xs:group ref="xsl:result-elements"/>
- </xs:choice>
-</xs:group>
-
-<xs:element name="declaration" type="xsl:generic-element-type" abstract="true"/>
-
-<xs:element name="instruction" type="xsl:versioned-element-type" abstract="true"/>
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
- PART B: definitions of individual XSLT elements
- Elements are listed in alphabetical order.
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<xs:element name="analyze-string" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:matching-substring" minOccurs="0"/>
- <xs:element ref="xsl:non-matching-substring" minOccurs="0"/>
- <xs:element ref="xsl:fallback" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="select" type="xsl:expression" use="required"/>
- <xs:attribute name="regex" type="xsl:avt" use="required"/>
- <xs:attribute name="flags" type="xsl:avt" default=""/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="apply-imports" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:with-param" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="apply-templates" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="xsl:sort"/>
- <xs:element ref="xsl:with-param"/>
- </xs:choice>
- <xs:attribute name="select" type="xsl:expression" default="child::node()"/>
- <xs:attribute name="mode" type="xsl:mode"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="attribute" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:avt" use="required"/>
- <xs:attribute name="namespace" type="xsl:avt"/>
- <xs:attribute name="select" type="xsl:expression"/>
- <xs:attribute name="separator" type="xsl:avt"/>
- <xs:attribute name="type" type="xsl:QName"/>
- <xs:attribute name="validation" type="xsl:validation-type"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="attribute-set" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="xsl:attribute"/>
- </xs:sequence>
- <xs:attribute name="name" type="xsl:QName" use="required"/>
- <xs:attribute name="use-attribute-sets" type="xsl:QNames" default=""/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="call-template" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:with-param" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="name" type="xsl:QName" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="character-map" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:output-character" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="name" type="xsl:QName" use="required"/>
- <xs:attribute name="use-character-maps" type="xsl:QNames" default=""/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="choose" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:when" maxOccurs="unbounded"/>
- <xs:element ref="xsl:otherwise" minOccurs="0"/>
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="comment" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="select" type="xsl:expression"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="copy" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="copy-namespaces" type="xsl:yes-or-no" default="yes"/>
- <xs:attribute name="inherit-namespaces" type="xsl:yes-or-no" default="yes"/>
- <xs:attribute name="use-attribute-sets" type="xsl:QNames" default=""/>
- <xs:attribute name="type" type="xsl:QName"/>
- <xs:attribute name="validation" type="xsl:validation-type"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="copy-of" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:versioned-element-type">
- <xs:attribute name="select" type="xsl:expression" use="required"/>
- <xs:attribute name="copy-namespaces" type="xsl:yes-or-no" default="yes"/>
- <xs:attribute name="type" type="xsl:QName"/>
- <xs:attribute name="validation" type="xsl:validation-type"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="decimal-format" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="name" type="xsl:QName"/>
- <xs:attribute name="decimal-separator" type="xsl:char" default="."/>
- <xs:attribute name="grouping-separator" type="xsl:char" default=","/>
- <xs:attribute name="infinity" type="xs:string" default="Infinity"/>
- <xs:attribute name="minus-sign" type="xsl:char" default="-"/>
- <xs:attribute name="NaN" type="xs:string" default="NaN"/>
- <xs:attribute name="percent" type="xsl:char" default="%"/>
- <xs:attribute name="per-mille" type="xsl:char" default="&#x2030;"/>
- <xs:attribute name="zero-digit" type="xsl:char" default="0"/>
- <xs:attribute name="digit" type="xsl:char" default="#"/>
- <xs:attribute name="pattern-separator" type="xsl:char" default=";"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="element" substitutionGroup="xsl:instruction">
- <xs:complexType mixed="true">
- <xs:complexContent>
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:avt" use="required"/>
- <xs:attribute name="namespace" type="xsl:avt"/>
- <xs:attribute name="inherit-namespaces" type="xsl:yes-or-no" default="yes"/>
- <xs:attribute name="use-attribute-sets" type="xsl:QNames" default=""/>
- <xs:attribute name="type" type="xsl:QName"/>
- <xs:attribute name="validation" type="xsl:validation-type"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="fallback" substitutionGroup="xsl:instruction" type="xsl:sequence-constructor"/>
-
-<xs:element name="for-each" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:sort" minOccurs="0" maxOccurs="unbounded"/>
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="select" type="xsl:expression" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="for-each-group" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:sort" minOccurs="0" maxOccurs="unbounded"/>
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="select" type="xsl:expression" use="required"/>
- <xs:attribute name="group-by" type="xsl:expression"/>
- <xs:attribute name="group-adjacent" type="xsl:expression"/>
- <xs:attribute name="group-starting-with" type="xsl:pattern"/>
- <xs:attribute name="group-ending-with" type="xsl:pattern"/>
- <xs:attribute name="collation" type="xs:anyURI"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="function" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:param" minOccurs="0" maxOccurs="unbounded"/>
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="name" type="xsl:QName" use="required"/>
- <xs:attribute name="override" type="xsl:yes-or-no" default="yes"/>
- <xs:attribute name="as" type="xsl:sequence-type" default="item()*"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="if" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="test" type="xsl:expression" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="import">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="href" type="xs:anyURI" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="import-schema" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:sequence>
- <xs:element ref="xs:schema" minOccurs="0" maxOccurs="1"/>
- </xs:sequence>
- <xs:attribute name="namespace" type="xs:anyURI"/>
- <xs:attribute name="schema-location" type="xs:anyURI"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="include" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="href" type="xs:anyURI" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="key" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:QName" use="required"/>
- <xs:attribute name="match" type="xsl:pattern" use="required"/>
- <xs:attribute name="use" type="xsl:expression"/>
- <xs:attribute name="collation" type="xs:anyURI"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="matching-substring" type="xsl:sequence-constructor"/>
-
-<xs:element name="message" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="select" type="xsl:expression"/>
- <xs:attribute name="terminate" type="xsl:avt" default="no"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="namespace" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:avt" use="required"/>
- <xs:attribute name="select" type="xsl:expression"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="namespace-alias" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="stylesheet-prefix" type="xsl:prefix-or-default" use="required"/>
- <xs:attribute name="result-prefix" type="xsl:prefix-or-default" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="next-match" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="xsl:with-param"/>
- <xs:element ref="xsl:fallback"/>
- </xs:choice>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="non-matching-substring" type="xsl:sequence-constructor"/>
-
-<xs:element name="number" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:versioned-element-type">
- <xs:attribute name="value" type="xsl:expression"/>
- <xs:attribute name="select" type="xsl:expression"/>
- <xs:attribute name="level" type="xsl:level" default="single"/>
- <xs:attribute name="count" type="xsl:pattern"/>
- <xs:attribute name="from" type="xsl:pattern"/>
- <xs:attribute name="format" type="xsl:avt" default="1"/>
- <xs:attribute name="lang" type="xsl:avt"/>
- <xs:attribute name="letter-value" type="xsl:avt"/>
- <xs:attribute name="ordinal" type="xsl:avt"/>
- <xs:attribute name="grouping-separator" type="xsl:avt"/>
- <xs:attribute name="grouping-size" type="xsl:avt"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="otherwise" type="xsl:sequence-constructor"/>
-
-<xs:element name="output" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:generic-element-type">
- <xs:attribute name="name" type="xsl:QName"/>
- <xs:attribute name="method" type="xsl:method"/>
- <xs:attribute name="byte-order-mark" type="xsl:yes-or-no"/>
- <xs:attribute name="cdata-section-elements" type="xsl:QNames"/>
- <xs:attribute name="doctype-public" type="xs:string"/>
- <xs:attribute name="doctype-system" type="xs:string"/>
- <xs:attribute name="encoding" type="xs:string"/>
- <xs:attribute name="escape-uri-attributes" type="xsl:yes-or-no"/>
- <xs:attribute name="include-content-type" type="xsl:yes-or-no"/>
- <xs:attribute name="indent" type="xsl:yes-or-no"/>
- <xs:attribute name="media-type" type="xs:string"/>
- <xs:attribute name="normalization-form" type="xs:NMTOKEN"/>
- <xs:attribute name="omit-xml-declaration" type="xsl:yes-or-no"/>
- <xs:attribute name="standalone" type="xsl:yes-or-no-or-omit"/>
- <xs:attribute name="undeclare-prefixes" type="xsl:yes-or-no"/>
- <xs:attribute name="use-character-maps" type="xsl:QNames"/>
- <xs:attribute name="version" type="xs:NMTOKEN"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="output-character">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="character" type="xsl:char" use="required"/>
- <xs:attribute name="string" type="xs:string" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="param">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:QName" use="required"/>
- <xs:attribute name="select" type="xsl:expression"/>
- <xs:attribute name="as" type="xsl:sequence-type"/>
- <xs:attribute name="required" type="xsl:yes-or-no"/>
- <xs:attribute name="tunnel" type="xsl:yes-or-no"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="perform-sort" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:sort" minOccurs="1" maxOccurs="unbounded"/>
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="select" type="xsl:expression"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="preserve-space" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="elements" type="xsl:nametests" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="processing-instruction" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:avt" use="required"/>
- <xs:attribute name="select" type="xsl:expression"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="result-document" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="format" type="xsl:QName"/>
- <xs:attribute name="href" type="xsl:avt"/>
- <xs:attribute name="type" type="xsl:QName"/>
- <xs:attribute name="validation" type="xsl:validation-type"/>
- <xs:attribute name="method" type="xsl:avt"/>
- <xs:attribute name="byte-order-mark" type="xsl:avt"/>
- <xs:attribute name="cdata-section-elements" type="xsl:avt"/>
- <xs:attribute name="doctype-public" type="xsl:avt"/>
- <xs:attribute name="doctype-system" type="xsl:avt"/>
- <xs:attribute name="encoding" type="xsl:avt"/>
- <xs:attribute name="escape-uri-attributes" type="xsl:avt"/>
- <xs:attribute name="include-content-type" type="xsl:avt"/>
- <xs:attribute name="indent" type="xsl:avt"/>
- <xs:attribute name="media-type" type="xsl:avt"/>
- <xs:attribute name="normalization-form" type="xsl:avt"/>
- <xs:attribute name="omit-xml-declaration" type="xsl:avt"/>
- <xs:attribute name="standalone" type="xsl:avt"/>
- <xs:attribute name="undeclare-prefixes" type="xsl:avt"/>
- <xs:attribute name="use-character-maps" type="xsl:QNames"/>
- <xs:attribute name="output-version" type="xsl:avt"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="sequence" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="select" type="xsl:expression"/>
- <xs:attribute name="as" type="xsl:sequence-type"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="sort">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="select" type="xsl:expression"/>
- <xs:attribute name="lang" type="xsl:avt"/>
- <xs:attribute name="data-type" type="xsl:avt" default="text"/>
- <xs:attribute name="order" type="xsl:avt" default="ascending"/>
- <xs:attribute name="case-order" type="xsl:avt"/>
- <xs:attribute name="collation" type="xsl:avt"/>
- <xs:attribute name="stable" type="xsl:yes-or-no"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="strip-space" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:element-only-versioned-element-type">
- <xs:attribute name="elements" type="xsl:nametests" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="stylesheet" substitutionGroup="xsl:transform"/>
-
-<xs:element name="template" substitutionGroup="xsl:declaration">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:versioned-element-type">
- <xs:sequence>
- <xs:element ref="xsl:param" minOccurs="0" maxOccurs="unbounded"/>
- <xs:group ref="xsl:sequence-constructor-group" minOccurs="0" maxOccurs="unbounded"/>
- </xs:sequence>
- <xs:attribute name="match" type="xsl:pattern"/>
- <xs:attribute name="priority" type="xs:decimal"/>
- <xs:attribute name="mode" type="xsl:modes"/>
- <xs:attribute name="name" type="xsl:QName"/>
- <xs:attribute name="as" type="xsl:sequence-type" default="item()*"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:complexType name="text-element-base-type">
- <xs:simpleContent>
- <xs:restriction base="xsl:versioned-element-type">
- <xs:simpleType>
- <xs:restriction base="xs:string"/>
- </xs:simpleType>
- <xs:anyAttribute namespace="##other" processContents="skip"/>
- </xs:restriction>
- </xs:simpleContent>
-</xs:complexType>
-
-<xs:element name="text" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xsl:text-element-base-type">
- <xs:attribute name="disable-output-escaping" type="xsl:yes-or-no" default="no"/>
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
-</xs:element>
-
-<xs:complexType name="transform-element-base-type">
- <xs:complexContent>
- <xs:restriction base="xsl:element-only-versioned-element-type">
- <xs:attribute name="version" type="xs:decimal" use="required"/>
- <xs:anyAttribute namespace="##other" processContents="skip"/>
- </xs:restriction>
- </xs:complexContent>
-</xs:complexType>
-
-<xs:element name="transform">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="xsl:transform-element-base-type">
- <xs:sequence>
- <xs:element ref="xsl:import" minOccurs="0" maxOccurs="unbounded"/>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element ref="xsl:declaration"/>
- <xs:element ref="xsl:variable"/>
- <xs:element ref="xsl:param"/>
- <xs:any namespace="##other" processContents="skip"/> <!-- weaker than XSLT 1.0 -->
- </xs:choice>
- </xs:sequence>
- <xs:attribute name="id" type="xs:ID"/>
- <xs:attribute name="default-validation" type="xsl:validation-strip-or-preserve" default="strip"/>
- <xs:attribute name="input-type-annotations" type="xsl:input-type-annotations-type" default="unspecified"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="value-of" substitutionGroup="xsl:instruction">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="select" type="xsl:expression"/>
- <xs:attribute name="separator" type="xsl:avt"/>
- <xs:attribute name="disable-output-escaping" type="xsl:yes-or-no" default="no"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="variable">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:QName" use="required"/>
- <xs:attribute name="select" type="xsl:expression" use="optional"/>
- <xs:attribute name="as" type="xsl:sequence-type" use="optional"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="when">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="test" type="xsl:expression" use="required"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<xs:element name="with-param">
- <xs:complexType>
- <xs:complexContent mixed="true">
- <xs:extension base="xsl:sequence-constructor">
- <xs:attribute name="name" type="xsl:QName" use="required"/>
- <xs:attribute name="select" type="xsl:expression"/>
- <xs:attribute name="as" type="xsl:sequence-type"/>
- <xs:attribute name="tunnel" type="xsl:yes-or-no"/>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
-</xs:element>
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
- PART C: definition of literal result elements
-
- There are three ways to define the literal result elements
- permissible in a stylesheet.
-
- (a) do nothing. This allows any element to be used as a literal
- result element, provided it is not in the XSLT namespace
-
- (b) declare all permitted literal result elements as members
- of the xsl:literal-result-element substitution group
-
- (c) redefine the model group xsl:result-elements to accommodate
- all permitted literal result elements.
-
- Literal result elements are allowed to take certain attributes
- in the XSLT namespace. These are defined in the attribute group
- literal-result-element-attributes, which can be included in the
- definition of any literal result element.
-
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<xs:element name="literal-result-element" abstract="true" type="xs:anyType"/>
-
-<xs:attributeGroup name="literal-result-element-attributes">
- <xs:attribute name="default-collation" form="qualified" type="xsl:uri-list"/>
- <xs:attribute name="extension-element-prefixes" form="qualified" type="xsl:prefixes"/>
- <xs:attribute name="exclude-result-prefixes" form="qualified" type="xsl:prefixes"/>
- <xs:attribute name="xpath-default-namespace" form="qualified" type="xs:anyURI"/>
- <xs:attribute name="inherit-namespaces" form="qualified" type="xsl:yes-or-no" default="yes"/>
- <xs:attribute name="use-attribute-sets" form="qualified" type="xsl:QNames" default=""/>
- <xs:attribute name="use-when" form="qualified" type="xsl:expression"/>
- <xs:attribute name="version" form="qualified" type="xs:decimal"/>
- <xs:attribute name="type" form="qualified" type="xsl:QName"/>
- <xs:attribute name="validation" form="qualified" type="xsl:validation-type"/>
-</xs:attributeGroup>
-
-<xs:group name="result-elements">
- <xs:choice>
- <xs:element ref="xsl:literal-result-element"/>
- <xs:any namespace="##other" processContents="skip"/>
- <xs:any namespace="##local" processContents="skip"/>
- </xs:choice>
-</xs:group>
-
-
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-<xs:annotation>
- <xs:documentation>
- PART D: definitions of simple types used in stylesheet attributes
- </xs:documentation>
-</xs:annotation>
-<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
-
-<xs:simpleType name="avt">
- <xs:annotation>
- <xs:documentation>
- This type is used for all attributes that allow an attribute value template.
- The general rules for the syntax of attribute value templates, and the specific
- rules for each such attribute, are described in the XSLT 2.0 Recommendation.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string"/>
-</xs:simpleType>
-
-<xs:simpleType name="char">
- <xs:annotation>
- <xs:documentation>
- A string containing exactly one character.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:string">
- <xs:length value="1"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="expression">
- <xs:annotation>
- <xs:documentation>
- An XPath 2.0 expression.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:pattern value=".+"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="input-type-annotations-type">
- <xs:annotation>
- <xs:documentation>
- Describes how type annotations in source documents are handled.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:enumeration value="preserve"/>
- <xs:enumeration value="strip"/>
- <xs:enumeration value="unspecified"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="level">
- <xs:annotation>
- <xs:documentation>
- The level attribute of xsl:number:
- one of single, multiple, or any.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:NCName">
- <xs:enumeration value="single"/>
- <xs:enumeration value="multiple"/>
- <xs:enumeration value="any"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="mode">
- <xs:annotation>
- <xs:documentation>
- The mode attribute of xsl:apply-templates:
- either a QName, or #current, or #default.
- </xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="xsl:QName">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="#default"/>
- <xs:enumeration value="#current"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="modes">
- <xs:annotation>
- <xs:documentation>
- The mode attribute of xsl:template:
- either a list, each member being either a QName or #default;
- or the value #all
- </xs:documentation>
- </xs:annotation>
- <xs:union>
- <xs:simpleType>
- <xs:list>
- <xs:simpleType>
- <xs:union memberTypes="xsl:QName">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="#default"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
- </xs:simpleType>
- </xs:list>
- </xs:simpleType>
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="#all"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="nametests">
- <xs:annotation>
- <xs:documentation>
- A list of NameTests, as defined in the XPath 2.0 Recommendation.
- Each NameTest is either a QName, or "*", or "prefix:*", or "*:localname"
- </xs:documentation>
- </xs:annotation>
- <xs:list>
- <xs:simpleType>
- <xs:union memberTypes="xsl:QName">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="*"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:pattern value="\i\c*:\*"/>
- <xs:pattern value="\*:\i\c*"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
- </xs:simpleType>
- </xs:list>
-</xs:simpleType>
-
-<xs:simpleType name="prefixes">
- <xs:list itemType="xs:NCName"/>
-</xs:simpleType>
-
-<xs:simpleType name="prefix-list-or-all">
- <xs:union memberTypes="xsl:prefix-list">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="#all"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="prefix-list">
- <xs:list itemType="xsl:prefix-or-default"/>
-</xs:simpleType>
-
-<xs:simpleType name="method">
- <xs:annotation>
- <xs:documentation>
- The method attribute of xsl:output:
- Either one of the recognized names "xml", "xhtml", "html", "text",
- or a QName that must include a prefix.
- </xs:documentation>
- </xs:annotation>
- <xs:union>
- <xs:simpleType>
- <xs:restriction base="xs:NCName">
- <xs:enumeration value="xml"/>
- <xs:enumeration value="xhtml"/>
- <xs:enumeration value="html"/>
- <xs:enumeration value="text"/>
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType>
- <xs:restriction base="xsl:QName">
- <xs:pattern value="\c*:\c*"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="pattern">
- <xs:annotation>
- <xs:documentation>
- A match pattern as defined in the XSLT 2.0 Recommendation.
- The syntax for patterns is a restricted form of the syntax for
- XPath 2.0 expressions.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xsl:expression"/>
-</xs:simpleType>
-
-<xs:simpleType name="prefix-or-default">
- <xs:annotation>
- <xs:documentation>
- Either a namespace prefix, or #default.
- Used in the xsl:namespace-alias element.
- </xs:documentation>
- </xs:annotation>
- <xs:union memberTypes="xs:NCName">
- <xs:simpleType>
- <xs:restriction base="xs:token">
- <xs:enumeration value="#default"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:union>
-</xs:simpleType>
-
-<xs:simpleType name="QNames">
- <xs:annotation>
- <xs:documentation>
- A list of QNames.
- Used in the [xsl:]use-attribute-sets attribute of various elements,
- and in the cdata-section-elements attribute of xsl:output
- </xs:documentation>
- </xs:annotation>
- <xs:list itemType="xsl:QName"/>
-</xs:simpleType>
-
-<xs:simpleType name="QName">
- <xs:annotation>
- <xs:documentation>
- A QName.
- This schema does not use the built-in type xs:QName, but rather defines its own
- QName type. Although xs:QName would define the correct validation on these attributes,
- a schema processor would expand unprefixed QNames incorrectly when constructing the PSVI,
- because (as defined in XML Schema errata) an unprefixed xs:QName is assumed to be in
- the default namespace, which is not the correct assumption for XSLT.
- The data type is defined as a restriction of the built-in type Name, restricted
- so that it can only contain one colon which must not be the first or last character.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:Name">
- <xs:pattern value="([^:]+:)?[^:]+"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="sequence-type">
- <xs:annotation>
- <xs:documentation>
- The description of a data type, conforming to the
- SequenceType production defined in the XPath 2.0 Recommendation
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:pattern value=".+"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="uri-list">
- <xs:list itemType="xs:anyURI"/>
-</xs:simpleType>
-
-<xs:simpleType name="validation-strip-or-preserve">
- <xs:annotation>
- <xs:documentation>
- Describes different ways of type-annotating an element or attribute.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xsl:validation-type">
- <xs:enumeration value="preserve"/>
- <xs:enumeration value="strip"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="validation-type">
- <xs:annotation>
- <xs:documentation>
- Describes different ways of type-annotating an element or attribute.
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:enumeration value="strict"/>
- <xs:enumeration value="lax"/>
- <xs:enumeration value="preserve"/>
- <xs:enumeration value="strip"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="yes-or-no">
- <xs:annotation>
- <xs:documentation>
- One of the values "yes" or "no".
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:enumeration value="yes"/>
- <xs:enumeration value="no"/>
- </xs:restriction>
-</xs:simpleType>
-
-<xs:simpleType name="yes-or-no-or-omit">
- <xs:annotation>
- <xs:documentation>
- One of the values "yes" or "no" or "omit".
- </xs:documentation>
- </xs:annotation>
- <xs:restriction base="xs:token">
- <xs:enumeration value="yes"/>
- <xs:enumeration value="no"/>
- <xs:enumeration value="omit"/>
- </xs:restriction>
-</xs:simpleType>
-
-</xs:schema> \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.classpath b/bundles/org.eclipse.wst.xsl.debug.ui/.classpath
deleted file mode 100644
index 304e861..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.cvsignore b/bundles/org.eclipse.wst.xsl.debug.ui/.cvsignore
deleted file mode 100644
index ac6029b..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-javaCompiler...args
-build.xml
-@dot
-temp.folder
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.project b/bundles/org.eclipse.wst.xsl.debug.ui/.project
deleted file mode 100644
index cf9d0b2..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.debug.ui</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 0a7bb6d..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Jan 03 22:24:01 EST 2008
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index e7a0088..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,25 +0,0 @@
-#Fri May 09 15:32:36 BST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.doc.comment.support=enabled
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
-org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocComments=warning
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag
-org.eclipse.jdt.core.compiler.problem.missingJavadocTags=warning
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index bf7b476..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Fri May 09 15:32:34 BST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index fdd8568..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,16 +0,0 @@
-#Fri Jan 04 09:04:43 EST 2008
-compilers.incompatible-environment=1
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.missing-bundle-classpath-entries=0
-compilers.p.missing-packages=2
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=0
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=1
-compilers.p.unknown-element=0
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.debug.ui/META-INF/MANIFEST.MF
deleted file mode 100644
index 42a1885..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,23 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.debug.ui;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin
-Require-Bundle: org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.filesystem;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.variables;bundle-version="[3.2.0,4.0.0)",
- org.eclipse.debug.ui;bundle-version="[3.3.100,4.0.0)",
- org.eclipse.jface.text;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui.ide;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui.workbench.texteditor;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.sse.ui;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xsl.launching;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.xsl.core;bundle-version="[1.0.0,2.0.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.debug.ui,
- org.eclipse.wst.xsl.internal.debug.ui
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/about.html b/bundles/org.eclipse.wst.xsl.debug.ui/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/build.properties b/bundles/org.eclipse.wst.xsl.debug.ui/build.properties
deleted file mode 100644
index 878da21..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- plugin.properties,\
- icons/
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/brkp_obj.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/brkp_obj.gif
deleted file mode 100644
index a831fe7..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/brkp_obj.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/localvariable_obj.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/localvariable_obj.gif
deleted file mode 100644
index 3244b26..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/localvariable_obj.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/operation.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/operation.gif
deleted file mode 100644
index b55d9e3..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/operation.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/sample.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/sample.gif
deleted file mode 100644
index 34fb3c9..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/sample.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_launch.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_launch.gif
deleted file mode 100644
index bfe15f8..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_launch.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_output.gif b/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_output.gif
deleted file mode 100644
index 45fb08d..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/icons/xslt_output.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/plugin.properties b/bundles/org.eclipse.wst.xsl.debug.ui/plugin.properties
deleted file mode 100644
index 394942b..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.debug.ui
-Bundle-Name.0 = XSL Debugger UI (Incubating)
-launchMode.description.0 = Create a configuration to debug an XSLT transformation
-launchMode.description.1 = Create a configuration to run an XSLT transformation
-context.description.0 = Context for debugging XSLT
-context.name.0 = XSLT Debugging
-shortcut.label.0 = XSL Transformation
-shortcut.label.1 = XSLT Transformation
-Bundle-Vendor.0 = Eclipse.org
-description.description.0 = Run an XSLT transformation using the selected file(s)
-description.description.1 = Debug an XSLT transformation using the selected file(s)
-description.description.2 = Profile an XSLT transformation using the selected file(s) \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/plugin.xml b/bundles/org.eclipse.wst.xsl.debug.ui/plugin.xml
deleted file mode 100644
index 5c1ee26..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/plugin.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
-
- <extension point="org.eclipse.ui.perspectiveExtensions">
- <perspectiveExtension
- targetID="org.eclipse.wst.xml.perspective">
- <actionSet id="org.eclipse.debug.ui.debugActionSet" />
- <actionSet id="org.eclipse.debug.ui.launchActionSet" />
- <actionSet id="org.eclipse.debug.ui.breakpointActionSet" />
- <actionSet id="org.eclipse.debug.ui.profileActionSet" />
- </perspectiveExtension>
- </extension>
-
- <extension
- point="org.eclipse.debug.ui.launchConfigurationTypeImages">
- <launchConfigurationTypeImage icon="icons/xslt_launch.gif"
- configTypeID="org.eclipse.wst.xsl.launching.launchConfigurationType"
- id="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTypeImage" />
- </extension>
-
- <extension
- point="org.eclipse.debug.ui.launchConfigurationTabGroups">
- <launchConfigurationTabGroup
- class="org.eclipse.wst.xsl.internal.debug.ui.XSLTTabGroup"
- id="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTabGroup.xslt"
- type="org.eclipse.wst.xsl.launching.launchConfigurationType">
- <launchMode description="%launchMode.description.0"
- mode="debug" perspective="org.eclipse.debug.ui.DebugPerspective" />
- <launchMode description="%launchMode.description.1"
- mode="run" perspective="org.eclipse.wst.xml.perspective" />
- </launchConfigurationTabGroup>
- </extension>
-
- <extension point="org.eclipse.ui.contexts">
- <context description="%context.description.0"
- id="org.eclipse.wst.xsl.debug.ui.context" name="%context.name.0"
- parentId="org.eclipse.debug.ui.debugging">
- </context>
- </extension>
-
- <extension point="org.eclipse.debug.ui.debugModelPresentations">
- <debugModelPresentation
- class="org.eclipse.wst.xsl.internal.debug.ui.model.XSLModelPresentation"
- id="org.eclipse.wst.xsl.launching.XSLDebugModel">
- </debugModelPresentation>
- </extension>
-
- <extension point="org.eclipse.debug.ui.launchShortcuts">
- <shortcut
- class="org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchShortcut"
- icon="icons/xslt_launch.gif"
- id="org.eclipse.wst.xsl.debug.ui.launchshortcut"
- label="%shortcut.label.0"
- modes="run, debug, profile">
- <contextualLaunch>
- <enablement>
- <with variable="selection">
- <iterate>
- <adapt
- type="org.eclipse.core.resources.IFile">
- <or>
- <test
- property="org.eclipse.core.resources.contentTypeId"
- value="org.eclipse.core.runtime.xml" />
- <test
- property="org.eclipse.core.resources.contentTypeId"
- value="org.eclipse.wst.xml.core.xmlsource" />
- <test
- property="org.eclipse.core.resources.contentTypeId"
- value="org.eclipse.wst.xml.core.xslsource" />
- </or>
- </adapt>
- </iterate>
- </with>
- </enablement>
- </contextualLaunch>
- <description
- description="%description.description.0"
- mode="run">
- </description>
- <description
- description="%description.description.1"
- mode="debug">
- </description>
- <description
- description="%description.description.2"
- mode="profile">
- </description>
- </shortcut>
- </extension>
-
- <extension point="org.eclipse.debug.ui.debugModelContextBindings">
- <modelContextBinding
- contextId="org.eclipse.wst.xsl.debug.ui.context"
- debugModelId="org.eclipse.wst.xsl.launching.XSLDebugModel">
- </modelContextBinding>
- </extension>
-
- <extension point="org.eclipse.wst.sse.ui.breakpoint">
- <breakpointContribution
- id="org.eclipse.wst.xsl.debug.ui.providers">
- <provider contentTypes="org.eclipse.wst.xml.core.xslsource"
- class="org.eclipse.wst.xsl.internal.debug.ui.breakpoint.XSLBreakpointProvider:*xsl,*xslt"
- id="org.eclipse.wst.xsl.debug.ui.XSLBreakpointProvider" />
- <!-- TODO add this back in when we can do something with breakpoints on XML files -->
-<!-- <provider contentTypes="org.eclipse.wst.xml.core.xslsource,org.eclipse.wst.xml.core.xmlsource,org.eclipse.core.runtime.xml"
- class="org.eclipse.wst.xsl.internal.debug.ui.breakpoint.XSLBreakpointProvider:*xsl,*xslt,*xml"
- id="org.eclipse.wst.xsl.debug.ui.XSLBreakpointProvider" /> -->
- </breakpointContribution>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLDebugPluginImages.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLDebugPluginImages.java
deleted file mode 100755
index afc145b..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLDebugPluginImages.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - bug 223557 - initial API and implementation
- * Holger Voormann - Icons for Processor, Output, and Launch tabs
- *******************************************************************************/
-package org.eclipse.wst.xsl.debug.internal.util;
-
-/**
- * Bundle of most images used by the XSL Debug Plugins
- */
-public class XSLDebugPluginImages {
-
- /**
- * Path to the XSLT Processor Images used for launch configurations
- */
- public static final String IMG_PROCESSOR_TAB = "icons/xslt_processor.gif"; //$NON-NLS-1$
-
- /**
- * Path to the XSLT Output Images used for launch configurations
- */
- public static final String IMG_OUTPUT_TAB = "icons/xslt_output.gif"; //$NON-NLS-1$
-
- /**
- * Path to the XSLT Launch Images used for launch configurations
- */
- public static final String IMG_MAIN_TAB = "icons/xslt_launch.gif"; //$NON-NLS-1$
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLPluginImageHelper.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLPluginImageHelper.java
deleted file mode 100755
index 86843b5..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/internal/util/XSLPluginImageHelper.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - bug 213849 - initial API and implementation
- *
- *******************************************************************************/
-package org.eclipse.wst.xsl.debug.internal.util;
-
-import java.util.HashMap;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.resource.ImageRegistry;
-import org.eclipse.jface.resource.JFaceResources;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-
-
-/**
- * Helper class to handle images provided by this plug-in.
- *
- * NOTE: For internal use only. For images used externally, please use the
- * Shared***ImageHelper class instead.
- *
- * @author david carver based on work by amywu
- */
-public class XSLPluginImageHelper {
- private static XSLPluginImageHelper instance = null;
-
- /**
- * Gets the instance.
- *
- * @return Returns a XMLEditorPluginImageHelper
- */
- public synchronized static XSLPluginImageHelper getInstance() {
- if (instance == null) {
- instance = new XSLPluginImageHelper();
- }
- return instance;
- }
-
- // save a descriptor for each image
- @SuppressWarnings("unchecked")
- private HashMap fImageDescRegistry = null;
- private final String PLUGINID = XSLDebugUIPlugin.PLUGIN_ID;
-
- /**
- * Creates an image from the given resource and adds the image to the
- * image registry.
- *
- * @param resource
- * @return Image
- */
- private Image createImage(String resource) {
- ImageDescriptor desc = getImageDescriptor(resource);
- Image image = null;
-
- if (desc != null) {
- image = desc.createImage();
- // dont add the missing image descriptor image to the image
- // registry
- if (!desc.equals(ImageDescriptor.getMissingImageDescriptor())) {
- getImageRegistry().put(resource, image);
- }
- }
- return image;
- }
-
- /**
- * Creates an image descriptor from the given imageFilePath and adds the
- * image descriptor to the image descriptor registry. If an image
- * descriptor could not be created, the default "missing" image descriptor
- * is returned but not added to the image descriptor registry.
- *
- * @param imageFilePath
- * @return ImageDescriptor image descriptor for imageFilePath or default
- * "missing" image descriptor if resource could not be found
- */
- @SuppressWarnings("unchecked")
- private ImageDescriptor createImageDescriptor(String imageFilePath) {
- ImageDescriptor imageDescriptor = AbstractUIPlugin.imageDescriptorFromPlugin(PLUGINID, imageFilePath);
- if (imageDescriptor != null) {
- getImageDescriptorRegistry().put(imageFilePath, imageDescriptor);
- }
- else {
- imageDescriptor = ImageDescriptor.getMissingImageDescriptor();
- }
-
- return imageDescriptor;
- }
-
- /**
- * Retrieves the image associated with resource from the image registry.
- * If the image cannot be retrieved, attempt to find and load the image at
- * the location specified in resource.
- *
- * @param resource
- * the image to retrieve
- * @return Image the image associated with resource or null if one could
- * not be found
- */
- public Image getImage(String resource) {
- Image image = getImageRegistry().get(resource);
- if (image == null) {
- // create an image
- image = createImage(resource);
- }
- return image;
- }
-
- /**
- * Retrieves the image descriptor associated with resource from the image
- * descriptor registry. If the image descriptor cannot be retrieved,
- * attempt to find and load the image descriptor at the location specified
- * in resource.
- *
- * @param resource
- * the image descriptor to retrieve
- * @return ImageDescriptor the image descriptor assocated with resource or
- * the default "missing" image descriptor if one could not be
- * found
- */
- public ImageDescriptor getImageDescriptor(String resource) {
- ImageDescriptor imageDescriptor = null;
- Object o = getImageDescriptorRegistry().get(resource);
- if (o == null) {
- // create a descriptor
- imageDescriptor = createImageDescriptor(resource);
- }
- else {
- imageDescriptor = (ImageDescriptor) o;
- }
- return imageDescriptor;
- }
-
- /**
- * Returns the image descriptor registry for this plugin.
- *
- * @return HashMap - image descriptor registry for this plugin
- */
- @SuppressWarnings("unchecked")
- private HashMap getImageDescriptorRegistry() {
- if (fImageDescRegistry == null) {
- fImageDescRegistry = new HashMap();
- }
- return fImageDescRegistry;
- }
-
- /**
- * Returns the image registry for this plugin.
- *
- * @return ImageRegistry - image registry for this plugin
- */
- private ImageRegistry getImageRegistry() {
- return JFaceResources.getImageRegistry();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/ui/Messages.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/ui/Messages.java
deleted file mode 100644
index b5cf0a6..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/ui/Messages.java
+++ /dev/null
@@ -1,254 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.debug.ui;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-/**
- * Messages for the debug.ui package.
- *
- * @author Doug Satchwell
- */
-public class Messages
-{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.debug.ui.messages"; //$NON-NLS-1$
-
- /**
- * A name for the remove action.
- */
- public static String RemoveAction_Text;
-
- /**
- * A name for the <code>AddWorkspaceFileAction</code> action.
- */
- public static String AddWorkspaceFileAction_Text;
-
- /**
- * A name for the <code>AddExternalFileAction</code> action.
- */
- public static String AddExternalFileAction_Text;
-
- /**
- * A name for the <code>MoveDownAction</code> action.
- */
- public static String MoveDownAction_Text;
-
- /**
- * A name for the <code>MoveUpAction</code> action.
- */
- public static String MoveUpAction_Text;
-
- /**
- * A heading for the <code>AddExternalFileAction</code> dialog.
- */
- public static String AddExternalFileAction_Selection_3;
-
- /**
- * A message for the <code>AddWorkspaceFileAction</code> dialog.
- */
- public static String AddWorkspaceFileAction_DialogMessage;
-
- /**
- * A title for the <code>AddWorkspaceFileAction</code> dialog.
- */
- public static String AddWorkspaceFileAction_DialogTitle;
-
- /**
- * A name for the <code>AddParameterAction</code> action.
- */
- public static String AddParameterAction;
-
- /**
- * A name for the <code>RemoveParameterAction</code> action.
- */
- public static String RemoveParameterAction;
-
- /**
- * A label for the Variables button.
- */
- public static String VariablesFieldButton_Text;
-
- /**
- * A title for the <code>AddParameterAction</code> dialog.
- */
- public static String AddParameterAction_Dialog;
-
- /**
- * A label for the <code>AddParameterAction</code> name text box.
- */
- public static String AddParameterAction_Dialog_Name;
-
- /**
- * A label for the <code>AddParameterAction</code> type combo.
- */
- public static String AddParameterAction_Dialog_Type;
-
- /**
- * A label for the <code>AddParameterAction</code> value text box.
- */
- public static String AddParameterAction_Dialog_Value;
-
- public static String XSLBreakpointProvider_0;
-
- public static String StylesheetEntryLabelProvider_Invalid_path;
-
- public static String TransformsBlock_0;
-
- public static String TransformsBlock_Name;
-
- public static String InputFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String InputFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String InputFileBlock_GROUP_NAME;
-
- public static String InputFileBlock_DEFAULT_RADIO;
-
- public static String InputFileBlock_OTHER_RADIO;
-
- public static String InputFileBlock_DIALOG_MESSAGE;
-
- public static String InputFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String InputFileBlock_VARIABLES_BUTTON;
-
- public static String InputFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String InputFileBlock_WORKSPACE_BUTTON;
-
- public static String InputFileBlock_Name;
-
- public static String InputFileBlock_Exception_occurred_reading_configuration;
-
- public static String InputFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String XSLMainTab_TabName;
-
- public static String TransformsBlock_ParametersLabel;
-
- public static String TransformsBlock_StylesheetsLabel;
-
- public static String ParametersBlock_0;
- public static String ParametersBlock_1;
- public static String ParametersBlock_10;
- public static String ParametersBlock_11;
- public static String ParametersBlock_2;
- public static String ParametersBlock_3;
- public static String ParametersBlock_4;
- public static String ParametersBlock_5;
- public static String ParametersBlock_6;
- public static String ParametersBlock_7;
- public static String ParametersBlock_8;
- public static String ParametersBlock_9;
-
- public static String OutputPropertiesBlock_0;
- public static String OutputPropertiesBlock_1;
- public static String OutputPropertiesBlock_13;
- public static String OutputPropertiesBlock_3;
- public static String OutputPropertiesBlock_4;
- public static String OutputPropertiesBlock_5;
- public static String OutputPropertiesBlock_7;
- public static String OutputPropertiesBlock_8;
- public static String OutputPropertiesBlock_9;
- public static String OutputTab_0;
- public static String OutputTab_1;
-
- public static String OutputTypeBlock_Group_Name;
-
- public static String OutputFileBlock_0;
-
- public static String OutputFileBlock_7;
-
- public static String OutputFileBlock_8;
-
- public static String OutputFileBlock_9;
-
- public static String OutputFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String OutputFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String OutputFileBlock_GROUP_NAME;
-
- public static String OutputFileBlock_DEFAULT_RADIO;
-
- public static String OutputFileBlock_OTHER_RADIO;
-
- public static String OutputFileBlock_DIALOG_MESSAGE;
-
- public static String OutputFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String OutputFileBlock_VARIABLES_BUTTON;
-
- public static String OutputFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String OutputFileBlock_WORKSPACE_BUTTON;
-
- public static String OutputFileBlock_Name;
-
- public static String OutputFileBlock_Exception_occurred_reading_configuration;
-
- public static String OutputFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String OutputFileBlock_Exception_occurred_saving_configuration;
-
- public static String OutputFOFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String OutputFOFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String OutputFOFileBlock_GROUP_NAME;
-
- public static String OutputFOFileBlock_DEFAULT_RADIO;
-
- public static String OutputFOFileBlock_OTHER_RADIO;
-
- public static String OutputFOFileBlock_DIALOG_MESSAGE;
-
- public static String OutputFOFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String OutputFOFileBlock_VARIABLES_BUTTON;
-
- public static String OutputFOFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String OutputFOFileBlock_WORKSPACE_BUTTON;
-
- public static String OutputFOFileBlock_Name;
-
- public static String OutputFOFileBlock_Exception_occurred_reading_configuration;
-
- public static String OutputFOFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String OutputFOFileBlock_Exception_occurred_saving_configuration;
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
-
- private Messages()
- {
- }
-
- /**
- * Get the message for the given key.
- *
- * @param key the message key
- * @return the message
- */
- public static String getString(String key)
- {
- try
- {
- return RESOURCE_BUNDLE.getString(key);
- }
- catch (MissingResourceException e)
- {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/ui/messages.properties b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/ui/messages.properties
deleted file mode 100644
index 528f406..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/debug/ui/messages.properties
+++ /dev/null
@@ -1,61 +0,0 @@
-ResourceSelectionBlock.0=File:
-XSLLaunchShortcut.0=Select an input file for the transformation
-XSLLaunchShortcut.1=Input File
-XSLLaunchShortcut.2=Select a Launch Configuration
-XSLLaunchShortcut.6=Error
-#Action Messages
-RemoveAction_Text=Remove
-AddWorkspaceFileAction_Text=Add Files
-AddExternalFileAction_Text=Add External Files
-MoveDownAction_Text=Move Down
-MoveUpAction_Text=Move Up
-AddExternalFileAction_Selection_3=
-AddWorkspaceFileAction_DialogMessage=Choose Stylesheet
-AddWorkspaceFileAction_DialogTitle=
-AddParameterAction=Add Parameter
-RemoveParameterAction=Remove Parameter
-VariablesFieldButton_Text=Variables...
-AddParameterAction_Dialog=Add XSLT Parameter
-AddParameterAction_Dialog_Name=Name:
-AddParameterAction_Dialog_Type=Type:
-AddParameterAction_Dialog_Value=Value:
-#Breakpoint
-XSLBreakpointProvider_0=unsupported input type
-
-StylesheetEntryLabelProvider_Invalid_path=Invalid path
-XSLMainTab_TabName=Main
-
-TransformsBlock_0=TransformsBlock
-TransformsBlock_Name=Transformation Pipeline
-TransformsBlock_ParametersLabel=Parameters for stylesheet:
-TransformsBlock_StylesheetsLabel=Stylesheets:
-
-InputFileBlock_DIRECTORY_NOT_SPECIFIED=Input file not specified
-InputFileBlock_DIRECTORY_DOES_NOT_EXIST=Input file does not exist
-InputFileBlock_GROUP_NAME=XML Input File
-InputFileBlock_DEFAULT_RADIO=Use default
-InputFileBlock_OTHER_RADIO=Other
-InputFileBlock_DIALOG_MESSAGE=Select an external input file
-InputFileBlock_WORKSPACE_DIALOG_MESSAGE=Select an input file from the workspace
-InputFileBlock_VARIABLES_BUTTON=Variables...
-InputFileBlock_FILE_SYSTEM_BUTTON=File System...
-InputFileBlock_WORKSPACE_BUTTON=Workspace...
-InputFileBlock_Name=XML Input File
-InputFileBlock_Exception_occurred_reading_configuration=Exception occurred reading configuration
-InputFileBlock_WORKSPACE_DIALOG_TITLE=File Selection
-
-RemoveAction_Text=Remove
-AddWorkspaceFileAction_Text=Add Files
-AddExternalFileAction_Text=Add External Files
-MoveDownAction_Text=Move Down
-MoveUpAction_Text=Move Up
-AddExternalFileAction_Selection_3=
-AddWorkspaceFileAction_DialogMessage=Choose Stylesheet
-AddWorkspaceFileAction_DialogTitle=
-AddParameterAction=Add Parameter
-RemoveParameterAction=Remove Parameter
-VariablesFieldButton_Text=Variables...
-AddParameterAction_Dialog=Add XSLT Parameter
-AddParameterAction_Dialog_Name=Name:
-AddParameterAction_Dialog_Type=Type:
-AddParameterAction_Dialog_Value=Value: \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/AbstractTableBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/AbstractTableBlock.java
deleted file mode 100644
index 9eb4d8e..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/AbstractTableBlock.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.swt.widgets.Table;
-
-/**
- * An <code>AbstractLaunchConfigurationTab</code> specialised for blocks that
- * contain a table. This abstract class conveniently saves and restores the table's
- * column settings.
- *
- * @author Doug Satchwell
- */
-public abstract class AbstractTableBlock extends AbstractLaunchConfigurationTab
-{
- private int fSortColumn;
-
- protected abstract Table getTable();
-
- protected abstract IDialogSettings getDialogSettings();
-
- protected abstract String getQualifier();
-
- protected void setSortColumn(int column)
- {
- fSortColumn = column;
- }
-
- /**
- * Persist table settings into the give dialog store, prefixed with the
- * given key.
- */
- public void saveColumnSettings()
- {
- int columnCount = getTable().getColumnCount();
- for (int i = 0; i < columnCount; i++)
- {
- getDialogSettings().put(getQualifier() + ".columnWidth" + i, getTable().getColumn(i).getWidth()); //$NON-NLS-1$
- }
- getDialogSettings().put(getQualifier() + ".sortColumn", fSortColumn); //$NON-NLS-1$
- }
-
- /**
- * Restore table settings from the given dialog store using the given key.
- */
- public void restoreColumnSettings()
- {
- getTable().layout(true);
- restoreColumnWidths(getDialogSettings(), getQualifier());
- int col = 0;
- try
- {
- col = getDialogSettings().getInt(getQualifier() + ".sortColumn"); //$NON-NLS-1$
- }
- catch (NumberFormatException e)
- {
- col = 1;
- }
- setSortColumn(col);
- }
-
- private void restoreColumnWidths(IDialogSettings settings, String qualifier)
- {
- int columnCount = getTable().getColumnCount();
- for (int i = 0; i < columnCount; i++)
- {
- int width = -1;
- try
- {
- width = settings.getInt(qualifier + ".columnWidth" + i); //$NON-NLS-1$
- }
- catch (NumberFormatException e)
- {
- }
-
- if (width > 0)
- getTable().getColumn(i).setWidth(width);
- }
- }
-
- @Override
- public void dispose()
- {
- if (getTable() != null && !getTable().isDisposed())
- saveColumnSettings();
- super.dispose();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/ResourceSelectionBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/ResourceSelectionBlock.java
deleted file mode 100644
index 183c817..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/ResourceSelectionBlock.java
+++ /dev/null
@@ -1,572 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import java.io.File;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.variables.IStringVariableManager;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.debug.ui.StringVariableSelectionDialog;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.DirectoryDialog;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
-import org.eclipse.ui.dialogs.ISelectionStatusValidator;
-import org.eclipse.ui.model.WorkbenchContentProvider;
-import org.eclipse.ui.model.WorkbenchLabelProvider;
-import org.eclipse.ui.views.navigator.ResourceComparator;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-
-/**
- * A block that shows a text box with buttons for browsing workspace or the filesystem
- * in order to populate the text box with a file path.
- *
- * @author Doug Satchwell
- */
-public abstract class ResourceSelectionBlock extends AbstractLaunchConfigurationTab
-{
- protected static final int ERROR_DIRECTORY_NOT_SPECIFIED = 1;
- protected static final int ERROR_DIRECTORY_DOES_NOT_EXIST = 2;
- protected static final int GROUP_NAME = 3;
- protected static final int USE_DEFAULT_RADIO = 4;
- protected static final int USE_OTHER_RADIO = 5;
- protected static final int DIRECTORY_DIALOG_MESSAGE = 6;
- protected static final int WORKSPACE_DIALOG_MESSAGE = 7;
- protected static final int VARIABLES_BUTTON = 8;
- protected static final int FILE_SYSTEM_BUTTON = 9;
- protected static final int WORKSPACE_BUTTON = 10;
- protected static final int WORKSPACE_DIALOG_TITLE = 11;
-
- protected Button fWorkspaceButton;
- protected Button fFileSystemButton;
- protected Button fVariablesButton;
- protected Button useDefaultCheckButton;
- protected Text resourceText;
- protected WidgetListener widgetListener = new WidgetListener();
- private ILaunchConfiguration fLaunchConfiguration;
- protected final boolean showDefault;
- private final int resourceType;
- private final boolean mustExist;
- protected boolean required;
- protected String defaultResource;
- protected String resource;
- protected String fileLabel = Messages.getString("ResourceSelectionBlock.0"); //$NON-NLS-1$
-
- private final ISelectionStatusValidator validator = new ISelectionStatusValidator()
- {
- public IStatus validate(Object[] selection)
- {
- if (selection.length == 0)
- {
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- for (int i = 0; i < selection.length; i++)
- {
- if (resourceType == IResource.FOLDER && !(selection[i] instanceof IContainer))
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- else if (resourceType == IResource.FILE && !(selection[i] instanceof IFile))
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- return new Status(IStatus.OK, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- };
-
- class WidgetListener extends SelectionAdapter implements ModifyListener
- {
- public void modifyText(ModifyEvent e)
- {
- textModified();
- updateLaunchConfigurationDialog();
- }
-
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- Object source = e.getSource();
- if (source == fWorkspaceButton)
- {
- handleWorkspaceResourceBrowseButtonSelected();
- }
- else if (source == fFileSystemButton)
- {
- handleExternalResourceBrowseButtonSelected();
- }
- else if (source == fVariablesButton)
- {
- handleResourceVariablesButtonSelected();
- }
- else if (source == useDefaultCheckButton)
- {
- updateResourceText(useDefaultCheckButton.getSelection());
- }
- }
- }
-
- /**
- * Same as <code>new ResourceSelectionBlock(true)</code>
- */
- public ResourceSelectionBlock()
- {
- this(true);
- }
-
- /**
- * Same as <code>new ResourceSelectionBlock(IResource.FOLDER,showDefault)</code>
- *
- * @param showDefault true if this should have a 'Show Default' button
- */
- public ResourceSelectionBlock(boolean showDefault)
- {
- this(IResource.FOLDER, showDefault);
- }
-
- /**
- * Same as <code>new ResourceSelectionBlock(resourceType,showDefault,true)</code>
- *
- * @param resourceType the type of resource to select - IResource.FOLDER or IResource.FILE
- * @param showDefault true if this should have a 'Show Default' button
- */
- public ResourceSelectionBlock(int resourceType, boolean showDefault)
- {
- this(resourceType, showDefault, true);
- }
-
- /**
- * Same as <code>new ResourceSelectionBlock(resourceType,showDefault,required,true)</code>
- *
- * @param resourceType the type of resource to select - IResource.FOLDER or IResource.FILE
- * @param showDefault true if this should have a 'Show Default' button
- * @param required true if a blank text box is invalid
- */
- public ResourceSelectionBlock(int resourceType, boolean showDefault, boolean required)
- {
- this(resourceType, showDefault, required, true);
- }
-
- /**
- * Create a new instance of this.
- *
- * @param resourceType the type of resource to select - IResource.FOLDER or IResource.FILE
- * @param showDefault true if this should have a 'Show Default' button
- * @param required true if a blank text box is invalid
- * @param mustExist true of the selected resource must already exist
- */
- public ResourceSelectionBlock(int resourceType, boolean showDefault, boolean required, boolean mustExist)
- {
- super();
- this.showDefault = showDefault;
- this.resourceType = resourceType;
- this.required = required;
- this.mustExist = mustExist;
- }
-
- public void createControl(Composite parent)
- {
- Composite group = createContainer(parent);
- setControl(group);
- createContents(group);
- }
-
- protected Composite createContainer(Composite parent)
- {
- Group group = new Group(parent, SWT.NONE);
- group.setText(getMessage(GROUP_NAME));
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp...
- GridLayout groupLayout = new GridLayout();
- groupLayout.numColumns = 2;
- groupLayout.makeColumnsEqualWidth = false;
- group.setLayout(groupLayout);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- group.setLayoutData(gd);
- group.setFont(parent.getFont());
- return group;
- }
-
- protected void createContents(Composite parent)
- {
- createCheckboxAndText(parent);
- createButtons(parent);
- }
-
- protected void createCheckboxAndText(Composite parent)
- {
- if (showDefault)
- {
- useDefaultCheckButton = createCheckButton(parent, getMessage(USE_DEFAULT_RADIO));
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 2;
- useDefaultCheckButton.setLayoutData(gd);
- useDefaultCheckButton.addSelectionListener(widgetListener);
- }
-
- Composite specificFileComp = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
- layout.marginWidth = 0;
- if (showDefault)
- layout.marginLeft = 20;
- else
- layout.marginLeft = 0;
- layout.marginHeight = 0;
- specificFileComp.setLayout(layout);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = 2;
- specificFileComp.setLayoutData(gd);
-
- if (showDefault)
- {
- Label label = new Label(specificFileComp, SWT.NONE);
- label.setText(fileLabel);
- }
-
- resourceText = new Text(specificFileComp, SWT.SINGLE | SWT.BORDER);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = showDefault ? 1 : 2;
- resourceText.setLayoutData(gd);
- resourceText.setFont(parent.getFont());
- resourceText.addModifyListener(widgetListener);
- }
-
- protected void createButtons(Composite parent)
- {
- // filler
- new Label(parent, SWT.NONE);
-
- Composite buttonComp = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(3, false);
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- buttonComp.setLayout(layout);
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
- gd.horizontalSpan = 1;
- buttonComp.setLayoutData(gd);
- buttonComp.setFont(parent.getFont());
-
- fWorkspaceButton = createPushButton(buttonComp, getMessage(WORKSPACE_BUTTON), null);
- fWorkspaceButton.addSelectionListener(widgetListener);
-
- fFileSystemButton = createPushButton(buttonComp, getMessage(FILE_SYSTEM_BUTTON), null);
- fFileSystemButton.addSelectionListener(widgetListener);
-
- fVariablesButton = createPushButton(buttonComp, getMessage(VARIABLES_BUTTON), null);
- fVariablesButton.addSelectionListener(widgetListener);
- }
-
- protected void updateResourceText(boolean useDefault)
- {
- if (useDefault)
- {
- resourceText.setText(defaultResource == null ? "" : defaultResource); //$NON-NLS-1$
- }
- else
- {
- resourceText.setText(resource == null ? "" : resource); //$NON-NLS-1$
- }
- resourceText.setEnabled(!useDefault);
- fFileSystemButton.setEnabled(!useDefault);
- fVariablesButton.setEnabled(!useDefault);
- fWorkspaceButton.setEnabled(!useDefault);
- }
-
- @Override
- public void dispose()
- {
- }
-
- protected void handleExternalResourceBrowseButtonSelected()
- {
- String currentWorkingDir = getText();
- String selected = null;
- if (resourceType == IResource.FOLDER)
- {
- DirectoryDialog dialog = new DirectoryDialog(getShell());
- dialog.setMessage(getMessage(DIRECTORY_DIALOG_MESSAGE));
- if (!currentWorkingDir.trim().equals("")) //$NON-NLS-1$
- {
- File path = new File(currentWorkingDir);
- if (path.exists())
- {
- dialog.setFilterPath(currentWorkingDir);
- }
- }
- selected = dialog.open();
- }
- else
- {
- FileDialog dialog = new FileDialog(getShell());
- if (!currentWorkingDir.trim().equals("")) //$NON-NLS-1$
- {
- File path = new File(currentWorkingDir);
- if (path.exists())
- {
- dialog.setFilterPath(currentWorkingDir);
- }
- }
- String[] fileExtensions = getFileExtensions();
- if (fileExtensions != null)
- {
- String[] filterExtensions = new String[fileExtensions.length];
- for (int i = 0; i < fileExtensions.length; i++)
- {
- String ext = fileExtensions[i];
- filterExtensions[i] = "*." + ext; //$NON-NLS-1$
- }
- dialog.setFilterExtensions(filterExtensions);
- }
- selected = dialog.open();
- }
- if (selected != null)
- {
- resourceText.setText(selected);
- }
- }
-
- protected String[] getFileExtensions()
- {
- return null;
- }
-
- protected void handleWorkspaceResourceBrowseButtonSelected()
- {
- IPath path = openWorkspaceResourceDialog();
- if (path != null)
- setText("${workspace_loc:" + path.toString() + "}"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- protected IPath openWorkspaceResourceDialog()
- {
- IResource currentResource = getResource();
- ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
- dialog.setTitle(getMessage(WORKSPACE_DIALOG_TITLE));
- dialog.setMessage(getMessage(WORKSPACE_DIALOG_MESSAGE));
- dialog.setValidator(validator);
- dialog.addFilter(new ViewerFilter()
- {
- @Override
- public boolean select(Viewer viewer, Object parentElement, Object element)
- {
- if (element instanceof IContainer)
- return true;
- if (resourceType != IResource.FILE)
- return false;
- IFile file = (IFile) element;
- String[] extensions = getFileExtensions();
- if (extensions == null)
- return true;
- String fileExt = file.getFileExtension();
- if (fileExt != null)
- {
- for (String ext : extensions)
- {
- if (fileExt.equalsIgnoreCase(ext))
- return true;
- }
- }
- return false;
- }
- });
- ViewerFilter filter = getResourceFilter();
- if (filter != null)
- dialog.addFilter(filter);
- dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
- dialog.setInitialSelection(currentResource);
- dialog.setComparator(new ResourceComparator(ResourceComparator.NAME));
- dialog.setAllowMultiple(false);
-
- if (dialog.open() == Window.OK)
- {
- Object[] elements = dialog.getResult();
- if (elements.length > 0)
- return ((IResource) elements[0]).getFullPath();
- }
- return null;
- }
-
- protected ViewerFilter getResourceFilter()
- {
- return null;
- }
-
- /**
- * Returns the selected workspace container,or <code>null</code>
- */
- protected IResource getResource()
- {
- String path = getText();
- if (path.length() > 0)
- {
- IResource res = null;
- IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
- if (path.startsWith("${workspace_loc:")) //$NON-NLS-1$
- {
- IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
- try
- {
- path = manager.performStringSubstitution(path, false);
- if (resourceType == IResource.FOLDER)
- {
- IContainer[] containers = root.findContainersForLocation(new Path(path));
- if (containers.length > 0)
- {
- res = containers[0];
- }
- }
- else if (resourceType == IResource.FILE)
- {
- IFile[] files = root.findFilesForLocation(new Path(path));
- if (files.length > 0)
- {
- res = files[0];
- }
- }
- }
- catch (CoreException e)
- {
- }
- }
- else
- {
- res = root.findMember(path);
- }
- return res;
- }
- return null;
- }
-
- protected void handleResourceVariablesButtonSelected()
- {
- StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
- dialog.open();
- String variableText = dialog.getVariableExpression();
- if (variableText != null)
- {
- resourceText.insert(variableText);
- }
- }
-
- protected abstract void setDefaultResource();
-
- @Override
- public boolean isValid(ILaunchConfiguration config)
- {
- setErrorMessage(null);
- setMessage(null);
- // if variables are present, we cannot resolve the directory
- String workingDirPath = getText();
- if (workingDirPath.indexOf("${") >= 0) //$NON-NLS-1$
- {
- IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
- try
- {
- manager.validateStringVariables(workingDirPath);
- if (mustExist)
- {
- String path = manager.performStringSubstitution(workingDirPath);
- validateResource(path);
- }
- }
- catch (CoreException e)
- {
- setErrorMessage(e.getMessage());
- return false;
- }
- }
- else if (mustExist && workingDirPath.length() > 0)
- {
- return validateResource(workingDirPath);
- }
- else if (required && workingDirPath.length() == 0)
- {
- setErrorMessage(getMessage(ERROR_DIRECTORY_NOT_SPECIFIED));
- }
- return true;
- }
-
- protected boolean validateResource(String workingDirPath)
- {
- if (resourceType == IResource.FOLDER)
- {
- IContainer container = (IContainer) getResource();
- if (container == null)
- {
- File dir = new File(workingDirPath);
- if (dir.isDirectory())
- {
- return true;
- }
- }
- else
- return true;
- }
- else if (resourceType == IResource.FILE)
- {
- File file = new File(workingDirPath);
- if (file.isFile())
- {
- return true;
- }
- }
- setErrorMessage(getMessage(ERROR_DIRECTORY_DOES_NOT_EXIST));
- return false;
- }
-
- protected abstract String getMessage(int type);
-
- protected void textModified()
- {
- }
-
- protected String getText()
- {
- return resourceText.getText().trim();
- }
-
- protected void setText(String text)
- {
- resourceText.setText(text);
- }
-
- protected void setLaunchConfiguration(ILaunchConfiguration config)
- {
- fLaunchConfiguration = config;
- }
-
- protected ILaunchConfiguration getLaunchConfiguration()
- {
- return fLaunchConfiguration;
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIConstants.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIConstants.java
deleted file mode 100644
index be5be6a..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIConstants.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-/**
- * Constants for the XSL Debug UI.
- *
- * @author Doug Satchwell
- */
-public class XSLDebugUIConstants
-{
- private static final String PREFIX = XSLDebugUIPlugin.PLUGIN_ID + '.';
- /**
- * Constant used to store column setting preferences for the <code>InstalledProcessorsBlock</code>
- */
- public static final String PROCESSOR_DETAILS_DIALOG = PREFIX + "PROCESSOR_DETAILS_DIALOG"; //$NON-NLS-1$
- /**
- * Constant used to store column setting preferences for the <code>ParametersBlock</code>
- */
- public static final String MAIN_PARAMATERS_BLOCK = PREFIX + "MAIN_PARAMATERS_BLOCK"; //$NON-NLS-1$
- /**
- * Constant used to store column setting preferences for the <code>TransformsBlock</code>
- */
- public static final String MAIN_TRANSFORMS_BLOCK = PREFIX + "MAIN_TRANSFORMS_BLOCK"; //$NON-NLS-1$
- /**
- * Constant used to store column setting preferences for the <code>OutputBlock</code>
- */
- public static final String OUTPUT_BLOCK = PREFIX + "OUTPUT_BLOCK"; //$NON-NLS-1$
- /**
- * The id of the XSL editor
- */
- public static final String XSL_EDITOR_ID = "org.eclipse.wst.xsl.ui.XSLEditor"; //$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUILaunchListener.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUILaunchListener.java
deleted file mode 100644
index b4cba56..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUILaunchListener.java
+++ /dev/null
@@ -1,151 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import java.io.File;
-
-import org.eclipse.core.commands.common.CommandException;
-import org.eclipse.core.filesystem.EFS;
-import org.eclipse.core.filesystem.IFileStore;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchesListener2;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.handlers.IHandlerService;
-import org.eclipse.ui.ide.IDE;
-import org.eclipse.wst.xsl.launching.config.BaseLaunchHelper;
-
-/**
- * A listener to XSL launches. When an XSL launch is terminated, this performs the UI parts of the
- * XSL launching - such as open the editor on the output file, and format it.
- *
- * @author Doug Satchwell
- */
-public class XSLDebugUILaunchListener implements ILaunchesListener2
-{
- /**
- * Starts the launch listening
- */
- public void start()
- {
- DebugPlugin.getDefault().getLaunchManager().addLaunchListener(this);
- }
-
- /**
- * Stops the launch listening
- */
- public void stop()
- {
- DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(this);
- }
-
- public void launchesTerminated(ILaunch[] launches)
- {
- for (ILaunch launch : launches)
- {
- ILaunchConfigurationType configType = null;
- try
- {
- configType = launch.getLaunchConfiguration().getType();
- }
- catch (CoreException e)
- {
- // do nothing
- }
- if (configType != null && "org.eclipse.wst.xsl.launching.launchConfigurationType".equals(configType.getIdentifier()))
- {
- try
- {
- BaseLaunchHelper launchHelper = new BaseLaunchHelper(launch.getLaunchConfiguration());
- File file = launchHelper.getTarget();
- IFile ifile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(file.getAbsolutePath()));
- if (ifile != null)
- {// refresh this workspace file..
- try
- {
- ifile.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
- openFileIfRequired(launchHelper);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
- }
- }
-
- public void launchesAdded(ILaunch[] launches)
- {
- // do nothing
- }
-
- public void launchesChanged(ILaunch[] launches)
- {
- // do nothing
- }
-
- public void launchesRemoved(ILaunch[] launches)
- {
- // do nothing
- }
-
- private void openFileIfRequired(final BaseLaunchHelper launchHelper)
- {
- if (launchHelper.getOpenFileOnCompletion())
- {
- PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable()
- {
- public void run()
- {
- try
- {
- // Open editor on new file.
- IWorkbenchWindow dw = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- File file = launchHelper.getTarget();
- Path path = new Path(file.getAbsolutePath());
- IFileStore filestore = EFS.getLocalFileSystem().getStore(path);
- IDE.openEditorOnFileStore(dw.getActivePage(), filestore);
-
- if (launchHelper.getFormatFileOnCompletion())
- {
- // format the editor contents
- IHandlerService p = (IHandlerService)PlatformUI.getWorkbench().getService(IHandlerService.class);
- p.executeCommand("org.eclipse.wst.sse.ui.format.document", null);
- }
- }
- catch (PartInitException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (CommandException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
- });
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIPlugin.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIPlugin.java
deleted file mode 100644
index 9f96868..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLDebugUIPlugin.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.preference.IPreferenceNode;
-import org.eclipse.jface.preference.IPreferencePage;
-import org.eclipse.jface.preference.PreferenceDialog;
-import org.eclipse.jface.preference.PreferenceManager;
-import org.eclipse.jface.preference.PreferenceNode;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.custom.BusyIndicator;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The XSL Debug UI plugin.
- *
- * @author Doug Satchwell
- */
-public class XSLDebugUIPlugin extends AbstractUIPlugin
-{
- /**
- * The id of this.
- */
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.debug.ui"; //$NON-NLS-1$
-
- // The shared instance
- private static XSLDebugUIPlugin plugin;
-
- private XSLDebugUILaunchListener launchListener = new XSLDebugUILaunchListener();
-
- /**
- * Create a new instance of this.
- */
- public XSLDebugUIPlugin()
- {
- plugin = this;
- }
-
- @Override
- public void start(BundleContext context) throws Exception
- {
- super.start(context);
- launchListener.start();
- }
-
- @Override
- public void stop(BundleContext context) throws Exception
- {
- plugin = null;
- launchListener.stop();
- super.stop(context);
- }
-
- /**
- * Get the singleton instance of this.
- *
- * @return the singleton
- */
- public static XSLDebugUIPlugin getDefault()
- {
- return plugin;
- }
-
- /**
- * Get an ImageDescriptor from a path in this bundle.
- *
- * @param path the path to the image
- * @return the ImageDescriptor
- */
- public static ImageDescriptor getImageDescriptor(String path)
- {
- return imageDescriptorFromPlugin(PLUGIN_ID, path);
- }
-
- /**
- * Convenience method for opening a given preference page.
- *
- * @param id the id of the preference page
- * @param page the preference page to show
- */
- public static void showPreferencePage(String id, IPreferencePage page)
- {
- final IPreferenceNode targetNode = new PreferenceNode(id, page);
-
- PreferenceManager manager = new PreferenceManager();
- manager.addToRoot(targetNode);
- final PreferenceDialog dialog = new PreferenceDialog(XSLDebugUIPlugin.getActiveWorkbenchShell(), manager);
- final boolean[] result = new boolean[]
- { false };
- BusyIndicator.showWhile(XSLDebugUIPlugin.getStandardDisplay(), new Runnable()
- {
- public void run()
- {
- dialog.create();
- dialog.setMessage(targetNode.getLabelText());
- result[0] = (dialog.open() == Window.OK);
- }
- });
- }
-
- /**
- * Get the current Display if possible, or else the default Display.
- *
- * @return the current or default Display
- */
- public static Display getStandardDisplay()
- {
- Display display;
- display = Display.getCurrent();
- if (display == null)
- display = Display.getDefault();
- return display;
- }
-
- /**
- * Get the active workbench window from the workbench.
- *
- * @return the active workbench window
- */
- public static IWorkbenchWindow getActiveWorkbenchWindow()
- {
- return getDefault().getWorkbench().getActiveWorkbenchWindow();
- }
-
- /**
- * Get the shell of the active workbench window.
- *
- * @return the active workbench shell
- */
- public static Shell getActiveWorkbenchShell()
- {
- IWorkbenchWindow window = getActiveWorkbenchWindow();
- if (window != null)
- {
- return window.getShell();
- }
- return null;
- }
-
- /**
- * Get the active page of the active workbench window.
- *
- * @return the active page
- */
- public static IWorkbenchPage getActivePage()
- {
- IWorkbenchWindow w = getActiveWorkbenchWindow();
- if (w != null)
- {
- return w.getActivePage();
- }
- return null;
- }
-
- /**
- * Log the given exception by creating a new Status.
- *
- * @param e the exception to log
- */
- public static void log(Exception e)
- {
- getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, 0, "", e)); //$NON-NLS-1$
- }
-
- /**
- * Log the given core exception.
- *
- * @param e the exception to log
- */
- public static void log(CoreException e)
- {
- getDefault().getLog().log(e.getStatus());
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchConfigurationTab.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchConfigurationTab.java
deleted file mode 100644
index 5f59892..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchConfigurationTab.java
+++ /dev/null
@@ -1,140 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * The base class for XSL launch configuration tabs which allows a number of 'blocks' to be added.
- * Each block must itself fully implement <code>ILaunchConfigurationTab</code>.
- *
- * @author Doug Satchwell
- */
-public abstract class XSLLaunchConfigurationTab extends AbstractLaunchConfigurationTab
-{
- private ILaunchConfigurationTab[] blocks;
-
- protected void setBlocks(ILaunchConfigurationTab[] blocks)
- {
- this.blocks = blocks;
- }
-
- public void createControl(Composite parent)
- {
- Composite comp = new Composite(parent, SWT.NONE);
- comp.setFont(parent.getFont());
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(),
- GridLayout layout = new GridLayout();
- layout.numColumns = 1;
- comp.setLayout(layout);
- setControl(comp);
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- for (ILaunchConfigurationTab element : blocks)
- element.setDefaults(configuration);
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- for (ILaunchConfigurationTab element : blocks)
- element.initializeFrom(configuration);
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- for (ILaunchConfigurationTab element : blocks)
- element.performApply(configuration);
- }
-
- @Override
- public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)
- {
- super.setLaunchConfigurationDialog(dialog);
- for (ILaunchConfigurationTab element : blocks)
- element.setLaunchConfigurationDialog(dialog);
- }
-
- @Override
- public void dispose()
- {
- for (ILaunchConfigurationTab element : blocks)
- element.dispose();
- }
-
- @Override
- public void activated(ILaunchConfigurationWorkingCopy workingCopy)
- {
- // don't call initializeFrom
- // super.activated(workingCopy);
- for (ILaunchConfigurationTab element : blocks)
- element.activated(workingCopy);
- }
-
-// @Override
-// protected boolean isDirty()
-// {
-// for (ILaunchConfigurationTab element : blocks)
-// if (((XSLLaunchConfigurationTab)element).isDirty())
-// return true;
-// return super.isDirty();
-// }
-
- @Override
- public boolean isValid(ILaunchConfiguration configuration)
- {
- boolean valid = true;
- for (ILaunchConfigurationTab element : blocks)
- valid &= element.isValid(configuration);
- return valid;
- }
-
- @Override
- public String getErrorMessage()
- {
- String m = super.getErrorMessage();
- if (m == null)
- {
- for (ILaunchConfigurationTab element : blocks)
- {
- m = element.getErrorMessage();
- if (m != null)
- break;
- }
- }
- return m;
- }
-
- @Override
- public String getMessage()
- {
- String m = super.getMessage();
- if (m == null)
- {
- for (ILaunchConfigurationTab element : blocks)
- {
- m = element.getMessage();
- if (m != null)
- break;
- }
- }
- return m;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java
deleted file mode 100644
index 68a8008..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java
+++ /dev/null
@@ -1,332 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.ui.DebugUITools;
-import org.eclipse.debug.ui.IDebugModelPresentation;
-import org.eclipse.debug.ui.ILaunchShortcut;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.jface.dialogs.StatusDialog;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.dialogs.ElementListSelectionDialog;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.InputFileBlock;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.config.BaseLaunchHelper;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * <table border=1>
- * <th>
- * <tr>
- * <td>XML Files</td>
- * <td>XSL Files</td>
- * <td>Action</td>
- * </tr>
- * </th>
- * <tbody>
- * <tr>
- * <td>1</td>
- * <td>0</td>
- * <td>Launch assuming embedded stylesheet instruction</td>
- * </tr>
- * <tr>
- * <td>0</td>
- * <td>&gt;=1</td>
- * <td>Open dialog - prompt for input file</td>
- * </tr>
- * <tr>
- * <td>1</td>
- * <td>&gt;=1</td>
- * <td>Launch</td>
- * </tr>
- * </tbody>
- * </table>
- *
- * <p>The launch shortcut should not appear in the menu for any other combination of files</p>
- * <p>In all cases, a check must be performed to find any existing launch configuration that uses the selected files.</p>
- *
- * @author Doug
- */
-public class XSLLaunchShortcut implements ILaunchShortcut
-{
- private IFile xmlFile;
- private IPath xmlFilePath;
- private IFile[] xslFiles;
-
- public void launch(ISelection selection, String mode)
- {
- if (selection instanceof IStructuredSelection)
- {
- IStructuredSelection ssel = (IStructuredSelection)selection;
- searchAndLaunch(ssel.toArray(),mode);
- }
- }
-
- public void launch(IEditorPart editor, String mode)
- {
- IEditorInput input = editor.getEditorInput();
- if (input != null)
- {
- IFile file = (IFile) input.getAdapter(IFile.class);
- if (file != null)
- searchAndLaunch(new Object[]{ file }, mode);
- }
- }
-
- private void searchAndLaunch(Object[] objects, String mode)
- {
- if (fillFiles(objects))
- {
- // ensure we have an input file
- if (xmlFile == null)
- promptForInput();
- if (xmlFile != null || xmlFilePath != null)
- launch(mode);
- }
- }
-
- private void promptForInput()
- {
- // prompt for input xml file
- StatusDialog dialog = new StatusDialog(getShell()){
- private InputFileBlock inputFileBlock = new InputFileBlock(null);
-
- @Override
- protected Control createDialogArea(Composite parent)
- {
- Composite comp = (Composite)super.createDialogArea(parent);
- comp.setFont(parent.getFont());
- GridLayout layout = new GridLayout(1, false);
- comp.setLayout(layout);
-
- Label label = new Label(comp,SWT.NONE);
- label.setFont(comp.getFont());
- GridData gd = new GridData();
- gd.horizontalIndent = 5;
- gd.verticalIndent = 5;
- gd.widthHint = 380;
- label.setLayoutData(gd);
- label.setText(Messages.getString("XSLLaunchShortcut.0")); //$NON-NLS-1$
-
- inputFileBlock.createControl(comp);
- return comp;
- }
-
- @Override
- protected void okPressed()
- {
- IResource res = inputFileBlock.getResource();
- if (res == null)
- xmlFilePath = new Path(inputFileBlock.getText());
- else if (ResourcesPlugin.getWorkspace().getRoot().exists(res.getFullPath()) && res.getType() == IResource.FILE)
- xmlFile = (IFile)res;
- super.okPressed();
- }
-
- };
- dialog.setHelpAvailable(false);
- dialog.setStatusLineAboveButtons(true);
- dialog.setTitle(Messages.getString("XSLLaunchShortcut.1")); //$NON-NLS-1$
- dialog.open();
- }
-
- private boolean fillFiles(Object[] selections)
- {
- xmlFile = null;
- xmlFilePath = null;
- List<IFile> xslFileList = new ArrayList<IFile>();
- for (Object object : selections)
- {
- IResource resource = (IResource)object;
- if (resource.getType() == IResource.FILE)
- {
- IFile file = (IFile)resource;
- if (XSLCore.isXMLFile(file))
- {
- if (XSLCore.isXSLFile(file))
- xslFileList.add(file);
- else if (xmlFile==null)
- xmlFile = file;
- else
- return false; // no action if we have more than than 1 xml file
- }
- }
- }
- xslFiles = xslFileList.toArray(new IFile[0]);
- return true;
- }
-
- private void launch(String mode)
- {
- if (xmlFile!=null)
- xmlFilePath = xmlFile.getLocation();
- ILaunchConfiguration config = null;
- try
- {
- config = findOrCreateLaunchConfiguration();
- if (config!=null)
- DebugUITools.launch(config, mode);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- private ILaunchManager getLaunchManager()
- {
- return DebugPlugin.getDefault().getLaunchManager();
- }
-
- private ILaunchConfigurationType getConfigurationType()
- {
- return getLaunchManager().getLaunchConfigurationType(XSLLaunchConfigurationConstants.ID_LAUNCH_CONFIG_TYPE);
- }
-
- private ILaunchConfiguration findOrCreateLaunchConfiguration() throws CoreException
- {
- ILaunchConfiguration[] configs = getLaunchManager().getLaunchConfigurations(getConfigurationType());
- List<ILaunchConfiguration> candidateConfigs = new ArrayList<ILaunchConfiguration>(configs.length);
- for (ILaunchConfiguration config : configs)
- {
- String inputFile = config.getAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, (String) null);
- try
- {
- inputFile = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(inputFile);
- }
- catch (CoreException e)
- {
- // just ignore this one
- continue;
- }
- Path path = new Path(inputFile);
- // the source xml file must be the same
- if (path.equals(xmlFilePath))
- {
- BaseLaunchHelper lh = new BaseLaunchHelper(config);
- // all the selected stylesheets must be in the pipeline
- boolean found = false;
- for (IFile stylesheet : xslFiles)
- {
- found = false;
- for (Iterator<LaunchTransform> iter = lh.getPipeline().getTransformDefs().iterator(); iter.hasNext();)
- {
- LaunchTransform lt = iter.next();
- if (lt.getLocation().equals(stylesheet.getLocation()))
- {
- found = true;
- break;
- }
- }
- if (!found)
- break;
- }
- if (found)
- candidateConfigs.add(config);
- }
- }
-
- ILaunchConfiguration config = null;
- int candidateCount = candidateConfigs.size();
- if (candidateCount == 1)
- config = (ILaunchConfiguration)candidateConfigs.get(0);
- else if (candidateCount > 1)
- config = chooseConfiguration(candidateConfigs);
- else
- config = createConfiguration();
-
- return config;
- }
-
- private ILaunchConfiguration chooseConfiguration(List<ILaunchConfiguration> configList)
- {
- IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();
- ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);
- dialog.setElements(configList.toArray());
- dialog.setTitle(Messages.getString("XSLLaunchShortcut.2")); //$NON-NLS-1$
- dialog.setMessage("&Select existing configuration:"); //$NON-NLS-1$
- dialog.setMultipleSelection(false);
- int result = dialog.open();
- labelProvider.dispose();
- if (result == Window.OK)
- {
- return (ILaunchConfiguration) dialog.getFirstResult();
- }
- return null;
- }
-
- private ILaunchConfiguration createConfiguration()
- {
- ILaunchConfiguration config = null;
- try
- {
- ILaunchConfigurationType configType = getConfigurationType();
- ILaunchConfigurationWorkingCopy wc = configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(xmlFilePath.lastSegment()));
- if (xmlFile != null)
- wc.setAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, "${workspace_loc:" + xmlFile.getFullPath().toPortableString()+"}"); //$NON-NLS-1$ //$NON-NLS-2$
- else
- wc.setAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, xmlFilePath.toPortableString());
-
- wc.setAttribute(XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE, true);
- wc.setAttribute(XSLLaunchConfigurationConstants.ATTR_OPEN_FILE, true);
-
- LaunchPipeline pipeline = new LaunchPipeline();
- for (IFile element : xslFiles)
- {
- pipeline.addTransformDef(new LaunchTransform(element.getFullPath().toPortableString(), LaunchTransform.RESOURCE_TYPE));
- }
- wc.setAttribute(XSLLaunchConfigurationConstants.ATTR_PIPELINE, pipeline.toXML());
- if (xmlFile!=null)
- wc.setMappedResources(new IResource[]{ xmlFile.getProject() });
- config = wc.doSave();
- }
- catch (CoreException exception)
- {
- MessageDialog.openError(getShell(), Messages.getString("XSLLaunchShortcut.6"), exception.getStatus().getMessage()); //$NON-NLS-1$
- }
- return config;
- }
-
- protected Shell getShell()
- {
- return XSLDebugUIPlugin.getActiveWorkbenchShell();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLTTabGroup.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLTTabGroup.java
deleted file mode 100644
index 6103e9c..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLTTabGroup.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui;
-
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
-import org.eclipse.debug.ui.CommonTab;
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.XSLMainTab;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.output.OutputTab;
-
-/**
- *The tab group for the XSL tabs.
- *
- * @author Doug Satchwell
- */
-public class XSLTTabGroup extends AbstractLaunchConfigurationTabGroup
-{
- /**
- * Create a new instance of this.
- */
- public XSLTTabGroup()
- {
- }
-
- public void createTabs(ILaunchConfigurationDialog dialog, String mode)
- {
- XSLMainTab main = new XSLMainTab();
- ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { main, new OutputTab(main) };
- tabs = addTabs(tabs, new ILaunchConfigurationTab[] { new SourceLookupTab(), new CommonTab() });
-
- setTabs(tabs);
- }
-
- private ILaunchConfigurationTab[] addTabs(ILaunchConfigurationTab[] tabs1, ILaunchConfigurationTab[] tabs2)
- {
- ILaunchConfigurationTab[] newTabs = new ILaunchConfigurationTab[tabs1.length + tabs2.length];
- System.arraycopy(tabs1, 0, newTabs, 0, tabs1.length);
- System.arraycopy(tabs2, 0, newTabs, tabs1.length, tabs2.length);
- return newTabs;
- }
-
- @Override
- public void setTabs(ILaunchConfigurationTab[] tabs)
- {
- // TODO Auto-generated method stub
- super.setTabs(tabs);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractParameterAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractParameterAction.java
deleted file mode 100644
index d19b75b..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractParameterAction.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.actions.SelectionListenerAction;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParameterViewer;
-
-/**
- * A convenient base class for add/remove parameter actions.
- *
- * @author Doug Satchwell
- */
-public abstract class AbstractParameterAction extends SelectionListenerAction
-{
- private ParameterViewer viewer;
- private Button button;
- private Shell shell;
-
- protected AbstractParameterAction(String text, ParameterViewer viewer)
- {
- super(text);
- setViewer(viewer);
- }
-
- /**
- * Set the viewer.
- *
- * @param viewer the parametere viewer
- */
- public void setViewer(ParameterViewer viewer)
- {
- if (this.viewer != null)
- {
- this.viewer.removeSelectionChangedListener(this);
- }
- this.viewer = viewer;
- if (viewer != null)
- {
- viewer.addSelectionChangedListener(this);
- update();
- }
- }
-
- protected ParameterViewer getViewer()
- {
- return viewer;
- }
-
- /**
- * Set the button associated with the action.
- *
- * @param button the button
- */
- public void setButton(Button button)
- {
- this.button = button;
- button.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent evt)
- {
- run();
- }
- });
- button.setEnabled(isEnabled());
- }
-
- @Override
- public void setEnabled(boolean enabled)
- {
- super.setEnabled(enabled);
- if (button != null)
- {
- button.setEnabled(enabled);
- }
- }
-
- protected void update()
- {
- selectionChanged((IStructuredSelection) getViewer().getSelection());
- }
-
- protected Shell getShell()
- {
- if (shell == null)
- {
- shell = getViewer().getShell();
- }
- return shell;
- }
-
- /**
- * Set the shell that will be used for opening a dialog.
- *
- * @param shell the shell to use
- */
- public void setShell(Shell shell)
- {
- this.shell = shell;
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection)
- {
- return getViewer().updateSelection(getActionType(), selection);
- }
-
- protected int getActionType()
- {
- return AbstractStylesheetAction.DEFAULT;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractStylesheetAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractStylesheetAction.java
deleted file mode 100644
index d636b42..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AbstractStylesheetAction.java
+++ /dev/null
@@ -1,201 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.actions.SelectionListenerAction;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-/**
- * A convenient base class for actions associated with the stylesheet viewer.
- *
- * @author Doug Satchwell
- */
-public abstract class AbstractStylesheetAction extends SelectionListenerAction
-{
- /**
- * The default action type.
- */
- public static final int DEFAULT = 0;
- /**
- * The action type for add actions.
- */
- public static final int ADD = 1;
- /**
- * The action type for remove actions.
- */
- public static final int REMOVE = 2;
- /**
- * The action type for move actions.
- */
- public static final int MOVE = 3;
-
- private StylesheetViewer viewer;
- private Button button;
- private Shell shell;
-
- protected AbstractStylesheetAction(String text, StylesheetViewer viewer)
- {
- super(text);
- setViewer(viewer);
- }
-
- /**
- * Add an array of LaunchTransform's to the viewer.
- *
- * @param res launch transforms to add
- */
- public void addTransforms(LaunchTransform[] res)
- {
- viewer.addTransforms(res);
- }
-
- /**
- * Set the viewer associated with this action.
- *
- * @param viewer the viewer
- */
- public void setViewer(StylesheetViewer viewer)
- {
- if (this.viewer != null)
- {
- this.viewer.removeSelectionChangedListener(this);
- }
- this.viewer = viewer;
- if (viewer != null)
- {
- viewer.addSelectionChangedListener(this);
- update();
- }
- }
-
- protected StylesheetViewer getViewer()
- {
- return viewer;
- }
-
- /**
- * Set the button associated with this action.
- *
- * @param button the button
- */
- public void setButton(Button button)
- {
- this.button = button;
- button.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent evt)
- {
- run();
- }
- });
- button.setEnabled(isEnabled());
- }
-
- @Override
- public void setEnabled(boolean enabled)
- {
- super.setEnabled(enabled);
- if (button != null)
- {
- button.setEnabled(enabled);
- }
- }
-
- protected void update()
- {
- selectionChanged((IStructuredSelection) getViewer().getSelection());
- }
-
- protected Shell getShell()
- {
- if (shell == null)
- {
- shell = getViewer().getShell();
- }
- return shell;
- }
-
- /**
- * Set the shell to be used for opening a dialog.
- *
- * @param shell the shell to use
- */
- public void setShell(Shell shell)
- {
- this.shell = shell;
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection)
- {
- return getViewer().updateSelection(getActionType(), selection);
- }
-
- protected int getActionType()
- {
- return DEFAULT;
- }
-
- protected List<?> getOrderedSelection()
- {
- List<?> selection = ((IStructuredSelection) getViewer().getSelection()).toList();
- return selection;
- }
-
- protected List<LaunchTransform> getEntriesAsList()
- {
- // IStylesheetEntry[] entries = getViewer().getEntries();
- // List list = new ArrayList(entries.length);
- // for (int i = 0; i < entries.length; i++) {
- // list.add(entries[i]);
- // }
- LaunchPipeline lp = (LaunchPipeline) getViewer().getInput();
- return lp.getTransformDefs();
- }
-
- protected void setEntries(List<?> list)
- {
- getViewer().setEntries((LaunchTransform[]) list.toArray(new LaunchTransform[list.size()]));
- // // update all selection listeners
- // getViewer().setSelection(getViewer().getSelection());
- }
-
- protected boolean isIndexSelected(IStructuredSelection selection, int index)
- {
- if (selection.isEmpty())
- {
- return false;
- }
- Iterator<?> entries = selection.iterator();
- List<?> list = getEntriesAsList();
- while (entries.hasNext())
- {
- Object next = entries.next();
- if (list.indexOf(next) == index)
- {
- return true;
- }
- }
- return false;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddExternalFileAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddExternalFileAction.java
deleted file mode 100644
index d9f1b05..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddExternalFileAction.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.content.IContentType;
-import org.eclipse.core.runtime.content.IContentTypeManager;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-
-/**
- * An action that opens a dialog to allow the user to select a file from the file system.
- *
- * @author Doug Satchwell
- */
-public class AddExternalFileAction extends OpenDialogAction
-{
- /**
- * Create a new instance of this.
- *
- * @param viewer the stylesheet viewer
- * @param dialogSettingsPrefix a prefix to use for saving dialog preferences
- */
- public AddExternalFileAction(StylesheetViewer viewer, String dialogSettingsPrefix)
- {
- super(Messages.getString("AddExternalFileAction_Text"), viewer, dialogSettingsPrefix);
- }
-
- @Override
- public void run()
- {
- String lastUsedPath = getDialogSetting(LAST_PATH_SETTING);
- if (lastUsedPath == null)
- {
- lastUsedPath = ""; //$NON-NLS-1$
- }
- FileDialog dialog = new FileDialog(getShell(), SWT.MULTI);
- dialog.setText(Messages.getString("AddExternalFileAction_Selection_3"));
- dialog.setFilterPath(lastUsedPath);
- IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
- IContentType contentType = contentTypeManager.getContentType("org.eclipse.wst.xml.core.xslsource"); //$NON-NLS-1$
- String[] xslContentTypes = contentType.getFileSpecs(IContentType.FILE_EXTENSION_SPEC);
-
- dialog.setFilterExtensions(xslContentTypes);
- String res = dialog.open();
- if (res == null)
- {
- return;
- }
-
- IPath filterPath = new Path(dialog.getFilterPath());
- LaunchTransform[] lts = new LaunchTransform[1];
- IPath path = new Path(res).makeAbsolute();
- lts[0] = new LaunchTransform(path.toPortableString(), LaunchTransform.EXTERNAL_TYPE);
-
- setDialogSetting(LAST_PATH_SETTING, filterPath.toOSString());
-
- addTransforms(lts);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddParameterAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddParameterAction.java
deleted file mode 100644
index 51d3e76..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddParameterAction.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.jface.window.Window;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParameterViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * An action that opens a dialog to allow the user to add a parameter to a transform.
- *
- * @author Doug Satchwell
- */
-public class AddParameterAction extends AbstractParameterAction
-{
- /**
- * Create a new instance of this.
- *
- * @param viewer teh viewer
- */
- public AddParameterAction(ParameterViewer viewer)
- {
- super(Messages.getString("AddParameterAction"), viewer);
- }
-
- @Override
- public void run()
- {
- MultipleInputDialog dialog = new MultipleInputDialog(getShell(), Messages.getString("AddParameterAction_Dialog"));
- String namelabel = Messages.getString("AddParameterAction_Dialog_Name");
- dialog.addTextField(namelabel, null, false);
- String variableslabel = Messages.getString("AddParameterAction_Dialog_Value");
- dialog.addVariablesField(variableslabel, null, false);
- dialog.open();
-
- if (dialog.getReturnCode() == Window.OK)
- {
- String name = dialog.getStringValue(namelabel);
- String value = dialog.getStringValue(variableslabel);
- LaunchAttribute parameter = null;
- if (value != null && value.indexOf("${") > -1) //$NON-NLS-1$
- parameter = new LaunchAttribute(name, null, value);
- else
- parameter = new LaunchAttribute(name, null, value);
- getViewer().addParameter(parameter);
- }
- }
-
- @Override
- public void setEnabled(boolean enabled)
- {
- // do nothing
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddWorkspaceFileAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddWorkspaceFileAction.java
deleted file mode 100644
index 796b19a..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/AddWorkspaceFileAction.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
-import org.eclipse.ui.dialogs.ISelectionStatusValidator;
-import org.eclipse.ui.model.WorkbenchContentProvider;
-import org.eclipse.ui.model.WorkbenchLabelProvider;
-import org.eclipse.ui.views.navigator.ResourceComparator;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * An action that opens a dialog to allow the user to select a file in the workspace.
- *
- * @author Doug Satchwell
- */
-public class AddWorkspaceFileAction extends AbstractStylesheetAction
-{
- private final ISelectionStatusValidator validator = new ISelectionStatusValidator()
- {
- public IStatus validate(Object[] selection)
- {
- if (selection.length == 0)
- {
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- for (int i = 0; i < selection.length; i++)
- {
- if (!(selection[i] instanceof IFile))
- {
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- }
- return new Status(IStatus.OK, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- };
-
- /**
- * Create a new instance of this.
- *
- * @param viewer the viewer
- */
- public AddWorkspaceFileAction(StylesheetViewer viewer)
- {
- super(Messages.getString("AddWorkspaceFileAction_Text"), viewer);
- }
-
- @Override
- public void run()
- {
-
- // ViewerFilter filter= new StylesheetFilter(getSelectedJars());
-
- ILabelProvider lp = new WorkbenchLabelProvider();
- ITreeContentProvider cp = new WorkbenchContentProvider();
-
- ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getShell(), lp, cp);
- dialog.setValidator(validator);
- dialog.setTitle(Messages.getString("AddWorkspaceFileAction_DialogTitle"));
- dialog.setMessage(Messages.getString("AddWorkspaceFileAction_DialogMessage"));
- dialog.addFilter(new ViewerFilter()
- {
- @Override
- public boolean select(Viewer viewer, Object parentElement, Object element)
- {
- if (!(element instanceof IResource))
- return false;
- IResource resource = (IResource)element;
- if (resource.getType() == IResource.FILE)
- {
- if (!XSLCore.isXSLFile((IFile)resource))
- return false;
- }
- return true;
- }
- });
- dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
- dialog.setComparator(new ResourceComparator(ResourceComparator.NAME));
-
- if (dialog.open() == Window.OK)
- {
- Object[] elements = dialog.getResult();
- LaunchTransform[] res = new LaunchTransform[elements.length];
- for (int i = 0; i < res.length; i++)
- {
- IResource elem = (IResource) elements[i];
- res[i] = new LaunchTransform(elem.getFullPath().toPortableString(), LaunchTransform.RESOURCE_TYPE);
- }
- addTransforms(res);
- }
- }
-
- @Override
- protected int getActionType()
- {
- return ADD;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/ControlAccessibleListener.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/ControlAccessibleListener.java
deleted file mode 100644
index 71caaf6..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/ControlAccessibleListener.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.swt.accessibility.AccessibleAdapter;
-import org.eclipse.swt.accessibility.AccessibleEvent;
-import org.eclipse.swt.widgets.Control;
-
-/**
- * Used to help with accessibility.
- *
- * @author Doug Satchwell
- */
-public class ControlAccessibleListener extends AccessibleAdapter
-{
- private final String controlName;
-
- private ControlAccessibleListener(String name)
- {
- controlName = name;
- }
-
- @Override
- public void getName(AccessibleEvent e)
- {
- e.result = controlName;
- }
-
- /**
- * Helper for adding an instance of this to the given control.
- *
- * @param comp the control to add this to
- * @param name the name for this
- */
- public static void addListener(Control comp, String name)
- {
- // strip mnemonic
- String[] strs = name.split("&"); //$NON-NLS-1$
- StringBuffer stripped = new StringBuffer();
- for (String element : strs)
- {
- stripped.append(element);
- }
- comp.getAccessible().addAccessibleListener(new ControlAccessibleListener(stripped.toString()));
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveDownAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveDownAction.java
deleted file mode 100644
index fe7dda7..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveDownAction.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * The action for moving a stylesheet further down in the transformation pipeline.
- *
- * @author Doug Satchwell
- */
-public class MoveDownAction extends AbstractStylesheetAction
-{
- /**
- * Create a new instance of this.
- *
- * @param viewer
- */
- public MoveDownAction(StylesheetViewer viewer)
- {
- super(Messages.MoveDownAction_Text, viewer);
- }
-
- @Override
- public void run()
- {
- List<?> targets = getOrderedSelection();
- if (targets.isEmpty())
- {
- return;
- }
- List<LaunchTransform> list = getEntriesAsList();
- int bottom = list.size() - 1;
- int index = 0;
- for (int i = targets.size() - 1; i >= 0; i--)
- {
- Object target = targets.get(i);
- index = list.indexOf(target);
- if (index < bottom)
- {
- bottom = index + 1;
- Object temp = list.get(bottom);
- list.set(bottom, (LaunchTransform)target);
- list.set(index, (LaunchTransform)temp);
- }
- bottom = index;
- }
- setEntries(list);
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection)
- {
- if (selection.isEmpty())
- {
- return false;
- }
- return getViewer().updateSelection(getActionType(), selection) && !isIndexSelected(selection, getEntriesAsList().size() - 1);
- }
-
- @Override
- protected int getActionType()
- {
- return MOVE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveUpAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveUpAction.java
deleted file mode 100644
index 0dffbc8..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MoveUpAction.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * The action for moving a stylesheet further up in the transformation pipeline.
- *
- * @author Doug Satchwell
- */
-public class MoveUpAction extends AbstractStylesheetAction
-{
- /**
- * Create a new instance of this.
- *
- * @param viewer
- */
- public MoveUpAction(StylesheetViewer viewer)
- {
- super(Messages.MoveUpAction_Text, viewer);
- }
-
- @Override
- public void run()
- {
- List<?> targets = getOrderedSelection();
- if (targets.isEmpty())
- {
- return;
- }
- int top = 0;
- int index = 0;
- List<LaunchTransform> list = getEntriesAsList();
- Iterator<?> entries = targets.iterator();
- while (entries.hasNext())
- {
- Object target = entries.next();
- index = list.indexOf(target);
- if (index > top)
- {
- top = index - 1;
- Object temp = list.get(top);
- list.set(top, (LaunchTransform)target);
- list.set(index, (LaunchTransform)temp);
- }
- top = index;
- }
- setEntries(list);
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection)
- {
- if (selection.isEmpty())
- {
- return false;
- }
- return getViewer().updateSelection(getActionType(), selection) && !isIndexSelected(selection, 0);
- }
-
- @Override
- protected int getActionType()
- {
- return MOVE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MultipleInputDialog.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MultipleInputDialog.java
deleted file mode 100644
index 2121176..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/MultipleInputDialog.java
+++ /dev/null
@@ -1,435 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactor
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.debug.ui.StringVariableSelectionDialog;
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Scrollable;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * A dialog with handy methods for adding simple controls to itself.
- *
- * @author Doug Satchwell
- */
-public class MultipleInputDialog extends Dialog
-{
- protected static final String FIELD_NAME = "FIELD_NAME"; //$NON-NLS-1$
- protected static final int TEXT = 100;
- protected static final int BROWSE = 101;
- protected static final int VARIABLE = 102;
- protected static final int COMBO = 103;
-
- protected Composite panel;
-
- protected List<FieldSummary> fieldList = new ArrayList<FieldSummary>();
- protected List<Scrollable> controlList = new ArrayList<Scrollable>();
- protected List<Validator> validators = new ArrayList<Validator>();
- @SuppressWarnings("unchecked")
- protected Map<Object, Comparable> valueMap = new HashMap<Object, Comparable>();
-
- private final String title;
-
- /**
- * Create a new instance of this.
- *
- * @param shell the shell to open the dialog on
- * @param title the title for the dialog
- */
- public MultipleInputDialog(final Shell shell, final String title)
- {
- super(shell);
- this.title = title;
- setShellStyle(getShellStyle() | SWT.RESIZE);
- }
-
- @Override
- protected void configureShell(Shell shell)
- {
- super.configureShell(shell);
- if (title != null)
- {
- shell.setText(title);
- }
-
- }
-
- @Override
- protected Control createButtonBar(Composite parent)
- {
- Control bar = super.createButtonBar(parent);
- validateFields();
- return bar;
- }
-
- @Override
- protected Control createDialogArea(Composite parent)
- {
- Composite container = (Composite) super.createDialogArea(parent);
- // ((GridData) parent.getLayoutData()).heightHint = 400;
- // ((GridData) parent.getLayoutData()).widthHint = 400;
-
- container.setLayout(new GridLayout(2, false));
-
- GridData gd = new GridData(GridData.FILL_BOTH);
- // gd.heightHint = 200;
- container.setLayoutData(gd);
-
- panel = new Composite(container, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
- panel.setLayout(layout);
- panel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- for (Iterator<FieldSummary> i = fieldList.iterator(); i.hasNext();)
- {
- FieldSummary field = (FieldSummary) i.next();
- switch (field.type)
- {
- case TEXT:
- createTextField(field.name, field.initialValue, field.allowsEmpty);
- break;
- // case BROWSE:
- // createBrowseField(field.name, field.initialValue,
- // field.allowsEmpty);
- // break;
- case VARIABLE:
- createVariablesField(field.name, field.initialValue, field.allowsEmpty);
- break;
- case COMBO:
- createComboField(field.name, field.initialIndex, field.items);
- break;
- }
- }
-
- fieldList = null; // allow it to be gc'd
- Dialog.applyDialogFont(container);
-
- return container;
- }
-
- /**
- * Add a label, text box and button for browsing the for a file.
- *
- * @param labelText the label
- * @param initialValue the initial value
- * @param allowsEmpty true if the text box can be empty
- */
- public void addBrowseField(String labelText, String initialValue, boolean allowsEmpty)
- {
- fieldList.add(new FieldSummary(BROWSE, labelText, initialValue, allowsEmpty));
- }
-
- /**
- * Add a label and a text box.
- *
- * @param labelText the label
- * @param initialValue the initial value
- * @param allowsEmpty true if the text box can be empty
- */
- public void addTextField(String labelText, String initialValue, boolean allowsEmpty)
- {
- fieldList.add(new FieldSummary(TEXT, labelText, initialValue, allowsEmpty));
- }
-
- /**
- * Add a label, a text box and a button for selecting variables.
- *
- * @param labelText the label
- * @param initialValue the initial value
- * @param allowsEmpty true if the text box can be empty
- */
- public void addVariablesField(String labelText, String initialValue, boolean allowsEmpty)
- {
- fieldList.add(new FieldSummary(VARIABLE, labelText, initialValue, allowsEmpty));
- }
-
- /**
- * Add a label and a combo.
- *
- * @param labelText the label
- * @param initialIndex the initial selection index
- * @param items the array of items for the combo
- */
- public void addComboField(String labelText, int initialIndex, String[] items)
- {
- fieldList.add(new FieldSummary(COMBO, labelText, items, initialIndex));
- }
-
- protected void createTextField(String labelText, String initialValue, boolean allowEmpty)
- {
- Label label = new Label(panel, SWT.NONE);
- label.setText(labelText);
- label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
-
- final Text text = new Text(panel, SWT.SINGLE | SWT.BORDER);
- text.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- text.setData(FIELD_NAME, labelText);
-
- // make sure rows are the same height on both panels.
- label.setSize(label.getSize().x, text.getSize().y);
-
- if (initialValue != null)
- {
- text.setText(initialValue);
- }
-
- if (!allowEmpty)
- {
- validators.add(new Validator()
- {
- @Override
- public boolean validate()
- {
- return !text.getText().equals(""); //$NON-NLS-1$
- }
- });
- text.addModifyListener(new ModifyListener()
- {
- public void modifyText(ModifyEvent e)
- {
- validateFields();
- }
- });
- }
-
- controlList.add(text);
- }
-
- protected void createVariablesField(String labelText, String initialValue, boolean allowEmpty)
- {
- Label label = new Label(panel, SWT.NONE);
- label.setText(labelText);
- label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
-
- Composite comp = new Composite(panel, SWT.NONE);
- GridLayout layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- comp.setLayout(layout);
- comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- final Text text = new Text(comp, SWT.SINGLE | SWT.BORDER);
- GridData data = new GridData(GridData.FILL_HORIZONTAL);
- data.widthHint = 200;
- text.setLayoutData(data);
- text.setData(FIELD_NAME, labelText);
-
- // make sure rows are the same height on both panels.
- label.setSize(label.getSize().x, text.getSize().y);
-
- if (initialValue != null)
- {
- text.setText(initialValue);
- }
-
- if (!allowEmpty)
- {
- validators.add(new Validator()
- {
- @Override
- public boolean validate()
- {
- return !text.getText().equals(""); //$NON-NLS-1$
- }
- });
-
- text.addModifyListener(new ModifyListener()
- {
- public void modifyText(ModifyEvent e)
- {
- validateFields();
- }
- });
- }
-
- Button button = createButton(comp, IDialogConstants.IGNORE_ID, Messages.getString("VariablesFieldButton_Text"), false);
- button.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
- int code = dialog.open();
- if (code == IDialogConstants.OK_ID)
- {
- String variable = dialog.getVariableExpression();
- if (variable != null)
- {
- text.insert(variable);
- }
- }
- }
- });
-
- controlList.add(text);
-
- }
-
- protected void createComboField(String labelText, int initialValue, String[] items)
- {
- Label label = new Label(panel, SWT.NONE);
- label.setText(labelText);
- label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
-
- Composite comp = new Composite(panel, SWT.NONE);
- GridLayout layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- comp.setLayout(layout);
- comp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- final Combo combo = new Combo(comp, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
- // GridData data = new GridData(GridData.FILL_HORIZONTAL);
- // data.widthHint = 200;
- // combo.setLayoutData(data);
-
- combo.setData(FIELD_NAME, labelText);
-
- // make sure rows are the same height on both panels.
- label.setSize(label.getSize().x, combo.getSize().y);
-
- combo.setItems(items);
- combo.select(initialValue);
-
- controlList.add(combo);
- }
-
- @Override
- protected void okPressed()
- {
- for (Iterator<Scrollable> i = controlList.iterator(); i.hasNext();)
- {
- Control control = (Control) i.next();
- if (control instanceof Text)
- {
- valueMap.put(control.getData(FIELD_NAME), ((Text) control).getText());
- }
- else if (control instanceof Combo)
- {
- Combo combo = (Combo) control;
- valueMap.put(control.getData(FIELD_NAME), new Integer(combo.getSelectionIndex()));
- }
- }
- controlList = null;
- super.okPressed();
- }
-
- @Override
- public int open()
- {
- applyDialogFont(panel);
- return super.open();
- }
-
- protected Object getValue(String key)
- {
- return valueMap.get(key);
- }
-
- protected String getStringValue(String key)
- {
- return (String) getValue(key);
- }
-
- protected int getIntValue(String key)
- {
- return ((Integer) getValue(key)).intValue();
- }
-
- protected void validateFields()
- {
- for (Iterator<Validator> i = validators.iterator(); i.hasNext();)
- {
- Validator validator = (Validator) i.next();
- if (!validator.validate())
- {
- getButton(IDialogConstants.OK_ID).setEnabled(false);
- return;
- }
- }
- getButton(IDialogConstants.OK_ID).setEnabled(true);
- }
-
- private String getDialogSettingsSectionName()
- {
- return XSLDebugUIPlugin.PLUGIN_ID + ".MULTIPLE_INPUT_DIALOG"; //$NON-NLS-1$
- }
-
- @Override
- protected IDialogSettings getDialogBoundsSettings()
- {
- IDialogSettings settings = XSLDebugUIPlugin.getDefault().getDialogSettings();
- IDialogSettings section = settings.getSection(getDialogSettingsSectionName());
- if (section == null)
- {
- section = settings.addNewSection(getDialogSettingsSectionName());
- }
- return section;
- }
-
- protected class FieldSummary
- {
- int initialIndex;
- int type;
- String name;
- String initialValue;
- boolean allowsEmpty;
- String[] items;
-
- public FieldSummary(int type, String name, String initialValue, boolean allowsEmpty)
- {
- this.type = type;
- this.name = name;
- this.initialValue = initialValue;
- this.allowsEmpty = allowsEmpty;
- }
-
- public FieldSummary(int type, String name, String[] items, int initialIndex)
- {
- this.type = type;
- this.name = name;
- this.items = items;
- }
- }
-
- protected class Validator
- {
- boolean validate()
- {
- return true;
- }
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/OpenDialogAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/OpenDialogAction.java
deleted file mode 100644
index 3c269b0..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/OpenDialogAction.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-
-/**
- * An action that opens a dialog.
- *
- * @author Doug Satchwell
- */
-public class OpenDialogAction extends AbstractStylesheetAction
-{
- protected static final String LAST_PATH_SETTING = "LAST_PATH_SETTING"; //$NON-NLS-1$
- private String fPrefix = null;
-
- /**
- * Create a new instance of this
- *
- * @param label the dialog title
- * @param viewer a viewer that this dialog is associated with
- * @param dialogSettingsPrefix the prefix to use for saving dialog preferences
- */
- public OpenDialogAction(String label, StylesheetViewer viewer, String dialogSettingsPrefix)
- {
- super(label, viewer);
- fPrefix = dialogSettingsPrefix;
- }
-
- protected String getDialogSettingsPrefix()
- {
- return fPrefix;
- }
-
- protected String getDialogSetting(String settingName)
- {
- return getDialogSettings().get(getDialogSettingsPrefix() + "." + settingName); //$NON-NLS-1$
- }
-
- protected void setDialogSetting(String settingName, String value)
- {
- getDialogSettings().put(getDialogSettingsPrefix() + "." + settingName, value); //$NON-NLS-1$
- }
-
- protected IDialogSettings getDialogSettings()
- {
- IDialogSettings settings = XSLDebugUIPlugin.getDefault().getDialogSettings();
- return settings;
- }
-
- @Override
- protected int getActionType()
- {
- return ADD;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveAction.java
deleted file mode 100644
index 7fcc8cf..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveAction.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * An action that removes a selection from a viewer.
- *
- * @author Doug Satchwell
- */
-public class RemoveAction extends AbstractStylesheetAction
-{
- /**
- * Create a new instance of this.
- *
- * @param viewer the viewer that will have its selection removed
- */
- public RemoveAction(StylesheetViewer viewer)
- {
- super(Messages.getString("RemoveAction_Text"), viewer);
- }
-
- @SuppressWarnings("unchecked")
- @Override
- public void run()
- {
- IStructuredSelection selection = (IStructuredSelection) getViewer().getSelection();
- getViewer().removeEntries((LaunchTransform[]) selection.toList().toArray(new LaunchTransform[0]));
- }
-
- @Override
- protected boolean updateSelection(IStructuredSelection selection)
- {
- if (selection.isEmpty())
- {
- return false;
- }
- return getViewer().updateSelection(getActionType(), selection);
- }
-
- @Override
- protected int getActionType()
- {
- return MOVE;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveParameterAction.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveParameterAction.java
deleted file mode 100644
index a45609b..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/actions/RemoveParameterAction.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.actions;
-
-import java.util.Iterator;
-
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParameterViewer;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * An action that removes a selection from a viewer.
- *
- * @author Doug Satchwell
- */
-public class RemoveParameterAction extends AbstractParameterAction
-{
- /**
- * Create a new instance of this.
- *
- * @param viewer the viewer that will have its selection removed
- */
- public RemoveParameterAction(ParameterViewer viewer)
- {
- super(Messages.getString("RemoveParameterAction"), viewer);
- }
-
- @Override
- public void run()
- {
- IStructuredSelection sel = getStructuredSelection();
- if (sel.size() > 0)
- {
- LaunchAttribute[] entries = new LaunchAttribute[sel.size()];
- int i = 0;
- for (Iterator<?> iter = sel.iterator(); iter.hasNext(); i++)
- {
- LaunchAttribute att = (LaunchAttribute) iter.next();
- entries[i] = att;
- }
- getViewer().removeEntries(entries);
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/breakpoint/XSLBreakpointProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/breakpoint/XSLBreakpointProvider.java
deleted file mode 100644
index 3f9c4fa..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/breakpoint/XSLBreakpointProvider.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver (STAR) - bug 245772 - NLS Message refactoring
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.breakpoint;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IExecutableExtension;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.IRegion;
-import org.eclipse.jface.text.ITypedRegion;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IStorageEditorInput;
-import org.eclipse.wst.sse.ui.internal.StructuredResourceMarkerAnnotationModel;
-import org.eclipse.wst.sse.ui.internal.provisional.extensions.ISourceEditingTextTools;
-import org.eclipse.wst.sse.ui.internal.provisional.extensions.breakpoint.IBreakpointProvider;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.model.XSLLineBreakpoint;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-/**
- * An SSE <code>IBreakpointProvider</code> for XSL files.
- *
- * @author Doug Satchwell
- */
-public class XSLBreakpointProvider implements IBreakpointProvider, IExecutableExtension
-{
- public IStatus addBreakpoint(IDocument document, IEditorInput input, int editorLineNumber, int offset) throws CoreException
- {
- // check if there is a valid position to set breakpoint
- int pos = getValidPosition(document, editorLineNumber);
- IStatus status = null;
- if (pos >= 0)
- {
- IResource res = getResourceFromInput(input);
- if (res != null)
- {
- boolean add = true;
- if (add)
- {
- IBreakpoint point = new XSLLineBreakpoint(res, editorLineNumber, pos, pos);
- if (point == null)
- {
- status = new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, IStatus.ERROR, Messages.XSLBreakpointProvider_0, null);
- }
- else
- {
- // DebugPlugin.getDefault().getBreakpointManager().addBreakpoint(point);
- }
- }
- }
- else if (input instanceof IStorageEditorInput)
- {
- res = ResourcesPlugin.getWorkspace().getRoot();
- String id = input.getName();
- if (input instanceof IStorageEditorInput && ((IStorageEditorInput) input).getStorage() != null && ((IStorageEditorInput) input).getStorage().getFullPath() != null)
- {
- id = ((IStorageEditorInput) input).getStorage().getFullPath().toString();
- }
- Map<String, String> attributes = new HashMap<String, String>();
- attributes.put(StructuredResourceMarkerAnnotationModel.SECONDARY_ID_KEY, id);
- IBreakpoint point = new XSLLineBreakpoint(res, editorLineNumber, pos, pos);
- if (point == null)
- {
- status = new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, IStatus.ERROR, Messages.XSLBreakpointProvider_0, null);
- }
- }
- }
- if (status == null)
- {
- status = new Status(IStatus.OK, XSLDebugUIPlugin.PLUGIN_ID, IStatus.OK, "JSPUIMessages.OK", null); //$NON-NLS-1$
- }
- return status;
- }
-
- public IResource getResource(IEditorInput input)
- {
- return getResourceFromInput(input);
- }
-
- private IResource getResourceFromInput(IEditorInput input)
- {
- IResource resource = (IResource) input.getAdapter(IFile.class);
- if (resource == null)
- {
- resource = (IResource) input.getAdapter(IResource.class);
- }
- return resource;
- }
-
- private int getValidPosition(IDocument idoc, int editorLineNumber)
- {
- int result = -1;
- if (idoc != null)
- {
- int startOffset = 0;
- int endOffset = 0;
- try
- {
- IRegion line = idoc.getLineInformation(editorLineNumber - 1);
- startOffset = line.getOffset();
- endOffset = Math.max(line.getOffset(), line.getOffset() + line.getLength());
-
- String lineText = idoc.get(startOffset, endOffset - startOffset).trim();
-
- // blank lines or PI's cannot have breakpoints
- if (lineText.trim().equals("") || lineText.startsWith("<?")) //$NON-NLS-1$ //$NON-NLS-2$
- {
- result = -1;
- }
- else
- {
- // get all partitions for current line
- ITypedRegion[] partitions = null;
-
- partitions = idoc.computePartitioning(startOffset, endOffset - startOffset);
-
- for (int i = 0; i < partitions.length; ++i)
- {
- // String type = partitions[i].getType();
- result = partitions[i].getOffset();
- }
- }
- }
- catch (BadLocationException e)
- {
- result = -1;
- }
- }
- return result;
- }
-
- public void setInitializationData(IConfigurationElement config, String propertyName, Object data) throws CoreException
- {
- // not used
- }
-
- public void setSourceEditingTextTools(ISourceEditingTextTools tools)
- {
- // not used
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLBreakpointAdapterFactory.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLBreakpointAdapterFactory.java
deleted file mode 100644
index 6fbfafe..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLBreakpointAdapterFactory.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.model;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IAdapterFactory;
-import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget;
-import org.eclipse.ui.texteditor.ITextEditor;
-import org.eclipse.wst.xsl.core.XSLCore;
-
-/**
- * Creates a toggle breakpoint adapter
- */
-public class XSLBreakpointAdapterFactory implements IAdapterFactory
-{
- @SuppressWarnings("unchecked") //$NON-NLS-1$
- public Object getAdapter(Object adaptableObject, Class adapterType)
- {
- if (adaptableObject instanceof ITextEditor)
- {
- ITextEditor editorPart = (ITextEditor) adaptableObject;
- IResource resource = (IResource) editorPart.getEditorInput().getAdapter(IResource.class);
- if (resource != null && resource instanceof IFile)
- {
- if (XSLCore.isXSLFile((IFile)resource))
- {
- return new XSLLineBreakpointAdapter();
- }
- }
- }
- return null;
- }
-
- @SuppressWarnings("unchecked") //$NON-NLS-1$
- public Class[] getAdapterList()
- {
- return new Class[]
- { IToggleBreakpointsTarget.class };
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLLineBreakpointAdapter.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLLineBreakpointAdapter.java
deleted file mode 100644
index 870045d..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLLineBreakpointAdapter.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.model;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.core.model.ILineBreakpoint;
-import org.eclipse.debug.ui.actions.IToggleBreakpointsTarget;
-import org.eclipse.jface.text.ITextSelection;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.texteditor.ITextEditor;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.launching.model.IXSLConstants;
-import org.eclipse.wst.xsl.launching.model.XSLLineBreakpoint;
-
-/**
- * An <code>IToggleBreakpointsTarget</code> for XSL breakpoints.
- *
- * @author Doug Satchwell
- */
-public class XSLLineBreakpointAdapter implements IToggleBreakpointsTarget
-{
- public void toggleLineBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException
- {
- ITextEditor textEditor = getEditor(part);
- if (textEditor != null)
- {
- IResource resource = (IResource) textEditor.getEditorInput().getAdapter(IResource.class);
- ITextSelection textSelection = (ITextSelection) selection;
- int lineNumber = textSelection.getStartLine();
- IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(IXSLConstants.ID_XSL_DEBUG_MODEL);
- for (IBreakpoint breakpoint : breakpoints)
- {
- if (resource.equals(breakpoint.getMarker().getResource()))
- {
- if (((ILineBreakpoint) breakpoint).getLineNumber() == (lineNumber + 1))
- {
- // remove
- breakpoint.delete();
- return;
- }
- }
- }
- // create line breakpoint (doc line numbers start at 0)
- XSLLineBreakpoint lineBreakpoint = new XSLLineBreakpoint(resource, lineNumber + 1, 1, 1);
- DebugPlugin.getDefault().getBreakpointManager().addBreakpoint(lineBreakpoint);
- }
- }
-
- public boolean canToggleLineBreakpoints(IWorkbenchPart part, ISelection selection)
- {
- return getEditor(part) != null;
- }
-
- /**
- * Returns the editor being used to edit a XSL file, associated with the
- * given part, or <code>null</code> if none.
- */
- private ITextEditor getEditor(IWorkbenchPart part)
- {
- if (part instanceof ITextEditor)
- {
- ITextEditor editorPart = (ITextEditor) part;
- IResource resource = (IResource) editorPart.getEditorInput().getAdapter(IResource.class);
- if (resource != null && resource.getType() == IResource.FILE)
- {
- if (XSLCore.isXSLFile((IFile)resource))
- {
- return editorPart;
- }
- }
- }
- return null;
- }
-
- public void toggleMethodBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException
- {
- }
-
- public boolean canToggleMethodBreakpoints(IWorkbenchPart part, ISelection selection)
- {
- return false;
- }
-
- public void toggleWatchpoints(IWorkbenchPart part, ISelection selection) throws CoreException
- {
- }
-
- public boolean canToggleWatchpoints(IWorkbenchPart part, ISelection selection)
- {
- return false;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLModelPresentation.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLModelPresentation.java
deleted file mode 100644
index 50ded41..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/model/XSLModelPresentation.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.model;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.ILineBreakpoint;
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.debug.ui.IDebugModelPresentation;
-import org.eclipse.debug.ui.IValueDetailListener;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.model.XSLVariable;
-
-/**
- * An <code>IDebugModelPresentation</code> for XSL debugging.
- *
- * @author Doug Satchwell
- */
-public class XSLModelPresentation extends LabelProvider implements IDebugModelPresentation
-{
- private Image localImg;
-
- public void setAttribute(String attribute, Object value)
- {
- }
-
- @Override
- public Image getImage(Object element)
- {
- if (element instanceof XSLVariable)
- {
- XSLVariable var = (XSLVariable) element;
- if (var.getScope().equals(XSLVariable.LOCAL_SCOPE))
- {
- if (localImg == null)
- localImg = XSLDebugUIPlugin.getImageDescriptor("/icons/localvariable_obj.gif").createImage(); //$NON-NLS-1$
- return localImg;
- }
- }
- return null;
- }
-
- @Override
- public String getText(Object element)
- {
- return null;
- }
-
- @Override
- public void dispose()
- {
- if (localImg != null)
- localImg.dispose();
- super.dispose();
- }
-
- public void computeDetail(IValue value, IValueDetailListener listener)
- {
- String detail = ""; //$NON-NLS-1$
- try
- {
- detail = value.getValueString();
- }
- catch (DebugException e)
- {
- }
- listener.detailComputed(value, detail);
- }
-
- public IEditorInput getEditorInput(Object element)
- {
- if (element instanceof IFile)
- {
- return new FileEditorInput((IFile) element);
- }
- if (element instanceof ILineBreakpoint)
- {
- return new FileEditorInput((IFile) ((ILineBreakpoint) element).getMarker().getResource());
- }
- return null;
- }
-
- public String getEditorId(IEditorInput input, Object element)
- {
- if (element instanceof IFile || element instanceof ILineBreakpoint)
- {
- return XSLDebugUIConstants.XSL_EDITOR_ID;
- }
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IParametersChangedListener.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IParametersChangedListener.java
deleted file mode 100644
index 13d8a71..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IParametersChangedListener.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-public interface IParametersChangedListener
-{
- void parametersChanged(ParameterViewer viewer);
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IStylesheetEntriesChangedListener.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IStylesheetEntriesChangedListener.java
deleted file mode 100644
index b1fe798..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/IStylesheetEntriesChangedListener.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-public interface IStylesheetEntriesChangedListener
-{
- void entriesChanged(StylesheetViewer viewer);
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/InputFileBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/InputFileBlock.java
deleted file mode 100644
index ae0e15b..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/InputFileBlock.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.variables.IStringVariableManager;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.wst.xsl.internal.debug.ui.ResourceSelectionBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.core.runtime.content.IContentType;
-import org.eclipse.core.runtime.content.IContentTypeManager;
-import org.eclipse.core.runtime.content.IContentTypeMatcher;
-
-public class InputFileBlock extends ResourceSelectionBlock
-{
- private final IFile defaultFile;
- IContentTypeManager contentTypeManager = Platform.getContentTypeManager();
-
- public InputFileBlock(IFile defaultFile)
- {
- super(IResource.FILE, false);
- this.defaultFile = defaultFile;
- }
-
- @Override
- protected String[] getFileExtensions()
- {
- IContentType contentType = contentTypeManager.getContentType("org.eclipse.core.runtime.xml"); //$NON-NLS-1$
- String[] xmlContentTypes = contentType.getFileSpecs(IContentType.FILE_EXTENSION_SPEC);
-
- return xmlContentTypes;
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- String path = ""; //$NON-NLS-1$
- if (defaultFile != null)
- path = VariablesPlugin.getDefault().getStringVariableManager().generateVariableExpression("workspace_loc", defaultFile.getFullPath().toPortableString()); //$NON-NLS-1$
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, path);
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- setLaunchConfiguration(configuration);
- try
- {
- String wd = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, (String) null);
- if (wd != null)
- {
- setText(wd);
- }
- }
- catch (CoreException e)
- {
- setErrorMessage(MainTabMessages.InputFileBlock_Exception_occurred_reading_configuration + e.getStatus().getMessage());
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, getText());
- }
-
- public String getName()
- {
- return MainTabMessages.InputFileBlock_Name;
- }
-
- @Override
- protected void setDefaultResource()
- {
- }
-
- @Override
- protected void textModified()
- {
- IPath path = null;
- String workingDirPath = getText();
- if (workingDirPath.indexOf("${") >= 0) //$NON-NLS-1$
- {
- IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
- try
- {
- manager.validateStringVariables(workingDirPath);
- path = new Path(manager.performStringSubstitution(workingDirPath));
- }
- catch (CoreException e)
- {
- }
- }
- else if (workingDirPath.length() > 0)
- {
- path = new Path(workingDirPath);
- }
- }
-
- @Override
- protected String getMessage(int type)
- {
- switch (type)
- {
- case ERROR_DIRECTORY_NOT_SPECIFIED:
- return MainTabMessages.InputFileBlock_DIRECTORY_NOT_SPECIFIED;
- case ERROR_DIRECTORY_DOES_NOT_EXIST:
- return MainTabMessages.InputFileBlock_DIRECTORY_DOES_NOT_EXIST;
- case GROUP_NAME:
- return MainTabMessages.InputFileBlock_GROUP_NAME;
- case USE_DEFAULT_RADIO:
- return MainTabMessages.InputFileBlock_DEFAULT_RADIO;
- case USE_OTHER_RADIO:
- return MainTabMessages.InputFileBlock_OTHER_RADIO;
- case DIRECTORY_DIALOG_MESSAGE:
- return MainTabMessages.InputFileBlock_DIALOG_MESSAGE;
- case WORKSPACE_DIALOG_MESSAGE:
- return MainTabMessages.InputFileBlock_WORKSPACE_DIALOG_MESSAGE;
- case VARIABLES_BUTTON:
- return MainTabMessages.InputFileBlock_VARIABLES_BUTTON;
- case FILE_SYSTEM_BUTTON:
- return MainTabMessages.InputFileBlock_FILE_SYSTEM_BUTTON;
- case WORKSPACE_BUTTON:
- return MainTabMessages.InputFileBlock_WORKSPACE_BUTTON;
- case WORKSPACE_DIALOG_TITLE:
- return MainTabMessages.InputFileBlock_WORKSPACE_DIALOG_TITLE;
- }
- return "" + type; //$NON-NLS-1$
- }
-
- @Override
- protected void updateResourceText(boolean useDefault)
- {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/MainTabMessages.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/MainTabMessages.java
deleted file mode 100644
index 423e311..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/MainTabMessages.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.osgi.util.NLS;
-
-public final class MainTabMessages extends NLS
-{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.internal.debug.ui.tabs.main.MainTabMessages"; //$NON-NLS-1$
-
- public static String StylesheetEntryLabelProvider_Invalid_path;
-
- public static String TransformsBlock_0;
-
- public static String TransformsBlock_Name;
-
- public static String InputFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String InputFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String InputFileBlock_GROUP_NAME;
-
- public static String InputFileBlock_DEFAULT_RADIO;
-
- public static String InputFileBlock_OTHER_RADIO;
-
- public static String InputFileBlock_DIALOG_MESSAGE;
-
- public static String InputFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String InputFileBlock_VARIABLES_BUTTON;
-
- public static String InputFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String InputFileBlock_WORKSPACE_BUTTON;
-
- public static String InputFileBlock_Name;
-
- public static String InputFileBlock_Exception_occurred_reading_configuration;
-
- public static String InputFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String XSLMainTab_TabName;
-
- public static String TransformsBlock_ParametersLabel;
-
- public static String TransformsBlock_StylesheetsLabel;
-
- static
- {
- // load message values from bundle file
- NLS.initializeMessages(BUNDLE_NAME, MainTabMessages.class);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/MainTabMessages.properties b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/MainTabMessages.properties
deleted file mode 100644
index 2c711b9..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/MainTabMessages.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-StylesheetEntryLabelProvider_Invalid_path=Invalid path
-XSLMainTab_TabName=Main
-
-TransformsBlock_0=TransformsBlock
-TransformsBlock_Name=Transformation Pipeline
-TransformsBlock_ParametersLabel=Parameters for stylesheet:
-TransformsBlock_StylesheetsLabel=Stylesheets:
-
-InputFileBlock_DIRECTORY_NOT_SPECIFIED=Input file not specified
-InputFileBlock_DIRECTORY_DOES_NOT_EXIST=Input file does not exist
-InputFileBlock_GROUP_NAME=XML Input File
-InputFileBlock_DEFAULT_RADIO=Use default
-InputFileBlock_OTHER_RADIO=Other
-InputFileBlock_DIALOG_MESSAGE=Select an external input file
-InputFileBlock_WORKSPACE_DIALOG_MESSAGE=Select an input file from the workspace
-InputFileBlock_VARIABLES_BUTTON=Variables...
-InputFileBlock_FILE_SYSTEM_BUTTON=File System...
-InputFileBlock_WORKSPACE_BUTTON=Workspace...
-InputFileBlock_Name=XML Input File
-InputFileBlock_Exception_occurred_reading_configuration=Exception occurred reading configuration
-InputFileBlock_WORKSPACE_DIALOG_TITLE=File Selection
-
-
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/Messages.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/Messages.java
deleted file mode 100644
index 3f9e747..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/Messages.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- *Copyright (c) 2008 Standards for Technology in Automotive Retail Corporation and others.
- *All rights reserved. This program and the accompanying materials
- *are made available under the terms of the Eclipse Public License v1.0
- *which accompanies this distribution, and is available at
- *http://www.eclipse.org/legal/epl-v10.html
- *
- *Contributors:
- * David Caver (STAR) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class Messages {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.internal.debug.ui.tabs.main.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParameterViewer.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParameterViewer.java
deleted file mode 100644
index 5ba94db..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParameterViewer.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.core.runtime.ListenerList;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractStylesheetAction;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-public class ParameterViewer extends TableViewer
-{
- private final ListenerList fListeners = new ListenerList();
-
- public ParameterViewer(Table table)
- {
- super(table);
-
- table.addKeyListener(new KeyAdapter()
- {
- @Override
- public void keyPressed(KeyEvent event)
- {
- // TODO - removal
- // if (updateSelection(AbstractStylesheetAction.REMOVE,
- // (IStructuredSelection)getSelection()) && event.character ==
- // SWT.DEL && event.stateMask == 0)
- // {
- // List selection = getSelectionFromWidget();
- // getStylesheetContentProvider().removeEntries((IStylesheetEntry[])selection.toArray(new
- // IStylesheetEntry[0]));
- // notifyChanged();
- // }
- }
- });
- }
-
- private ParametersContentProvider getParametersContentProvider()
- {
- return (ParametersContentProvider) super.getContentProvider();
- }
-
- public Shell getShell()
- {
- return getControl().getShell();
- }
-
- public boolean isEnabled()
- {
- return true;
- }
-
- public boolean updateSelection(int actionType, IStructuredSelection selection)
- {
- switch (actionType)
- {
- case AbstractStylesheetAction.ADD:
- return true;
- case AbstractStylesheetAction.REMOVE:
- case AbstractStylesheetAction.MOVE:
- default:
- break;
- }
- return selection.size() > 0;
- }
-
- public IStructuredSelection getSelectedEntries()
- {
- IStructuredSelection selection = (IStructuredSelection) getSelection();
- return selection;
- }
-
- public void addParameter(LaunchAttribute parameter)
- {
- getParametersContentProvider().addParameter(parameter);
- notifyChanged();
- }
-
- public void removeEntries(LaunchAttribute[] entries)
- {
- getParametersContentProvider().removeParameters(entries);
- notifyChanged();
- }
-
- public LaunchAttribute[] getParameters()
- {
- return getParametersContentProvider().getParameters();
- }
-
- public void addParametersChangedListener(IParametersChangedListener listener)
- {
- fListeners.add(listener);
- }
-
- public void removeParametersChangedListener(IParametersChangedListener listener)
- {
- fListeners.remove(listener);
- }
-
- private void notifyChanged()
- {
- Object[] listeners = fListeners.getListeners();
- for (Object element : listeners)
- {
- ((IParametersChangedListener) element).parametersChanged(this);
- }
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersBlock.java
deleted file mode 100644
index 987ce7e..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersBlock.java
+++ /dev/null
@@ -1,243 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.ICellModifier;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TextCellEditor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Item;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractParameterAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AddParameterAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveParameterAction;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class ParametersBlock extends AbstractTableBlock
-{
- private ParameterViewer parametersViewer;
- private Button addParameterButton;
- private Button removeParameterButton;
- private final TransformsBlock transformsBlock;
- private final ISelectionChangedListener selectionListener = new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent event)
- {
- IStructuredSelection stylesheetSelection = (IStructuredSelection) event.getSelection();
- if (stylesheetSelection.size() == 1)
- setTransform((LaunchTransform) stylesheetSelection.getFirstElement());
- else
- setTransform(null);
- updateEnabled();
- }
- };
- private Table fTable;
-
- public ParametersBlock(TransformsBlock transformsBlock)
- {
- super();
- this.transformsBlock = transformsBlock;
- }
-
- protected void setTransform(LaunchTransform transform)
- {
- parametersViewer.setInput(transform);
- }
-
- protected void updateEnabled()
- {
- IStructuredSelection stylesheetSelection = (IStructuredSelection) transformsBlock.getStylesheetViewer().getSelection();
- boolean enabled = stylesheetSelection.size() == 1;
- parametersViewer.getTable().setEnabled(enabled);
- addParameterButton.setEnabled(enabled);
- IStructuredSelection parametersSelection = (IStructuredSelection) parametersViewer.getSelection();
- removeParameterButton.setEnabled(enabled && !parametersSelection.isEmpty());
- }
-
- public void createControl(Composite parent)
- {
- Font font = parent.getFont();
-
- Group group = new Group(parent, SWT.NONE);
- group.setText(getName());
- GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
- group.setLayoutData(gd);
- GridLayout layout = new GridLayout();
- layout.numColumns = 3;
- group.setLayout(layout);
- group.setFont(font);
-
- setControl(group);
-
- fTable = new Table(group, SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION);
-
- GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);
- // data.heightHint = 100;
- fTable.setLayoutData(data);
- fTable.setFont(font);
-
- fTable.setHeaderVisible(true);
- fTable.setLinesVisible(true);
-
- TableColumn column1 = new TableColumn(fTable, SWT.NONE);
- column1.setWidth(150);
- column1.setResizable(true);
- column1.setText(Messages.getString("ParametersBlock.0")); //$NON-NLS-1$
-
- TableColumn column3 = new TableColumn(fTable, SWT.NONE);
- column3.setWidth(250);
- column3.setResizable(true);
- column3.setText(Messages.getString("ParametersBlock.2")); //$NON-NLS-1$
-
- parametersViewer = new ParameterViewer(fTable);
- parametersViewer.setLabelProvider(new ParametersLabelProvider());
- parametersViewer.setContentProvider(new ParametersContentProvider());
- parametersViewer.addParametersChangedListener(new IParametersChangedListener()
- {
-
- public void parametersChanged(ParameterViewer viewer)
- {
- updateLaunchConfigurationDialog();
- }
- });
- parametersViewer.getTable().addKeyListener(new KeyAdapter() {
- public void keyPressed(KeyEvent event) {
- if (event.character == SWT.DEL && event.stateMask == 0) {
- RemoveParameterAction ra = new RemoveParameterAction(parametersViewer);
- ra.run();
- updateLaunchConfigurationDialog();
- }
- }
- });
-
- parametersViewer.setColumnProperties(new String[]
- { "name", "value" }); //$NON-NLS-1$ //$NON-NLS-2$
- TextCellEditor textEditor = new TextCellEditor(fTable);
- CellEditor[] editors = new CellEditor[]
- { null, textEditor };
- parametersViewer.setCellEditors(editors);
- parametersViewer.setCellModifier(new ICellModifier()
- {
- public boolean canModify(Object element, String property)
- {
- return "value".equals(property); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public Object getValue(Object element, String property)
- {
- LaunchAttribute att = (LaunchAttribute) element;
- return att.value == null ? "" : att.value; //$NON-NLS-1$
- }
-
- public void modify(Object element, String property, Object value)
- {
- Item item = (Item) element;
- LaunchAttribute att = (LaunchAttribute) item.getData();
- att.value = (String) value;
- parametersViewer.update(att, null);
- updateLaunchConfigurationDialog();
- }
- });
-
- Composite parameterButtonComp = new Composite(group, SWT.NONE);
- GridLayout parameterButtonCompLayout = new GridLayout();
- parameterButtonCompLayout.marginHeight = 0;
- parameterButtonCompLayout.marginWidth = 0;
- parameterButtonComp.setLayout(parameterButtonCompLayout);
- gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_FILL);
- gd.horizontalSpan = 2;
- parameterButtonComp.setLayoutData(gd);
- parameterButtonComp.setFont(font);
-
- addParameterButton = createButton(parameterButtonComp, new AddParameterAction(parametersViewer));
- removeParameterButton = createButton(parameterButtonComp, new RemoveParameterAction(parametersViewer));
-
- transformsBlock.getStylesheetViewer().addSelectionChangedListener(selectionListener);
-
- restoreColumnSettings();
- }
-
- protected Button createButton(Composite pathButtonComp, AbstractParameterAction action)
- {
- Button button = createPushButton(pathButtonComp, action.getText(), null);
- action.setButton(button);
- return button;
- }
-
- @Override
- protected Table getTable()
- {
- return fTable;
- }
-
- @Override
- protected IDialogSettings getDialogSettings()
- {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier()
- {
- return XSLDebugUIConstants.MAIN_PARAMATERS_BLOCK;
- }
-
- public String getName()
- {
- return Messages.getString("ParametersBlock.9"); //$NON-NLS-1$
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- // handled by the Tab
- updateEnabled();
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- // handled by the Tab
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- // handled by the Tab
- }
-
- @Override
- public void dispose()
- {
- if (transformsBlock.getStylesheetViewer() != null)
- transformsBlock.getStylesheetViewer().removeSelectionChangedListener(selectionListener);
- super.dispose();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersContentProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersContentProvider.java
deleted file mode 100644
index 7dc8edd..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersContentProvider.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.util.Arrays;
-import java.util.List;
-
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.widgets.TableItem;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class ParametersContentProvider implements IStructuredContentProvider
-{
- private LaunchTransform stylesheetEntry;
- private ParameterViewer parameterViewer;
-
- public Object[] getElements(Object inputElement)
- {
- if (stylesheetEntry == null)
- return new Object[0];
- return stylesheetEntry.getParameters().toArray();
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- stylesheetEntry = (LaunchTransform) newInput;
- parameterViewer = (ParameterViewer) viewer;
- }
-
- public void dispose()
- {
- }
-
- public LaunchAttribute[] getParameters()
- {
- return (LaunchAttribute[]) stylesheetEntry.getParameters().toArray(new LaunchAttribute[0]);
- }
-
- public void removeParameters(LaunchAttribute[] entries)
- {
- for (LaunchAttribute parameter : entries)
- {
- stylesheetEntry.getParameters().remove(parameter);
- }
- TableItem[] items = parameterViewer.getTable().getItems();
- List<LaunchAttribute> entryList = Arrays.asList(entries);
- Object sel = null;
- for (int i = items.length - 1; i >= 0; i--)
- {
- TableItem item = items[i];
- if (!entryList.contains(item.getData()))
- {
- sel = item.getData();
- break;
- }
- }
- parameterViewer.remove(entries);
-
- if (sel != null)
- parameterViewer.setSelection(new StructuredSelection(sel), true);
- }
-
- public void addParameter(LaunchAttribute parameter)
- {
- stylesheetEntry.getParameters().add(parameter);
- parameterViewer.add(parameter);
- parameterViewer.setSelection(new StructuredSelection(parameter), true);
- // parameterViewer.refresh();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersLabelProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersLabelProvider.java
deleted file mode 100644
index e5da79f..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/ParametersLabelProvider.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.jface.viewers.ILabelProviderListener;
-import org.eclipse.jface.viewers.ITableLabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-public class ParametersLabelProvider implements ITableLabelProvider
-{
- public String getColumnText(Object element, int columnIndex)
- {
- LaunchAttribute p = (LaunchAttribute) element;
- switch (columnIndex)
- {
- case 0:
- return p.uri;
- case 1:
- return p.value;
- }
- return "!"; //$NON-NLS-1$
- }
-
- public Image getColumnImage(Object element, int columnIndex)
- {
- return null;
- }
-
- public void addListener(ILabelProviderListener listener)
- {
- }
-
- public void dispose()
- {
- }
-
- public boolean isLabelProperty(Object element, String property)
- {
- return false;
- }
-
- public void removeListener(ILabelProviderListener listener)
- {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetContentProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetContentProvider.java
deleted file mode 100644
index 17c34ad..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetContentProvider.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class StylesheetContentProvider implements IStructuredContentProvider
-{
- private TableViewer tableViewer;
- private LaunchPipeline pipeline;
-
- public StylesheetContentProvider()
- {
- }
-
- public Object[] getElements(Object inputElement)
- {
- return pipeline.getTransformDefs().toArray(new LaunchTransform[0]);
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- tableViewer = (TableViewer) viewer;
- pipeline = (LaunchPipeline) newInput;
- }
-
- public void dispose()
- {
- }
-
- public void setEntries(LaunchTransform[] transforms)
- {
- pipeline.setTransformDefs(new ArrayList<LaunchTransform>(Arrays.asList(transforms)));
- tableViewer.refresh();
- }
-
- public void addEntries(LaunchTransform[] res, Object beforeElement)
- {
- for (LaunchTransform transform : res)
- {
- pipeline.addTransformDef(transform);
- }
- tableViewer.add(res);
- // select the first new one
- tableViewer.setSelection(new StructuredSelection(res[0]), true);
- }
-
- public void removeEntries(LaunchTransform[] res)
- {
- for (LaunchTransform transform : res)
- {
- pipeline.removeTransformDef(transform);
- }
- tableViewer.refresh();
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetLabelProvider.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetLabelProvider.java
deleted file mode 100644
index d897e27..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetLabelProvider.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.io.File;
-import java.text.MessageFormat;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-public class StylesheetLabelProvider extends LabelProvider
-{
- private Image image = XSLDebugUIPlugin.getImageDescriptor("icons/xslt_launch.gif").createImage();
-
- @Override
- public Image getImage(Object element)
- {
- return image;
- }
-
- @Override
- public String getText(Object element)
- {
- LaunchTransform lt = (LaunchTransform) element;
- int index = lt.getPipeline().getTransformDefs().indexOf(lt);
-
- IPath path;
- try
- {
- path = lt.getPath();
- }
- catch (CoreException e)
- {
- return MessageFormat.format(Messages.StylesheetEntryLabelProvider_Invalid_path, new Object[]
- { "null" }); //$NON-NLS-1$
- }
-
- if (path == null)
- {
- return MessageFormat.format(Messages.StylesheetEntryLabelProvider_Invalid_path, new Object[]
- { "null" }); //$NON-NLS-1$
- }
- else if (!path.isAbsolute() || !path.isValidPath(path.toString()))
- {
- return MessageFormat.format(Messages.StylesheetEntryLabelProvider_Invalid_path, new Object[]
- { path.toString() });
- }
-
- String[] segments = path.segments();
- StringBuffer displayPath = new StringBuffer();
- if (segments.length > 0)
- {
- displayPath.append(segments[segments.length - 1]);
- displayPath.append(" - "); //$NON-NLS-1$
- String device = path.getDevice();
- if (device != null)
- {
- displayPath.append(device);
- }
- displayPath.append(File.separator);
- for (int i = 0; i < segments.length - 1; i++)
- {
- displayPath.append(segments[i]).append(File.separator);
- }
- }
- else
- {
- displayPath.append(path.toString());
- }
- return (index + 1) + ") " + displayPath.toString(); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetViewer.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetViewer.java
deleted file mode 100644
index 9030d6b..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/StylesheetViewer.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.util.List;
-
-import org.eclipse.core.runtime.ListenerList;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractStylesheetAction;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class StylesheetViewer extends TableViewer
-{
- private final ListenerList listenerList = new ListenerList();
-
- public StylesheetViewer(Composite parent)
- {
- super(parent);
-
- getTable().addKeyListener(new KeyAdapter()
- {
- @Override
- public void keyPressed(KeyEvent event)
- {
- if (updateSelection(AbstractStylesheetAction.REMOVE, (IStructuredSelection) getSelection()) && event.character == SWT.DEL && event.stateMask == 0)
- {
- List<?> selection = getSelectionFromWidget();
- getStylesheetContentProvider().removeEntries((LaunchTransform[]) selection.toArray(new LaunchTransform[0]));
- notifyChanged();
- }
- }
- });
- }
-
- private StylesheetContentProvider getStylesheetContentProvider()
- {
- return (StylesheetContentProvider) super.getContentProvider();
- }
-
- public void setEntries(LaunchTransform[] transforms)
- {
- getStylesheetContentProvider().setEntries(transforms);
- notifyChanged();
- }
-
- public LaunchTransform[] getEntries()
- {
- return (LaunchTransform[]) getStylesheetContentProvider().getElements(null);
- }
-
- public Shell getShell()
- {
- return getControl().getShell();
- }
-
- public boolean isEnabled()
- {
- return true;
- }
-
- public boolean updateSelection(int actionType, IStructuredSelection selection)
- {
- switch (actionType)
- {
- case AbstractStylesheetAction.ADD:
- return true;
- case AbstractStylesheetAction.REMOVE:
- case AbstractStylesheetAction.MOVE:
- default:
- break;
- }
- return selection.size() > 0;
- }
-
- public IStructuredSelection getSelectedEntries()
- {
- IStructuredSelection selection = (IStructuredSelection) getSelection();
- return selection;
- }
-
- public void addTransforms(LaunchTransform[] res)
- {
- IStructuredSelection sel = (IStructuredSelection) getSelection();
- Object beforeElement = sel.getFirstElement();
- if (getEntries().length > 1 && beforeElement == null)
- beforeElement = getEntries()[getEntries().length - 1];
- getStylesheetContentProvider().addEntries(res, beforeElement);
- notifyChanged();
- }
-
- public void removeEntries(LaunchTransform[] entries)
- {
- getStylesheetContentProvider().removeEntries(entries);
- notifyChanged();
- }
-
- public void addEntriesChangedListener(IStylesheetEntriesChangedListener listener)
- {
- listenerList.add(listener);
- }
-
- public void removeEntriesChangedListener(IStylesheetEntriesChangedListener listener)
- {
- listenerList.remove(listener);
- }
-
- private void notifyChanged()
- {
- Object[] listeners = listenerList.getListeners();
- for (Object element : listeners)
- {
- ((IStylesheetEntriesChangedListener) element).entriesChanged(this);
- }
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/TransformsBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/TransformsBlock.java
deleted file mode 100644
index 81a748d..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/TransformsBlock.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractStylesheetAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AddExternalFileAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.AddWorkspaceFileAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.MoveDownAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.MoveUpAction;
-import org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveAction;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.debug.ui.Messages;
-
-public class TransformsBlock extends AbstractTableBlock implements IStylesheetEntriesChangedListener
-{
- protected static final String DIALOG_SETTINGS_PREFIX = "TransformsBlock";
- private StylesheetViewer stylesheetViewer;
- private LaunchPipeline pipeline;
-
- public TransformsBlock()
- {
- super();
- }
-
- public void createControl(Composite parent)
- {
- Font font = parent.getFont();
-
- Group group = new Group(parent, SWT.NONE);
- group.setText(getName());
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- group.setLayoutData(gd);
- GridLayout layout = new GridLayout();
- layout.numColumns = 3;
- group.setLayout(layout);
- group.setFont(font);
-
- setControl(group);
-
- stylesheetViewer = new StylesheetViewer(group);
- gd = new GridData(SWT.FILL, SWT.FILL, true, true);
- stylesheetViewer.getTable().setLayoutData(gd);
- stylesheetViewer.addEntriesChangedListener(this);
- stylesheetViewer.getControl().setFont(font);
- stylesheetViewer.setLabelProvider(new StylesheetLabelProvider());
- stylesheetViewer.setContentProvider(new StylesheetContentProvider());
- stylesheetViewer.getTable().addKeyListener(new KeyAdapter() {
- public void keyPressed(KeyEvent event) {
- if (event.character == SWT.DEL && event.stateMask == 0) {
- RemoveAction ra = new RemoveAction(stylesheetViewer);
- ra.run();
- updateLaunchConfigurationDialog();
- }
- }
- });
-
- Composite upDownButtonComp = new Composite(group, SWT.NONE);
- GridLayout upDownButtonLayout = new GridLayout();
- upDownButtonLayout.marginHeight = 0;
- upDownButtonLayout.marginWidth = 0;
- upDownButtonComp.setLayout(upDownButtonLayout);
- gd = new GridData(SWT.FILL, SWT.FILL, false, true);
- upDownButtonComp.setLayoutData(gd);
- upDownButtonComp.setFont(font);
-
- createArrowButton(upDownButtonComp, new MoveUpAction(stylesheetViewer), SWT.UP);
- Label spacer = new Label(upDownButtonComp, SWT.NONE);
- gd = new GridData(SWT.NONE, SWT.FILL, false, true);
- spacer.setLayoutData(gd);
- createArrowButton(upDownButtonComp, new MoveDownAction(stylesheetViewer), SWT.DOWN);
-
- Composite pathButtonComp = new Composite(group, SWT.NONE);
- GridLayout pathButtonLayout = new GridLayout();
- pathButtonLayout.marginHeight = 0;
- pathButtonLayout.marginWidth = 0;
- pathButtonComp.setLayout(pathButtonLayout);
- gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_FILL);
- pathButtonComp.setLayoutData(gd);
- pathButtonComp.setFont(font);
-
- createButton(pathButtonComp, new AddWorkspaceFileAction(stylesheetViewer));
- createButton(pathButtonComp, new AddExternalFileAction(stylesheetViewer, DIALOG_SETTINGS_PREFIX));
- createButton(pathButtonComp, new RemoveAction(stylesheetViewer));
- }
-
- public Viewer getStylesheetViewer()
- {
- return stylesheetViewer;
- }
-
- protected Button createArrowButton(Composite pathButtonComp, AbstractStylesheetAction action, int updown)
- {
- Button b = new Button(pathButtonComp, SWT.ARROW | updown);
- GridData gd = new GridData();
- b.setLayoutData(gd);
- action.setButton(b);
- return b;
- }
-
- protected Button createButton(Composite pathButtonComp, AbstractStylesheetAction action)
- {
- Button button = createPushButton(pathButtonComp, action.getText(), null);
- action.setButton(button);
- return button;
- }
-
- public String getName()
- {
- return Messages.getString("TransformsBlock_Name");
- }
-
- public void setPipeline(LaunchPipeline pipeline)
- {
- this.pipeline = pipeline;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- stylesheetViewer.setInput(pipeline);
- if (pipeline.getTransformDefs().size() > 0)
- {
- stylesheetViewer.setSelection(new StructuredSelection(pipeline.getTransformDefs().get(0)));
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- }
-
- public void entriesChanged(StylesheetViewer viewer)
- {
- setDirty(true);
- updateLaunchConfigurationDialog();
- }
-
- @Override
- protected void setSortColumn(int column)
- {
- switch (column)
- {
- // case 1:
- // sortByName();
- // break;
- // case 2:
- // sortByType();
- // break;
- }
- super.setSortColumn(column);
- }
-
- @Override
- protected Table getTable()
- {
- return stylesheetViewer == null ? null : stylesheetViewer.getTable();
- }
-
- @Override
- protected IDialogSettings getDialogSettings()
- {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier()
- {
- return XSLDebugUIConstants.MAIN_TRANSFORMS_BLOCK;
- }
-
- @Override
- public void dispose()
- {
- if (stylesheetViewer != null)
- stylesheetViewer.removeEntriesChangedListener(this);
- super.dispose();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/XSLMainTab.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/XSLMainTab.java
deleted file mode 100644
index 92a773f..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/XSLMainTab.java
+++ /dev/null
@@ -1,222 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007,2008 Chase Technology Ltd - http://www.chasetechnology.co.uk and others
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver - STAR - bug 223557 - Added Images contributed by Holger Voorman
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.main;
-
-import java.io.ByteArrayInputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.IWorkbenchPage;
-import org.eclipse.wst.xsl.core.XSLCore;
-import org.eclipse.wst.xsl.debug.internal.util.XSLDebugPluginImages;
-import org.eclipse.wst.xsl.debug.internal.util.XSLPluginImageHelper;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchConfigurationTab;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class XSLMainTab extends XSLLaunchConfigurationTab
-{
- private final InputFileBlock inputFileBlock;
- private final TransformsBlock transformsBlock;
- private final ParametersBlock parametersBlock;
- public LaunchPipeline pipeline;
-
- // private RenderBlock renderBlock;
- // private OutputBlock outputBlock;
-
- public XSLMainTab()
- {
- IResource[] resourceContext = getContext();
- IFile inputFile = getXMLInput(resourceContext);
-
- inputFileBlock = new InputFileBlock(inputFile);
- transformsBlock = new TransformsBlock();
- parametersBlock = new ParametersBlock(transformsBlock);
- // renderBlock = new RenderBlock();
- // outputBlock = new OutputBlock();
-
- setBlocks(new ILaunchConfigurationTab[]
- { inputFileBlock, transformsBlock, parametersBlock }); // ,renderBlock,outputBlock});
- }
-
- @Override
- public void createControl(Composite parent)
- {
- super.createControl(parent);
- Composite comp = (Composite) getControl();
- GridLayout layout = new GridLayout(1, false);
- comp.setLayout(layout);
-
- inputFileBlock.createControl(comp);
- transformsBlock.createControl(comp);
- parametersBlock.createControl(comp);
- // renderBlock.createControl(comp);
- // outputBlock.createControl(comp);
- }
-
- @Override
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- LaunchPipeline lp = new LaunchPipeline();
- IResource[] resourceContext = getContext();
- IFile[] stylesheets = getXSLStylesheets(resourceContext);
- for (IFile file : stylesheets)
- {
- LaunchTransform lt = new LaunchTransform(file.getFullPath().toPortableString(), LaunchTransform.RESOURCE_TYPE);
- lp.addTransformDef(lt);
- }
- savePipeline(configuration, lp);
- super.setDefaults(configuration);
- }
-
- @Override
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- pipeline = null;
- try
- {
- String s = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_PIPELINE, (String) null);
- if (s != null && s.length() > 0)
- {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(s.getBytes());
- pipeline = LaunchPipeline.fromXML(inputStream);
- }
- else
- {
- pipeline = new LaunchPipeline();
- }
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- transformsBlock.setPipeline(pipeline);
- super.initializeFrom(configuration);
- }
-
- @Override
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- super.performApply(configuration);
- savePipeline(configuration, pipeline);
- }
-
- private void savePipeline(ILaunchConfigurationWorkingCopy configuration, LaunchPipeline pipeline)
- {
- try
- {
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_PIPELINE, pipeline.toXML());
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public String getName()
- {
- return MainTabMessages.XSLMainTab_TabName;
- }
-
- private static IResource[] getContext()
- {
-
- // IProject[] projects =
- // ResourcesPlugin.getWorkspace().getRoot().getProjects();
- // project.setInput( projects);
- // String s = configuration.getAttribute(
- // IXSLTLaunchConfiguration.PROJECT, "");
- // IProject project = null;
- // if( s.equals(""))
- // {
- // if( projects.length>0)
- // {
- // project = projects[ 0];
- // }
- // }
- // else
- // project = ResourcesPlugin.getWorkspace().getRoot().getProject( s);
-
- IWorkbenchPage page = XSLDebugUIPlugin.getActivePage();
- List<Object> resources = new ArrayList<Object>();
- if (page != null)
- {
- // use selections to find the project
- ISelection selection = page.getSelection();
- if (selection != null && !selection.isEmpty() && selection instanceof IStructuredSelection)
- {
- IStructuredSelection ss = (IStructuredSelection) selection;
- for (Iterator<?> iter = ss.iterator(); iter.hasNext();)
- {
- Object element = iter.next();
- if (element instanceof IResource)
- resources.add(element);
- }
- return (IResource[]) resources.toArray(new IResource[0]);
- }
- // use current editor to find the project
- IEditorPart part = page.getActiveEditor();
- if (part != null)
- {
- IEditorInput input = part.getEditorInput();
- IFile file = (IFile) input.getAdapter(IFile.class);
- if (file != null)
- return new IResource[]
- { file };
- }
- }
- return new IResource[0];
- }
-
- private IFile getXMLInput(IResource[] context)
- {
- for (IResource resource : context)
- {
- if (resource instanceof IFile && ("xml".equalsIgnoreCase(resource.getFileExtension()) || "xhtml".equalsIgnoreCase(resource.getFileExtension()))) //$NON-NLS-1$ //$NON-NLS-2$
- return (IFile) resource;
- }
- return null;
- }
-
- private IFile[] getXSLStylesheets(IResource[] context)
- {
- List<IResource> stylesheets = new ArrayList<IResource>();
- for (IResource resource : context)
- {
- if (resource instanceof IFile && XSLCore.isXSLFile((IFile)resource))
- stylesheets.add(resource);
- }
- return (IFile[]) stylesheets.toArray(new IFile[0]);
-
- }
-
- @Override
- public Image getImage() {
- return XSLPluginImageHelper.getInstance().getImage(XSLDebugPluginImages.IMG_MAIN_TAB);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/messages.properties b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/messages.properties
deleted file mode 100644
index b6a38df..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/main/messages.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-ParametersBlock.0=Name
-ParametersBlock.1=Type
-ParametersBlock.10=type
-ParametersBlock.11=value
-ParametersBlock.2=Value
-ParametersBlock.3=name
-ParametersBlock.4=type
-ParametersBlock.5=value
-ParametersBlock.6=type
-ParametersBlock.7=value
-ParametersBlock.8=type
-ParametersBlock.9=Transformation Parameters
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/Messages.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/Messages.java
deleted file mode 100644
index 4afa178..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/Messages.java
+++ /dev/null
@@ -1,91 +0,0 @@
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.output;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.internal.debug.ui.tabs.output.messages"; //$NON-NLS-1$
- public static String OutputPropertiesBlock_0;
- public static String OutputPropertiesBlock_1;
- public static String OutputPropertiesBlock_13;
- public static String OutputPropertiesBlock_3;
- public static String OutputPropertiesBlock_4;
- public static String OutputPropertiesBlock_5;
- public static String OutputPropertiesBlock_7;
- public static String OutputPropertiesBlock_8;
- public static String OutputPropertiesBlock_9;
- public static String OutputTab_0;
- public static String OutputTab_1;
-
- public static String OutputTypeBlock_Group_Name;
-
- public static String OutputFileBlock_0;
-
- public static String OutputFileBlock_7;
-
- public static String OutputFileBlock_8;
-
- public static String OutputFileBlock_9;
-
- public static String OutputFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String OutputFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String OutputFileBlock_GROUP_NAME;
-
- public static String OutputFileBlock_DEFAULT_RADIO;
-
- public static String OutputFileBlock_OTHER_RADIO;
-
- public static String OutputFileBlock_DIALOG_MESSAGE;
-
- public static String OutputFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String OutputFileBlock_VARIABLES_BUTTON;
-
- public static String OutputFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String OutputFileBlock_WORKSPACE_BUTTON;
-
- public static String OutputFileBlock_Name;
-
- public static String OutputFileBlock_Exception_occurred_reading_configuration;
-
- public static String OutputFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String OutputFileBlock_Exception_occurred_saving_configuration;
-
- public static String OutputFOFileBlock_DIRECTORY_NOT_SPECIFIED;
-
- public static String OutputFOFileBlock_DIRECTORY_DOES_NOT_EXIST;
-
- public static String OutputFOFileBlock_GROUP_NAME;
-
- public static String OutputFOFileBlock_DEFAULT_RADIO;
-
- public static String OutputFOFileBlock_OTHER_RADIO;
-
- public static String OutputFOFileBlock_DIALOG_MESSAGE;
-
- public static String OutputFOFileBlock_WORKSPACE_DIALOG_MESSAGE;
-
- public static String OutputFOFileBlock_VARIABLES_BUTTON;
-
- public static String OutputFOFileBlock_FILE_SYSTEM_BUTTON;
-
- public static String OutputFOFileBlock_WORKSPACE_BUTTON;
-
- public static String OutputFOFileBlock_Name;
-
- public static String OutputFOFileBlock_Exception_occurred_reading_configuration;
-
- public static String OutputFOFileBlock_WORKSPACE_DIALOG_TITLE;
-
- public static String OutputFOFileBlock_Exception_occurred_saving_configuration;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputFileBlock.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputFileBlock.java
deleted file mode 100644
index 73c9d5c..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputFileBlock.java
+++ /dev/null
@@ -1,299 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.output;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.internal.debug.ui.ResourceSelectionBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.XSLTRuntime;
-
-public class OutputFileBlock extends ResourceSelectionBlock
-{
- private Button openFileCheckButton;
- private Button formatFileCheckButton;
- private String inputFilename;
- private Text fileNameText;
- private String defaultOutputFileName;
- private String outputFileName;
-
- public OutputFileBlock()
- {
- super(IResource.FOLDER, true, true, false);
- }
-
- @Override
- protected String getMessage(int type)
- {
- switch (type)
- {
- case ERROR_DIRECTORY_NOT_SPECIFIED:
- return Messages.OutputFOFileBlock_DIRECTORY_NOT_SPECIFIED;
- case ERROR_DIRECTORY_DOES_NOT_EXIST:
- return Messages.OutputFOFileBlock_DIRECTORY_DOES_NOT_EXIST;
- case GROUP_NAME:
- return getName();
- case USE_DEFAULT_RADIO:
- return Messages.OutputFileBlock_0;
- case USE_OTHER_RADIO:
- return Messages.OutputFOFileBlock_OTHER_RADIO;
- case DIRECTORY_DIALOG_MESSAGE:
- return Messages.OutputFOFileBlock_DIALOG_MESSAGE;
- case WORKSPACE_DIALOG_MESSAGE:
- return Messages.OutputFOFileBlock_WORKSPACE_DIALOG_MESSAGE;
- case VARIABLES_BUTTON:
- return Messages.OutputFOFileBlock_VARIABLES_BUTTON;
- case FILE_SYSTEM_BUTTON:
- return Messages.OutputFOFileBlock_FILE_SYSTEM_BUTTON;
- case WORKSPACE_BUTTON:
- return Messages.OutputFOFileBlock_WORKSPACE_BUTTON;
- case WORKSPACE_DIALOG_TITLE:
- return Messages.OutputFOFileBlock_WORKSPACE_DIALOG_TITLE;
- }
- return "" + type; //$NON-NLS-1$
- }
-
- @Override
- protected void setDefaultResource()
- {}
-
- @Override
- protected void createCheckboxAndText(Composite parent)
- {
- if (showDefault)
- {
- useDefaultCheckButton = createCheckButton(parent, getMessage(USE_DEFAULT_RADIO));
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 2;
- useDefaultCheckButton.setLayoutData(gd);
- useDefaultCheckButton.addSelectionListener(widgetListener);
- }
-
- Composite specificFileComp = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout(2, false);
- layout.marginWidth = 0;
- if (showDefault)
- layout.marginLeft = 20;
- else
- layout.marginLeft = 0;
- layout.marginHeight = 0;
- specificFileComp.setLayout(layout);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = 2;
- specificFileComp.setLayoutData(gd);
-
- Label label = new Label(specificFileComp, SWT.NONE);
- label.setText("Filename");
-
- fileNameText = new Text(specificFileComp, SWT.SINGLE | SWT.BORDER);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = showDefault ? 1 : 2;
- fileNameText.setLayoutData(gd);
- fileNameText.setFont(parent.getFont());
- fileNameText.addModifyListener(widgetListener);
-
- if (showDefault)
- {
- label = new Label(specificFileComp, SWT.NONE);
- label.setText(Messages.OutputFileBlock_7);
- }
-
- resourceText = new Text(specificFileComp, SWT.SINGLE | SWT.BORDER);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = showDefault ? 1 : 2;
- resourceText.setLayoutData(gd);
- resourceText.setFont(parent.getFont());
- resourceText.addModifyListener(widgetListener);
- }
-
- @Override
- protected void createButtons(Composite parent)
- {
- Composite checkComposite = new Composite(parent,SWT.NONE);
- checkComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
- GridLayout gl = new GridLayout();
- gl.marginWidth = 0;
- checkComposite.setLayout(gl);
-
- openFileCheckButton = createCheckButton(checkComposite, Messages.OutputFileBlock_8);
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 1;
- openFileCheckButton.setLayoutData(gd);
- openFileCheckButton.addSelectionListener(new SelectionListener()
- {
-
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
-
- public void widgetSelected(SelectionEvent e)
- {
- if (openFileCheckButton.getSelection())
- {
- formatFileCheckButton.setEnabled(true);
- updateLaunchConfigurationDialog();
- }
- else
- {
- formatFileCheckButton.setEnabled(false);
- formatFileCheckButton.setSelection(false);
- }
- }
- });
-
- formatFileCheckButton = createCheckButton(checkComposite, "Format file on completion");
- gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 1;
- formatFileCheckButton.setLayoutData(gd);
- formatFileCheckButton.addSelectionListener(new SelectionListener()
- {
-
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
-
- public void widgetSelected(SelectionEvent e)
- {
- updateLaunchConfigurationDialog();
- }
- });
-
- Composite buttonComp = new Composite(parent, SWT.TOP);
- GridLayout layout = new GridLayout(3, false);
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- buttonComp.setLayout(layout);
- gd = new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_BEGINNING);
- gd.horizontalSpan = 1;
- buttonComp.setLayoutData(gd);
- buttonComp.setFont(parent.getFont());
-
- fWorkspaceButton = createPushButton(buttonComp, getMessage(WORKSPACE_BUTTON), null);
- fWorkspaceButton.addSelectionListener(widgetListener);
-
- fFileSystemButton = createPushButton(buttonComp, getMessage(FILE_SYSTEM_BUTTON), null);
- fFileSystemButton.addSelectionListener(widgetListener);
-
- fVariablesButton = createPushButton(buttonComp, getMessage(VARIABLES_BUTTON), null);
- fVariablesButton.addSelectionListener(widgetListener);
- }
-
- public String getName()
- {
- return Messages.OutputFileBlock_9;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- try
- {
- inputFilename = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, ""); //$NON-NLS-1$
- updateDefaultOutputFile();
-
- boolean useDefault = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE, true);
- useDefaultCheckButton.setSelection(useDefault);
-
- outputFileName = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_OUTPUT_FILENAME, defaultOutputFileName);
- resource = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_OUTPUT_FOLDER, defaultResource);
-
- updateResourceText(useDefault);
-
- boolean openFileOnCompletion = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_OPEN_FILE, true);
- openFileCheckButton.setSelection(openFileOnCompletion);
-
- boolean formatFileOnCompletion = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_FORMAT_FILE, false);
- formatFileCheckButton.setSelection(formatFileOnCompletion);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- boolean useDefault = useDefaultCheckButton.getSelection();
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE, useDefault);
-
- String outputFile = resourceText.getText();
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_OUTPUT_FOLDER, outputFile);
-
- String outputFileName = fileNameText.getText();
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_OUTPUT_FILENAME, outputFileName);
-
- boolean openFileOnCompletion = openFileCheckButton.getSelection();
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_OPEN_FILE, openFileOnCompletion);
-
- boolean formatFileOnCompletion = formatFileCheckButton.getSelection();
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_FORMAT_FILE, formatFileOnCompletion);
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE, true);
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_OUTPUT_FOLDER, (String)null);
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_OUTPUT_FILENAME, (String)null);
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_OPEN_FILE, true);
- configuration.setAttribute(XSLLaunchConfigurationConstants.ATTR_FORMAT_FILE, false);
- }
-
- protected void updateResourceText(boolean useDefault)
- {
- fileNameText.setEnabled(!useDefault);
- if (useDefault)
- fileNameText.setText(defaultOutputFileName == null ? "" : defaultOutputFileName); //$NON-NLS-1$
- else
- fileNameText.setText(outputFileName == null ? defaultOutputFileName : outputFileName); //$NON-NLS-1$
- super.updateResourceText(useDefault);
- }
-
- private void updateDefaultOutputFile()
- {
- try
- {
- IPath path = XSLTRuntime.defaultOutputFileForInputFile(inputFilename);
- // determine whether this path exists in the workspace
- IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(path);
- if (files.length > 0)
- {// inside workspace
- IPath p = new Path(files[0].getProject().getName());
- p.append(files[0].getParent().getProjectRelativePath());
- defaultResource = "${workspace_loc:/"+p.toString()+"}";
- }
- else
- {// outside workspace
- IPath p = path.removeLastSegments(1);
- defaultResource = p.toOSString();
- }
- defaultOutputFileName = path.lastSegment();
- }
- catch (CoreException e)
- {
- // do nothing
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputTab.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputTab.java
deleted file mode 100644
index 2d5830e..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/OutputTab.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.debug.ui.tabs.output;
-
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.wst.xsl.debug.internal.util.XSLDebugPluginImages;
-import org.eclipse.wst.xsl.debug.internal.util.XSLPluginImageHelper;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchConfigurationTab;
-import org.eclipse.wst.xsl.internal.debug.ui.tabs.main.XSLMainTab;
-
-public class OutputTab extends XSLLaunchConfigurationTab
-{
- private final OutputFileBlock outputFileBlock;
-
- public OutputTab(XSLMainTab main)
- {
- outputFileBlock = new OutputFileBlock();
-// outputBlock = new OutputPropertiesBlock(main);
-
-// setBlocks(new ILaunchConfigurationTab[]
-// { outputBlock, outputFileBlock });
- setBlocks(new ILaunchConfigurationTab[]
- { outputFileBlock });
- }
-
- @Override
- public void createControl(Composite parent)
- {
- super.createControl(parent);
- Composite comp = (Composite) getControl();
- GridLayout layout = new GridLayout(1, false);
- comp.setLayout(layout);
-
- outputFileBlock.createControl(comp);
-
-// Group group = new Group(comp, SWT.NULL);
-// group.setText(Messages.OutputTab_0);
-// GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);
-// group.setLayoutData(gd);
-// layout = new GridLayout(2, false);
-// group.setLayout(layout);
-
-// outputBlock.createControl(group);
- }
-
- @Override
- public String getId()
- {
- return "org.eclipse.wst.xsl.internal.debug.ui.tabs.output";
- }
-
- public String getName()
- {
- return Messages.OutputTab_1;
- }
-
- @Override
- public Image getImage() {
- return XSLPluginImageHelper.getInstance().getImage(XSLDebugPluginImages.IMG_OUTPUT_TAB);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/messages.properties b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/messages.properties
deleted file mode 100644
index 38e389d..0000000
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/tabs/output/messages.properties
+++ /dev/null
@@ -1,48 +0,0 @@
-OutputPropertiesBlock_0=Use properties from preferences
-OutputPropertiesBlock_1=Change Preferences...
-OutputPropertiesBlock_13=Output Properties
-OutputPropertiesBlock_3=Use specific properties
-OutputPropertiesBlock_4=Property
-OutputPropertiesBlock_5=Value
-OutputPropertiesBlock_7=property
-OutputPropertiesBlock_8=value
-OutputPropertiesBlock_9=value
-OutputTab_0=Output Properties
-OutputTab_1=Output
-
-
-
-OutputTypeBlock_Group_Name=Output Type
-OutputFileBlock_0=Use default location
-OutputFileBlock_7=Location:
-OutputFileBlock_8=Open file on completion
-OutputFileBlock_9=Output File
-OutputFileBlock_DIRECTORY_NOT_SPECIFIED=Transform output file not specified
-OutputFileBlock_DIRECTORY_DOES_NOT_EXIST=Transform output file does not exist
-OutputFileBlock_GROUP_NAME=Transform Output File
-OutputFileBlock_DEFAULT_RADIO=Default
-OutputFileBlock_OTHER_RADIO=Other
-OutputFileBlock_DIALOG_MESSAGE=Select an external output file
-OutputFileBlock_WORKSPACE_DIALOG_MESSAGE=Select an output file from the workspace
-OutputFileBlock_VARIABLES_BUTTON=Variables...
-OutputFileBlock_FILE_SYSTEM_BUTTON=File System...
-OutputFileBlock_WORKSPACE_BUTTON=Workspace...
-OutputFileBlock_Name=Transform Output File
-OutputFileBlock_Exception_occurred_reading_configuration=Exception occurred reading configuration
-OutputFileBlock_Exception_occurred_saving_configuration=Exception occurred saving launch configuration
-OutputFileBlock_WORKSPACE_DIALOG_TITLE=File Selection
-
-OutputFOFileBlock_DIRECTORY_NOT_SPECIFIED=Renderer output file not specified
-OutputFOFileBlock_DIRECTORY_DOES_NOT_EXIST=Renderer output file does not exist
-OutputFOFileBlock_GROUP_NAME=Renderer Output File
-OutputFOFileBlock_DEFAULT_RADIO=Default
-OutputFOFileBlock_OTHER_RADIO=Other
-OutputFOFileBlock_DIALOG_MESSAGE=Select an external output file
-OutputFOFileBlock_WORKSPACE_DIALOG_MESSAGE=Select an output file from the workspace
-OutputFOFileBlock_VARIABLES_BUTTON=Variables...
-OutputFOFileBlock_FILE_SYSTEM_BUTTON=File System...
-OutputFOFileBlock_WORKSPACE_BUTTON=Workspace...
-OutputFOFileBlock_Name=Renderer Output File
-OutputFOFileBlock_Exception_occurred_reading_configuration=Exception occurred reading configuration
-OutputFOFileBlock_Exception_occurred_saving_configuration=Exception occurred saving launch configuration
-OutputFOFileBlock_WORKSPACE_DIALOG_TITLE=File Selection \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.classpath b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.project b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.project
deleted file mode 100644
index 6a6f79d..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.project
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.jaxp.debug.ui</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index d1c389a..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Thu Jul 31 15:17:34 BST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/META-INF/MANIFEST.MF
deleted file mode 100644
index 8a0b589..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,25 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.jaxp.debug.ui;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.jaxp.debug.ui.internal.JAXPDebugUIPlugin
-Bundle-Vendor: %vendorName
-Require-Bundle: org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.debug.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.debug.ui;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.ui.ide;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.launching;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.xsl.jaxp.launching;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.jface.text;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.sse.ui;bundle-version="[1.1.0,2.0.0)",
- org.eclipse.wst.xsl.ui;bundle-version="[1.0.0,2.0.0)",
- org.eclipse.wst.sse.core;bundle-version="[1.1.300,2.0.0)",
- org.eclipse.wst.xml.core;bundle-version="[1.1.300,2.0.0)",
- org.eclipse.ui.workbench.texteditor;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xml.ui;bundle-version="[1.0.400,2.0.0)",
- org.eclipse.jdt.debug.ui;bundle-version="[3.3.0,4.0.0)"
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/about.html b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/about.html
deleted file mode 100644
index ed30003..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>August, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/build.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/build.properties
deleted file mode 100644
index 647fcc0..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- icons/,\
- plugin.properties
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/icons/xslt_processor.gif b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/icons/xslt_processor.gif
deleted file mode 100644
index 5e71289..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/icons/xslt_processor.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.properties
deleted file mode 100644
index f81236c..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.jaxp.debug.ui
-vendorName = Eclipse.org
-pluginName = XSL JAXP Debug UI (Incubating)
-pageNameJavaProcessors = Java Processors
-viewNameResult = Result \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.xml b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.xml
deleted file mode 100644
index af972da..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/plugin.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension point="org.eclipse.debug.ui.launchConfigurationTabs">
- <tab
- class="org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.XSLProcessorTab2"
- group="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTabGroup.xslt"
- id="org.eclipse.wst.xsl.debug.ui.jaxp.tabs.processor" name="Processor">
- <associatedDelegate
- delegate="org.eclipse.wst.xsl.launching.internal.jaxp.JAXPLaunchConfigurationDelegate">
- </associatedDelegate>
- <placement after="org.eclipse.wst.xsl.internal.debug.ui.tabs.output">
- </placement>
- </tab>
- <tab class="org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab"
- group="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTabGroup.xslt"
- id="org.eclipse.jdt.debug.ui.javaJRETab" name="JRE">
- <associatedDelegate
- delegate="org.eclipse.wst.xsl.launching.internal.jaxp.JAXPLaunchConfigurationDelegate">
- </associatedDelegate>
- <placement after="org.eclipse.wst.xsl.debug.ui.jaxp.tabs.processor">
- </placement>
- </tab>
- <tab class="org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab"
- group="org.eclipse.wst.xsl.internal.debug.ui.launchConfigurationTabGroup.xslt"
- id="org.eclipse.jdt.debug.ui.javaClasspathTab" name="Classpath">
- <associatedDelegate
- delegate="org.eclipse.wst.xsl.launching.internal.jaxp.JAXPLaunchConfigurationDelegate">
- </associatedDelegate>
- <placement after="org.eclipse.jdt.debug.ui.javaJRETab">
- </placement>
- </tab>
- </extension>
- <extension point="org.eclipse.ui.preferencePages">
- <page category="org.eclipse.wst.xsl.ui.preferences.BasePreferencePage"
- class="org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences.ProcessorsPreferencePage"
- id="org.eclipse.wst.xsl.ui.preferences.java" name="%pageNameJavaProcessors">
- </page>
- </extension>
- <extension
- point="org.eclipse.ui.views">
- <view
- class="org.eclipse.wst.xsl.jaxp.debug.ui.internal.views.ResultView"
- id="org.eclipse.wst.xsl.jaxp.debug.ui.resultview"
- name="%viewNameResult"
- category="org.eclipse.wst.xml">
- </view>
- </extension>
- <extension
- point="org.eclipse.ui.perspectiveExtensions">
- <perspectiveExtension
- targetID="org.eclipse.debug.ui.DebugPerspective">
- <view
- id="org.eclipse.wst.xsl.jaxp.debug.ui.view1"
- minimized="false"
- relationship="stack"
- relative="org.eclipse.ui.console.ConsoleView"
- visible="false">
- </view>
- </perspectiveExtension>
- </extension>
-
- <extension point="org.eclipse.debug.ui.contextViewBindings">
- <contextViewBinding
- contextId="org.eclipse.wst.xsl.debug.ui.context"
- viewId="org.eclipse.wst.xsl.jaxp.debug.ui.resultview">
- </contextViewBinding>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/JAXPDebugUIPlugin.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/JAXPDebugUIPlugin.java
deleted file mode 100644
index d79b21d..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/JAXPDebugUIPlugin.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.IDebugEventSetListener;
-import org.eclipse.debug.core.ILaunch;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchListener;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.wst.xsl.launching.config.BaseLaunchHelper;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class JAXPDebugUIPlugin extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.jaxp.debug.ui";
-
- // The shared instance
- private static JAXPDebugUIPlugin plugin;
-
- /**
- * The constructor
- */
- public JAXPDebugUIPlugin() {
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- }
-
- /*
- * (non-Javadoc)
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static JAXPDebugUIPlugin getDefault() {
- return plugin;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/AddProcessorDialog.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/AddProcessorDialog.java
deleted file mode 100644
index f9b92b1..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/AddProcessorDialog.java
+++ /dev/null
@@ -1,384 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import java.io.File;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.dialogs.StatusDialog;
-import org.eclipse.jface.viewers.ComboViewer;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.InstallStandin;
-import org.eclipse.wst.xsl.jaxp.launching.IDebugger;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class AddProcessorDialog extends StatusDialog
-{
- private final InstallStandin standinProcessor;
- private final IProcessorType[] processorTypes;
- private IProcessorType selectedProcessorType;
- private ComboViewer processorTypeField;
- private ProcessorLibraryBlock fLibraryBlock;
- private Text processorNameField;
- private final IStatus[] fStati;
- private int fPrevIndex = -1;
- private final InstalledProcessorsBlock block;
- private boolean adding;
-
- public AddProcessorDialog(InstalledProcessorsBlock block, Shell parent, IProcessorType[] types, IProcessorInstall install)
- {
- super(parent);
- setShellStyle(getShellStyle() | SWT.RESIZE);
- this.block = block;
- fStati = new IStatus[5];
- for (int i = 0; i < fStati.length; i++)
- {
- fStati[i] = Status.OK_STATUS;
- }
- processorTypes = types;
- selectedProcessorType = install != null ? install.getProcessorType() : types[0];
- InstallStandin standin = null;
- if (install == null)
- {
- adding = true;
- standin = new InstallStandin(JAXPRuntime.createUniqueProcessorId(selectedProcessorType), "", selectedProcessorType.getId(), null, new IProcessorJar[0]); //$NON-NLS-1$
- }
- else
- {
- standin = new InstallStandin(install);
- }
- standinProcessor = standin;
- }
-
- @Override
- protected void configureShell(Shell newShell)
- {
- super.configureShell(newShell);
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp...
- }
-
- protected void createDialogFields(Composite parent)
- {
- GridData gd;
- Label label;
-
- label = new Label(parent, SWT.NONE);
- label.setText(Messages.AddProcessorDialog_processorName);
- processorNameField = new Text(parent, SWT.BORDER);
- gd = new GridData(SWT.NONE, SWT.NONE, false, false);
- gd.widthHint = convertWidthInCharsToPixels(50);
- gd.horizontalSpan = 2;
- processorNameField.setLayoutData(gd);
-
- label = new Label(parent, SWT.NONE);
- label.setText(Messages.AddProcessorDialog_processorType);
- processorTypeField = new ComboViewer(parent, SWT.READ_ONLY);
- gd = new GridData();
- gd.horizontalSpan = 2;
- processorTypeField.getCombo().setLayoutData(gd);
- processorTypeField.setContentProvider(new IStructuredContentProvider()
- {
-
- private Object input;
-
- public Object[] getElements(Object inputElement)
- {
- return (IProcessorType[]) input;
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- input = newInput;
- }
- });
- processorTypeField.setLabelProvider(new LabelProvider()
- {
- @Override
- public String getText(Object element)
- {
- return ((IProcessorType) element).getLabel();
- }
- });
-
- }
-
- protected void createFieldListeners()
- {
- processorTypeField.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent event)
- {
- updateProcessorType();
- }
- });
-
- processorNameField.addModifyListener(new ModifyListener()
- {
- public void modifyText(ModifyEvent e)
- {
- setProcessorNameStatus(validateProcessorName());
- updateStatusLine();
- }
- });
- }
-
- protected String getProcessorName()
- {
- return processorNameField.getText();
- }
-
- @Override
- protected Control createDialogArea(Composite ancestor)
- {
- Composite parent = (Composite) super.createDialogArea(ancestor);
- ((GridLayout) parent.getLayout()).numColumns = 3;
-// ((GridData) parent.getLayoutData()).heightHint = 400;
-// ((GridData) parent.getLayoutData()).widthHint = 400;
-
- createDialogFields(parent);
-
- Label l = new Label(parent, SWT.NONE);
- l.setText(Messages.AddProcessorDialog_jars);
- GridData gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalSpan = 3;
- l.setLayoutData(gd);
-
- fLibraryBlock = new ProcessorLibraryBlock(this);
- Control block = fLibraryBlock.createControl(parent);
- gd = new GridData(GridData.FILL_BOTH);
- gd.horizontalSpan = 3;
- block.setLayoutData(gd);
-
- initializeFields();
- createFieldListeners();
- applyDialogFont(parent);
-
- return parent;
- }
-
- private void updateProcessorType()
- {
- int selIndex = processorTypeField.getCombo().getSelectionIndex();
- if (selIndex == fPrevIndex)
- {
- return;
- }
- fPrevIndex = selIndex;
- if (selIndex >= 0 && selIndex < processorTypes.length)
- {
- selectedProcessorType = processorTypes[selIndex];
- }
- fLibraryBlock.initializeFrom(standinProcessor, selectedProcessorType);
- updateStatusLine();
- }
-
- @Override
- public void create()
- {
- super.create();
- processorNameField.setFocus();
- }
-
- private void initializeFields()
- {
- processorTypeField.setInput(processorTypes);
- if (adding)
- {
- processorNameField.setText(""); //$NON-NLS-1$
- processorTypeField.setSelection(new StructuredSelection(processorTypes[0]));
- fLibraryBlock.initializeFrom(standinProcessor, selectedProcessorType);
- }
- else
- {
- processorTypeField.getCombo().setEnabled(false);
- processorTypeField.setSelection(new StructuredSelection(standinProcessor.getProcessorType()));
- processorNameField.setText(standinProcessor.getName());
-
- fLibraryBlock.initializeFrom(standinProcessor, selectedProcessorType);
- }
- setProcessorNameStatus(validateProcessorName());
- updateStatusLine();
- }
-
- private IStatus validateProcessorName()
- {
- IStatus status = Status.OK_STATUS;
- String name = processorNameField.getText();
- if (name == null || name.trim().length() == 0)
- {
- status = new Status(IStatus.INFO, XSLDebugUIPlugin.PLUGIN_ID, IStatus.OK, Messages.AddProcessorDialog_enterName, null);
- }
- else
- {
- if (block.isDuplicateName(name) && (standinProcessor == null || !name.equals(standinProcessor.getName())))
- {
- status = new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, IStatus.OK, Messages.AddProcessorDialog_duplicateName, null);
- }
- else
- {
- // IStatus s = ResourcesPlugin.getWorkspace().validateName(name,
- // IResource.FILE);
- // if (!s.isOK())
- // {
- // status.setError(MessageFormat.format(Messages.AddProcessorDialog_Processor_name_must_be_a_valid_file_name,
- // new String[]
- // { s.getMessage() }));
- // }
- }
- }
- return status;
- }
-
- protected IStatus validateVersionStatus()
- {
- IStatus status = Status.OK_STATUS;
- return status;
- }
-
- protected void updateStatusLine()
- {
- IStatus max = null;
- for (IStatus curr : fStati)
- {
- if (curr.matches(IStatus.ERROR))
- {
- updateStatus(curr);
- return;
- }
- if (max == null || curr.getSeverity() > max.getSeverity())
- {
- max = curr;
- }
- }
- updateStatus(max);
- }
-
- @Override
- protected void okPressed()
- {
- doOkPressed();
- super.okPressed();
- }
-
- private void doOkPressed()
- {
- if (adding)
- {
- setFieldValuesToProcessor(standinProcessor);
- block.processorAdded(standinProcessor);
- }
-// else
-// setFieldValuesToProcessor((ProcessorInstall)editedProcessor);
- }
-
- protected void setFieldValuesToProcessor(InstallStandin processor)
- {
- processor.setName(processorNameField.getText());
- processor.setProcessorTypeId(selectedProcessorType.getId());
-
- IDebugger[] debuggers = JAXPRuntime.getDebuggers();
- for (IDebugger element : debuggers)
- {
- if (element.getProcessorType().equals(selectedProcessorType))
- processor.setDebuggerId(element.getId());
- }
-
- fLibraryBlock.performApply(processor);
- }
-
- protected File getAbsoluteFileOrEmpty(String path)
- {
- if (path == null || path.length() == 0)
- {
- return new File(""); //$NON-NLS-1$
- }
- return new File(path).getAbsoluteFile();
- }
-
- private void setProcessorNameStatus(IStatus status)
- {
- fStati[0] = status;
- }
-
- protected IStatus getSystemLibraryStatus()
- {
- return fStati[3];
- }
-
- protected void setSystemLibraryStatus(IStatus status)
- {
- fStati[3] = status;
- }
-
- protected void setVersionStatus(IStatus status)
- {
- fStati[2] = status;
- }
-
- @Override
- protected void updateButtonsEnableState(IStatus status)
- {
- Button ok = getButton(IDialogConstants.OK_ID);
- if (ok != null && !ok.isDisposed())
- ok.setEnabled(status.getSeverity() == IStatus.OK);
- }
-
- @Override
- protected void setButtonLayoutData(Button button)
- {
- super.setButtonLayoutData(button);
- }
-
- protected String getDialogSettingsSectionName()
- {
- return "ADD_PROCESSOR_DIALOG_SECTION"; //$NON-NLS-1$
- }
-
- @Override
- protected IDialogSettings getDialogBoundsSettings()
- {
-// IDialogSettings settings = XSLDebugUIPlugin.getDefault().getDialogSettings();
-// IDialogSettings section = settings.getSection(getDialogSettingsSectionName());
-// if (section == null)
-// {
-// section = settings.addNewSection(getDialogSettingsSectionName());
-// }
-// return section;
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/BasePreferencePage.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/BasePreferencePage.java
deleted file mode 100644
index 73db6bf..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/BasePreferencePage.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import org.eclipse.jface.preference.PreferencePage;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
-
-public class BasePreferencePage extends PreferencePage implements IWorkbenchPreferencePage
-{
- @Override
- protected Control createContents(Composite parent)
- {
- return null;
- }
-
- public void init(IWorkbench workbench)
- {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/InstalledProcessorsBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/InstalledProcessorsBlock.java
deleted file mode 100644
index afd9f31..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/InstalledProcessorsBlock.java
+++ /dev/null
@@ -1,646 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.runtime.ListenerList;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.layout.GridDataFactory;
-import org.eclipse.jface.viewers.CheckStateChangedEvent;
-import org.eclipse.jface.viewers.CheckboxTableViewer;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.ICheckStateListener;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.ISelectionProvider;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.ITableLabelProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.InstallStandin;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class InstalledProcessorsBlock extends AbstractTableBlock implements ISelectionProvider
-{
- private Composite fControl;
- private final List<IProcessorInstall> processors = new ArrayList<IProcessorInstall>();
- private CheckboxTableViewer tableViewer;
- private Button fAddButton;
- private Button fRemoveButton;
- private Button fEditButton;
- private final ListenerList fSelectionListeners = new ListenerList();
- private ISelection fPrevSelection = new StructuredSelection();
-
- public void addSelectionChangedListener(ISelectionChangedListener listener)
- {
- fSelectionListeners.add(listener);
- }
-
- public void removeSelectionChangedListener(ISelectionChangedListener listener)
- {
- fSelectionListeners.remove(listener);
- }
-
- public ISelection getSelection()
- {
- return new StructuredSelection(tableViewer.getCheckedElements());
- }
-
- public void setSelection(ISelection selection)
- {
- if (selection instanceof IStructuredSelection)
- {
- if (!selection.equals(fPrevSelection))
- {
- fPrevSelection = selection;
- Object jre = ((IStructuredSelection) selection).getFirstElement();
- if (jre == null)
- {
- tableViewer.setCheckedElements(new Object[0]);
- }
- else
- {
- tableViewer.setCheckedElements(new Object[]
- { jre });
- tableViewer.reveal(jre);
- }
- fireSelectionChanged();
- }
- }
- }
-
- public void createControl(Composite ancestor)
- {
-
- Composite parent = new Composite(ancestor, SWT.NULL);
- GridLayout layout = new GridLayout();
- layout.numColumns = 2;
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- parent.setLayout(layout);
- Font font = ancestor.getFont();
- parent.setFont(font);
- fControl = parent;
-
- GridData data;
-
- Label tableLabel = new Label(parent, SWT.NONE);
- tableLabel.setText(Messages.InstalledProcessorsBlock_0);
- data = new GridData();
- data.horizontalSpan = 2;
- tableLabel.setLayoutData(data);
- tableLabel.setFont(font);
-
- Table fTable = new Table(parent, SWT.CHECK | SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL);
-
- data = new GridData(GridData.FILL_BOTH);
- data.widthHint = 450;
- fTable.setLayoutData(data);
- fTable.setFont(font);
-
- fTable.setHeaderVisible(true);
- fTable.setLinesVisible(true);
-
- TableColumn column1 = new TableColumn(fTable, SWT.NONE);
- column1.setWidth(180);
- column1.setResizable(true);
- column1.setText(Messages.InstalledProcessorsBlock_1);
- column1.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- sortByName();
- }
- });
-
- TableColumn column2 = new TableColumn(fTable, SWT.NONE);
- column2.setWidth(90);
- column2.setResizable(true);
- column2.setText(Messages.InstalledProcessorsBlock_2);
- column2.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- sortByType();
- }
- });
-
- TableColumn column4 = new TableColumn(fTable, SWT.NONE);
- column4.setWidth(180);
- column4.setResizable(true);
- column4.setText(Messages.InstalledProcessorsBlock_4);
- column4.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- sortByVersion();
- }
- });
-
- tableViewer = new CheckboxTableViewer(fTable);
- tableViewer.setLabelProvider(new VMLabelProvider());
- tableViewer.setContentProvider(new ProcessorsContentProvider());
-
- tableViewer.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent evt)
- {
- enableButtons();
- }
- });
-
- tableViewer.addCheckStateListener(new ICheckStateListener()
- {
- public void checkStateChanged(CheckStateChangedEvent event)
- {
- if (event.getChecked())
- {
- setCheckedInstall((IProcessorInstall) event.getElement());
- }
- else
- {
- setCheckedInstall(null);
- }
- }
- });
-
- tableViewer.addDoubleClickListener(new IDoubleClickListener()
- {
- public void doubleClick(DoubleClickEvent e)
- {
- if (!tableViewer.getSelection().isEmpty())
- {
- editProcessor();
- }
- }
- });
- fTable.addKeyListener(new KeyAdapter()
- {
- @Override
- public void keyPressed(KeyEvent event)
- {
- if (event.character == SWT.DEL && event.stateMask == 0)
- {
- removeProcessors();
- }
- }
- });
-
- Composite buttons = new Composite(parent, SWT.NULL);
- buttons.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
- layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- buttons.setLayout(layout);
- buttons.setFont(font);
-
- fAddButton = createPushButton(buttons, Messages.InstalledProcessorsBlock_5);
- fAddButton.addListener(SWT.Selection, new Listener()
- {
- public void handleEvent(Event evt)
- {
- addProcessor();
- }
- });
-
- fEditButton = createPushButton(buttons, Messages.InstalledProcessorsBlock_6);
- fEditButton.addListener(SWT.Selection, new Listener()
- {
- public void handleEvent(Event evt)
- {
- editProcessor();
- }
- });
-
- fRemoveButton = createPushButton(buttons, Messages.InstalledProcessorsBlock_7);
- fRemoveButton.addListener(SWT.Selection, new Listener()
- {
- public void handleEvent(Event evt)
- {
- removeProcessors();
- }
- });
-
- // copied from ListDialogField.CreateSeparator()
- Label separator = new Label(buttons, SWT.NONE);
- separator.setVisible(false);
- GridData gd = new GridData();
- gd.horizontalAlignment = GridData.FILL;
- gd.verticalAlignment = GridData.BEGINNING;
- gd.heightHint = 4;
- separator.setLayoutData(gd);
-
- fillWithWorkspaceProcessors();
- enableButtons();
-
- restoreColumnSettings();
- }
-
- protected void fillWithWorkspaceProcessors()
- {
- List<InstallStandin> standins = new ArrayList<InstallStandin>();
- IProcessorType[] types = JAXPRuntime.getProcessorTypes();
- for (IProcessorType type : types)
- {
- IProcessorInstall[] installs = JAXPRuntime.getProcessors(type.getId());
- for (IProcessorInstall install : installs)
- {
- standins.add(new InstallStandin(install));
- }
- }
- setProcessors((IProcessorInstall[]) standins.toArray(new IProcessorInstall[standins.size()]));
- }
-
- private void fireSelectionChanged()
- {
- SelectionChangedEvent event = new SelectionChangedEvent(this, getSelection());
- Object[] listeners = fSelectionListeners.getListeners();
- for (Object element : listeners)
- {
- ISelectionChangedListener listener = (ISelectionChangedListener) element;
- listener.selectionChanged(event);
- }
- }
-
- /**
- * Sorts by type, and name within type.
- */
- private void sortByType()
- {
- tableViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- IProcessorInstall left = (IProcessorInstall) e1;
- IProcessorInstall right = (IProcessorInstall) e2;
- return left.getProcessorType().getLabel().compareToIgnoreCase(right.getProcessorType().getLabel());
- }
-
- @Override
- public boolean isSorterProperty(Object element, String property)
- {
- return true;
- }
- });
- }
-
- private void sortByVersion()
- {
- tableViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- IProcessorInstall left = (IProcessorInstall) e1;
- IProcessorInstall right = (IProcessorInstall) e2;
- return left.getSupports().compareToIgnoreCase(right.getSupports());
- }
-
- @Override
- public boolean isSorterProperty(Object element, String property)
- {
- return true;
- }
- });
- }
-
- /**
- * Sorts by name.
- */
- private void sortByName()
- {
- tableViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- if ((e1 instanceof IProcessorInstall) && (e2 instanceof IProcessorInstall))
- {
- IProcessorInstall left = (IProcessorInstall) e1;
- IProcessorInstall right = (IProcessorInstall) e2;
- return left.getName().compareToIgnoreCase(right.getName());
- }
- return super.compare(viewer, e1, e2);
- }
-
- @Override
- public boolean isSorterProperty(Object element, String property)
- {
- return true;
- }
- });
- }
-
- private void enableButtons()
- {
- IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();
- int selectionCount = selection.size();
- fEditButton.setEnabled(selectionCount == 1 && !((IProcessorInstall)selection.getFirstElement()).isContributed());
- if (selectionCount > 0 && selectionCount < tableViewer.getTable().getItemCount())
- {
- Iterator<?> iterator = selection.iterator();
- while (iterator.hasNext())
- {
- IProcessorInstall install = (IProcessorInstall) iterator.next();
- if (install.isContributed())
- {
- fRemoveButton.setEnabled(false);
- return;
- }
- }
- fRemoveButton.setEnabled(true);
- }
- else
- {
- fRemoveButton.setEnabled(false);
- }
- }
-
- protected Button createPushButton(Composite parent, String label)
- {
- Button button = new Button(parent, SWT.PUSH);
- button.setText(label);
- button.setLayoutData(GridDataFactory.fillDefaults().create());
- return button;
- }
-
- @Override
- public Control getControl()
- {
- return fControl;
- }
-
- protected void setProcessors(IProcessorInstall[] vms)
- {
- processors.clear();
- for (IProcessorInstall element : vms)
- {
- processors.add(element);
- }
- tableViewer.setInput(processors);
- // tableViewer.refresh();
- }
-
- public IProcessorInstall[] getProcessors()
- {
- return (IProcessorInstall[]) processors.toArray(new IProcessorInstall[processors.size()]);
- }
-
- private void addProcessor()
- {
- AddProcessorDialog dialog = new AddProcessorDialog(this, getShell(), JAXPRuntime.getProcessorTypesExclJREDefault(), null);
- dialog.setTitle(Messages.AddProcessorDialog_Add_Title);
- if (dialog.open() != Window.OK)
- {
- return;
- }
- }
-
- public void processorAdded(IProcessorInstall install)
- {
- processors.add(install);
- tableViewer.add(install);
- tableViewer.setSelection(new StructuredSelection(install), true);
- }
-
- public boolean isDuplicateName(String name)
- {
- for (int i = 0; i < processors.size(); i++)
- {
- IProcessorInstall install = (IProcessorInstall) processors.get(i);
- if (install.getName().equals(name))
- {
- return true;
- }
- }
- return false;
- }
-
- private void editProcessor()
- {
- IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();
- IProcessorInstall install = (IProcessorInstall) selection.getFirstElement();
- if (install == null)
- {
- return;
- }
- if (!install.isContributed())
- {
-// ProcessorDetailsDialog dialog = new ProcessorDetailsDialog(getShell(), install);
-// dialog.open();
-// }
-// else
-// {
- AddProcessorDialog dialog = new AddProcessorDialog(this, getShell(), JAXPRuntime.getProcessorTypesExclJREDefault(), install);
- dialog.setTitle(Messages.AddProcessorDialog_Edit_Title);
- if (dialog.open() != Window.OK)
- {
- return;
- }
- // fillWithWorkspaceProcessors();
- tableViewer.refresh();
- }
- }
-
- private void removeProcessors()
- {
- IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();
- IProcessorInstall[] vms = new IProcessorInstall[selection.size()];
- Iterator<?> iter = selection.iterator();
- int i = 0;
- while (iter.hasNext())
- {
- vms[i] = (IProcessorInstall) iter.next();
- i++;
- }
- removeProcessors(vms);
- }
-
- public void removeProcessors(IProcessorInstall[] theInstalls)
- {
- IStructuredSelection prev = (IStructuredSelection) getSelection();
- for (IProcessorInstall element : theInstalls)
- {
- processors.remove(element);
- }
- tableViewer.refresh();
- IStructuredSelection curr = (IStructuredSelection) getSelection();
- if (!curr.equals(prev))
- {
- IProcessorInstall[] installs = getProcessors();
- if (curr.size() == 0 && installs.length == 1)
- {
- // pick a default install automatically
- setSelection(new StructuredSelection(installs[0]));
- }
- else
- {
- fireSelectionChanged();
- }
- }
- }
-
- public void setCheckedInstall(IProcessorInstall install)
- {
- if (install == null)
- {
- setSelection(new StructuredSelection());
- }
- else
- {
- setSelection(new StructuredSelection(install));
- }
- }
-
- public IProcessorInstall getCheckedInstall()
- {
- Object[] objects = tableViewer.getCheckedElements();
- if (objects.length == 0)
- {
- return null;
- }
- return (IProcessorInstall) objects[0];
- }
-
- @Override
- protected void setSortColumn(int column)
- {
- switch (column)
- {
- case 1:
- sortByName();
- break;
- case 2:
- sortByType();
- break;
- }
- super.setSortColumn(column);
- }
-
- @Override
- protected Table getTable()
- {
- return tableViewer.getTable();
- }
-
- @Override
- protected IDialogSettings getDialogSettings()
- {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier()
- {
- return XSLDebugUIConstants.PROCESSOR_DETAILS_DIALOG;
- }
-
- public String getName()
- {
- return null;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- }
-
- private class ProcessorsContentProvider implements IStructuredContentProvider
- {
- public Object[] getElements(Object input)
- {
- return processors.toArray();
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
-
- public void dispose()
- {
- }
- }
-
- private class VMLabelProvider extends LabelProvider implements ITableLabelProvider
- {
- public String getColumnText(Object element, int columnIndex)
- {
- if (element instanceof IProcessorInstall)
- {
- IProcessorInstall install = (IProcessorInstall) element;
- switch (columnIndex)
- {
- case 0:
- return install.getName();
- case 1:
- return install.getProcessorType().getLabel();
- case 2:
- if (install.getDebugger() != null)
- {
- return install.getDebugger().getName();
- }
- return Messages.InstalledProcessorsBlock_8;
- }
- }
- return element.toString();
- }
-
- public Image getColumnImage(Object element, int columnIndex)
- {
- return null;
- }
-
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/Messages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/Messages.java
deleted file mode 100644
index 43404e1..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/Messages.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import org.eclipse.osgi.util.NLS;
-
-public class Messages extends NLS
-{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences.messages"; //$NON-NLS-1$
- static
- {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
-
- public static String AddProcessorDialog_1;
- public static String AddProcessorDialog_7;
- public static String AddProcessorDialog_Edit_Title;
- public static String AddProcessorDialog_Add_Title;
- public static String AddProcessorDialog_jars;
- public static String AddProcessorDialog_attributes;
- public static String AddProcessorDialog_processorName;
- public static String AddProcessorDialog_processorType;
- public static String AddProcessorDialog_enterName;
- public static String AddProcessorDialog_duplicateName;
-
- public static String ProcessorLibraryBlock_6;
- public static String ProcessorLibraryBlock_AddButton;
- public static String ProcessorLibraryBlock_RemoveButton;
- public static String ProcessorLibraryBlock_AddWorkspaceButton;
- public static String ProcessorLibraryBlock_FileDialog_Title;
- public static String ProcessorLibraryBlock_WorkspaceFileDialog_Title;
- public static String ProcessorLibraryBlock_WorkspaceFileDialog_Message;
-
- public static String InstalledProcessorsBlock_0;
- public static String InstalledProcessorsBlock_1;
- public static String InstalledProcessorsBlock_2;
- public static String InstalledProcessorsBlock_3;
- public static String InstalledProcessorsBlock_4;
- public static String InstalledProcessorsBlock_5;
- public static String InstalledProcessorsBlock_6;
- public static String InstalledProcessorsBlock_7;
- public static String InstalledProcessorsBlock_8;
-
- public static String ProcessorsPreferencePage_0;
- public static String ProcessorsPreferencePage_1;
- public static String ProcessorsPreferencePage_2;
-
- private Messages()
- {
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorLibraryBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorLibraryBlock.java
deleted file mode 100644
index dc6ae1d..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorLibraryBlock.java
+++ /dev/null
@@ -1,344 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.jface.window.Window;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.FileDialog;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
-import org.eclipse.ui.dialogs.ISelectionStatusValidator;
-import org.eclipse.ui.model.WorkbenchContentProvider;
-import org.eclipse.ui.model.WorkbenchLabelProvider;
-import org.eclipse.ui.views.navigator.ResourceComparator;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.InstallStandin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.JarContentProvider;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.JarLabelProvider;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class ProcessorLibraryBlock implements SelectionListener, ISelectionChangedListener
-{
- protected static final String LAST_PATH_SETTING = "LAST_PATH_SETTING"; //$NON-NLS-1$
- protected static final String LAST_WORKSPACE_PATH_SETTING = "LAST_WORKSPACE_PATH_SETTING"; //$NON-NLS-1$
- protected static final String DIALOG_SETTINGS_PREFIX = "ProcessorLibraryBlock"; //$NON-NLS-1$
- protected InstallStandin install;
- protected IProcessorType installType;
- protected AddProcessorDialog addDialog = null;
- protected TableViewer tableViewer;
- private Button removeButton;
- private Button addButton;
- private Button addWorkspaceButton;
-
- private final ISelectionStatusValidator validator = new ISelectionStatusValidator()
- {
- public IStatus validate(Object[] selection)
- {
- if (selection.length == 0)
- {
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- for (Object element : selection)
- {
- if (element instanceof IFolder)
- return new Status(IStatus.ERROR, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- else if (element instanceof IFile)
- {
- // IFile file = (IFile) selection[i];
- // TODO check that the file is not already on the classpath
- }
- }
- return new Status(IStatus.OK, XSLDebugUIPlugin.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
- }
- };
-
- public ProcessorLibraryBlock(AddProcessorDialog dialog)
- {
- addDialog = dialog;
- }
-
- public Control createControl(Composite parent)
- {
- Font font = parent.getFont();
-
- Composite comp = new Composite(parent, SWT.NONE);
- GridLayout topLayout = new GridLayout();
- topLayout.numColumns = 2;
- topLayout.marginHeight = 0;
- topLayout.marginWidth = 0;
- comp.setLayout(topLayout);
- GridData gd = new GridData(GridData.FILL_BOTH);
- comp.setLayoutData(gd);
-
- tableViewer = new TableViewer(comp);
- gd = new GridData(GridData.FILL_BOTH);
- gd.heightHint = 6;
- tableViewer.getControl().setLayoutData(gd);
- JarContentProvider fLibraryContentProvider = new JarContentProvider();
- tableViewer.setContentProvider(fLibraryContentProvider);
- tableViewer.setLabelProvider(new JarLabelProvider());
- tableViewer.addSelectionChangedListener(this);
-
- Composite pathButtonComp = new Composite(comp, SWT.NONE);
- GridLayout pathButtonLayout = new GridLayout();
- pathButtonLayout.marginHeight = 0;
- pathButtonLayout.marginWidth = 0;
- pathButtonComp.setLayout(pathButtonLayout);
- gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_FILL);
- pathButtonComp.setLayoutData(gd);
- pathButtonComp.setFont(font);
-
- addWorkspaceButton = createPushButton(pathButtonComp, Messages.ProcessorLibraryBlock_AddWorkspaceButton);
- addWorkspaceButton.addSelectionListener(this);
-
- addButton = createPushButton(pathButtonComp, Messages.ProcessorLibraryBlock_AddButton);
- addButton.addSelectionListener(this);
-
- removeButton = createPushButton(pathButtonComp, Messages.ProcessorLibraryBlock_RemoveButton);
- removeButton.addSelectionListener(this);
-
- return comp;
- }
-
- protected Button createPushButton(Composite parent, String label)
- {
- Button button = new Button(parent, SWT.PUSH);
- button.setFont(parent.getFont());
- button.setText(label);
- addDialog.setButtonLayoutData(button);
- return button;
- }
-
- protected void createVerticalSpacer(Composite comp, int colSpan)
- {
- Label label = new Label(comp, SWT.NONE);
- GridData gd = new GridData();
- gd.horizontalSpan = colSpan;
- label.setLayoutData(gd);
- }
-
- public void initializeFrom(InstallStandin standin, IProcessorType type)
- {
- install = standin;
- installType = type;
- if (install != null)
- tableViewer.setInput(install);
- update();
- }
-
- /**
- * Updates buttons and status based on current libraries
- */
- public void update()
- {
- updateButtons();
- IStatus status = Status.OK_STATUS;
- if (install != null && install.getProcessorJars().length == 0)
- {
- status = new Status(IStatus.INFO, XSLDebugUIPlugin.PLUGIN_ID, 0, Messages.ProcessorLibraryBlock_6, null);
- }
- addDialog.setSystemLibraryStatus(status);
- addDialog.updateStatusLine();
- }
-
- public void performApply(InstallStandin standin)
- {
- standin.setProcessorJars(install.getProcessorJars());
- }
-
- protected IProcessorInstall getVMInstall()
- {
- return install;
- }
-
- protected IProcessorType getVMInstallType()
- {
- return installType;
- }
-
- public void widgetSelected(SelectionEvent e)
- {
- Object source = e.getSource();
- if (source == removeButton)
- {
- remove((IStructuredSelection) tableViewer.getSelection());
- }
- else if (source == addButton)
- {
- addExternal((IStructuredSelection) tableViewer.getSelection());
- }
- else if (source == addWorkspaceButton)
- {
- addWorkspace((IStructuredSelection) tableViewer.getSelection());
- }
- update();
- }
-
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
-
- private void addExternal(IStructuredSelection selection)
- {
- IDialogSettings dialogSettings = XSLDebugUIPlugin.getDefault().getDialogSettings();
- String lastUsedPath = dialogSettings.get(LAST_PATH_SETTING);
- if (lastUsedPath == null)
- {
- lastUsedPath = ""; //$NON-NLS-1$
- }
- FileDialog dialog = new FileDialog(tableViewer.getControl().getShell(), SWT.MULTI);
- dialog.setText(Messages.ProcessorLibraryBlock_FileDialog_Title);
- dialog.setFilterExtensions(new String[]
- { "*.jar;*.zip" }); //$NON-NLS-1$
- dialog.setFilterPath(lastUsedPath);
- String res = dialog.open();
- if (res == null)
- {
- return;
- }
- String[] fileNames = dialog.getFileNames();
- int nChosen = fileNames.length;
-
- IPath filterPath = new Path(dialog.getFilterPath());
- IProcessorJar[] libs = new IProcessorJar[nChosen];
- for (int i = 0; i < nChosen; i++)
- {
- libs[i] = JAXPRuntime.createProcessorJar(filterPath.append(fileNames[i]).makeAbsolute());
- }
- dialogSettings.put(LAST_PATH_SETTING, filterPath.toOSString());
-
- IProcessorJar[] currentJars = install.getProcessorJars();
- IProcessorJar[] newJars = new IProcessorJar[currentJars.length + libs.length];
- System.arraycopy(currentJars, 0, newJars, 0, currentJars.length);
- System.arraycopy(libs, 0, newJars, currentJars.length, libs.length);
- install.setProcessorJars(newJars);
-
- tableViewer.add(libs);
- }
-
- private void addWorkspace(IStructuredSelection selection)
- {
- IDialogSettings dialogSettings = XSLDebugUIPlugin.getDefault().getDialogSettings();
- String lastUsedPath = dialogSettings.get(LAST_WORKSPACE_PATH_SETTING);
- IPath lastPath = null;
- if (lastUsedPath != null)
- {
- lastPath = Path.fromPortableString(lastUsedPath);
- }
-
- // IResource currentResource = getResource();
- ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(tableViewer.getControl().getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
- dialog.setTitle(Messages.ProcessorLibraryBlock_WorkspaceFileDialog_Title);
- dialog.setMessage(Messages.ProcessorLibraryBlock_WorkspaceFileDialog_Message);
- dialog.setValidator(validator);
- dialog.addFilter(new ViewerFilter()
- {
- @Override
- public boolean select(Viewer viewer, Object parentElement, Object element)
- {
- if (element instanceof IContainer)
- return true;
- else if (element instanceof IFile)
- {
- IFile file = (IFile) element;
- String extension = file.getFileExtension();
- if (extension == null)
- return false;
- return extension.equals("jar"); //$NON-NLS-1$
- }
- return false;
- }
- });
- dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
- if (lastPath != null)
- dialog.setInitialSelection(lastPath);
- dialog.setComparator(new ResourceComparator(ResourceComparator.NAME));
- dialog.setAllowMultiple(true);
-
- if (dialog.open() == Window.OK)
- {
- Object[] elements = dialog.getResult();
- if (elements.length > 0)
- {
- IProcessorJar[] libs = new IProcessorJar[elements.length];
- for (int i = 0; i < elements.length; i++)
- {
- IFile jar = (IFile) elements[i];
- libs[i] = JAXPRuntime.createProcessorJar(jar.getFullPath());
- }
- IProcessorJar[] currentJars = install.getProcessorJars();
- IProcessorJar[] newJars = new IProcessorJar[currentJars.length + libs.length];
- System.arraycopy(currentJars, 0, newJars, 0, currentJars.length);
- System.arraycopy(libs, 0, newJars, currentJars.length, libs.length);
- install.setProcessorJars(newJars);
-
- tableViewer.add(libs);
-
- lastPath = libs[0].getPath();
- lastPath = lastPath.uptoSegment(lastPath.segmentCount());
- dialogSettings.put(LAST_WORKSPACE_PATH_SETTING, lastPath.toPortableString());
- }
- }
- }
-
- private void remove(IStructuredSelection selection)
- {
- List<IProcessorJar> currentJars = new ArrayList<IProcessorJar>(Arrays.asList(install.getProcessorJars()));
- for (Iterator<?> iter = selection.iterator(); iter.hasNext();)
- {
- currentJars.remove(iter.next());
- }
- install.setProcessorJars((IProcessorJar[]) currentJars.toArray(new IProcessorJar[0]));
- tableViewer.remove(selection.toArray());
- }
-
- public void selectionChanged(SelectionChangedEvent event)
- {
- updateButtons();
- }
-
- private void updateButtons()
- {
- IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();
- removeButton.setEnabled(!selection.isEmpty());
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorsPreferencePage.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorsPreferencePage.java
deleted file mode 100644
index 53e4eef..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/ProcessorsPreferencePage.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences;
-
-import java.lang.reflect.InvocationTargetException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.jface.preference.PreferencePage;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.IWorkbench;
-import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class ProcessorsPreferencePage extends PreferencePage implements IWorkbenchPreferencePage
-{
- private InstalledProcessorsBlock processorsBlock;
-
- public ProcessorsPreferencePage()
- {
- super();
- // only used when page is shown programatically
- setTitle(Messages.ProcessorsPreferencePage_0);
- setDescription(Messages.ProcessorsPreferencePage_1);
- }
-
- public void init(IWorkbench workbench)
- {
- }
-
- @Override
- protected Control createContents(Composite ancestor)
- {
- initializeDialogUnits(ancestor);
-
- noDefaultAndApplyButton();
-
- GridLayout layout = new GridLayout();
- layout.numColumns = 1;
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- ancestor.setLayout(layout);
-
- processorsBlock = new InstalledProcessorsBlock();
- processorsBlock.createControl(ancestor);
- Control control = processorsBlock.getControl();
- GridData data = new GridData(GridData.FILL_BOTH);
- data.horizontalSpan = 1;
- control.setLayoutData(data);
-
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp...
-
- initDefaultInstall();
- processorsBlock.addSelectionChangedListener(new ISelectionChangedListener()
- {
- public void selectionChanged(SelectionChangedEvent event)
- {
- IProcessorInstall install = getCurrentDefaultProcessor();
- if (install == null)
- {
- setValid(false);
- setErrorMessage(Messages.ProcessorsPreferencePage_2);
- }
- else
- {
- setValid(true);
- setErrorMessage(null);
- }
- }
- });
- applyDialogFont(ancestor);
- return ancestor;
- }
-
- @Override
- public boolean performOk()
- {
- processorsBlock.saveColumnSettings();
- final boolean[] ok = new boolean[1];
- try
- {
- final IProcessorInstall[] installs = processorsBlock.getProcessors();
- final IProcessorInstall defaultProcessor = getCurrentDefaultProcessor();
- IRunnableWithProgress runnable = new IRunnableWithProgress()
- {
- public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
- {
- try
- {
- JAXPRuntime.saveProcessorPreferences(installs,defaultProcessor,monitor);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- ok[0] = !monitor.isCanceled();
- }
- };
- XSLDebugUIPlugin.getDefault().getWorkbench().getProgressService().busyCursorWhile(runnable);
- }
- catch (InvocationTargetException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (InterruptedException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- return ok[0];
- }
-
- private void initDefaultInstall()
- {
- IProcessorInstall realDefault = JAXPRuntime.getDefaultProcessor();
- if (realDefault != null)
- {
- IProcessorInstall[] installs = processorsBlock.getProcessors();
- for (IProcessorInstall fakeInstall : installs)
- {
- if (fakeInstall.getId().equals(realDefault.getId()))
- {
- verifyDefaultVM(fakeInstall);
- break;
- }
- }
- }
- }
-
- private void verifyDefaultVM(IProcessorInstall install)
- {
- if (install != null)
- {
- processorsBlock.setCheckedInstall(install);
- }
- else
- {
- processorsBlock.setCheckedInstall(null);
- }
- }
-
- private IProcessorInstall getCurrentDefaultProcessor()
- {
- return processorsBlock.getCheckedInstall();
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/messages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/messages.properties
deleted file mode 100644
index cfd4e7f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/preferences/messages.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-AddProcessorDialog_1=Supported versions:
-AddProcessorDialog_7=Processor must support at least one XSLT version
-AddProcessorDialog_Edit_Title=Edit Processor
-AddProcessorDialog_Add_Title=Add Processor
-AddProcessorDialog_processorName=Processor Name:
-AddProcessorDialog_processorType=Processor Type:
-AddProcessorDialog_jars=Libraries:
-AddProcessorDialog_attributes=Attributes:
-AddProcessorDialog_enterName=A name must be entered for this processor
-AddProcessorDialog_duplicateName=The name has already been used
-InstalledProcessorsBlock_0=Installed Java XSLT Processors:
-InstalledProcessorsBlock_1=Name
-InstalledProcessorsBlock_2=Type
-InstalledProcessorsBlock_3=XSLT Versions
-InstalledProcessorsBlock_4=Debugger
-InstalledProcessorsBlock_5=Add
-InstalledProcessorsBlock_6=Edit
-InstalledProcessorsBlock_7=Remove
-InstalledProcessorsBlock_8=None
-
-ProcessorLibraryBlock_6=One or more jar files must be specified
-ProcessorLibraryBlock_AddButton=Add External JARs
-ProcessorLibraryBlock_AddWorkspaceButton=Add Workspace JARs
-ProcessorLibraryBlock_RemoveButton=Remove
-ProcessorLibraryBlock_FileDialog_Title=External JARs
-ProcessorLibraryBlock_WorkspaceFileDialog_Title=Workspace JARs
-ProcessorLibraryBlock_WorkspaceFileDialog_Message=Select the JARs that make up the XSLT processor
-
-ProcessorsPreferencePage_0=Java XSLT Processors
-ProcessorsPreferencePage_1=Add, remove or edit XSLT processor definitions.\nBy default, the checked Processor is used for all transformations.
-ProcessorsPreferencePage_2=Select a default XSLT Processor
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributeDialog.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributeDialog.java
deleted file mode 100644
index 885ec53..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributeDialog.java
+++ /dev/null
@@ -1,161 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.StatusDialog;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.jaxp.launching.IAttribute;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchAttributes;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-public class AttributeDialog extends StatusDialog
-{
- private Table table;
- private TableViewer tViewer;
- private Text text;
- private List<IAttribute> attributes = new ArrayList<IAttribute>();
- private List<IAttribute> selectedAttributes = new ArrayList<IAttribute>();
-
- public AttributeDialog(Shell parent, LaunchAttributes launchAttributes)
- {
- super(parent);
- setTitle("Select Processor Attributes");
-
- Set<String> attributeSet = new HashSet<String>();
- for (LaunchAttribute att : launchAttributes.getAttributes())
- {
- attributeSet.add(att.uri);
- }
- for (IProcessorType type : JAXPRuntime.getProcessorTypes())
- {
- for (IAttribute attribute : type.getAttributes())
- {
- if (!attributeSet.contains(attribute.getURI()))
- {
- attributeSet.add(attribute.getURI());
- attributes.add(attribute);
- }
- }
- }
- }
-
- @Override
- protected Control createDialogArea(Composite parent)
- {
- Composite comp = new Composite(parent,SWT.NONE);
- GridData gd = new GridData(SWT.FILL,SWT.FILL,true,true);
- gd.widthHint = 400;
- comp.setLayoutData(gd);
- comp.setLayout(new GridLayout());
-
- Label label = new Label(comp,SWT.NONE);
- label.setText("Select one or more attributes to set on the XSLT processor.");
-
-
- table = new Table(comp,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);
- table.setHeaderVisible(false);
- gd = new GridData(SWT.FILL,SWT.FILL,true,true);
- gd.verticalIndent = 10;
- gd.heightHint = 200;
- table.setLayoutData(gd);
-
- tViewer = new TableViewer(table);
- tViewer.setContentProvider(new IStructuredContentProvider()
- {
- public Object[] getElements(Object inputElement)
- {
- return attributes.toArray(new IAttribute[0]);
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
- });
- tViewer.setLabelProvider(new LabelProvider(){
- @Override
- public String getText(Object element)
- {
- IAttribute attribute = (IAttribute)element;
- return attribute.getURI();
- }
- });
- tViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- IAttribute a1 = (IAttribute) e1;
- IAttribute a2 = (IAttribute) e2;
- return a1.getURI().compareTo(a2.getURI());
- }
- });
- tViewer.addSelectionChangedListener(new ISelectionChangedListener(){
- public void selectionChanged(SelectionChangedEvent event)
- {
- IStructuredSelection sel = (IStructuredSelection)event.getSelection();
- selectedAttributes = sel.toList();
- if (sel.isEmpty())
- text.setText("");
- else
- {
- IAttribute attribute = (IAttribute)sel.getFirstElement();
- text.setText(attribute.getDescription());
- }
- }
- });
- tViewer.addDoubleClickListener(new IDoubleClickListener(){
- public void doubleClick(DoubleClickEvent event)
- {
- buttonPressed(IDialogConstants.OK_ID);
- }
- });
- tViewer.setInput(attributes);
-
- text = new Text(comp,SWT.BORDER | SWT.WRAP | SWT.READ_ONLY | SWT.V_SCROLL);
- text.setEditable(false);
- gd = new GridData(SWT.FILL,SWT.FILL,true,false);
- gd.heightHint = 80;
- text.setLayoutData(gd);
-
- if (attributes.size() > 0)
- {
- tViewer.setSelection(new StructuredSelection(tViewer.getElementAt(0)), true);
- }
-
- return comp;
- }
-
- public List<IAttribute> getAttributes()
- {
- return selectedAttributes;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributesBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributesBlock.java
deleted file mode 100644
index f97f11a..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/AttributesBlock.java
+++ /dev/null
@@ -1,365 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.CellLabelProvider;
-import org.eclipse.jface.viewers.EditingSupport;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.TableViewerColumn;
-import org.eclipse.jface.viewers.TextCellEditor;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerCell;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.TabFolder;
-import org.eclipse.swt.widgets.TabItem;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.JAXPDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IAttribute;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchAttributes;
-import org.eclipse.wst.xsl.launching.config.LaunchAttribute;
-
-public class AttributesBlock extends AbstractTableBlock
-{
- private Table table;
- private TableViewer tViewer;
- private LaunchAttributes attributes;
- private Button removeButton;
- private Map<String,IAttribute> attributeUris = new HashMap<String,IAttribute>();
-
- public AttributesBlock()
- {
- for (IProcessorType type : JAXPRuntime.getProcessorTypes())
- {
- for (IAttribute attribute : type.getAttributes())
- {
- attributeUris.put(attribute.getURI(), attribute);
- }
- }
- }
-
- @Override
- protected IDialogSettings getDialogSettings()
- {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier()
- {
- return JAXPDebugUIPlugin.PLUGIN_ID+"."+getClass().getCanonicalName();
- }
-
- @Override
- protected Table getTable()
- {
- return table;
- }
-
- public void createControl(Composite parent)
- {
- TabItem item = new TabItem((TabFolder)parent,SWT.NONE);
- item.setText("Attributes");
-
- Composite composite = new Composite(parent,SWT.NONE);
- GridLayout layout = new GridLayout(2,false);
- layout.marginBottom = 0;
- layout.marginWidth = 0;
- composite.setLayout(layout);
- item.setControl(composite);
-
- table = new Table(composite,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);
- table.setHeaderVisible(true);
- table.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
- table.addKeyListener(new KeyAdapter() {
- public void keyPressed(KeyEvent event) {
- if (event.character == SWT.DEL && event.stateMask == 0) {
- performRemove();
- }
- }
- });
-
- TableColumn tc1 = new TableColumn(table,SWT.NONE);
- tc1.setText("Name");
- tc1.setWidth(350);
- tc1.setResizable(true);
-
- TableColumn tc2 = new TableColumn(table,SWT.NONE);
- tc2.setText("Value");
- tc2.setWidth(50);
- tc2.setResizable(true);
-
- Composite buttonComp = new Composite(composite,SWT.FILL);
- buttonComp.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- GridLayout gl = new GridLayout();
- gl.marginWidth = 0;
- buttonComp.setLayout(gl);
-
- Button addButton = new Button(buttonComp,SWT.PUSH);
- addButton.setText("Add");
- addButton.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- addButton.addSelectionListener(new SelectionListener(){
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
- public void widgetSelected(SelectionEvent e)
- {
- AttributeDialog dialog = new AttributeDialog(getShell(),attributes);
- if (dialog.open() == AttributeDialog.OK)
- {
- List<IAttribute> newAttributes = dialog.getAttributes();
- LaunchAttribute first = null;
- for (IAttribute attribute : newAttributes)
- {
- LaunchAttribute att = new LaunchAttribute(attribute.getURI(),"string",null);
- if (first == null)
- first = att;
- attributes.addAttribute(att);
- }
- if (newAttributes.size() > 0)
- {
- tViewer.refresh();
- tViewer.setSelection(new StructuredSelection(first), true);
- tViewer.editElement(first, 1);
- updateLaunchConfigurationDialog();
- }
- }
- }
- });
-
- removeButton = new Button(buttonComp,SWT.PUSH);
- removeButton.setText("Remove");
- removeButton.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- removeButton.addSelectionListener(new SelectionListener(){
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
- public void widgetSelected(SelectionEvent e)
- {
- performRemove();
- }
- });
-
- setControl(table);
-
- tViewer = new TableViewer(table);
- tViewer.setContentProvider(new IStructuredContentProvider()
- {
- public Object[] getElements(Object inputElement)
- {
- return attributes.getAttributes().toArray(new LaunchAttribute[0]);
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- attributes = (LaunchAttributes) newInput;
- }
- });
- tViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- LaunchAttribute a1 = (LaunchAttribute) e1;
- LaunchAttribute a2 = (LaunchAttribute) e2;
- return a1.uri.compareTo(a2.uri);
- }
- });
- tViewer.addSelectionChangedListener(new ISelectionChangedListener(){
- public void selectionChanged(SelectionChangedEvent event)
- {
- updateRemoveButton();
- }
- });
-
- TableViewerColumn tvc1 = new TableViewerColumn(tViewer,tc1);
- tvc1.setLabelProvider(new CellLabelProvider(){
- @Override
- public void update(ViewerCell cell)
- {
- LaunchAttribute tv = (LaunchAttribute) cell.getElement();
- cell.setText(tv.uri);
- }
-
- @Override
- public int getToolTipTimeDisplayed(Object object)
- {
- return 5000;
- }
-
- @Override
- public String getToolTipText(Object element)
- {
- LaunchAttribute tv = (LaunchAttribute) element;
- return attributeUris.get(tv.uri).getDescription();
- }
-
- });
-
-// ColumnViewerToolTipSupport.enableFor(tViewer);
-
- TableViewerColumn tvc2 = new TableViewerColumn(tViewer,tc2);
- tvc2.setLabelProvider(new CellLabelProvider(){
- @Override
- public void update(ViewerCell cell)
- {
- LaunchAttribute tv = (LaunchAttribute) cell.getElement();
- cell.setText(tv.value);
- }
- });
-
- tvc2.setEditingSupport(new EditingSupport(tViewer){
-
- @Override
- protected boolean canEdit(Object element)
- {
- return true;
- }
-
- @Override
- protected CellEditor getCellEditor(Object element)
- {
- return new TextCellEditor(table);
- }
-
- @Override
- protected Object getValue(Object element)
- {
- LaunchAttribute tv = (LaunchAttribute)element;
- return tv.value == null ? "" : tv.value;
- }
-
- @Override
- protected void setValue(Object element, Object value)
- {
- LaunchAttribute tv = (LaunchAttribute)element;
- tv.setValue((String)value);
- updateLaunchConfigurationDialog();
- tViewer.update(tv, null);
- }
-
- });
-
- restoreColumnSettings();
- }
-
- protected void updateRemoveButton()
- {
- removeButton.setEnabled(!tViewer.getSelection().isEmpty());
- }
-
- public String getName()
- {
- return Messages.getString("AttributesBlock.16"); //$NON-NLS-1$
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- }
-
- private void initializeAttributesFromStorage(ILaunchConfiguration configuration) throws CoreException
- {
- String s = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_ATTRIBUTES, (String) null);
- if (s != null && s.length() > 0)
- {
- attributes = LaunchAttributes.fromXML(new ByteArrayInputStream(s.getBytes()));
- }
- else
- {
- attributes = new LaunchAttributes();
- }
- tViewer.setInput(attributes);
- updateRemoveButton();
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- try
- {
- initializeAttributesFromStorage(configuration);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- try
- {
- String xml = attributes.toXML();
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_ATTRIBUTES, xml);
- }
- catch (ParserConfigurationException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (IOException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (TransformerException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- private void performRemove()
- {
- IStructuredSelection sel = (IStructuredSelection)tViewer.getSelection();
- for (Iterator iterator = sel.iterator(); iterator.hasNext();)
- {
- LaunchAttribute att = (LaunchAttribute) iterator.next();
- attributes.removeAtribute(att.uri);
- }
- tViewer.refresh();
- updateLaunchConfigurationDialog();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/InstallStandin.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/InstallStandin.java
deleted file mode 100644
index 35b3927..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/InstallStandin.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-import org.eclipse.wst.xsl.jaxp.launching.ProcessorInstall;
-
-public class InstallStandin extends ProcessorInstall
-{
- public InstallStandin(IProcessorInstall install)
- {
- super(install.getId(), install.getName(), install.getProcessorType().getId(), install.getProcessorJars(), install.getDebugger() != null ? install.getDebugger().getId() : null, install
- .getSupports(), install.isContributed());
- }
-
- public InstallStandin(String id, String name, String typeId, String debuggerId, IProcessorJar[] jars)
- {
- super(id, name, typeId, jars, debuggerId, "", false); //$NON-NLS-1$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarContentProvider.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarContentProvider.java
deleted file mode 100644
index f37a0de..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarContentProvider.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-
-public class JarContentProvider implements IStructuredContentProvider
-{
- private IProcessorInstall install;
-
- public Object[] getElements(Object inputElement)
- {
- return install.getProcessorJars();
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- install = (IProcessorInstall) newInput;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarLabelProvider.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarLabelProvider.java
deleted file mode 100644
index 5ded313..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/JarLabelProvider.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorJar;
-
-public class JarLabelProvider extends LabelProvider
-{
- @Override
- public String getText(Object element)
- {
- IProcessorJar jar = (IProcessorJar) element;
- IPath path = jar.getPath();
- return path.lastSegment() + " - " + path.removeLastSegments(1).toOSString() + ""; //$NON-NLS-1$ //$NON-NLS-2$
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/Messages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/Messages.java
deleted file mode 100644
index ea96ce6..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/Messages.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-class Messages {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertiesBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertiesBlock.java
deleted file mode 100644
index 94989c5..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertiesBlock.java
+++ /dev/null
@@ -1,376 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.CellEditor;
-import org.eclipse.jface.viewers.CellLabelProvider;
-import org.eclipse.jface.viewers.EditingSupport;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.TableViewerColumn;
-import org.eclipse.jface.viewers.TextCellEditor;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerCell;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.KeyAdapter;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.TabFolder;
-import org.eclipse.swt.widgets.TabItem;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.JAXPDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IOutputProperty;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchProperties;
-
-public class OutputPropertiesBlock extends AbstractTableBlock
-{
- private Table table;
- private TableViewer tViewer;
- private LaunchProperties properties;
- private Button removeButton;
- private Map<String,IOutputProperty> propertyUris = new HashMap<String,IOutputProperty>();
-
- public OutputPropertiesBlock()
- {
- for (IProcessorType type : JAXPRuntime.getProcessorTypes())
- {
- for (IOutputProperty property : type.getOutputProperties())
- {
- propertyUris.put(property.getURI(), property);
- }
- }
- }
-
- @Override
- protected IDialogSettings getDialogSettings()
- {
- return XSLDebugUIPlugin.getDefault().getDialogSettings();
- }
-
- @Override
- protected String getQualifier()
- {
- return JAXPDebugUIPlugin.PLUGIN_ID+"."+getClass().getCanonicalName();
- }
-
- @Override
- protected Table getTable()
- {
- return table;
- }
-
- public void createControl(Composite parent)
- {
- TabItem item = new TabItem((TabFolder)parent,SWT.NONE);
- item.setText("Output Properties");
-
- Composite composite = new Composite(parent,SWT.NONE);
- GridLayout layout = new GridLayout(2,false);
- layout.marginBottom = 0;
- layout.marginWidth = 0;
- composite.setLayout(layout);
- item.setControl(composite);
-
- table = new Table(composite,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);
- table.setHeaderVisible(true);
- table.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
- table.addKeyListener(new KeyAdapter() {
- public void keyPressed(KeyEvent event) {
- if (event.character == SWT.DEL && event.stateMask == 0) {
- performRemove();
- }
- }
- });
-
-
- TableColumn tc1 = new TableColumn(table,SWT.NONE);
- tc1.setText("Name");
- tc1.setWidth(350);
- tc1.setResizable(true);
-
- TableColumn tc2 = new TableColumn(table,SWT.NONE);
- tc2.setText("Value");
- tc2.setWidth(50);
- tc2.setResizable(true);
-
- Composite buttonComp = new Composite(composite,SWT.FILL);
- buttonComp.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- GridLayout gl = new GridLayout();
- gl.marginWidth = 0;
- buttonComp.setLayout(gl);
-
- Button addButton = new Button(buttonComp,SWT.PUSH);
- addButton.setText("Add");
- addButton.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- addButton.addSelectionListener(new SelectionListener(){
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
- public void widgetSelected(SelectionEvent e)
- {
- OutputPropertyDialog dialog = new OutputPropertyDialog(getShell(),properties);
- if (dialog.open() == AttributeDialog.OK)
- {
- List<IOutputProperty> newProperties = dialog.getOutpuProperties();
- String first = null;
- for (IOutputProperty property : newProperties)
- {
- String att = property.getURI();
- if (first == null)
- first = att;
- properties.setProperty(property.getURI(), null);
- }
- if (newProperties.size() > 0)
- {
- tViewer.refresh();
- tViewer.setSelection(new StructuredSelection(first), true);
- tViewer.editElement(first, 1);
- updateLaunchConfigurationDialog();
- }
- }
- }
- });
-
- removeButton = new Button(buttonComp,SWT.PUSH);
- removeButton.setText("Remove");
- removeButton.setLayoutData(new GridData(SWT.FILL,SWT.TOP,false,false));
- removeButton.addSelectionListener(new SelectionListener(){
- public void widgetDefaultSelected(SelectionEvent e)
- {
- }
- public void widgetSelected(SelectionEvent e)
- {
- performRemove();
- }
- });
-
- setControl(table);
-
- tViewer = new TableViewer(table);
- tViewer.setContentProvider(new IStructuredContentProvider()
- {
- public Object[] getElements(Object inputElement)
- {
- return properties.getProperties().keySet().toArray(new String[0]);
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
- });
- tViewer.setSorter(new ViewerSorter());
- tViewer.addSelectionChangedListener(new ISelectionChangedListener(){
- public void selectionChanged(SelectionChangedEvent event)
- {
- updateRemoveButton();
- }
- });
-
- TableViewerColumn tvc1 = new TableViewerColumn(tViewer,tc1);
- tvc1.setLabelProvider(new CellLabelProvider(){
- @Override
- public void update(ViewerCell cell)
- {
- String tv = (String) cell.getElement();
- cell.setText(tv);
- }
-
- @Override
- public int getToolTipTimeDisplayed(Object object)
- {
- return 5000;
- }
-
- @Override
- public String getToolTipText(Object element)
- {
- String tv = (String) element;
- return propertyUris.get(tv).getDescription();
- }
-
- });
-
-// ColumnViewerToolTipSupport.enableFor(tViewer);
-
- TableViewerColumn tvc2 = new TableViewerColumn(tViewer,tc2);
- tvc2.setLabelProvider(new CellLabelProvider(){
- @Override
- public void update(ViewerCell cell)
- {
- String tv = (String) cell.getElement();
- String val = properties.getProperty(tv);
- cell.setText(val == null ? "" : val);
- }
- });
-
- tvc2.setEditingSupport(new EditingSupport(tViewer){
-
- @Override
- protected boolean canEdit(Object element)
- {
- return true;
- }
-
- @Override
- protected CellEditor getCellEditor(Object element)
- {
- return new TextCellEditor(table);
- }
-
- @Override
- protected Object getValue(Object element)
- {
- String tv = (String)element;
- String val = properties.getProperty(tv);
- return val == null ? "" : val;
- }
-
- @Override
- protected void setValue(Object element, Object value)
- {
- String tv = (String)element;
- properties.setProperty(tv, (String)value);
- updateLaunchConfigurationDialog();
- tViewer.update(tv, null);
- }
-
- });
-
- restoreColumnSettings();
- }
-
- protected void updateRemoveButton()
- {
- removeButton.setEnabled(!tViewer.getSelection().isEmpty());
- }
-
- public String getName()
- {
- return Messages.getString("AttributesBlock.16"); //$NON-NLS-1$
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
-// LaunchProperties p = new LaunchProperties();
-// p.setProperty("indent", "yes");
-// try
-// {
-// String xml = p.toXML();
-// configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_OUTPUT_PROPERTIES, xml);
-// }
-// catch (ParserConfigurationException e)
-// {
-// XSLDebugUIPlugin.log(e);
-// }
-// catch (IOException e)
-// {
-// XSLDebugUIPlugin.log(e);
-// }
-// catch (TransformerException e)
-// {
-// XSLDebugUIPlugin.log(e);
-// }
- }
-
- private void initializePropertiesFromStorage(ILaunchConfiguration configuration) throws CoreException
- {
- String s = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_OUTPUT_PROPERTIES, (String) null);
- if (s != null && s.length() > 0)
- {
- properties = LaunchProperties.fromXML(new ByteArrayInputStream(s.getBytes()));
- }
- else
- {
- properties = new LaunchProperties();
- }
- tViewer.setInput(properties);
- updateRemoveButton();
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- try
- {
- initializePropertiesFromStorage(configuration);
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- try
- {
- String xml = properties.toXML();
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_OUTPUT_PROPERTIES, xml);
- }
- catch (ParserConfigurationException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (IOException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- catch (TransformerException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- private void performRemove()
- {
- IStructuredSelection sel = (IStructuredSelection)tViewer.getSelection();
- for (Iterator iterator = sel.iterator(); iterator.hasNext();)
- {
- String att = (String) iterator.next();
- properties.removeProperty(att);
- }
- tViewer.refresh();
- updateLaunchConfigurationDialog();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertyDialog.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertyDialog.java
deleted file mode 100644
index 2fc7b7c..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/OutputPropertyDialog.java
+++ /dev/null
@@ -1,160 +0,0 @@
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.StatusDialog;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.Text;
-import org.eclipse.wst.xsl.jaxp.launching.IOutputProperty;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-import org.eclipse.wst.xsl.jaxp.launching.LaunchProperties;
-
-public class OutputPropertyDialog extends StatusDialog
-{
- private Table table;
- private TableViewer tViewer;
- private Text text;
- private List<IOutputProperty> properties = new ArrayList<IOutputProperty>();
- private List<IOutputProperty> selectedProperties = new ArrayList<IOutputProperty>();
-
- public OutputPropertyDialog(Shell parent, LaunchProperties launchProperties)
- {
- super(parent);
- setTitle("Select Output Properties");
-
- Set<String> propertySet = new HashSet<String>();
- for (String att : launchProperties.getProperties().keySet())
- {
- propertySet.add(att);
- }
- for (IProcessorType type : JAXPRuntime.getProcessorTypes())
- {
- for (IOutputProperty property : type.getOutputProperties())
- {
- if (!propertySet.contains(property.getURI()))
- {
- propertySet.add(property.getURI());
- properties.add(property);
- }
- }
- }
- }
-
- @Override
- protected Control createDialogArea(Composite parent)
- {
- Composite comp = new Composite(parent,SWT.NONE);
- GridData gd = new GridData(SWT.FILL,SWT.FILL,true,true);
- gd.widthHint = 400;
- comp.setLayoutData(gd);
- comp.setLayout(new GridLayout());
-
- Label label = new Label(comp,SWT.NONE);
- label.setText("Select one or more output properties for the transformation.");
-
-
- table = new Table(comp,SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.MULTI);
- table.setHeaderVisible(false);
- gd = new GridData(SWT.FILL,SWT.FILL,true,true);
- gd.verticalIndent = 10;
- gd.heightHint = 200;
- table.setLayoutData(gd);
-
- tViewer = new TableViewer(table);
- tViewer.setContentProvider(new IStructuredContentProvider()
- {
- public Object[] getElements(Object inputElement)
- {
- return properties.toArray(new IOutputProperty[0]);
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
- });
- tViewer.setLabelProvider(new LabelProvider(){
- @Override
- public String getText(Object element)
- {
- IOutputProperty property = (IOutputProperty)element;
- return property.getURI();
- }
- });
- tViewer.setSorter(new ViewerSorter()
- {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2)
- {
- IOutputProperty a1 = (IOutputProperty) e1;
- IOutputProperty a2 = (IOutputProperty) e2;
- return a1.getURI().compareTo(a2.getURI());
- }
- });
- tViewer.addSelectionChangedListener(new ISelectionChangedListener(){
- public void selectionChanged(SelectionChangedEvent event)
- {
- IStructuredSelection sel = (IStructuredSelection)event.getSelection();
- selectedProperties = sel.toList();
- if (sel.isEmpty())
- text.setText("");
- else
- {
- IOutputProperty property = (IOutputProperty)sel.getFirstElement();
- text.setText(property.getDescription());
- }
- }
- });
- tViewer.addDoubleClickListener(new IDoubleClickListener(){
- public void doubleClick(DoubleClickEvent event)
- {
- buttonPressed(IDialogConstants.OK_ID);
- }
- });
- tViewer.setInput(properties);
-
- text = new Text(comp,SWT.BORDER | SWT.WRAP | SWT.READ_ONLY | SWT.V_SCROLL);
- text.setEditable(false);
- gd = new GridData(SWT.FILL,SWT.FILL,true,false);
- gd.heightHint = 80;
- text.setLayoutData(gd);
-
- if (properties.size() > 0)
- {
- tViewer.setSelection(new StructuredSelection(tViewer.getElementAt(0)), true);
- }
-
- return comp;
- }
-
- public List<IOutputProperty> getOutpuProperties()
- {
- return selectedProperties;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorBlock.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorBlock.java
deleted file mode 100644
index 2353884..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorBlock.java
+++ /dev/null
@@ -1,376 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
-import org.eclipse.jface.preference.IPreferencePage;
-import org.eclipse.jface.viewers.ComboViewer;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Font;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.preferences.ProcessorsPreferencePage;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorType;
-import org.eclipse.wst.xsl.jaxp.launching.ITransformerFactory;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class ProcessorBlock extends AbstractLaunchConfigurationTab
-{
- private Button usePreferencesRadio;
- private Button alterPreferencesButton;
- private Button overridePreferencesRadio;
- private Combo runCombo;
- private Button installedProcessorsButton;
- private ComboViewer runComboViewer;
- private ComboViewer factoryComboViewer;
- private ITransformerFactory currentFactory;
-
- public ProcessorBlock()
- {
- }
-
- public void createControl(Composite parent)
- {
- Font font = parent.getFont();
-
- Composite group = new Composite(parent, SWT.NULL);
- setControl(group);
- group.setLayout(new GridLayout(2, false));
- group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- group.setFont(font);
-// group.setText(ProcessorMessages.ProcessorBlock_0);
-
- usePreferencesRadio = new Button(group, SWT.RADIO);
- usePreferencesRadio.setText(ProcessorMessages.ProcessorBlock_1);
- usePreferencesRadio.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- preferencesSelected();
- updateLaunchConfigurationDialog();
- }
- });
-
- alterPreferencesButton = new Button(group, SWT.PUSH);
- alterPreferencesButton.setText(ProcessorMessages.ProcessorBlock_2);
- GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
- gd.widthHint = 150;
- alterPreferencesButton.setLayoutData(gd);
- alterPreferencesButton.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- IPreferencePage page = new ProcessorsPreferencePage();
- showPrefPage("org.eclipse.wst.xslt.launching.ui.preferences.ProcessorPreferencePage", page); //$NON-NLS-1$
- }
- });
-
- overridePreferencesRadio = new Button(group, SWT.RADIO);
- overridePreferencesRadio.setText(ProcessorMessages.ProcessorBlock_4);
- overridePreferencesRadio.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- overrideSelected();
- updateLaunchConfigurationDialog();
- }
- });
-
- installedProcessorsButton = new Button(group, SWT.PUSH);
- installedProcessorsButton.setText(ProcessorMessages.ProcessorsComboBlock_1);
- gd = new GridData(GridData.HORIZONTAL_ALIGN_END);
- gd.widthHint = 150;
- installedProcessorsButton.setLayoutData(gd);
- installedProcessorsButton.addSelectionListener(new SelectionAdapter()
- {
- @Override
- public void widgetSelected(SelectionEvent e)
- {
- IPreferencePage page = new ProcessorsPreferencePage();
- showPrefPage("org.eclipse.wst.xslt.launching.ui.preferences.ProcessorPreferencePage", page); //$NON-NLS-1$
- }
- });
-
- Composite settingsComp = new Composite(group, SWT.NONE);
- GridLayout gl = new GridLayout(3, false);
- gl.marginHeight = 2;
- settingsComp.setLayout(gl);
- gd = new GridData(GridData.FILL_HORIZONTAL);
- gd.horizontalIndent = 15;
- gd.horizontalSpan = 2;
- settingsComp.setLayoutData(gd);
- settingsComp.setFont(font);
-
- Label label = new Label(settingsComp, SWT.NONE);
- label.setText(ProcessorMessages.ProcessorBlock_6);
- runCombo = new Combo(settingsComp, SWT.READ_ONLY | SWT.SINGLE);
- runCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- runComboViewer = new ComboViewer(runCombo);
- runComboViewer.setContentProvider(new ComboContentProvider());
- runComboViewer.setLabelProvider(new ComboLabelProvider());
- runComboViewer.setInput(JAXPRuntime.getProcessors());
- runComboViewer.addSelectionChangedListener(new ISelectionChangedListener()
- {
-
- public void selectionChanged(SelectionChangedEvent event)
- {
- IStructuredSelection sel = (IStructuredSelection) event.getSelection();
- if (!sel.isEmpty())
- {
- IProcessorInstall processor = (IProcessorInstall) sel.getFirstElement();
-
- if (processor.getProcessorType().getTransformerFactories().length > 1)
- factoryComboViewer.getCombo().setVisible(true);
- else
- factoryComboViewer.getCombo().setVisible(false);
-
- factoryComboViewer.setInput(processor.getProcessorType());
-
- boolean found = false;
- for (ITransformerFactory tf : processor.getProcessorType().getTransformerFactories())
- {
- if (tf.equals(currentFactory))
- {
- found = true;
- break;
- }
- }
- if (!found)
- {
- currentFactory = processor.getProcessorType().getDefaultTransformerFactory();
- if (currentFactory!=null)
- factoryComboViewer.setSelection(new StructuredSelection(currentFactory));
- }
- }
- updateLaunchConfigurationDialog();
- }
- });
-
- Combo factoryCombo = new Combo(settingsComp, SWT.READ_ONLY | SWT.SINGLE);
- factoryCombo.setLayoutData(new GridData(80,SWT.DEFAULT));
- factoryComboViewer = new ComboViewer(factoryCombo);
- factoryComboViewer.setContentProvider(new IStructuredContentProvider(){
-
- private IProcessorType type;
-
- public Object[] getElements(Object inputElement)
- {
- return type.getTransformerFactories();
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- this.type = (IProcessorType)newInput;
- }
-
- });
- factoryComboViewer.setLabelProvider(new LabelProvider(){
- @Override
- public String getText(Object element)
- {
- ITransformerFactory f = (ITransformerFactory)element;
- return f.getName(); // + " - " + f.getFactoryClass();
- }
- });
- factoryComboViewer.addSelectionChangedListener(new ISelectionChangedListener()
- {
-
- public void selectionChanged(SelectionChangedEvent event)
- {
- currentFactory = (ITransformerFactory)((IStructuredSelection)event.getSelection()).getFirstElement();
- updateLaunchConfigurationDialog();
- }
- });
-
-// overridePreferencesButton = new Button(group,SWT.CHECK);
-// overridePreferencesButton.setText("Override preferences");
-// gd = new GridData(SWT.NONE,SWT.NONE,false,false);
-// overridePreferencesButton.setLayoutData(gd);
-// overridePreferencesButton.addSelectionListener(new SelectionListener(){
-// public void widgetDefaultSelected(SelectionEvent e)
-// {}
-//
-// public void widgetSelected(SelectionEvent e)
-// {
-// firePreferenceProcessorChanged(overridePreferencesButton.getSelection());
-// }
-// });
- }
-
-
- private void preferencesSelected()
- {
- alterPreferencesButton.setEnabled(true);
- installedProcessorsButton.setEnabled(false);
- runCombo.setEnabled(false);
- factoryComboViewer.getCombo().setEnabled(false);
- runComboViewer.setSelection(new StructuredSelection(getRunProcessorPreference()), true);
- }
-
- private void overrideSelected()
- {
- alterPreferencesButton.setEnabled(false);
- installedProcessorsButton.setEnabled(true);
- factoryComboViewer.getCombo().setEnabled(true);
- runCombo.setEnabled(true);
- }
-
- private void showPrefPage(String id, IPreferencePage page)
- {
- XSLDebugUIPlugin.showPreferencePage(id, page);
- // now refresh everything
- runComboViewer.setInput(JAXPRuntime.getProcessors());
- runComboViewer.setSelection(new StructuredSelection(getRunProcessorPreference()), true);
- // preferencesSelected();
- }
-
- public String getName()
- {
- return ProcessorMessages.ProcessorBlock_7;
- }
-
- public void initializeFrom(ILaunchConfiguration configuration)
- {
- try
- {
- boolean useDefaultProcessor = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_USE_DEFAULT_PROCESSOR, true);
- if (useDefaultProcessor)
- {
- usePreferencesRadio.setSelection(true);
- overridePreferencesRadio.setSelection(false);
- preferencesSelected();
- }
- else
- {
- usePreferencesRadio.setSelection(false);
- overridePreferencesRadio.setSelection(true);
- overrideSelected();
-
- IProcessorInstall runInstall = null;
- String runId = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_PROCESSOR, (String) null);
- if (runId != null)
- runInstall = JAXPRuntime.getProcessor(runId);
- if (runInstall == null)
- runInstall = getRunProcessorPreference();
- runComboViewer.setSelection(new StructuredSelection(runInstall));
-
-
- String factoryId = configuration.getAttribute(JAXPLaunchConfigurationConstants.ATTR_TRANSFORMER_FACTORY, (String) null);
- if (factoryId == null)
- {
- currentFactory = runInstall.getProcessorType().getDefaultTransformerFactory();
- }
- else
- {
- for (ITransformerFactory tf : runInstall.getProcessorType().getTransformerFactories())
- {
- if (tf.getFactoryClass().equals(factoryId))
- {
- currentFactory = tf;
- break;
- }
- }
- }
-
- if (currentFactory == null)
- {
- currentFactory = runInstall.getProcessorType().getDefaultTransformerFactory();
- }
- if (currentFactory != null)
- {
- factoryComboViewer.setSelection(new StructuredSelection(currentFactory), true);
- }
- }
- }
- catch (CoreException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- }
-
- private IProcessorInstall getRunProcessorPreference()
- {
- return JAXPRuntime.getDefaultProcessor();
- }
-
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- boolean usePreferences = usePreferencesRadio.getSelection();
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_USE_DEFAULT_PROCESSOR, usePreferences);
- if (!usePreferences)
- {
- IProcessorInstall runprocessor = (IProcessorInstall) ((IStructuredSelection) runComboViewer.getSelection()).getFirstElement();
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_PROCESSOR, runprocessor.getId());
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_TRANSFORMER_FACTORY, currentFactory == null ? null : currentFactory.getFactoryClass());
- }
- }
-
- public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
- {
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_USE_DEFAULT_PROCESSOR, true);
- configuration.setAttribute(JAXPLaunchConfigurationConstants.ATTR_PROCESSOR, (String) null);
- }
-
- private class ComboContentProvider implements IStructuredContentProvider
- {
- public Object[] getElements(Object inputElement)
- {
- return JAXPRuntime.getProcessors();
- }
-
- public void dispose()
- {
- }
-
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- {
- }
- }
-
- private class ComboLabelProvider extends LabelProvider
- {
- @Override
- public String getText(Object element)
- {
- IProcessorInstall install = (IProcessorInstall) element;
- return install.getName();
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDescriptor.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDescriptor.java
deleted file mode 100644
index 83bf92f..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDescriptor.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-public abstract class ProcessorDescriptor
-{
- public abstract String getDescription();
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDetailsDialog.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDetailsDialog.java
deleted file mode 100644
index e0621f5..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorDetailsDialog.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.jface.dialogs.Dialog;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInstall;
-
-public class ProcessorDetailsDialog extends Dialog
-{
- private final IProcessorInstall install;
-
- public ProcessorDetailsDialog(Shell shell, IProcessorInstall install)
- {
- super(shell);
- setShellStyle(getShellStyle() | SWT.RESIZE);
- this.install = install;
- }
-
- @Override
- protected void configureShell(Shell newShell)
- {
- super.configureShell(newShell);
- newShell.setText(ProcessorMessages.ProcessorDetailsDialog_Title);
- // TODO PlatformUI.getWorkbench().getHelpSystem().setHelp...
- }
-
- @Override
- protected Control createDialogArea(Composite ancestor)
- {
- Composite parent = (Composite) super.createDialogArea(ancestor);
- GridLayout layout = new GridLayout(2, false);
- parent.setLayout(layout);
-
- // type
- createLabel(parent, ProcessorMessages.ProcessorDetailsDialog_installType);
- createLabel(parent, install.getProcessorType().getLabel());
-
- // name
- createLabel(parent, ProcessorMessages.ProcessorDetailsDialog_installName);
- createLabel(parent, install.getName());
-
- // jars
- Label label = createLabel(parent, ProcessorMessages.ProcessorDetailsDialog_installClasspath);
- GridData gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING | GridData.HORIZONTAL_ALIGN_BEGINNING);
- label.setLayoutData(gd);
- TableViewer libraryViewer = new TableViewer(parent);
- gd = new GridData(GridData.FILL_BOTH);
- gd.heightHint = 6;
- libraryViewer.getControl().setLayoutData(gd);
- libraryViewer.setContentProvider(new JarContentProvider());
- libraryViewer.setLabelProvider(new JarLabelProvider());
- libraryViewer.setInput(install);
-
- applyDialogFont(parent);
- return parent;
- }
-
- private Label createLabel(Composite parent, String text)
- {
- Label label = new Label(parent, SWT.NONE);
- label.setText(text);
- return label;
- }
-
- /**
- * Returns the name of the section that this dialog stores its settings in
- *
- * @return String
- */
- protected String getDialogSettingsSectionName()
- {
- return "XSL_DETAILS_DIALOG_SECTION"; //$NON-NLS-1$
- }
-
- @Override
- protected IDialogSettings getDialogBoundsSettings()
- {
- IDialogSettings settings = XSLDebugUIPlugin.getDefault().getDialogSettings();
- IDialogSettings section = settings.getSection(getDialogSettingsSectionName());
- if (section == null)
- {
- section = settings.addNewSection(getDialogSettingsSectionName());
- }
- return section;
- }
-
- @Override
- protected void createButtonsForButtonBar(Composite parent)
- {
- // create OK and Cancel buttons by default
- createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.java
deleted file mode 100644
index ba4e159..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.osgi.util.NLS;
-
-class ProcessorMessages extends NLS
-{
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor.ProcessorMessages"; //$NON-NLS-1$
-
- public static String ProcessorBlock_0;
- public static String ProcessorBlock_1;
- public static String ProcessorBlock_2;
- public static String ProcessorBlock_4;
- public static String ProcessorBlock_6;
- public static String ProcessorBlock_7;
- public static String ProcessorsComboBlock_1;
- public static String ProcessorDetailsDialog_Title;
- public static String ProcessorDetailsDialog_installName;
- public static String ProcessorDetailsDialog_installType;
- public static String ProcessorDetailsDialog_installClasspath;
-
- static
- {
- // load message values from bundle file
- NLS.initializeMessages(BUNDLE_NAME, ProcessorMessages.class);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.properties
deleted file mode 100644
index caa7275..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/ProcessorMessages.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-ProcessorBlock_0=XSLT Processor
-ProcessorBlock_1=Use processor from preferences
-ProcessorBlock_2=Change preferences...
-ProcessorBlock_4=Use specific processor
-ProcessorBlock_6=Processor:
-ProcessorBlock_7=Processor
-ProcessorsComboBlock_1=&Installed processors...
-
-ProcessorDetailsDialog_Title=Built-in XSLT Processor
-ProcessorDetailsDialog_installName=Name:
-ProcessorDetailsDialog_installType=Type:
-ProcessorDetailsDialog_installClasspath=Libraries:
-
-
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/XSLProcessorTab2.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/XSLProcessorTab2.java
deleted file mode 100644
index 2bab50e..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/XSLProcessorTab2.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- * David Carver - bug 223557 - Added images contributed by Holger Voormann
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.tabs.processor;
-
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.TabFolder;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchConfigurationTab;
-import org.eclipse.wst.xsl.jaxp.debug.ui.internal.JAXPDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.IProcessorInvoker;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.jaxp.launching.JAXPRuntime;
-
-public class XSLProcessorTab2 extends XSLLaunchConfigurationTab
-{
- private final ProcessorBlock processorBlock;
- private final AttributesBlock attributesBlock;
- private final OutputPropertiesBlock outputPropertiesBlock;
- private Image image;
-
- public XSLProcessorTab2()
- {
- attributesBlock = new AttributesBlock();
- outputPropertiesBlock = new OutputPropertiesBlock();
- processorBlock = new ProcessorBlock();
-
- setBlocks(new ILaunchConfigurationTab[]
- { processorBlock , attributesBlock, outputPropertiesBlock });
- }
-
- @Override
- public void createControl(Composite parent)
- {
- super.createControl(parent);
- Composite comp = (Composite) getControl();
-
- processorBlock.createControl(comp);
-
- TabFolder tabFolder = new TabFolder(comp,SWT.NONE);
- tabFolder.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));
-
- outputPropertiesBlock.createControl(tabFolder);
- attributesBlock.createControl(tabFolder);
- }
-
- @Override
- public void performApply(ILaunchConfigurationWorkingCopy configuration)
- {
- super.performApply(configuration);
- IProcessorInvoker invoker = JAXPRuntime.getProcessorInvokers()[0];
- configuration.setAttribute(JAXPLaunchConfigurationConstants.INVOKER_DESCRIPTOR, invoker.getId());
- }
-
- public String getName()
- {
- return Messages.getString("XSLProcessorTab.0"); //$NON-NLS-1$
- }
-
- @Override
- public String getId()
- {
- return "org.eclipse.wst.xsl.debug.ui.jaxp.tabs.processor";
- }
-
- @Override
- public Image getImage()
- {
- if (image == null)
- {
- ImageDescriptor id = JAXPDebugUIPlugin.imageDescriptorFromPlugin(JAXPDebugUIPlugin.PLUGIN_ID, "icons/xslt_processor.gif");
- image = id.createImage();
- }
- return image;
- }
-
- @Override
- public void dispose()
- {
- if (image != null)
- image.dispose();
- super.dispose();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/messages.properties b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/messages.properties
deleted file mode 100644
index 1cebef7..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/tabs/processor/messages.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-AttributesBlock.1=Change Preferences...
-AttributesBlock.10=type
-AttributesBlock.11=value
-AttributesBlock.12=value
-AttributesBlock.16=Processor Attributes
-AttributesBlock.3=Use specific attributes
-AttributesBlock.4=Attribute
-AttributesBlock.5=Type
-AttributesBlock.6=Value
-AttributesBlock.9=name
-XSLProcessorTab.0=Processor
diff --git a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultView.java b/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultView.java
deleted file mode 100644
index 7c9f2d6..0000000
--- a/bundles/org.eclipse.wst.xsl.jaxp.debug.ui/src/org/eclipse/wst/xsl/jaxp/debug/ui/internal/views/ResultView.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.jaxp.debug.ui.internal.views;
-
-import java.io.IOException;
-import java.io.Reader;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.debug.core.DebugEvent;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.IDebugEventSetListener;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.jface.resource.JFaceResources;
-import org.eclipse.jface.text.BadLocationException;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.source.ISourceViewer;
-import org.eclipse.jface.text.source.SourceViewer;
-import org.eclipse.jface.text.source.SourceViewerConfiguration;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.ViewPart;
-import org.eclipse.ui.progress.IWorkbenchSiteProgressService;
-import org.eclipse.wst.sse.core.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
-import org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration;
-import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
-import org.eclipse.wst.sse.ui.internal.provisional.style.LineStyleProvider;
-import org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin;
-import org.eclipse.wst.xsl.jaxp.launching.model.JAXPDebugTarget;
-import org.eclipse.wst.xsl.ui.internal.StructuredTextViewerConfigurationXSL;
-
-/**
- * TODO handle multiple concurrent debugging processes (and bring the current results to the top depending on which selected in Debug view)
- *
- * @author Doug Satchwell
- */
-public class ResultView extends ViewPart implements IDebugEventSetListener
-{
- private SourceViewer sv;
-
- @Override
- public void dispose()
- {
- DebugPlugin.getDefault().removeDebugEventListener(this);
- super.dispose();
- }
-
- @Override
- public void createPartControl(Composite parent)
- {
- this.sv = createViewer(parent);
-
- // handle any launches already added
- IDebugTarget[] targets = DebugPlugin.getDefault().getLaunchManager().getDebugTargets();
- for (IDebugTarget debugTarget : targets)
- {
- if (debugTarget instanceof JAXPDebugTarget)
- {
- handleDebugTarget((JAXPDebugTarget)debugTarget);
- }
- }
- // listen to further launches
- DebugPlugin.getDefault().addDebugEventListener(this);
- }
-
- private SourceViewer createViewer(Composite parent)
- {
- SourceViewerConfiguration sourceViewerConfiguration = new StructuredTextViewerConfiguration() {
- StructuredTextViewerConfiguration baseConfiguration = new StructuredTextViewerConfigurationXSL();
-
- public String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {
- return baseConfiguration.getConfiguredContentTypes(sourceViewer);
- }
-
- public LineStyleProvider[] getLineStyleProviders(ISourceViewer sourceViewer, String partitionType) {
- return baseConfiguration.getLineStyleProviders(sourceViewer, partitionType);
- }
- };
- SourceViewer viewer = new StructuredTextViewer(parent, null, null, false, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
- ((StructuredTextViewer) viewer).getTextWidget().setFont(JFaceResources.getFont("org.eclipse.wst.sse.ui.textfont")); //$NON-NLS-1$
- viewer.configure(sourceViewerConfiguration);
- viewer.setEditable(false);
- return viewer;
- }
-
- @Override
- public void setFocus()
- {}
-
- public void handleDebugEvents(DebugEvent[] events)
- {
- for (DebugEvent debugEvent : events)
- {
- if (debugEvent.getKind() == DebugEvent.CREATE && debugEvent.getSource() instanceof JAXPDebugTarget)
- {
- handleDebugTarget((JAXPDebugTarget)debugEvent.getSource());
- }
- }
- }
-
- private void handleDebugTarget(JAXPDebugTarget xdt)
- {
- // first, clear the viewer
- sv.setDocument(null);
-
- final Reader reader = xdt.getGenerateReader();
- IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService)getSite().getService(IWorkbenchSiteProgressService.class);
- service.schedule(new Job("Result view job"){
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- IStatus status = Status.OK_STATUS;
- try
- {
- char[] c = new char[8192]; // this is the default BufferedWriter size, so we will usually get chunks of this size
- int size;
- while((size = reader.read(c)) != -1)
- {
- writeString(new String(c,0,size));
- }
- }
- catch (IOException e)
- {
- // ignore
- }
- finally
- {
- monitor.done();
- }
- return status;
- }
-
- private void writeString(final String s)
- {
- getSite().getShell().getDisplay().syncExec(new Runnable(){
-
- public void run()
- {
- // if this is the first lot of data, determine the correct content type and set the appropriate document
- if (sv.getDocument() == null)
- {
- IDocument document;
- if (s.startsWith("<!DOCTYPE html"))
- {
- String contentType = "org.eclipse.wst.html.core.htmlsource";
- IStructuredModel scratchModel = StructuredModelManager.getModelManager().createUnManagedStructuredModelFor(contentType);
- document = scratchModel.getStructuredDocument();
- }
- else if (s.startsWith("<?xml"))
- {
- String contentType = "org.eclipse.core.runtime.xml";
- IStructuredModel scratchModel = StructuredModelManager.getModelManager().createUnManagedStructuredModelFor(contentType);
- document = scratchModel.getStructuredDocument();
- }
- else
- {
- // TODO how to create a plain text Document??
- document = null;
- }
- sv.setDocument(document);
- }
- try
- {
- sv.getDocument().replace(sv.getDocument().getLength(), 0, s);
- }
- catch (BadLocationException e)
- {
- XSLDebugUIPlugin.log(e);
- }
- sv.revealRange(sv.getDocument().getLength(),0);
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().activate(ResultView.this);
- }
- });
- }
- });
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/.classpath b/bundles/org.eclipse.wst.xsl.launching/.classpath
deleted file mode 100644
index 304e861..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.launching/.cvsignore b/bundles/org.eclipse.wst.xsl.launching/.cvsignore
deleted file mode 100644
index d4a255d..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-build.xml
-javaCompiler...args
-temp.folder
-@dot
diff --git a/bundles/org.eclipse.wst.xsl.launching/.project b/bundles/org.eclipse.wst.xsl.launching/.project
deleted file mode 100644
index 86b41f9..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.launching</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 3bacc8f..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Jan 03 22:24:25 EST 2008
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 198f7ee..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Fri Jan 04 01:02:13 EST 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index c1fc3ed..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,24 +0,0 @@
-#Wed Jul 30 20:56:56 BST 2008
-compilers.f.unresolved-features=1
-compilers.f.unresolved-plugins=1
-compilers.incompatible-environment=1
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.discouraged-class=1
-compilers.p.internal=1
-compilers.p.missing-bundle-classpath-entries=0
-compilers.p.missing-packages=2
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=1
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=1
-compilers.p.unknown-element=0
-compilers.p.unknown-identifier=1
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.s.create-docs=false
-compilers.s.doc-folder=doc
-compilers.s.open-tags=1
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/bundles/org.eclipse.wst.xsl.launching/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.launching/META-INF/MANIFEST.MF
deleted file mode 100644
index 3685365..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,22 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.launching;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.internal.launching.LaunchingPlugin
-Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.expressions;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.filesystem;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.core.variables;bundle-version="[3.2.0,4.0.0)",
- org.eclipse.debug.core;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.ui.ide;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.wst.xsl.core;bundle-version="[1.0.0,2.0.0)"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ClassPath: .
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.launching,
- org.eclipse.wst.xsl.launching.config,
- org.eclipse.wst.xsl.launching.model
diff --git a/bundles/org.eclipse.wst.xsl.launching/about.html b/bundles/org.eclipse.wst.xsl.launching/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.launching/build.properties b/bundles/org.eclipse.wst.xsl.launching/build.properties
deleted file mode 100644
index 9a7834a..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html,\
- plugin.properties
-jars.compile.order = . \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.launching/plugin.properties b/bundles/org.eclipse.wst.xsl.launching/plugin.properties
deleted file mode 100644
index 99c515f..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/plugin.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.launching
-Bundle-Name.0 = XSL Transform Launching (Incubating)
-launchConfigurationType.name.0 = XSL
-sourceLocator.name.0 = XSLT Source Lookup Director
-extension-point.name.0 = XSLT Processor Invoker
-extension-point.name.1 = XSLT Processor Type
-extension-point.name.2 = XSLT Processor
-extension-point.name.3 = XSLT Debugger
-Bundle-Vendor.0 = Eclipse.org \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.launching/plugin.xml b/bundles/org.eclipse.wst.xsl.launching/plugin.xml
deleted file mode 100644
index cbb1e6a..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/plugin.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension
- point="org.eclipse.debug.core.launchConfigurationTypes">
- <launchConfigurationType
- sourceLocatorId="org.eclipse.wst.xsl.launching.sourceLookupDirector"
- sourcePathComputerId="org.eclipse.wst.xsl.launching.sourcePathComputer"
- id="org.eclipse.wst.xsl.launching.launchConfigurationType"
- name="%launchConfigurationType.name.0" />
- </extension>
-
- <extension
- point="org.eclipse.debug.core.sourceLocators">
- <sourceLocator
- name="%sourceLocator.name.0"
- class="org.eclipse.wst.xsl.internal.launching.XSLTSourceLookupDirector"
- id="org.eclipse.wst.xsl.launching.sourceLookupDirector">
- </sourceLocator>
- </extension>
-
- <extension
- point="org.eclipse.debug.core.sourcePathComputers">
- <sourcePathComputer
- class="org.eclipse.wst.xsl.internal.launching.XSLTSourcePathComputerDelegate"
- id="org.eclipse.wst.xsl.launching.sourcePathComputer">
- </sourcePathComputer>
- </extension>
-
- <extension
- point="org.eclipse.debug.core.breakpoints">
- <breakpoint
- id="xslLineBreakpoint"
- markerType="org.eclipse.wst.xsl.launching.xslLineBreakpointMarker"
- class="org.eclipse.wst.xsl.launching.model.XSLLineBreakpoint">
- </breakpoint>
- </extension>
-
- <extension
- id="xslLineBreakpointMarker"
- point="org.eclipse.core.resources.markers">
- <super
- type="org.eclipse.debug.core.lineBreakpointMarker">
- </super>
- <persistent
- value="true">
- </persistent>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/LaunchingPlugin.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/LaunchingPlugin.java
deleted file mode 100644
index d8abb17..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/LaunchingPlugin.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Plugin;
-import org.eclipse.core.runtime.Status;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class LaunchingPlugin extends Plugin
-{
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.wst.xsl.launching"; //$NON-NLS-1$
-
- // The shared instance
- private static LaunchingPlugin plugin;
-
- /**
- * The constructor
- */
- public LaunchingPlugin()
- {
- plugin = this;
- }
-
- @Override
- public void start(BundleContext context) throws Exception
- {
- super.start(context);
- }
-
- @Override
- public void stop(BundleContext context) throws Exception
- {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static LaunchingPlugin getDefault()
- {
- return plugin;
- }
-
- public static void log(Exception e)
- {
- getDefault().getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, 0, "", e)); //$NON-NLS-1$
- }
-
- public static void log(CoreException e)
- {
- getDefault().getLog().log(e.getStatus());
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Messages.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Messages.java
deleted file mode 100644
index f153824..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Messages.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.eclipse.wst.xsl.internal.launching;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class Messages {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.internal.launching.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Utils.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Utils.java
deleted file mode 100644
index 78fb2ed..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/Utils.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package org.eclipse.wst.xsl.internal.launching;
-
-import java.io.File;
-import java.io.IOException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-
-public class Utils
-{
-
- public static String getFileLocation(String bundleId, String path) throws CoreException
- {
- String location = null;
- try
- {
- URL url = FileLocator.find(Platform.getBundle(bundleId), new Path(path), null);
- if (url != null)
- {
- URL fileUrl = FileLocator.toFileURL(url);
- File file = new File(fileUrl.getFile());
- location = file.getAbsolutePath();
- }
- }
- catch (IOException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, IStatus.ERROR, Messages.getString("Utils.0") + path + Messages.getString("Utils.1") + bundleId, e)); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return location;
- }
-
- public static String getPluginLocation(String bundleId) throws CoreException
- {
- String location = null;
- try
- {
- URL url = new URL("platform:/plugin/"+bundleId);
- if (url != null)
- {
- URL fileUrl = FileLocator.toFileURL(url);
- File file = new File(fileUrl.getFile());
- location = file.getAbsolutePath();
- }
- }
- catch (IOException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, IStatus.ERROR, Messages.getString("Utils.0") + bundleId + Messages.getString("Utils.1") + bundleId, e)); //$NON-NLS-1$ //$NON-NLS-2$
- }
- return location;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLPropertyTester.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLPropertyTester.java
deleted file mode 100644
index 12dd6b3..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLPropertyTester.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.core.expressions.PropertyTester;
-
-public class XSLPropertyTester extends PropertyTester
-{
- public boolean test(Object arg0, String arg1, Object[] arg2, Object arg3)
- {
- return true;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupDirector.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupDirector.java
deleted file mode 100644
index ea3e73c..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupDirector.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector;
-import org.eclipse.debug.core.sourcelookup.ISourceLookupParticipant;
-
-public class XSLTSourceLookupDirector extends AbstractSourceLookupDirector
-{
- public void initializeParticipants()
- {
- addParticipants(new ISourceLookupParticipant[]{ new XSLTSourceLookupParticipant() });
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupParticipant.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupParticipant.java
deleted file mode 100644
index 2e23289..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourceLookupParticipant.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupParticipant;
-import org.eclipse.wst.xsl.launching.model.XSLStackFrame;
-
-/**
- * Translate a stack frame into a source file name
- */
-public class XSLTSourceLookupParticipant extends AbstractSourceLookupParticipant
-{
- public String getSourceName(Object object) throws CoreException
- {
- if (object instanceof XSLStackFrame)
- {
- return ((XSLStackFrame) object).getSourceName();
- }
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourcePathComputerDelegate.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourcePathComputerDelegate.java
deleted file mode 100644
index ffeb698..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/XSLTSourcePathComputerDelegate.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.internal.launching;
-
-import java.io.ByteArrayInputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.sourcelookup.ISourceContainer;
-import org.eclipse.debug.core.sourcelookup.ISourcePathComputerDelegate;
-import org.eclipse.debug.core.sourcelookup.containers.DirectorySourceContainer;
-import org.eclipse.debug.core.sourcelookup.containers.FolderSourceContainer;
-import org.eclipse.debug.core.sourcelookup.containers.ProjectSourceContainer;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.config.LaunchPipeline;
-import org.eclipse.wst.xsl.launching.config.LaunchTransform;
-
-public class XSLTSourcePathComputerDelegate implements ISourcePathComputerDelegate
-{
- public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException
- {
- List<ISourceContainer> containers = new ArrayList<ISourceContainer>();
-
- String sourceFileExpr = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, (String) null);
- IPath sourceFile = getSubstitutedPath(sourceFileExpr);
- LaunchPipeline pipeline = hydratePipeline(configuration);
-
- // TODO have some way of knowing whether it is an IResource or not
- containers.add(new DirectorySourceContainer(sourceFile, false));
-
- for (Iterator<?> iter = pipeline.getTransformDefs().iterator(); iter.hasNext();)
- {
- LaunchTransform transform = (LaunchTransform) iter.next();
- IPath path = transform.getPath();
- ISourceContainer sourceContainer = null;
- if (transform.getPathType().equals(LaunchTransform.RESOURCE_TYPE))
- {
- IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
- IContainer container = resource.getParent();
- if (container.getType() == IResource.PROJECT)
- {
- sourceContainer = new ProjectSourceContainer((IProject) container, false);
- }
- else if (container.getType() == IResource.FOLDER)
- {
- sourceContainer = new FolderSourceContainer(container, false);
- }
- }
- else
- {
- sourceContainer = new DirectorySourceContainer(path, false);
- }
- containers.add(sourceContainer);
- }
-
- // if (sourceContainer == null)
- // {
- // sourceContainer = new WorkspaceSourceContainer();
- // }
-
- return (ISourceContainer[]) containers.toArray(new ISourceContainer[0]);
- }
-
- private static LaunchPipeline hydratePipeline(ILaunchConfiguration configuration) throws CoreException
- {
- LaunchPipeline pipeline = null;
- String s = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_PIPELINE, (String) null);
- if (s != null && s.length() > 0)
- {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(s.getBytes());
- pipeline = LaunchPipeline.fromXML(inputStream);
- }
- return pipeline;
- }
-
- private static IPath getSubstitutedPath(String path) throws CoreException
- {
- if (path != null)
- {
- path = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(path);
- return new Path(path);
- }
- return null;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/messages.properties b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/messages.properties
deleted file mode 100644
index 5a462ec..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/internal/launching/messages.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-Utils.0=Error determining jar file location:
-Utils.1=\ from bundle:
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLLaunchConfigurationConstants.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLLaunchConfigurationConstants.java
deleted file mode 100644
index 1d4725a..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLLaunchConfigurationConstants.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching;
-
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-
-public class XSLLaunchConfigurationConstants
-{
- public static final String ATTR_INPUT_FILE = LaunchingPlugin.PLUGIN_ID + ".ATTR_INPUT_FILE"; //$NON-NLS-1$
- public static final String ATTR_USE_DEFAULT_OUTPUT_FILE = LaunchingPlugin.PLUGIN_ID + ".ATTR_USE_DEFAULT_OUTPUT_FILE"; //$NON-NLS-1$
- public static final String ATTR_OUTPUT_FOLDER = LaunchingPlugin.PLUGIN_ID + ".ATTR_OUTPUT_FOLDER"; //$NON-NLS-1$
- public static final String ATTR_OUTPUT_FILENAME = LaunchingPlugin.PLUGIN_ID + ".ATTR_OUTPUT_FILENAME"; //$NON-NLS-1$
- public static final String ID_LAUNCH_CONFIG_TYPE = LaunchingPlugin.PLUGIN_ID + ".launchConfigurationType"; //$NON-NLS-1$
- public static final String ATTR_PIPELINE = LaunchingPlugin.PLUGIN_ID + ".ATTR_PIPELINE"; //$NON-NLS-1$
- public static final String ATTR_OPEN_FILE = LaunchingPlugin.PLUGIN_ID + ".ATTR_OPEN_FILE"; //$NON-NLS-1$
- public static final String ATTR_FORMAT_FILE = LaunchingPlugin.PLUGIN_ID + ".ATTR_FORMAT_FILE"; //$NON-NLS-1$
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLTRuntime.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLTRuntime.java
deleted file mode 100644
index 3d2927e..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/XSLTRuntime.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Preferences;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-
-public class XSLTRuntime
-{
- private static byte[] NEXT_ID_LOCK = new byte[0];
- private static byte[] REGISTRY_LOCK = new byte[0];
-
- private static int lastStandinID;
-
- private static void savePreferences()
- {
- LaunchingPlugin.getDefault().savePluginPreferences();
- }
-
- private static Preferences getPreferences()
- {
- return LaunchingPlugin.getDefault().getPluginPreferences();
- }
-
- public static IPath defaultOutputFileForInputFile(String inputFileExpression) throws CoreException
- {
- String file = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(inputFileExpression);
- IPath inputFilePath = new Path(file);
- inputFilePath = inputFilePath.removeFileExtension();
- inputFilePath = inputFilePath.addFileExtension("out.xml");
- return inputFilePath;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/BaseLaunchHelper.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/BaseLaunchHelper.java
deleted file mode 100644
index f46dab4..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/BaseLaunchHelper.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.IOException;
-import java.net.MalformedURLException;
-import java.net.ServerSocket;
-import java.net.URL;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-import org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants;
-import org.eclipse.wst.xsl.launching.XSLTRuntime;
-
-public class BaseLaunchHelper
-{
- private final URL source;
- private final File target;
- protected final LaunchPipeline pipeline;
- private int requestPort = -1;
- private int eventPort = -1;
- private int generatePort = -1;
- private final boolean openFileOnCompletion;
- private final boolean formatFileOnCompletion;
-
- public BaseLaunchHelper(ILaunchConfiguration configuration) throws CoreException
- {
- source = hydrateSourceFileURL(configuration);
- target = hydrateOutputFile(configuration);
- pipeline = hydratePipeline(configuration);
- openFileOnCompletion = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_OPEN_FILE, true);
- formatFileOnCompletion = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_FORMAT_FILE, false);
- }
-
- public int getRequestPort()
- {
- if (requestPort == -1)
- requestPort = findFreePort();
- return requestPort;
- }
-
- public int getEventPort()
- {
- if (eventPort == -1)
- eventPort = findFreePort();
- return eventPort;
- }
-
- public int getGeneratePort()
- {
- if (generatePort == -1)
- generatePort = findFreePort();
- return generatePort;
- }
-
- public LaunchPipeline getPipeline()
- {
- return pipeline;
- }
-
- public URL getSource()
- {
- return source;
- }
-
- public File getTarget()
- {
- return target;
- }
-
- private static LaunchPipeline hydratePipeline(ILaunchConfiguration configuration) throws CoreException
- {
- LaunchPipeline pipeline = null;
- String s = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_PIPELINE, (String) null);
- if (s != null && s.length() > 0)
- {
- ByteArrayInputStream inputStream = new ByteArrayInputStream(s.getBytes());
- pipeline = LaunchPipeline.fromXML(inputStream);
- }
- return pipeline;
- }
-
- public static URL hydrateSourceFileURL(ILaunchConfiguration configuration) throws CoreException
- {
- IPath sourceFile = hydrateSourceFile(configuration);
- return pathToURL(sourceFile);
- }
-
- private static IPath hydrateSourceFile(ILaunchConfiguration configuration) throws CoreException
- {
- String sourceFileExpr = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, (String) null);
- return getSubstitutedPath(sourceFileExpr);
- }
-
- protected static URL pathToURL(IPath sourceFile) throws CoreException
- {
- URL url = null;
- try
- {
- url = sourceFile.toFile().toURL();
- }
- catch (MalformedURLException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, IStatus.ERROR, sourceFile.toString(), e));
- }
- return url;
- }
-
- public static File hydrateOutputFile(ILaunchConfiguration configuration) throws CoreException
- {
- IPath outputFile = null;
- boolean useDefaultOutputFile = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_USE_DEFAULT_OUTPUT_FILE, true);
- if (!useDefaultOutputFile)
- {
- String outputFileName = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_OUTPUT_FILENAME, (String) null);
- String outputFolderExpr = configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_OUTPUT_FOLDER, (String) null);
- outputFile = getSubstitutedPath(outputFolderExpr).append(outputFileName);
- }
- else
- {
- outputFile = XSLTRuntime.defaultOutputFileForInputFile(configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_INPUT_FILE, (String) null));
- }
- return outputFile.toFile();
- }
-
- private static IPath getSubstitutedPath(String path) throws CoreException
- {
- if (path != null)
- {
- path = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(path);
- return new Path(path);
- }
- return null;
- }
-
- /**
- * Returns a free port number on localhost, or -1 if unable to find a free
- * port.
- *
- * @return a free port number on localhost, or -1 if unable to find a free
- * port
- */
- public static int findFreePort()
- {
- ServerSocket socket = null;
- try
- {
- socket = new ServerSocket(0);
- return socket.getLocalPort();
- }
- catch (IOException e)
- {
- LaunchingPlugin.log(e);
- }
- finally
- {
- if (socket != null)
- {
- try
- {
- socket.close();
- }
- catch (IOException e)
- {
- LaunchingPlugin.log(e);
- }
- }
- }
- return -1;
- }
-
- public boolean getOpenFileOnCompletion()
- {
- return openFileOnCompletion;
- }
-
-
- public boolean getFormatFileOnCompletion()
- {
- return formatFileOnCompletion;
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchAttribute.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchAttribute.java
deleted file mode 100644
index 26f1c9d..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchAttribute.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.variables.VariablesPlugin;
-
-public class LaunchAttribute
-{
- public final String uri;
- public String type;
- public String value;
-
- public LaunchAttribute(String uri, String type, String value)
- {
- this.uri = uri;
- this.type = type;
- this.value = value;
- }
-
- public void setValue(String value)
- {
- this.value = value;
- }
-
- public String getResolvedValue() throws CoreException
- {
- return VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(value);
- }
-
- @Override
- public int hashCode()
- {
- return uri.hashCode();
- }
-
- @Override
- public boolean equals(Object obj)
- {
- if (obj instanceof LaunchAttribute)
- {
- LaunchAttribute att = (LaunchAttribute) obj;
- return att.uri.equals(uri);
- }
- return false;
- }
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchPipeline.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchPipeline.java
deleted file mode 100644
index e50bd30..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchPipeline.java
+++ /dev/null
@@ -1,148 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.TransformerException;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-import org.w3c.dom.DOMException;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-public class LaunchPipeline
-{
- private List<LaunchTransform> transformDefs = new ArrayList<LaunchTransform>();
- private final Properties outputProperties = new Properties();
-
- public Properties getOutputProperties()
- {
- return outputProperties;
- }
-
- public void addOutputProperty(String name, String value)
- {
- outputProperties.put(name, value);
- }
-
- public List<LaunchTransform> getTransformDefs()
- {
- return transformDefs;
- }
-
- public void setTransformDefs(List<LaunchTransform> transforms)
- {
- transformDefs = transforms;
- }
-
- public void addTransformDef(LaunchTransform tdef)
- {
- tdef.setPipeline(this);
- transformDefs.add(tdef);
- }
-
- public void removeTransformDef(LaunchTransform tdef)
- {
- transformDefs.remove(tdef);
- }
-
- public String toXML() throws CoreException
- {
- String xml = null;
- try
- {
- Document doc = PreferenceUtil.getDocument();
- Element rootEl = doc.createElement("Pipeline"); //$NON-NLS-1$
- doc.appendChild(rootEl);
-
- Element opEl = doc.createElement("OutputProperties"); //$NON-NLS-1$
- rootEl.appendChild(opEl);
- for (Object element : outputProperties.entrySet())
- {
- Map.Entry entry = (Map.Entry) element;
- Element propEl = doc.createElement("Property"); //$NON-NLS-1$
- propEl.setAttribute("name", (String) entry.getKey()); //$NON-NLS-1$
- propEl.setAttribute("value", (String) entry.getValue()); //$NON-NLS-1$
- opEl.appendChild(propEl);
- }
-
- for (Iterator<LaunchTransform> iter = transformDefs.iterator(); iter.hasNext();)
- {
- LaunchTransform tdef = (LaunchTransform) iter.next();
- Element tdefEl = tdef.asXML(doc);
- rootEl.appendChild(tdefEl);
- }
-
- xml = PreferenceUtil.serializeDocument(doc);
- }
- catch (DOMException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- }
- catch (ParserConfigurationException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- }
- catch (IOException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- }
- catch (TransformerException e)
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- }
- return xml;
- }
-
- public static LaunchPipeline fromXML(InputStream inputStream) throws CoreException
- {
- Document doc = PreferenceUtil.getDocument(inputStream);
-
- LaunchPipeline pdef = new LaunchPipeline();
-
- Element rootEl = doc.getDocumentElement();
-
- Element opEl = (Element) rootEl.getElementsByTagName("OutputProperties").item(0); //$NON-NLS-1$
- if (opEl != null)
- {
- NodeList propEls = opEl.getElementsByTagName("Property"); //$NON-NLS-1$
- for (int i = 0; i < propEls.getLength(); i++)
- {
- Element propEl = (Element) propEls.item(i);
- String name = propEl.getAttribute("name"); //$NON-NLS-1$
- String value = propEl.getAttribute("value"); //$NON-NLS-1$
- pdef.addOutputProperty(name, value);
- }
- }
-
- NodeList transformEls = rootEl.getElementsByTagName("Transform"); //$NON-NLS-1$
- for (int i = 0; i < transformEls.getLength(); i++)
- {
- Element transformEl = (Element) transformEls.item(i);
- LaunchTransform tdef = LaunchTransform.fromXML(transformEl);
- pdef.addTransformDef(tdef);
- }
-
- return pdef;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchTransform.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchTransform.java
deleted file mode 100644
index 2adead1..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/LaunchTransform.java
+++ /dev/null
@@ -1,205 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.variables.VariablesPlugin;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-
-public class LaunchTransform
-{
- public static final String RESOURCE_TYPE = "resource"; //$NON-NLS-1$
- public static final String EXTERNAL_TYPE = "external"; //$NON-NLS-1$
-
- private final String stylesheet;
- private final String pathType;
- private String resolver;
- private final Set<LaunchAttribute> parameters = new HashSet<LaunchAttribute>();
- private LaunchPipeline pipeline;
-
- /**
- * The path may be an IResource to a file in the workspace, or an IPath to a
- * file outside of the workspace - depending on the pathType. The path
- * should be created using IPath.toPortableString(). The path may also
- * contain variables defined by the VariablePlugin.
- *
- * @param path
- * @param pathType
- */
- public LaunchTransform(String path, String pathType)
- {
- stylesheet = path;
- this.pathType = pathType;
- }
-
- public Set<LaunchAttribute> getParameters()
- {
- return parameters;
- }
-
- public void addParameter(LaunchAttribute parameter)
- {
- parameters.add(parameter);
- }
-
- public String getResolver()
- {
- return resolver;
- }
-
- public void setResolver(String resolver)
- {
- this.resolver = resolver;
- }
-
- public IPath getPath() throws CoreException
- {
- String substitutedValue = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(stylesheet);
- return Path.fromPortableString(substitutedValue);
- }
-
- public String getPathType()
- {
- return pathType;
- }
-
- /**
- * The full path to the file in the local file system (with any string
- * subsitutions already made).
- *
- * @return
- * @throws CoreException
- */
- public IPath getLocation() throws CoreException
- {
- IPath partialPath = getPath();
- IPath fullPath = null;
- if (RESOURCE_TYPE.equals(pathType))
- {
- IFile file = (IFile) ResourcesPlugin.getWorkspace().getRoot().findMember(partialPath);
- fullPath = file.getLocation();
- }
- else if (EXTERNAL_TYPE.equals(pathType))
- {
- fullPath = partialPath;
- }
- return fullPath;
- }
-
- public Element asXML(Document doc)
- {
- Element tdefEl = doc.createElement("Transform"); //$NON-NLS-1$
- tdefEl.setAttribute("path", stylesheet); //$NON-NLS-1$
- tdefEl.setAttribute("pathType", pathType); //$NON-NLS-1$
- if (resolver != null)
- tdefEl.setAttribute("uriResolver", resolver); //$NON-NLS-1$
- Element paramsEl = doc.createElement("Parameters"); //$NON-NLS-1$
- tdefEl.appendChild(paramsEl);
- for (Iterator<LaunchAttribute> iter = parameters.iterator(); iter.hasNext();)
- {
- LaunchAttribute param = (LaunchAttribute) iter.next();
- Element propEl = doc.createElement("Parameter"); //$NON-NLS-1$
- propEl.setAttribute("name", param.uri); //$NON-NLS-1$
- propEl.setAttribute("value", param.value); //$NON-NLS-1$
- paramsEl.appendChild(propEl);
- }
- return tdefEl;
- }
-
- public static LaunchTransform fromXML(Element transformEl)
- {
- String path = transformEl.getAttribute("path"); //$NON-NLS-1$
- String pathType = transformEl.getAttribute("pathType"); //$NON-NLS-1$
-
- LaunchTransform tdef = new LaunchTransform(path, pathType);
-
- String uriResolver = transformEl.getAttribute("uriResolver"); //$NON-NLS-1$
- tdef.setResolver(uriResolver);
-
- Element paramsEl = (Element) transformEl.getElementsByTagName("Parameters").item(0); //$NON-NLS-1$
- NodeList paramEls = paramsEl.getElementsByTagName("Parameter"); //$NON-NLS-1$
- for (int i = 0; i < paramEls.getLength(); i++)
- {
- Element paramEl = (Element) paramEls.item(i);
- String name = paramEl.getAttribute("name"); //$NON-NLS-1$
- String type = paramEl.getAttribute("type"); //$NON-NLS-1$
- String value = paramEl.getAttribute("value"); //$NON-NLS-1$
- tdef.addParameter(new LaunchAttribute(name, type, value));
- }
-
- return tdef;
- }
-
- public void setPipeline(LaunchPipeline pipeline)
- {
- this.pipeline = pipeline;
- }
-
- public LaunchPipeline getPipeline()
- {
- return pipeline;
- }
-
- /*
- * private File getURIResolverDirectory(ILaunchConfiguration configuration)
- * throws CoreException { File resolverDir = null; String baseURIType =
- * configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_BASE_URI_TYPE,
- * XSLLaunchConfigurationConstants.BASE_URI_WORKING_DIR_RELATIVE); if
- * (XSLLaunchConfigurationConstants.BASE_URI_ABSOLUTE.equals(baseURIType)) {
- * String uriDir =
- * configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_BASE_URI_DIRECTORY,
- * (String)null); if (uriDir!=null) { String pathExpr =
- * VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(uriDir);
- * Path path = new Path(pathExpr); if (path.isAbsolute()) { File dir = new
- * File(path.toOSString()); if (dir.isDirectory() && dir.exists()) { return
- * dir; } // This may be a workspace relative path returned by a variable. //
- * However variable paths start with a slash and thus are thought to // be
- * absolute, so fall through to below } IResource res =
- * ResourcesPlugin.getWorkspace().getRoot().findMember(path); if (res
- * instanceof IContainer && res.exists()) return res.getLocation().toFile();
- * abort("URI path is invalid",null,0); } } else if
- * (XSLLaunchConfigurationConstants.BASE_URI_STYLESHEET_RELATIVE.equals(baseURIType)) {
- * resolverDir = getStylesheetRelativeURIResolver(configuration); } // no
- * need to handle the case of working_dir relative - this is the default for
- * JAXP so return null return resolverDir; }
- *
- * private File getStylesheetRelativeURIResolver(ILaunchConfiguration
- * configuration) throws CoreException { List stylesheets =
- * configuration.getAttribute(XSLLaunchConfigurationConstants.ATTR_STYLESHEETS_LIST,(List)null);
- * if (stylesheets == null || stylesheets.size() == 0) abort("No stylesheets
- * defined for this launch configuration", null, 0); else { String sheet =
- * (String)stylesheets.get(0); String pathExpr =
- * VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(sheet);
- * Path path = new Path(pathExpr); if (path.isAbsolute()) { File file = new
- * File(path.toOSString()); if (file.exists()) { File dir =
- * file.getParentFile(); return dir; } // This may be a workspace relative
- * path returned by a variable. // However variable paths start with a slash
- * and thus are thought to // be absolute IResource res =
- * ResourcesPlugin.getWorkspace().getRoot().findMember(path); IContainer
- * parent = res.getParent(); if (parent.exists()) return
- * parent.getLocation().toFile(); abort("Stylesheet path is
- * invalid",null,0); } else { IResource res =
- * ResourcesPlugin.getWorkspace().getRoot().findMember(path); IContainer
- * parent = res.getParent(); if (parent.exists()) return
- * parent.getLocation().toFile(); abort("Stylesheet path is
- * invalid",null,0); } } return null; }
- */
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/Messages.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/Messages.java
deleted file mode 100644
index c62e7c0..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/Messages.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.eclipse.wst.xsl.launching.config;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class Messages {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.launching.config.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/PreferenceUtil.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/PreferenceUtil.java
deleted file mode 100644
index 00f2d84..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/PreferenceUtil.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.config;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.FactoryConfigurationError;
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.transform.OutputKeys;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerException;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-import org.w3c.dom.Node;
-import org.w3c.dom.NodeList;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-public class PreferenceUtil
-{
-
- public static void createCoreException(Throwable e) throws CoreException
- {
- throw new CoreException(new Status(IStatus.ERROR, LaunchingPlugin.PLUGIN_ID, 0, e.getMessage(), e));
- }
-
- public static Document getDocument() throws ParserConfigurationException
- {
- DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
- DocumentBuilder docBuilder = dfactory.newDocumentBuilder();
- Document doc = docBuilder.newDocument();
- return doc;
- }
-
- public static String serializeDocument(Document doc) throws IOException, TransformerException
- {
- ByteArrayOutputStream s = new ByteArrayOutputStream();
-
- TransformerFactory factory = TransformerFactory.newInstance();
- Transformer transformer = factory.newTransformer();
- transformer.setOutputProperty(OutputKeys.METHOD, "xml"); //$NON-NLS-1$
- transformer.setOutputProperty(OutputKeys.INDENT, "yes"); //$NON-NLS-1$
-
- DOMSource source = new DOMSource(doc);
- StreamResult outputTarget = new StreamResult(s);
- transformer.transform(source, outputTarget);
-
- return s.toString("UTF8"); //$NON-NLS-1$
- }
-
- public static Element[] getChildElements(Element parent, String name)
- {
- List<Element> children = new ArrayList<Element>();
- NodeList list = parent.getChildNodes();
- int length = list.getLength();
- for (int i = 0; i < length; ++i)
- {
- Node node = list.item(i);
- short type = node.getNodeType();
- if (type == Node.ELEMENT_NODE)
- {
- Element processorElement = (Element) node;
- if (processorElement.getNodeName().equals(name))
- {
- children.add(processorElement);
- }
- }
- }
- return (Element[]) children.toArray(new Element[0]);
- }
-
- public static String getNodeText(Node node)
- {
- switch (node.getNodeType())
- {
- case Node.ELEMENT_NODE:
- NodeList childNodes = node.getChildNodes();
- StringBuffer sb = new StringBuffer();
- for (int i = 0; i < childNodes.getLength(); i++)
- {
- Node child = childNodes.item(i);
- if (child.getNodeType() == Node.TEXT_NODE)
- {
- sb.append(child.getNodeValue());
- }
- }
- return sb.toString();
- case Node.TEXT_NODE:
- case Node.ATTRIBUTE_NODE:
- default:
- return node.getNodeValue();
- }
- }
-
- public static Document getDocument(InputStream stream) throws CoreException
- {
- Document doc = null;
- try
- {
- DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
- parser.setErrorHandler(new DefaultHandler());
- doc = parser.parse(new InputSource(stream));
- }
- catch (SAXException e)
- {
- PreferenceUtil.createCoreException(e);
- }
- catch (IOException e)
- {
- PreferenceUtil.createCoreException(e);
- }
- catch (ParserConfigurationException e)
- {
- PreferenceUtil.createCoreException(e);
- }
- catch (FactoryConfigurationError e)
- {
- PreferenceUtil.createCoreException(e);
- }
- finally
- {
- try
- {
- stream.close();
- }
- catch (IOException e)
- {
- PreferenceUtil.createCoreException(e);
- }
- }
- return doc;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/messages.properties b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/messages.properties
deleted file mode 100644
index f08087e..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/config/messages.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-LaunchHelper.0=File not found
-LaunchHelper.1=IO Exception
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLConstants.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLConstants.java
deleted file mode 100644
index 1fa47da..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLConstants.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-public interface IXSLConstants
-{
-
- public static final String ID_XSL_DEBUG_MODEL = "org.eclipse.wst.xsl.launching.XSLDebugModel"; //$NON-NLS-1$
- public static final String MARKER_ID = "org.eclipse.wst.xsl.launching.xslLineBreakpointMarker"; //$NON-NLS-1$
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLDebugTarget.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLDebugTarget.java
deleted file mode 100644
index 3e9e554..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/IXSLDebugTarget.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.debug.core.model.IValue;
-
-public interface IXSLDebugTarget extends IDebugTarget
-{
- XSLVariable getVariable(int varId) throws DebugException;
-
- IStackFrame[] getStackFrames() throws DebugException;
-
- void stepInto() throws DebugException;
-
- void stepOver() throws DebugException;
-
- void stepReturn() throws DebugException;
-
- IValue getVariableValue(XSLVariable variable) throws DebugException;
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/Messages.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/Messages.java
deleted file mode 100644
index 0e9a27a..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/Messages.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.eclipse.wst.xsl.launching.model;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class Messages {
- private static final String BUNDLE_NAME = "org.eclipse.wst.xsl.launching.model.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
- .getBundle(BUNDLE_NAME);
-
- private Messages() {
- }
-
- public static String getString(String key) {
- try {
- return RESOURCE_BUNDLE.getString(key);
- } catch (MissingResourceException e) {
- return '!' + key + '!';
- }
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLDebugElement.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLDebugElement.java
deleted file mode 100644
index 5576c6e..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLDebugElement.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.DebugElement;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IDisconnect;
-import org.eclipse.debug.core.model.ITerminate;
-
-public abstract class XSLDebugElement extends DebugElement implements IDisconnect
-{
- public XSLDebugElement(IDebugTarget target)
- {
- super(target);
- }
-
- public String getModelIdentifier()
- {
- return IXSLConstants.ID_XSL_DEBUG_MODEL;
- }
-
- @SuppressWarnings("unchecked") //$NON-NLS-1$
- @Override
- public Object getAdapter(Class adapter) {
- if (adapter == ITerminate.class) {
- return getDebugTarget();
- }
- return super.getAdapter(adapter);
- }
-
- public boolean canDisconnect()
- {
- return getDebugTarget().canDisconnect();
- }
-
- public void disconnect() throws DebugException
- {
- getDebugTarget().disconnect();
- }
-
- public boolean isDisconnected()
- {
- return getDebugTarget().isDisconnected();
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLLineBreakpoint.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLLineBreakpoint.java
deleted file mode 100644
index 657e2a8..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLLineBreakpoint.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- * Bjorn Freeman-Benson - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspaceRunnable;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.core.model.LineBreakpoint;
-
-public class XSLLineBreakpoint extends LineBreakpoint
-{
- private int lineNumber;
-
- public XSLLineBreakpoint()
- {
- }
-
- public XSLLineBreakpoint(final IResource resource, final int lineNumber, final int charStart, final int charEnd) throws CoreException
- {
- this.lineNumber = lineNumber;
- IWorkspaceRunnable runnable = new IWorkspaceRunnable()
- {
- public void run(IProgressMonitor monitor) throws CoreException
- {
- IMarker marker = resource.createMarker(IXSLConstants.MARKER_ID);
- setMarker(marker);
- marker.setAttribute(IBreakpoint.ID, getModelIdentifier());
- marker.setAttribute(IBreakpoint.ENABLED, Boolean.TRUE);
- marker.setAttribute(IMarker.MESSAGE, Messages.getString("XSLLineBreakpoint.0") + resource.getName() + " [line: " + lineNumber + "]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-
- marker.setAttribute(IMarker.LINE_NUMBER, lineNumber);
- marker.setAttribute(IMarker.CHAR_START, new Integer(charStart));
- marker.setAttribute(IMarker.CHAR_END, new Integer(charEnd));
-
- register(true);
- }
- };
- run(getMarkerRule(resource), runnable);
- }
-
- @Override
- public int getLineNumber() throws CoreException
- {
- int line = super.getLineNumber();
- return line == -1 ? lineNumber : line;
- }
-
- protected void register(boolean register) throws CoreException
- {
- DebugPlugin plugin = DebugPlugin.getDefault();
- if (plugin != null && register)
- {
- plugin.getBreakpointManager().addBreakpoint(this);
- }
- else
- {
- setRegistered(false);
- }
- }
-
- public String getModelIdentifier()
- {
- return IXSLConstants.ID_XSL_DEBUG_MODEL;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLStackFrame.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLStackFrame.java
deleted file mode 100644
index b7188ab..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLStackFrame.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.eclipse.core.runtime.Path;
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IRegisterGroup;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.debug.core.model.IThread;
-import org.eclipse.debug.core.model.IVariable;
-import org.eclipse.wst.xsl.internal.launching.LaunchingPlugin;
-
-/**
- * XSL stack frame.
- */
-public class XSLStackFrame extends XSLDebugElement implements IStackFrame
-{
- private final XSLThread xslThread;
- private int id;
- private String name;
- private int lineNumber;
- private String xslFileName;
- private IVariable[] variables;
-
- public XSLStackFrame(XSLThread thread, String data, int index)
- {
- super(thread.getDebugTarget());
- this.xslThread = thread;
- init(data,(IXSLDebugTarget) thread.getDebugTarget());
- }
-
- private void init(String data,IXSLDebugTarget debugTarget)
- {
-
- String[] strings = data.split("\\|"); //$NON-NLS-1$
- String fileName = strings[0];
- try
- {
- URL url = new URL(fileName);
- Path p = new Path(url.getFile());
- xslFileName = (new Path(fileName)).lastSegment();
-
- String idString = strings[1];
- id = Integer.parseInt(idString);
- String pc = strings[2];
- lineNumber = Integer.parseInt(pc);
- String safename = strings[3];
-
- int theIndex;
- while ((theIndex = safename.indexOf("%@_PIPE_@%")) != -1) //$NON-NLS-1$
- {
- safename = safename.substring(0, theIndex) + "|" + safename.substring(theIndex + "%@_PIPE_@%".length(), safename.length()); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- name = p.lastSegment() + " " + safename; //$NON-NLS-1$
-
- variables = new XSLVariable[strings.length-4];
- for (int i=0;i<variables.length;i++)
- {
- int varId = Integer.parseInt(strings[i+4]);
- try
- {
- XSLVariable var = debugTarget.getVariable(varId);
- variables[i] = var;
- }
- catch (DebugException e)
- {
- LaunchingPlugin.log(e);
- }
- }
- }
- catch (MalformedURLException e)
- {
- LaunchingPlugin.log(e);
- }
- }
-
- public IThread getThread()
- {
- return xslThread;
- }
-
- public IVariable[] getVariables() throws DebugException
- {
- return variables;
- }
-
- public boolean hasVariables() throws DebugException
- {
- return variables.length > 0;
- }
-
- public int getLineNumber() throws DebugException
- {
- return lineNumber;
- }
-
- public int getCharStart() throws DebugException
- {
- return -1;
- }
-
- public int getCharEnd() throws DebugException
- {
- return -1;
- }
-
- public String getName() throws DebugException
- {
- return name + Messages.getString("XSLStackFrame.5") + lineNumber; //$NON-NLS-1$
- }
-
- public IRegisterGroup[] getRegisterGroups() throws DebugException
- {
- return null;
- }
-
- public boolean hasRegisterGroups() throws DebugException
- {
- return false;
- }
-
- public boolean canStepInto()
- {
- return getThread().canStepInto();
- }
-
- public boolean canStepOver()
- {
- return getThread().canStepOver();
- }
-
- public boolean canStepReturn()
- {
- return getThread().canStepReturn();
- }
-
- public boolean isStepping()
- {
- return getThread().isStepping();
- }
-
- public void stepInto() throws DebugException
- {
- getThread().stepInto();
- }
-
- public void stepOver() throws DebugException
- {
- getThread().stepOver();
- }
-
- public void stepReturn() throws DebugException
- {
- getThread().stepReturn();
- }
-
- public boolean canResume()
- {
- return getThread().canResume();
- }
-
- public boolean canSuspend()
- {
- return getThread().canSuspend();
- }
-
- public boolean isSuspended()
- {
- return getThread().isSuspended();
- }
-
- public void resume() throws DebugException
- {
- getThread().resume();
- }
-
- public void suspend() throws DebugException
- {
- getThread().suspend();
- }
-
- public boolean canTerminate()
- {
- return getThread().canTerminate();
- }
-
- public boolean isTerminated()
- {
- return getThread().isTerminated();
- }
-
- public void terminate() throws DebugException
- {
- getThread().terminate();
- }
-
- /**
- * Returns the name of the source file this stack frame is associated with.
- */
- public String getSourceName()
- {
- return xslFileName;
- }
-
- @Override
- public boolean equals(Object obj)
- {
- if (obj instanceof XSLStackFrame)
- {
- XSLStackFrame sf = (XSLStackFrame) obj;
- return sf.id == id;
- }
- return false;
- }
-
- @Override
- public int hashCode()
- {
- return getSourceName().hashCode() + id;
- }
-
- protected int getIdentifier()
- {
- return id;
- }
-
- public void setLineNumber(int lineNumber)
- {
- this.lineNumber = lineNumber;
- }
-
- public void setVariables(IVariable[] variables)
- {
- this.variables = variables;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLThread.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLThread.java
deleted file mode 100644
index 55b2633..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLThread.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IBreakpoint;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.debug.core.model.IThread;
-
-public class XSLThread extends XSLDebugElement implements IThread
-{
-
- /**
- * Breakpoints this thread is suspended at or <code>null</code> if none.
- */
- private IBreakpoint[] fBreakpoints;
-
- /**
- * Whether this thread is stepping
- */
- private boolean fStepping = false;
-
- /**
- * Constructs a new thread for the given target
- */
- public XSLThread(IDebugTarget target)
- {
- super(target);
- }
-
- public IStackFrame[] getStackFrames() throws DebugException
- {
- if (isSuspended())
- {
- return ((IXSLDebugTarget) getDebugTarget()).getStackFrames();
- }
- else
- {
- return new IStackFrame[0];
- }
- }
-
- public boolean hasStackFrames() throws DebugException
- {
- return isSuspended();
- }
-
- public int getPriority() throws DebugException
- {
- return 0;
- }
-
- public IStackFrame getTopStackFrame() throws DebugException
- {
- IStackFrame[] frames = getStackFrames();
- if (frames.length > 0)
- {
- return frames[0];
- }
- return null;
- }
-
- public String getName() throws DebugException
- {
- return "Thread[1]"; //$NON-NLS-1$
- }
-
- public IBreakpoint[] getBreakpoints()
- {
- if (fBreakpoints == null)
- {
- return new IBreakpoint[0];
- }
- return fBreakpoints;
- }
-
- /**
- * Sets the breakpoints this thread is suspended at, or <code>null</code>
- * if none.
- *
- * @param breakpoints
- * the breakpoints this thread is suspended at, or
- * <code>null</code> if none
- */
- public void setBreakpoints(IBreakpoint[] breakpoints)
- {
- fBreakpoints = breakpoints;
- }
-
- public boolean canResume()
- {
- return isSuspended();
- }
-
- public boolean canSuspend()
- {
- return !isSuspended();
- }
-
- public boolean isSuspended()
- {
- return getDebugTarget().isSuspended();
- }
-
- public void resume() throws DebugException
- {
- getDebugTarget().resume();
- }
-
- public void suspend() throws DebugException
- {
- getDebugTarget().suspend();
- }
-
- public boolean canStepInto()
- {
- return isSuspended();
- }
-
- public boolean canStepOver()
- {
- return isSuspended();
- }
-
- public boolean canStepReturn()
- {
- return isSuspended();
- }
-
- public boolean isStepping()
- {
- return fStepping;
- }
-
- public void stepInto() throws DebugException
- {
- ((IXSLDebugTarget) getDebugTarget()).stepInto();
- }
-
- public void stepOver() throws DebugException
- {
- ((IXSLDebugTarget) getDebugTarget()).stepOver();
- }
-
- public void stepReturn() throws DebugException
- {
- ((IXSLDebugTarget) getDebugTarget()).stepReturn();
- }
-
- public boolean canTerminate()
- {
- return !isTerminated();
- }
-
- public boolean isTerminated()
- {
- return getDebugTarget().isTerminated();
- }
-
- public void terminate() throws DebugException
- {
- getDebugTarget().terminate();
- }
-
- public void setStepping(boolean stepping)
- {
- fStepping = stepping;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLValue.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLValue.java
deleted file mode 100644
index d6a391f..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLValue.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.debug.core.model.IVariable;
-
-public class XSLValue extends XSLDebugElement implements IValue
-{
- private final String fValue;
- private final String type;
-
- public XSLValue(IDebugTarget target, String type, String value)
- {
- super(target);
- this.type = type;
- fValue = value;
- }
-
- public String getReferenceTypeName() throws DebugException
- {
- return type;
- }
-
- public String getValueString() throws DebugException
- {
- if ("string".equals(type)) //$NON-NLS-1$
- return "'"+fValue+"'"; //$NON-NLS-1$ //$NON-NLS-2$
- return fValue;
- }
-
- public boolean isAllocated() throws DebugException
- {
- return true;
- }
-
- public IVariable[] getVariables() throws DebugException
- {
- return new IVariable[0];
- }
-
- public boolean hasVariables() throws DebugException
- {
- return false;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLVariable.java b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLVariable.java
deleted file mode 100644
index 71805f7..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/XSLVariable.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.launching.model;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IValue;
-import org.eclipse.debug.core.model.IVariable;
-
-public class XSLVariable extends XSLDebugElement implements IVariable
-{
- public static final String LOCAL_SCOPE = "L"; //$NON-NLS-1$
- public static final String TUNNEL_SCOPE = "T"; //$NON-NLS-1$
- public static final String GLOBAL_SCOPE = "G"; //$NON-NLS-1$
-
- private final int id;
- private String fName;
- private String scope;
- private String type;
-
- public XSLVariable(IDebugTarget target, int id)
- {
- super(target);
- this.id = id;
- }
-
- public int getId()
- {
- return id;
- }
-
- public IValue getValue() throws DebugException
- {
- return ((IXSLDebugTarget) getDebugTarget()).getVariableValue(this);
- }
-
- public void setName(String name)
- {
- this.fName = name;
- }
-
- public String getName() throws DebugException
- {
- return fName;
- }
-
- public String getReferenceTypeName() throws DebugException
- {
- if (GLOBAL_SCOPE.equals(scope))
- return "global"; //$NON-NLS-1$
- return "local"; //$NON-NLS-1$
- }
-
- public boolean hasValueChanged() throws DebugException
- {
- return false;
- }
-
- public void setValue(String expression) throws DebugException
- {
- }
-
- public void setValue(IValue value) throws DebugException
- {
- }
-
- public boolean supportsValueModification()
- {
- return false;
- }
-
- public boolean verifyValue(String expression) throws DebugException
- {
- return false;
- }
-
- public boolean verifyValue(IValue value) throws DebugException
- {
- return false;
- }
-
- public void setScope(String scope)
- {
- this.scope = scope;
- }
-
- public String getScope()
- {
- return scope;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/messages.properties b/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/messages.properties
deleted file mode 100644
index 8630d45..0000000
--- a/bundles/org.eclipse.wst.xsl.launching/src/org/eclipse/wst/xsl/launching/model/messages.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-XSLDebugTarget.0=Unable to connect to debugger
-XSLDebugTarget.1=localhost
-XSLDebugTarget.19=Request failed:
-XSLDebugTarget.2=Could not connect to socket
-XSLDebugTarget.20=Event Dispatch
-XSLDebugTarget.3=\ after
-XSLDebugTarget.4=\ attempts
-XSLLineBreakpoint.0=Line Breakpoint:
-XSLStackFrame.5=\ line:
diff --git a/bundles/org.eclipse.wst.xsl.saxon/.classpath b/bundles/org.eclipse.wst.xsl.saxon/.classpath
deleted file mode 100644
index de15a1a..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src-debugger"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.saxon/.project b/bundles/org.eclipse.wst.xsl.saxon/.project
deleted file mode 100644
index f884eee..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.saxon</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.saxon/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.saxon/META-INF/MANIFEST.MF
deleted file mode 100644
index c12d9e1..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,8 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.saxon;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
diff --git a/bundles/org.eclipse.wst.xsl.saxon/SaxonAttributes.properties b/bundles/org.eclipse.wst.xsl.saxon/SaxonAttributes.properties
deleted file mode 100644
index d64ab0e..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/SaxonAttributes.properties
+++ /dev/null
@@ -1,89 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-ALLOW_EXTERNAL_FUNCTIONS=http://saxon.sf.net/feature/allow-external-functions
-ALLOW_EXTERNAL_FUNCTIONS.TYPE=boolean
-ALLOW_EXTERNAL_FUNCTIONS.DESC=true if the stylesheet allows external functions to be called. Default is true. The setting false is recommended in an environment where untrusted stylesheets may be executed. Setting this value to false also disables user-defined extension elements, together with the writing of multiple output files, all of which carry similar security risks.
-
-TRACE_EXTERNAL_FUNCTIONS=http://saxon.sf.net/feature/trace-external-functions
-TRACE_EXTERNAL_FUNCTIONS.TYPE=boolean
-TRACE_EXTERNAL_FUNCTIONS.DESC=true if the tracing of calls to external Java methods is required. Default is false. This switch is useful when analyzing why Saxon fails to find a Java method to match an extension function call in the stylesheet, or why it chooses one method over another when several are available. The trace output is sent to System.err.
-
-TIMING=http://saxon.sf.net/feature/timing
-TIMING.TYPE=boolean
-TIMING.DESC=true if basic timing information is to be output to the standard error output stream.
-
-TREE_MODEL=http://saxon.sf.net/feature/treeModel
-TREE_MODEL.TYPE=int
-TREE_MODEL.DESC=Builder.STANDARD_TREE or Builder.TINY_TREE. Selects an implementation of the Saxon tree model. The default is Builder.TINY_TREE.
-
-TRACE_LISTENER=http://saxon.sf.net/feature/traceListener
-TRACE_LISTENER.TYPE=object
-TRACE_LISTENER.DESC=an instance of the class net.sf.saxon.trace.TraceListener. This object will be notified of significant events occurring during the transformation, for tracing or debugging purposes.
-
-LINE_NUMBERING=http://saxon.sf.net/feature/linenumbering
-LINE_NUMBERING.TYPE=boolean
-LINE_NUMBERING.DESC=indicates whether line numbers are to be maintained for the source document. This will not be possible if the source document is supplied as a DOM. The line numbers are accessible through the tracing interface, and also via the saxon:line-number() extension function.
-
-RECOVERY_POLICY=http://saxon.sf.net/feature/recoveryPolicy
-RECOVERY_POLICY.TYPE=int
-RECOVERY_POLICY.DESC=An Integer. Indicates how dynamic errors should be handled. One of the values (defined as constants in the Controller class) RECOVER_SILENTLY, RECOVER_WITH_WARNINGS, or DO_NOT_RECOVER).
-
-MESSAGE_EMITTER_CLASS=http://saxon.sf.net/feature/messageEmitterClass
-MESSAGE_EMITTER_CLASS.TYPE=class
-MESSAGE_EMITTER_CLASS.DESC=The full name of a saxon emitter class. that implements the net.sf.saxon.output.Emitter interface; the class will be used to format the output of the xsl:message instruction.
-
-SOURCE_PARSER_CLASS=http://saxon.sf.net/feature/sourceParserClass
-SOURCE_PARSER_CLASS.TYPE=class
-SOURCE_PARSER_CLASS.DESC=The full name of a class that implements the org.xml.sax.XMLReader interface; the class will be used to parse source documents (that is, the principal source document plus any secondary source documents read using the document() function)
-
-STYLE_PARSER_CLASS=http://saxon.sf.net/feature/styleParserClass
-STYLE_PARSER_CLASS.TYPE=class
-STYLE_PARSER_CLASS.DESC=The full name of a class that implements the org.xml.sax.XMLReader interface; the class will be used to parse stylesheet documents (that is, the principal stylesheet module plus any secondary source documents read using xsl:include or xsl:import)
-
-OUTPUT_URI_RESOLVER=http://saxon.sf.net/feature/outputURIResolver
-OUTPUT_URI_RESOLVER.TYPE=object
-OUTPUT_URI_RESOLVER.DESC=An instance of the class net.sf.saxon.OutputURIResolver; this object will be used to resolve URIs of secondary result documents specified in the href attribute of the xsl:result-document instruction
-
-DTD_VALIDATION=http://saxon.sf.net/feature/validation
-DTD_VALIDATION.TYPE=boolean
-DTD_VALIDATION.DESC=Indicates whether the XML parser should be asked to validate source documents against their DTD. This applies to the initial source document and any source documents read using the document() function, unless handled by a user-written URIResolver.
-
-VALIDATION_WARNINGS=http://saxon.sf.net/feature/validation-warnings
-VALIDATION_WARNINGS.TYPE=boolean
-VALIDATION_WARNINGS.DESC=This determines whether validation errors in result documents should be treated as fatal. By default they are fatal; with this option set, they are treated as warnings.
-
-SCHEMA_VALIDATION=http://saxon.sf.net/feature/schema-validation
-SCHEMA_VALIDATION.TYPE=boolean
-SCHEMA_VALIDATION.DESC=This determines whether source documents should be parsed with schema-validation enabled.
-
-VERSION_WARNING=http://saxon.sf.net/feature/version-warning
-VERSION_WARNING.TYPE=boolean
-VERSION_WARNING.DESC=This determines whether a warning should be output when running an XSLT 2.0 processor against an XSLT 1.0 stylesheet. The XSLT specification requires this to be done by default.
-
-NAME_POOL=http://saxon.sf.net/feature/namePool
-NAME_POOL.TYPE=object
-NAME_POOL.DESC=A instance of class net.sf.saxon.om.NamePool. Indicates that the supplied NamePool should be used as the target (run-time) NamePool by all stylesheets compiled (using newTemplates()) after this call on setAttribute. Normally a single system-allocated NamePool is used for all stylesheets compiled while the Java VM remains loaded; this attribute allows user control over the allocation of NamePools. Note that source trees used as input to a transformation must be built using the same NamePool that is used when the stylesheet is compiled: this will happen automatically if the input to a transformation is supplied as a SAXSource or StreamSource but it is under user control if you build the source tree yourself.
-
-RECOGNIZE_URI_QUERY_PARAMETERS=http://saxon.sf.net/feature/recognize-uri-query-parameters
-RECOGNIZE_URI_QUERY_PARAMETERS.TYPE=boolean
-RECOGNIZE_URI_QUERY_PARAMETERS.DESC=determines whether query parameters (things after "?")\n\
- in a URI passed to the document() or doc() function are specially recognized by the system default URIResolver.\n\
- Allowed parameters include, for example validation=strict to perform schema validation, and strip-space=yes\n\
- to perform stripping of all whitespace-only text nodes
-
-COLLATION_URI_RESOLVER=http://saxon.sf.net/feature/collation-uri-resolver
-COLLATION_URI_RESOLVER.TYPE=object
-COLLATION_URI_RESOLVER.DESC=A net.sf.saxon.sort.CollationURIResolver used to resolve collation URIs used in stylesheets compiled or executed under the\n\
- control of this TransformerFactory
-
-COLLECTION_URI_RESOLVER=http://saxon.sf.net/feature/collection-uri-resolver
-COLLECTION_URI_RESOLVER.TYPE=object
-COLLECTION_URI_RESOLVER.DESC=A net.sf.saxon.sort.CollectionURIResolver used to resolve collection URIs used in calls of the collection() function \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.saxon/SaxonOutputProperties.properties b/bundles/org.eclipse.wst.xsl.saxon/SaxonOutputProperties.properties
deleted file mode 100644
index e979071..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/SaxonOutputProperties.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-INDENT_SPACES={http://saxon.sf.net/}indent-spaces
-INDENT_SPACES.DESC=(integer value).Defines the number of spaces used for indentation of output
-
-UNDECLARE_NAMESPACES={http://saxon.sf.net/}undeclare-namespaces
-UNDECLARE_NAMESPACES.DESC=include-content-type = "yes" | "no". This attribute is defined in XSLT 2.0. Indicates XML 1.1 namespace declarations are to be output.
-
-CHARACTER_REPRESENTATION={http://saxon.sf.net/}character-representation
-CHARACTER_REPRESENTATION.DESC=(rep1[;rep2]). Indicates the preferred way of representing non-ASCII characters in HTML and XML output. rep1 is for characters in the range 128-256, rep2 for those above 256.
-
-NEXT_IN_CHAIN={http://saxon.sf.net/}next-in-chain
-NEXT_IN_CHAIN.DESC=(uri). Indicates that the output is to be piped into another XSLT stylesheet to perform another transformation. The auxiliary property NEXT_IN_CHAIN_BASE_URI records the base URI of the stylesheet element where this attribute was found.
-
-TYPE_INFORMATION={http://saxon.sf.net/}type-information
-TYPE_INFORMATION.DESC=(none|preserve|strict|lax). Indicates the value of the type-information attribute: "none", "preserve", "strict", "lax"
-
-REQUIRE_WELL_FORMED={http://saxon.sf.net/}require-well-formed
-REQUIRE_WELL_FORMED.DESC=(yes|no). Indicates whether a user-supplied ContentHandler requires the stream of SAX events to be well-formed (that is, to have a single element node and no text nodes as children of the root). The default is "no". \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.saxon/about.html b/bundles/org.eclipse.wst.xsl.saxon/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.saxon/build.properties b/bundles/org.eclipse.wst.xsl.saxon/build.properties
deleted file mode 100644
index b44dde2..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/build.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-source.. = src-debugger/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- SaxonAttributes.properties,\
- SaxonOutputProperties.properties,\
- about.html,\
- plugin.xml,\
- plugin.properties
diff --git a/bundles/org.eclipse.wst.xsl.saxon/plugin.properties b/bundles/org.eclipse.wst.xsl.saxon/plugin.properties
deleted file mode 100644
index 4538751..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/plugin.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.saxon
-Bundle-Name.0 = XSL Saxon Support (Incubating)
-processorType.label.0 = Saxon (XSLT 2.0)
-processorType.label.1 = Saxon (XSLT 1.0)
-Bundle-Vendor.0 = Eclipse.org
-transformerFactorySaxon6 = Saxon 6
-transformerSaxonXSLT2 = Saxon 7 \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.saxon/plugin.xml b/bundles/org.eclipse.wst.xsl.saxon/plugin.xml
deleted file mode 100644
index 8be0a82..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/plugin.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.processorType">
- <processorType
- attributeProperties="SaxonAttributes.properties"
- id="org.eclipse.wst.xsl.saxon_1_0.processorType"
- label="%processorType.label.1"
- outputProperties="SaxonOutputProperties.properties">
- <transformerFactory
- factoryClass="com.icl.saxon.TransformerFactoryImpl"
- name="%transformerFactorySaxon6">
- </transformerFactory>
- </processorType>
- <processorType
- attributeProperties="SaxonAttributes.properties"
- id="org.eclipse.wst.xsl.saxon.processorType"
- label="%processorType.label.0"
- outputProperties="SaxonOutputProperties.properties">
- <transformerFactory
- factoryClass="net.sf.saxon.TransformerFactoryImpl"
- name="%transformerSaxonXSLT2">
- </transformerFactory>
- </processorType>
- </extension>
-
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.saxon/src-debugger/README.txt b/bundles/org.eclipse.wst.xsl.saxon/src-debugger/README.txt
deleted file mode 100644
index 1063a57..0000000
--- a/bundles/org.eclipse.wst.xsl.saxon/src-debugger/README.txt
+++ /dev/null
@@ -1 +0,0 @@
-Just a placeholder to ensure src folder appears. \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.classpath b/bundles/org.eclipse.wst.xsl.xalan/.classpath
deleted file mode 100644
index 8fdf8e9..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/>
- <classpathentry kind="src" path="src-debugger"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.cvsignore b/bundles/org.eclipse.wst.xsl.xalan/.cvsignore
deleted file mode 100644
index 50b76ba..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-javaCompiler.xalan-debugger.jar.args
-build.xml
-xalan-debugger.jar
-temp.folder
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.project b/bundles/org.eclipse.wst.xsl.xalan/.project
deleted file mode 100644
index 0594060..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.xalan</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.core.resources.prefs b/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 8ba1309..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Thu Jan 03 22:24:50 EST 2008
-eclipse.preferences.version=1
-encoding/<project>=ISO-8859-1
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.jdt.core.prefs b/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 50bc347..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Sun Dec 16 08:48:52 GMT 2007
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.4
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
-org.eclipse.jdt.core.compiler.source=1.3
diff --git a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.pde.prefs b/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.pde.prefs
deleted file mode 100644
index e1e68b9..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/.settings/org.eclipse.pde.prefs
+++ /dev/null
@@ -1,24 +0,0 @@
-#Wed Jul 30 20:57:15 BST 2008
-compilers.f.unresolved-features=1
-compilers.f.unresolved-plugins=1
-compilers.incompatible-environment=1
-compilers.p.build=0
-compilers.p.deprecated=1
-compilers.p.discouraged-class=1
-compilers.p.internal=1
-compilers.p.missing-bundle-classpath-entries=0
-compilers.p.missing-packages=2
-compilers.p.no-required-att=0
-compilers.p.not-externalized-att=1
-compilers.p.unknown-attribute=0
-compilers.p.unknown-class=1
-compilers.p.unknown-element=0
-compilers.p.unknown-identifier=1
-compilers.p.unknown-resource=1
-compilers.p.unresolved-ex-points=0
-compilers.p.unresolved-import=0
-compilers.s.create-docs=false
-compilers.s.doc-folder=doc
-compilers.s.open-tags=1
-compilers.use-project=true
-eclipse.preferences.version=1
diff --git a/bundles/org.eclipse.wst.xsl.xalan/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.xalan/META-INF/MANIFEST.MF
deleted file mode 100644
index e7bf3ef..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,17 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl.xalan;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Localization: plugin
-Bundle-Vendor: %Bundle-Vendor.0
-Export-Package: org.eclipse.wst.xsl.xalan.debugger;
- uses:="org.eclipse.wst.xsl.debugger,
- org.apache.xpath,
- org.apache.xalan.trace,
- javax.xml.transform,
- org.apache.xalan.templates"
-Require-Bundle: org.apache.xalan;bundle-version="[2.7.0,2.8.0)",
- org.apache.xml.serializer;bundle-version="[2.7.0,2.8.0)",
- org.eclipse.wst.xsl.jaxp.debug;bundle-version="[1.0.0,2.0.0)";resolution:=optional
diff --git a/bundles/org.eclipse.wst.xsl.xalan/XalanAttributes.properties b/bundles/org.eclipse.wst.xsl.xalan/XalanAttributes.properties
deleted file mode 100644
index 151b5c7..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/XalanAttributes.properties
+++ /dev/null
@@ -1,21 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-OPTIMIZE=http://xml.apache.org/xalan/features/optimize
-OPTIMIZE.TYPE=boolean
-OPTIMIZE.DESC=Optimize stylesheet processing. By default, this attribute is set to true. You may need to set it to false for tooling applications.
-
-INCREMENTAL=http://xml.apache.org/xalan/features/incremental
-INCREMENTAL.TYPE=boolean
-INCREMENTAL.DESC=Produce output incrementally, rather than waiting to finish parsing the input before generating any output. By default this attribute is set to false. You can turn this attribute on to transform large documents where the stylesheet structure is optimized to execute individual templates without having to parse the entire document.
-
-SOURCE_LOCATION=http://xml.apache.org/xalan/features/source_location
-SOURCE_LOCATION.TYPE=boolean
-SOURCE_LOCATION.DESC=By default, this attribute is set to false. Setting this attribute to true involves a substantial increase in storage cost per source document node. If you want to use the NodeInfo extension functions (or some other mechanism) to provide this information during a transform, you must set the attribute to true before generating the Transformer and processing the stylesheet. \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.xalan/XalanOutputProperties.properties b/bundles/org.eclipse.wst.xsl.xalan/XalanOutputProperties.properties
deleted file mode 100644
index ceeb071..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/XalanOutputProperties.properties
+++ /dev/null
@@ -1,37 +0,0 @@
-###############################################################################
-# Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Doug Satchwell (Chase Technology Ltd) - initial API and implementation
-###############################################################################
-S_KEY_INDENT_AMOUNT={http://xml.apache.org/xalan}indent-amount
-S_KEY_INDENT_AMOUNT.DESC=The non-standard property key to use to set the\n\
- number of whitepaces to indent by, per indentation level,\n\
- if indent="yes"
-
-S_KEY_LINE_SEPARATOR={http://xml.apache.org/xalan}line-separator
-S_KEY_LINE_SEPARATOR.DESC=The non-standard property key to use to set the characters to write out as at the end of a line,\n\
- rather than the default ones from the runtime.
-
-S_KEY_CONTENT_HANDLER={http://xml.apache.org/xalan}content-handler
-S_KEY_CONTENT_HANDLER.DESC=This non-standard property key is used to set the name of the fully qualified\n\
- Java class that implements the ContentHandler interface.\n\
- Fully qualified name of class with a default constructor that\n\
- implements the ContentHandler interface, where the result tree events\n\
- will be sent to.
-
-S_KEY_ENTITIES={http://xml.apache.org/xalan}entities
-S_KEY_ENTITIES.DESC=This non-standard property key is used to specify the name of the property file\n\
- that specifies character to entity reference mappings.
-
-S_USE_URL_ESCAPING={http://xml.apache.org/xalan}use-url-escaping
-S_USE_URL_ESCAPING.DESC=This non-standard property key is used to set a value of "yes" if the href values for HTML serialization should\n\
- use %xx escaping.
-
-S_OMIT_META_TAG={http://xml.apache.org/xalan}omit-meta-tag
-S_OMIT_META_TAG.DESC=This non-standard property key is used to set a value of "yes" if the META tag should be omitted where it would\n\
- otherwise be supplied. \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.xalan/about.html b/bundles/org.eclipse.wst.xsl.xalan/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl.xalan/build.properties b/bundles/org.eclipse.wst.xsl.xalan/build.properties
deleted file mode 100644
index db56c82..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/build.properties
+++ /dev/null
@@ -1,10 +0,0 @@
-source.. = src-debugger/
-output.. = bin/
-bin.includes = META-INF/,\
- plugin.xml,\
- .,\
- XalanOutputProperties.properties,\
- XalanAttributes.properties,\
- about.html,\
- plugin.properties
-
diff --git a/bundles/org.eclipse.wst.xsl.xalan/plugin.properties b/bundles/org.eclipse.wst.xsl.xalan/plugin.properties
deleted file mode 100644
index ab4cbe4..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/plugin.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.xalan
-Bundle-Name.0 = XSL Xalan Support (Incubating)
-processorType.label.0 = Xalan
-processor.label.0 = Xalan 2.5.1
-processor.label.1 = Xalan 2.7.1
-Bundle-Vendor.0 = Eclipse.org
-transformerFactoryNameXalan = Interpretive
-transformerFactoryNameXalanXSLTC = Compiling \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl.xalan/plugin.xml b/bundles/org.eclipse.wst.xsl.xalan/plugin.xml
deleted file mode 100644
index 6a60297..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/plugin.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.processorType">
- <processorType
- attributeProperties="XalanAttributes.properties"
- id="org.eclipse.wst.xsl.xalan.processorType"
- label="%processorType.label.0"
- outputProperties="XalanOutputProperties.properties">
- <transformerFactory
- factoryClass="org.apache.xalan.processor.TransformerFactoryImpl"
- name="%transformerFactoryNameXalan">
- </transformerFactory>
- <transformerFactory
- factoryClass="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"
- name="%transformerFactoryNameXalanXSLTC">
- </transformerFactory>
- </processorType>
- </extension>
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.debugger">
- <debugger
- className="org.eclipse.wst.xsl.xalan.debugger.XalanDebugger"
- classpath="${eclipse_orbit:org.eclipse.wst.xsl.xalan}"
- id="org.eclipse.wst.xsl.xalan.debugger"
- name="Xalan 2.5.1 or greater"
- processorTypeId="org.eclipse.wst.xsl.xalan.processorType"
- transformerFactoryClass="org.apache.xalan.processor.TransformerFactoryImpl">
- </debugger>
- </extension>
- <extension
- point="org.eclipse.wst.xsl.jaxp.launching.processor">
- <!-- An adopter can specify the ${eclipse_orbit: } variable to indicate which eclipse
- bundle should be added to the class path. -->
- <processor
- classpath="${eclipse_orbit:org.apache.xalan};${eclipse_orbit:org.apache.xml.serializer};${eclipse_orbit:org.apache.bcel};${eclipse_orbit:java_cup.runtime}"
- id="org.eclipse.wst.xsl.launching.xalan.processor"
- label="%processor.label.1"
- processorTypeId="org.eclipse.wst.xsl.xalan.processorType"
- debuggerId="org.eclipse.wst.xsl.xalan.debugger"
- supports="1.0">
- </processor>
- </extension>
-</plugin>
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanDebugger.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanDebugger.java
deleted file mode 100644
index cedef2f..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanDebugger.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import java.util.TooManyListenersException;
-
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerFactory;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.processor.TransformerFactoryImpl;
-import org.apache.xalan.trace.TraceManager;
-import org.apache.xalan.transformer.TransformerImpl;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.AbstractDebugger;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.BreakPoint;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-import org.xml.sax.SAXException;
-
-public class XalanDebugger extends AbstractDebugger
-{
- private static final Log log = LogFactory.getLog(XalanDebugger.class);
- private XalanTraceListener currentTraceListener;
- private TransformerImpl lastTransformerInChain;
-
- public void setTransformerFactory(TransformerFactory factory)
- {
- TransformerFactoryImpl tfi = (TransformerFactoryImpl) factory;
- tfi.setAttribute(TransformerFactoryImpl.FEATURE_SOURCE_LOCATION, Boolean.TRUE);
- tfi.setAttribute(TransformerFactoryImpl.FEATURE_OPTIMIZE, Boolean.FALSE);
- }
-
- public synchronized void debuggerSuspended(BreakPoint breakpoint)
- {
- // flush the serializer (which is buffered by Xalan itself)
- try
- {
- lastTransformerInChain.getSerializationHandler().flushPending();
- }
- catch (SAXException e)
- {
- log.error("Error flushing serializer", e);
- }
- super.debuggerSuspended(breakpoint);
- }
-
- public void addTransformer(Transformer transformer)
- {
- TransformerImpl transformerImpl = (TransformerImpl) transformer;
-
- lastTransformerInChain = transformerImpl;
-
- TraceManager trMgr = transformerImpl.getTraceManager();
- try
- {
-// XalanPrintTraceListener printer = new XalanPrintTraceListener(new PrintWriter(System.err));
-// printer.m_traceElements = true;
-// printer.m_traceSelection = true;
-// printer.m_traceTemplates = true;
-// trMgr.addTraceListener(printer);
-
- XalanTraceListener traceListener = new XalanTraceListener(this);
- trMgr.addTraceListener(traceListener);
- }
- catch (TooManyListenersException e)
- {
- // ignore
- }
- }
-
- public Variable getVariable(int id)
- {
- return currentTraceListener.getVariable(id);
- }
-
- void setCurrentTraceListener(XalanTraceListener currentTraceListener)
- {
- log.debug("Setting new XalanTraceListener");
- this.currentTraceListener = currentTraceListener;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanPrintTraceListener.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanPrintTraceListener.java
deleted file mode 100644
index 3d6c07d..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanPrintTraceListener.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import java.io.PrintWriter;
-
-import javax.xml.transform.TransformerException;
-
-import org.apache.xalan.templates.Constants;
-import org.apache.xalan.templates.ElemTemplate;
-import org.apache.xalan.templates.ElemTextLiteral;
-import org.apache.xalan.trace.EndSelectionEvent;
-import org.apache.xalan.trace.PrintTraceListener;
-import org.apache.xalan.trace.SelectionEvent;
-import org.apache.xalan.trace.TracerEvent;
-
-public class XalanPrintTraceListener extends PrintTraceListener
-{
- private final PrintWriter writer;
-
- public XalanPrintTraceListener(PrintWriter pw)
- {
- super(pw);
- this.writer = pw;
- }
-
- public void _trace(TracerEvent ev)
- {
- switch (ev.m_styleNode.getXSLToken())
- {
- case Constants.ELEMNAME_TEXTLITERALRESULT:
- if (m_traceElements)
- {
- writer.print(ev.m_styleNode.getSystemId() + " Line #" + ev.m_styleNode.getLineNumber() + ", " + "Column #" + ev.m_styleNode.getColumnNumber() + " -- " + ev.m_styleNode.getNodeName()
- + ": ");
-
- ElemTextLiteral etl = (ElemTextLiteral) ev.m_styleNode;
- String chars = new String(etl.getChars(), 0, etl.getChars().length);
-
- writer.println(" " + chars.trim());
- }
- break;
- case Constants.ELEMNAME_TEMPLATE:
- if (m_traceTemplates || m_traceElements)
- {
- ElemTemplate et = (ElemTemplate) ev.m_styleNode;
-
- writer.print(et.getSystemId() + " Line #" + et.getLineNumber() + ", " + "Column #" + et.getColumnNumber() + ": " + et.getNodeName() + " ");
-
- if (null != et.getMatch())
- {
- writer.print("match='" + et.getMatch().getPatternString() + "' ");
- }
-
- if (null != et.getName())
- {
- writer.print("name='" + et.getName() + "' ");
- }
-
- writer.println();
- }
- break;
- default:
- if (m_traceElements)
- {
- writer
- .println(ev.m_styleNode.getSystemId() + " Line #" + ev.m_styleNode.getLineNumber() + ", " + "Column #" + ev.m_styleNode.getColumnNumber() + ": "
- + ev.m_styleNode.getNodeName());
- }
- }
- }
-
- public void selected(SelectionEvent ev) throws TransformerException
- {
- writer.print("selected: ");
- super.selected(ev);
- }
-
- public void selectEnd(EndSelectionEvent ev) throws TransformerException
- {
- writer.print("selectEnd: ");
- super.selectEnd(ev);
- }
-
- public void trace(TracerEvent ev)
- {
- writer.print("trace: ");
- super.trace(ev);
- }
-
- public void traceEnd(TracerEvent ev)
- {
- writer.print("traceEnd: ");
- _trace(ev);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanRootStyleFrame.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanRootStyleFrame.java
deleted file mode 100644
index 023ea02..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanRootStyleFrame.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Vector;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.templates.ElemVariable;
-import org.apache.xalan.templates.StylesheetRoot;
-import org.apache.xalan.trace.TracerEvent;
-import org.apache.xpath.VariableStack;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-
-public class XalanRootStyleFrame extends XalanStyleFrame
-{
- private static final Log log = LogFactory.getLog(XalanRootStyleFrame.class);
- private Map variables;
- private ArrayList globals;
-
- public XalanRootStyleFrame(TracerEvent event)
- {
- super(null, event);
- fillGlobals(event);
- }
-
- protected List getGlobals()
- {
- return globals;
- }
-
- private void fillGlobals(TracerEvent event)
- {
- VariableStack vs = event.m_processor.getXPathContext().getVarStack();
- StylesheetRoot sr = event.m_styleNode.getStylesheetRoot();
- Vector vars = sr.getVariablesAndParamsComposed();
- variables = new HashMap(vars.size());
- globals = new ArrayList(vars.size());
- int i = vars.size();
- while (--i >= 0)
- {
- ElemVariable variable = (ElemVariable) vars.elementAt(i);
- XalanVariable xvar = new XalanVariable(this,vs,Variable.GLOBAL_SCOPE,i,variable);
- addVariable(xvar);
- globals.add(xvar);
- }
- }
-
- public Variable getVariable(int id)
- {
-// log.debug("Getting variable with id "+id+" from variables "+variables.size());
- return (Variable)variables.get(new Integer(id));
- }
-
- public void addVariable(XalanVariable xvar)
- {
-// log.debug("Adding variable index="+xvar.getSlotNumber()+" val="+xvar);
-// variables.add(xvar.getSlotNumber(),xvar);
- log.debug("Adding variable id="+xvar.getId());
- variables.put(new Integer(xvar.getId()),xvar);
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanStyleFrame.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanStyleFrame.java
deleted file mode 100644
index cc50be7..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanStyleFrame.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Stack;
-
-import javax.xml.transform.SourceLocator;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.templates.ElemCallTemplate;
-import org.apache.xalan.templates.ElemTemplate;
-import org.apache.xalan.templates.ElemTemplateElement;
-import org.apache.xalan.templates.ElemVariable;
-import org.apache.xalan.trace.TracerEvent;
-import org.apache.xml.dtm.ref.DTMNodeProxy;
-import org.apache.xml.utils.QName;
-import org.apache.xpath.VariableStack;
-import org.apache.xpath.XPath;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.StyleFrame;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-import org.w3c.dom.Node;
-
-public class XalanStyleFrame extends StyleFrame
-{
- private static final Log log = LogFactory.getLog(XalanStyleFrame.class);
-
- private final Map varNames;
- private final Stack eventStack = new Stack();
- final TracerEvent event;
- private int currentLine;
- private XalanRootStyleFrame rootStyleFrame;
-
- public XalanStyleFrame(StyleFrame parent, TracerEvent event)
- {
- super(parent);
- this.event = event;
- if (parent != null)
- this.varNames = new HashMap(((XalanStyleFrame) parent).varNames);
- else
- this.varNames = new HashMap();
- pushElement(event);
- findRootStyleFrame();
- }
-
- private void findRootStyleFrame()
- {
- XalanStyleFrame frame = this;
- do
- {
- if (frame instanceof XalanRootStyleFrame)
- rootStyleFrame = (XalanRootStyleFrame) frame;
- }
- while ((frame = (XalanStyleFrame) frame.getParent()) != null);
- }
-
- public String getFilename()
- {
- return event.m_styleNode.getStylesheet().getSystemId();
- }
-
- public String getName()
- {
- String name = event.m_styleNode.getNodeName();
- if (event.m_styleNode instanceof ElemTemplate)
- {
- ElemTemplate et = (ElemTemplate) event.m_styleNode;
- QName q = et.getName();
- if (q != null)
- {
- name += " name=\"" + q.getLocalName() + "\"";
- }
- XPath xp = et.getMatch();
- if (xp != null)
- {
- name += " match=\"" + xp.getPatternString() + "\"";
- }
- }
- else if (event.m_styleNode instanceof ElemCallTemplate)
- {
- ElemCallTemplate et = (ElemCallTemplate) event.m_styleNode;
- QName q = et.getName();
- if (q != null)
- {
- name += " name=\"" + q.getLocalName() + "\"";
- }
- }
- return name;
- }
-
- public List getVariableStack()
- {
- List vars = new ArrayList();
- vars.addAll(getLocals());
- vars.addAll(getGlobals());
- return vars;
- }
-
- public int getCurrentLine()
- {
- return currentLine;
- }
-
- public void pushElement(TracerEvent e)
- {
- currentLine = e.m_styleNode.getLineNumber();
- eventStack.push(e);
- if (log.isDebugEnabled())
- log.debug("Pushed element " + TracerEvent.printNode(e.m_styleNode) + " at line " + currentLine);
- }
-
- public TracerEvent popElement()
- {
- TracerEvent e = (TracerEvent) eventStack.pop();
- currentLine = e.m_styleNode.getEndLineNumber();
- if (log.isDebugEnabled())
- log.debug("Popped element " + TracerEvent.printNode(e.m_styleNode) + " at line " + currentLine);
-
- ElemTemplateElement element = e.m_styleNode;
- String name = element.getNodeName();
- log.debug(" name " + name);
- if (name.equals("param") || name.equals("variable"))
- addVariable((ElemVariable) e.m_styleNode);
-
- return e;
- }
-
- public TracerEvent peekElement()
- {
- if (eventStack.isEmpty())
- return null;
- return (TracerEvent) eventStack.peek();
- }
-
- private void addVariable(ElemVariable variable)
- {
- String scope = variable.getIsTopLevel() ? Variable.GLOBAL_SCOPE : Variable.LOCAL_SCOPE;
- VariableStack vs = event.m_processor.getXPathContext().getVarStack();
- XalanVariable xvar = new XalanVariable(this, vs, scope, variable.getIndex(), variable);
- rootStyleFrame.addVariable(xvar);
- varNames.put(variable.getName(), xvar);
- }
-
- private List getLocals()
- {
- List locals = new ArrayList(varNames.values());
- // sort by slotNumber
- Collections.sort(locals);
- return new ArrayList(varNames.values());
- }
-
- protected List getGlobals()
- {
- return rootStyleFrame.getGlobals();
- }
-
- public String getSourceFilename()
- {
- SourceLocator locator = getSourceLocator();
- if (locator != null)
- return locator.getSystemId();
- return "";
- }
-
- public int getSourceCurrentLine()
- {
- SourceLocator locator = getSourceLocator();
- if (locator != null)
- return locator.getLineNumber();
- return 0;
- }
-
- private SourceLocator getSourceLocator()
- {
- Node sourceNode = event.m_sourceNode;
- SourceLocator locator = null;
- if (sourceNode instanceof DTMNodeProxy)
- {
- int nodeHandler = ((DTMNodeProxy) sourceNode).getDTMNodeNumber();
- return ((DTMNodeProxy) sourceNode).getDTM().getSourceLocatorFor(nodeHandler);
- }
- return null;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanTraceListener.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanTraceListener.java
deleted file mode 100644
index 256ace7..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanTraceListener.java
+++ /dev/null
@@ -1,164 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import javax.xml.transform.TransformerException;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.templates.Constants;
-import org.apache.xalan.trace.EndSelectionEvent;
-import org.apache.xalan.trace.ExtensionEvent;
-import org.apache.xalan.trace.GenerateEvent;
-import org.apache.xalan.trace.SelectionEvent;
-import org.apache.xalan.trace.TraceListenerEx2;
-import org.apache.xalan.trace.TracerEvent;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.BreakPoint;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-
-public class XalanTraceListener implements TraceListenerEx2 // TraceListenerEx3
-{
- private static final Log log = LogFactory.getLog(XalanTraceListener.class);
-
- private final XalanDebugger debugger;
- private XalanRootStyleFrame rootStyleFrame;
-
- public XalanTraceListener(XalanDebugger debugger)
- {
- this.debugger = debugger;
- }
-
- public void trace(TracerEvent ev)
- {
- XalanStyleFrame styleFrame = null;
- if (rootStyleFrame == null)
- {// this is the root of the stack
- debugger.debuggerTransformStarted();
- debugger.setCurrentTraceListener(this);
- rootStyleFrame = new XalanRootStyleFrame(ev);
- styleFrame = rootStyleFrame;
- debugger.pushStyleFrame(styleFrame);
- }
- else if (ev.m_styleNode.getOwnerXSLTemplate() == ev.m_styleNode)
- {// this is an xsl:template, so add to template stack
- styleFrame = new XalanStyleFrame(debugger.peekStyleFrame(), ev);
- debugger.pushStyleFrame(styleFrame);
- }
- else if (ev.m_styleNode.getXSLToken() != Constants.ELEMNAME_TEXTLITERALRESULT)
- {// add to current template element stack
- styleFrame = (XalanStyleFrame) debugger.peekStyleFrame();
- styleFrame.pushElement(ev);
- }
- else
- {
- log.debug("Skipped push for element " + ev.m_styleNode.getLocalName());
- }
- check(styleFrame);
- }
-
- public void traceEnd(TracerEvent ev)
- {
- XalanStyleFrame styleFrame = (XalanStyleFrame) debugger.peekStyleFrame();
- if (styleFrame != null)
- {
- if (ev.m_styleNode.getOwnerXSLTemplate() == ev.m_styleNode)
- {// remove from current template element stack
- styleFrame.popElement();
- }
- else if (ev.m_styleNode.getXSLToken() != Constants.ELEMNAME_TEXTLITERALRESULT)
- {// remove from current template element stack
- styleFrame.popElement();
- }
- else
- {
- log.debug("Skipped pop for element " + ev.m_styleNode.getLocalName());
- }
- check(styleFrame);
- if (ev.m_styleNode.getOwnerXSLTemplate() == ev.m_styleNode)
- {// end of template, so remove from stack
- debugger.popStyleFrame();
- }
- else
- {// because we don't get selectEnd events, we need to do this check
- TracerEvent tel = styleFrame.peekElement();
- // if the parent is a choose, move on to it
- switch (tel.m_styleNode.getXSLToken())
- {
- case Constants.ELEMNAME_CHOOSE:
- styleFrame.popElement();
- check(styleFrame);
- }
- }
- }
- }
-
- private void check(XalanStyleFrame styleFrame)
- {
- debugger.checkStopped();
- if (styleFrame != null)
- {
- // check breakpoint in stylesheet
- BreakPoint breakpoint = new BreakPoint(styleFrame.getFilename(), styleFrame.getCurrentLine());
- debugger.checkSuspended(styleFrame, breakpoint);
- // TODO check breakpoint in source
- /*
- * breakpoint = new BreakPoint(styleFrame.getSourceFilename(), styleFrame.getSourceCurrentLine()); System.out.println("---------------"+breakpoint); if (breakpoint.getFile() != null)
- * debugger.checkSuspended(styleFrame, breakpoint);
- */}
- }
-
- public void selected(SelectionEvent ev) throws TransformerException
- {
- }
-
- public void selectEnd(EndSelectionEvent ev) throws TransformerException
- {
- }
-
- public void generated(GenerateEvent ev)
- {
-// XSLGenerateEvent event = new XSLGenerateEvent();
-// event.m_characters = ev.m_characters;
-// event.m_data = ev.m_data;
-// event.m_eventtype = ev.m_eventtype;
-// event.m_length = ev.m_length;
-// event.m_name = ev.m_name;
-// event.m_start = ev.m_start;
-//
-// if (ev.m_atts != null)
-// {
-// event.m_atts = new ArrayList();
-// for (int i = 0; i < ev.m_atts.getLength(); i++)
-// {
-// String attName = ev.m_atts.getQName(i);
-// String attValue = ev.m_atts.getValue(i);
-// XSLElementAttribute xatt = new XSLElementAttribute(attName,attValue);
-// event.m_atts.add(xatt);
-// }
-// }
-//
-// debugger.generated(event);
- }
-
- public void extension(ExtensionEvent ee)
- {
- }
-
- public void extensionEnd(ExtensionEvent ee)
- {
- }
-
- public Variable getVariable(int id)
- {
- return rootStyleFrame.getVariable(id);
- }
-
-}
diff --git a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanVariable.java b/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanVariable.java
deleted file mode 100644
index 63ac86a..0000000
--- a/bundles/org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/XalanVariable.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
-package org.eclipse.wst.xsl.xalan.debugger;
-
-import javax.xml.transform.TransformerException;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.xalan.templates.ElemVariable;
-import org.apache.xpath.VariableStack;
-import org.apache.xpath.objects.XNodeSet;
-import org.apache.xpath.objects.XObject;
-import org.eclipse.wst.xsl.jaxp.debug.debugger.Variable;
-
-public class XalanVariable extends Variable implements Comparable
-{
- private final Log log = LogFactory.getLog(XalanVariable.class);
- private final ElemVariable elemVariable;
- private final VariableStack varStack;
- private int stackFrame;
-
- public XalanVariable(XalanStyleFrame xalanStyleFrame, VariableStack varStack, String scope, int slotNumber, ElemVariable elemVariable)
- {
- super(getName(elemVariable,scope,xalanStyleFrame), scope, slotNumber+varStack.getStackFrame());
- this.elemVariable = elemVariable;
- this.varStack = varStack;
- // get the stack frame at this current point in time
- this.stackFrame = varStack.getStackFrame();
- }
-
- private static String getName(ElemVariable elemVariable, String scope, XalanStyleFrame xalanStyleFrame)
- {
- String name = elemVariable.getName().getLocalName();
- String systemId = elemVariable.getStylesheet().getSystemId();
- if (GLOBAL_SCOPE.equals(scope) && systemId != null)
- {
- int index;
- if ((index = systemId.lastIndexOf('/')) > 0)
- name += " (" + systemId.substring(index + 1) + ")";
- else
- name += " (" + systemId + ")";
- }
-// else if (LOCAL_SCOPE.equals(scope))
-// {
-// name += " (" + xalanStyleFrame.getName() + ")";
-// }
- return name;
- }
-
- public String getType()
- {
- String value = UNKNOWN;
- try
- {
- XObject xobject = getXObject();
- if (xobject != null)
- {
- int xalanType = xobject.getType();
- switch (xalanType)
- {
- case XObject.CLASS_UNRESOLVEDVARIABLE:
- value = UNRESOLVED;
- break;
- case XObject.CLASS_NODESET:
- value = NODESET;
- break;
- case XObject.CLASS_BOOLEAN:
- value = BOOLEAN;
- break;
- case XObject.CLASS_NUMBER:
- value = NUMBER;
- break;
- case XObject.CLASS_UNKNOWN:
- value = UNKNOWN;
- break;
- case XObject.CLASS_STRING:
- default:
- value = STRING;
- break;
- }
- }
- }
- catch (TransformerException e)
- {
- e.printStackTrace();
- }
- return value;
- }
-
- public String getValue()
- {
- String value = "???";
- try
- {
- XObject xobject = getXObject();
- if (xobject != null)
- {
- int xalanType = xobject.getType();
- switch (xalanType)
- {
- case XObject.CLASS_UNRESOLVEDVARIABLE:
- value = "";
- break;
- case XObject.CLASS_NODESET:
- XNodeSet xns = (XNodeSet) xobject;
- if (xns.nodelist().getLength() > 0)
- value = ((XNodeSet) xobject).nodelist().item(0).toString();
- else
- value = "<EMPTY NODESET>";
- break;
- case XObject.CLASS_BOOLEAN:
- case XObject.CLASS_NUMBER:
- case XObject.CLASS_STRING:
- case XObject.CLASS_UNKNOWN:
- default:
- value = xobject.toString();
- break;
- }
- }
- }
- catch (TransformerException e)
- {
- e.printStackTrace();
- }
-// value = getScope()+"."+getSlotNumber()+")"+getName();
-// log.debug(getScope()+"."+getSlotNumber()+")"+getName() + "=" + value);
- return value;
- }
-
- private XObject getXObject() throws TransformerException
- {
- XObject xvalue;
- if (elemVariable.getIsTopLevel())
- xvalue = varStack.elementAt(slotNumber);
- else
- xvalue = varStack.getLocalVariable(elemVariable.getIndex(), stackFrame);
- return xvalue;
- }
-
- public int compareTo(Object arg0)
- {
- XalanVariable xvar = (XalanVariable)arg0;
- int comp = xvar.stackFrame - stackFrame;
- if (comp == 0)
- comp = slotNumber - xvar.slotNumber;
- return comp;
- }
-}
diff --git a/bundles/org.eclipse.wst.xsl/.project b/bundles/org.eclipse.wst.xsl/.project
deleted file mode 100644
index 525a3cd..0000000
--- a/bundles/org.eclipse.wst.xsl/.project
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.wst.xsl/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl/META-INF/MANIFEST.MF
deleted file mode 100644
index 5ab4ae4..0000000
--- a/bundles/org.eclipse.wst.xsl/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,7 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.wst.xsl
-Bundle-Version: 1.0.0.qualifier
-Bundle-Vendor: %Bundle-Vendor.0
-Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.wst.xsl/about.html b/bundles/org.eclipse.wst.xsl/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/bundles/org.eclipse.wst.xsl/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/bundles/org.eclipse.wst.xsl/about.ini b/bundles/org.eclipse.wst.xsl/about.ini
deleted file mode 100644
index fda5a40..0000000
--- a/bundles/org.eclipse.wst.xsl/about.ini
+++ /dev/null
@@ -1,31 +0,0 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-aboutText=%blurb
-
-# Property "windowImage" contains path to window icon (16x16)
-# needed for primary features only
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=wtp_prod32.png
-
-# Property "aboutImage" contains path to product image (500x330 or 115x164)
-# needed for primary features only
-
-# Property "appName" contains name of the application (not translated)
-# needed for primary features only
-
-# Property "welcomePage" contains path to welcome page (special XML-based format)
-# optional
-
-# Property "welcomePerspective" contains the id of the perspective in which the
-# welcome page is to be opened.
-# optional
-
-
-
-
diff --git a/bundles/org.eclipse.wst.xsl/about.mappings b/bundles/org.eclipse.wst.xsl/about.mappings
deleted file mode 100644
index a28390a..0000000
--- a/bundles/org.eclipse.wst.xsl/about.mappings
+++ /dev/null
@@ -1,6 +0,0 @@
-# about.mappings
-# contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-0=@build@
diff --git a/bundles/org.eclipse.wst.xsl/about.properties b/bundles/org.eclipse.wst.xsl/about.properties
deleted file mode 100644
index e460f94..0000000
--- a/bundles/org.eclipse.wst.xsl/about.properties
+++ /dev/null
@@ -1,20 +0,0 @@
-# about.properties
-# contains externalized strings for about.ini
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# fill-ins are supplied by about.mappings
-# This file should be translated.
-#
-# Do not translate any values surrounded by {}
-
-blurb=WTP XSL Tools\n\
-\n\
-Version: {featureVersion}\n\
-Build id: {0}\n\
-\n\
-(c) Copyright\n\
- Doug Satchwell (Chase Technology Ltd),\n\
- David Carver (Standards for Technology in Automotive Retail)\n\
- and others 2008. All rights reserved.\n\
-\n\
-Visit http://www.eclipse.org/webtools
-
diff --git a/bundles/org.eclipse.wst.xsl/build.properties b/bundles/org.eclipse.wst.xsl/build.properties
deleted file mode 100644
index e4aae79..0000000
--- a/bundles/org.eclipse.wst.xsl/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-bin.includes = META-INF/,\
- about.html,\
- about.ini,\
- about.mappings,\
- about.properties,\
- plugin.properties,\
- wtp_prod32.gif,\
- wtp_prod32.png
diff --git a/bundles/org.eclipse.wst.xsl/plugin.properties b/bundles/org.eclipse.wst.xsl/plugin.properties
deleted file mode 100644
index 4ea43ba..0000000
--- a/bundles/org.eclipse.wst.xsl/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.wst.xsl
-Bundle-Vendor.0 = Eclipse.org
-Bundle-Name.0 = WTP XSL Tools (Incubating) \ No newline at end of file
diff --git a/bundles/org.eclipse.wst.xsl/wtp_prod32.gif b/bundles/org.eclipse.wst.xsl/wtp_prod32.gif
deleted file mode 100644
index eefb44a..0000000
--- a/bundles/org.eclipse.wst.xsl/wtp_prod32.gif
+++ /dev/null
Binary files differ
diff --git a/bundles/org.eclipse.wst.xsl/wtp_prod32.png b/bundles/org.eclipse.wst.xsl/wtp_prod32.png
deleted file mode 100644
index bfceab3..0000000
--- a/bundles/org.eclipse.wst.xsl/wtp_prod32.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/.cvsignore b/docs/org.eclipse.wst.xsl.doc/.cvsignore
deleted file mode 100644
index ba03f5d..0000000
--- a/docs/org.eclipse.wst.xsl.doc/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-xinclude
diff --git a/docs/org.eclipse.wst.xsl.doc/.project b/docs/org.eclipse.wst.xsl.doc/.project
deleted file mode 100644
index f266912..0000000
--- a/docs/org.eclipse.wst.xsl.doc/.project
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.doc</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.wst.validation.validationbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.jdt.core.prefs b/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f843f0f..0000000
--- a/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Mon Mar 10 19:41:50 GMT-05:00 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
-org.eclipse.jdt.core.compiler.compliance=1.4
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
-org.eclipse.jdt.core.compiler.source=1.3
diff --git a/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.wst.validation.prefs b/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.wst.validation.prefs
deleted file mode 100644
index a9a9a29..0000000
--- a/docs/org.eclipse.wst.xsl.doc/.settings/org.eclipse.wst.validation.prefs
+++ /dev/null
@@ -1,15 +0,0 @@
-#Sat Sep 20 17:03:09 GMT 2008
-DELEGATES_PREFERENCE=delegateValidatorList
-USER_BUILD_PREFERENCE=enabledBuildValidatorList
-USER_MANUAL_PREFERENCE=enabledManualValidatorList
-USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.0.v200807211450
-eclipse.preferences.version=1
-override=true
-suspend=false
-vals/org.eclipse.jst.jsp.core.JSPBatchValidator/global=FF01
-vals/org.eclipse.jst.jsp.core.JSPContentValidator/global=FF01
-vals/org.eclipse.wst.html.ui.HTMLValidator/global=FF01
-vals/org.eclipse.wst.wsdl.validation.wsdl/global=FF02158org.eclipse.wst.wsdl.validation.internal.eclipse.Validator
-vals/org.eclipse.wst.xml.core.xml/groups=0107include07111contentType128org.eclipse.core.runtime.xmlT111contentType134org.eclipse.wst.xml.core.xmlsourceT111contentType134org.eclipse.wst.xml.core.xslsourceT111contentType134org.eclipse.jst.jsp.core.tldsourceT07fileext03xmlF07fileext03gphF07fileext115wdo-connectionsF0107exclude06113projectNature134org.eclipse.jst.j2ee.ejb.EJBNature113projectNature130org.eclipse.jst.j2ee.EARNature04file08.projectT0104file110.classpathT0104file110.settings/T0204file112concepts.xmlF01
-vals/org.eclipse.wst.xsd.core.xsd/global=FF02162org.eclipse.wst.xsd.core.internal.validation.eclipse.Validator
-vf.version=3
diff --git a/docs/org.eclipse.wst.xsl.doc/META-INF/MANIFEST.MF b/docs/org.eclipse.wst.xsl.doc/META-INF/MANIFEST.MF
deleted file mode 100644
index 863cea2..0000000
--- a/docs/org.eclipse.wst.xsl.doc/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,10 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.doc;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Require-Bundle: org.eclipse.ui;bundle-version="[3.4.0,4.0.0)",
- org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)"
-Bundle-RequiredExecutionEnvironment: J2SE-1.4
-Bundle-Vendor: %vendorName
-Bundle-Localization: plugin
diff --git a/docs/org.eclipse.wst.xsl.doc/about.html b/docs/org.eclipse.wst.xsl.doc/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.doc/build.properties b/docs/org.eclipse.wst.xsl.doc/build.properties
deleted file mode 100644
index 6cd5053..0000000
--- a/docs/org.eclipse.wst.xsl.doc/build.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-output.. = bin/
-bin.includes = plugin.xml,\
- META-INF/,\
- .,\
- html/,\
- *.xml,\
- about.html,\
- plugin.properties
-generateSourceBundle=false
diff --git a/docs/org.eclipse.wst.xsl.doc/build.xml b/docs/org.eclipse.wst.xsl.doc/build.xml
deleted file mode 100644
index 417002a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/build.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0"?>
-<project default="create-doc" basedir=".">
-
- <property name="current-loc" location="." />
- <property name="workspace" location=".." />
- <property name="htmldir" value="${current-loc}/html" />
- <property name="docbookdir" value="${workspace}/CommonUtilities/docbook-xsl/eclipse" />
- <property name="docbooksource" value="${current-loc}/docbook"/>
- <property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
-
-
- <!-- XSLT Chunking Properties -->
- <property name="base.dir" value="${htmldir}"/>
-
- <target name="merge">
- <xsl.xinclude in="${docbooksource}/xslhelp.dbk"
- out="${docbooksource}/xslhelpcombined.dbk"/>
- </target>
-
- <target name="create-doc" depends="merge">
-
- <xslt force="true" style="${docbookdir}/eclipse33.xsl" in="${docbooksource}/xslhelpcombined.dbk" out="test.xml">
- <factory name="${xalan}" />
- <param name="manifest" expression="1"/>
- <param name="base.dir" expression="${htmldir}/"/>
- <param name="create.plugin.xml" expression="0"/>
- <param name="chunker.output.indent" expression="yes"/>
- <param name="navig.showtitles" expression="0"/>
- <param name="suppress.navigation" expression="1"/>
- <param name="generate.toc" expression="book toc,title,figure
-chapter toc,title
-section title" />
- <param name="chapter.autolabel" expression="0"/>
- <param name="section.autolabel" expression="0"/>
- <param name="html.stylesheet" expression="book.css ../book.css"/>
- </xslt>
-
- <replace file="${current-loc}/toc.xml" token="${current-loc}/" value=""/>
- </target>
-
-</project>
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/.cvsignore b/docs/org.eclipse.wst.xsl.doc/docbook/.cvsignore
deleted file mode 100644
index c0958b3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-xslhelpcombined.dbk
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/RescuingXSLTfromNicheStatus.xml b/docs/org.eclipse.wst.xsl.doc/docbook/concepts/RescuingXSLTfromNicheStatus.xml
deleted file mode 100644
index 6e19a82..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/RescuingXSLTfromNicheStatus.xml
+++ /dev/null
@@ -1,502 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<section id="ResucingXSLT">
- <title>Rescuing XSLT From Niche Status</title>
- <subtitle>A Gentle Introduction to XSLT through HTML Templates</subtitle>
- <note>
- <para>
- <emphasis>
- Editors Note: This originally appeared at
- <ulink url="http://www.xfront.com/rescuing-xslt.html">XFront.com</ulink>
- , and is republished here with permission. The article is written by David Jacobs.
- </emphasis>
- </para>
- </note>
- <abstract>
- <para>
- XSLT is one of the most exciting technologies to come out of the XML family. Unfortunately, its incredible
- power and associated complexity can be overwhelming to new users preventing many from experimenting with it or
- causing them to quickly give up in disgust. In fact, unless the method of teaching and the common style of use
- for XSLT is radically changed to make it more accessible, XSLT will be relegated to niche status like SGML and
- other powerful technologies.
- </para>
- </abstract>
- <section>
- <title>The Problem</title>
- <para>
- The 1990’s saw an incredible proliferation of new web related languages. Looking back we can see what
- features separated the winners and losers. The biggest key has been having a very low barrier to entry. Many
- languages accomplished this by following the following rules.
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Leverage as much existing knowledge as possible.
- </para>
- </listitem>
- <listitem>
- <para>
- Make it easy to get started with "hello world" style example.
- </para>
- </listitem>
- <listitem>
- <para>
- The most common and useful language constructs should be easily conveyed with a few small examples.
- </para>
- </listitem>
- <listitem>
- <para>
- Complex programming constructs should only be required when what is trying to be accomplished is
- complex.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- From these rules we can see why embedded web scripting languages like Active Server Pages (ASPs), Cold
- Fusion, PHP and
- Java Server Pages (JSPs) are so popular. They all leverage a user’s knowledge of HTML. They also
- allow the
- minimum amount of scripting to be added to accomplish the dynamic feature a developer is looking for.
- This has
- allowed numerous web developers to start off with very small projects and then through continuos
- enhancement
- and learning, find themselves using the full power of a complex programming language. Furthermore,
- because of
- the very incremental nature of that learning the developer was never scared off.
- </para>
- <para>
- HTML has also fostered the technique of learning by example. When a web author sees another site with a
- feature they
- like, they immediately bring up the source to see how it was implemented. In this way many web
- authors were
- able to learn complex HTML tricks with no formal training. While server-side scripts are not as
- easy to come
- by, there are still numerous sites that house thousands of example scripts for a blossoming
- developer to
- examine.
- </para>
- <para>
- Traditionally XSLT has been presented as a programming language for translating XML documents into another
- format, often for presentation. This frames the problem, such that for each element, the programmer has the
- task of figuring out how that element needs to be translated. As long as there are one to one mappings or one
- to zero mappings this is straightforward. For example, if every occurrence of a <![CDATA[
- <name>]]>
- element is going to
- become an HTML header. It is a simple matter to write a matching template to accomplish
- this.
- </para>
- <programlisting id="pl_NameTemplate">
-<![CDATA[
-<xsl:template match="name">
- <h1><xsl:apply-templates/></h1>
-</xsl:template>
-]]>
- </programlisting>
- <para>
- However when adding one to many mappings (i.e. when an element’s contents will appear multiple times in the
- target document with different formatting), keeping track of all the relationships quickly grows in complexity
- and becomes confusing. For example, if, after writing the previous template, the programmer discovers that the
- name also needs to be placed in the title the programmer might add the template
- </para>
- <programlisting id="pl_valueOf">
-<![CDATA[
-<xsl:template match="/">
- <title><xsl:value-of select="name"/></title>
-</xsl:template>
-]]>
- </programlisting>
- <para>
- Notice the use of the <![CDATA[<xsl:value-of>]]>
- function in this template because using <![CDATA[<apply-templates select="name">]]>
- would have caused a triggering of the previous template adding undesired header tags to my content. This means
- before adding a translation to an element the programmer must first be aware of all the existing translations
- (ugh!). Of course if the programmer became aware of the
- <![CDATA[<title>]]>
- requirement first, the contents of these templates could have been reversed. One can quickly see how
- the
- arbitrary decisions of development and discovery of requirements can lead to a set of templates that are
- no
- longer intuitive.
- </para>
- <para>
- As a programmer with more than 20 years experience with over a dozen languages, XSLT templates and default
- rules were
- not obvious to me. Over the past year or two I had looked at numerous examples trying to discern how
- they
- worked. While I could understand the general gist of what was occurring, there was too much implied
- behavior
- that I did not pick up. It was not until going through formal XSLT training that I fully understood how
- XSLT
- worked. Clearly, if the barrier to entry is that high for an experienced programmer, the average web
- developer
- was not going to find this technology very useful.
- </para>
- </section>
- <section>
- <title>The Solution</title>
- <para>
- So how do we solve this problem and help deliver XSLT’s promise to the masses? For XSLT to be successful it
- must be
- presented and used in a way that adopts those attributes discussed earlier (reuse of knowledge, fast
- start, and
- gradualism). This tutorial will attempt to ease XSLT’s introduction by focusing on these attributes.
- First, it
- is only going to focus on the generation of HTML documents and users who are familiar with HTML. If
- your goal
- is to immediately start transforming one XML document into another XML document this tutorial is not
- for you.
- </para>
- <para>
- The second is to reframe the problem so the XSLT solutions programmers write are more naturally extensible
- and
- intuitive. Instead of trying to translate an XML source document into an HTML presentation document, the
- programmer should see the XML document as a complex data structure with XSLT providing powerful tools for
- extracting that information into their HTML documents. This allows us to leverage the experience most people
- have with using an HTML templating language (e.g. ASP, PHP, JSP, Cold Fusion, Web Macro, etc). These templating
- languages are all based on the basic premise that HTML comes first and all enhancements are then embedded in
- special tags.
- </para>
- <para>
- With some caveats, this tutorial will show how XSLT can be used in this same way. The benefit of this
- approach is it
- allows the quick use of many of XSLT’s powerful functions while letting you learn its more
- esoteric
- capabilities as the need arises. In addition the resulting XSLT files are more intuitive and
- maintainable.
- </para>
- <programlisting>
-<emphasis role="bold"><![CDATA[<xsl:value-of> and {}]]></emphasis>
- </programlisting>
- <para>
- On to an example. Here is a very simple welcome page.
- </para>
- <programlisting>
-<![CDATA[
-<html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- Welcome!
- </body>
-</html>
-]]>
- </programlisting>
- <para>
- And here is an XML document with information on member.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- Welcome <xsl:value-of select="member/name"/>!
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- There are a couple of things that need to be pointed out right away. First this is a well-formed XML
- document. This mean all HTML used must conform to the XHTML specification (i.e. all tags must be closed and
- lowercase).
- </para>
- <para>
- The lines before the <![CDATA[<html>]]>
- tag and after the <![CDATA[</html>]]>
- tag will be seen in all the examples. For now, other than realizing that they are required in any style sheet
- created, just go ahead and forget they are there. You don’t NEED to understand them right now to get useful
- work out of XSLT.
- </para>
- <para>
- Notice the HTML is identical to the original except for the introduction of a new tag
- <![CDATA[<xsl:value-of>]]>.
- This tag is the key to extracting any piece of information out an XML document. It has a "select"
- attribute that
- provides the path through the XML document to the information we seek. In this case
- <![CDATA[<member>]]>
- is the outer most tag and
- <![CDATA[<name>]]>
- is the tag underneath it. Slash characters ("/") are used to designate parent/child relationships
- between tags.
- If you are used to navigating around a Unix file system this should feel familiar.
- </para>
- <para>
- Now let’s consider further customizing this page by making the welcome in the person’s favorite color using the
- <![CDATA[<font>]]>
- tag with the "bgcolor" attribute. Because
- <![CDATA[<xsl:value-of>]]>
- is an XML tag it is not valid to insert it in an HTML attribute value. So another mechanism
- is needed to insert
- information from our XML file there.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- </font>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- Notice the use of the curly brackets ("{}"). When used within an attribute assignment "{path}" has the exact
- same effect as
- <![CDATA[<xsl:value-of select="path" />]]>
- used outside of attribute assignments.
- </para>
- </section>
- <section>
- <title>Queries</title>
- <para>
- Not all paths lead to a single node. For example, what if we wanted to put a person’s home phone number on the
- page? Notice that the XML document contains two phone entries. If we simply used
- <![CDATA[<xsl:value-of select="member/phone" />]]>
- both entries would be returned. We obviously need a way to be more specific. Luckily, XSLT allows the full
- power of XPath to describe the value(s) of interest. XPath allows conditions on any attribute or tag to be
- placed in square brackets ("[]") which are then used to restrict the values returned.
- </para>
- <para>
- So to retrieve the home phone number we would use the path "member/phone[@type=’home’]". Notice the "@"
- symbol in front
- of "type". The "@" symbol signifies that we are referring to an attribute. So our new HTML
- template looks like:
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- <br/>
- Your home phone number is:
-]]> <emphasis role="bold"><![CDATA[<xsl:value-of select="member/phone[@type=’home’]"/>]]></emphasis>
-<![CDATA[ </font>
- </body
- </html
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <section>
- <title>xsl:for-each</title>
- <para>
- The previous example brings up another issue. What if this
- <![CDATA[<member>]]>
- entry had numerous phone numbers and we wanted to print them all on the web page. We could simply use
- <![CDATA[<xsl:value-of select="member/phone" />]]>
- but this would not enable us to format the phone number into a nice list that describes the type of each
- number.
- </para>
- <para>
- To accomplish this requires the introduction of the
- <![CDATA[<xsl:for-each>]]>
- tag which allows us to loop through each of the elements that match a given path. So to
- create a table that
- contains the phone number type in the first column and the phone number in the second
- column, the following
- stylesheet could be used.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- </font>
- <table>
- <tr><th>Type</th><th>Number</th></tr>
- <xsl:for-each select="member/phone">
- <tr>
- <td><xsl:value-of select="@type"/></td>
- <td><xsl:value-of select="."/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- This example brings up a number of issues. First, while in the loop, all
- <![CDATA[<xsl:value-of />]]>
- accesses are relative to the current element being iterated over (in this case
- <![CDATA[<phone>)]]>.
- Notice the use of the period ("."), which like in a Unix file system means the current element.
- So in this
- case the period (".") refers to each phone element as the loop iterates. Also like in a file
- system you can
- address a parent element using a double period ("..") and can access any element in the
- document by starting
- over at the root element using a slash ("/").
- </para>
- </section>
- <section>
- <title>xsl:if</title>
- <para>
- As a last enhancement to our page let’s add a special offer to "platinum" level members. To do this requires
- the use of a new tag
- <![CDATA[<xsl:if>]]>
- which allows us to insert content based on a condition of the data in the XML document.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- </font>
- <xsl:if test="member[@level='platinum']">
- Our special offer to platinum members today is something great
- </xsl:if>
- <table>
- <tr><th>Type</th><th>Number</th></tr>
- <xsl:for-each select="member/phone">
- <tr>
- <td><xsl:value-of select="@type"/></td>
- <td><xsl:value-of select="."/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- Within the "test" attribute the full array of Boolean and relative operators are available. The only caveat
- is that since this is an XML document less than and greater than (<![CDATA["<"]]>,
- ">") signs must be escaped as <![CDATA["&lt;" and "&gt;"]]>.
- </para>
- </section>
- <section>
- <title>xsl:choose</title>
- <para>
- One nuance of the
- <![CDATA[<xsl:if>]]>
- tag that is not always obvious at first glance is the lack of an "else" statement. This means to have an
- else statement requires two ifs. The first one saying "if condition" and the second one saying “if not
- condition”. This scheme quickly becomes unworkable with embedded if then else logic. Luckily XSLT
- supports an
- additional test operator called
- <![CDATA[<xsl:choose>]]>
- which works like a switch/case statement.
- </para>
- <programlisting>
-<![CDATA[
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
- <xsl:template match="/">
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <font bgcolor="{member/favoriteColor}">
- Welcome <xsl:value-of select="member/name"/>!
- </font>
- <xsl:choose>
- <xsl:when test="member[@level='platinum']">
- Our special offer to platinum members today is something great
- </xsl:when>
- <xsl:otherwise>
- Become a platinum member today!
- </xsl:otherwise>
- </xsl:choose>
- <table>
- <tr><th>Type</th><th>Number</th></tr>
- <xsl:for-each select="member/phone">
- <tr>
- <td><xsl:value-of select="@type"/></td>
- <td><xsl:value-of select="."/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>
-]]>
- </programlisting>
- <para>
- The “test” attribute has the same capabilities/ constraints as the “test” attribute in the
- <![CDATA[<xsl:if>]]>
- tag. Multiple
- <![CDATA[<xsl:when>]]>
- blocks are allowed. As soon as one “when test” is mached, it will not evaluate any further “xsl:when
- tests”
- in the
- <![CDATA[<xsl:choose>]]>
- block.
- </para>
- </section>
- </section>
- <section>
- <title>Conclusion</title>
- <para>
- With just these few commands (an admittedly small subset of XSLT) and a strong background in HTML (DHTML and
- JavaScript
- included), I believe web developers could meet the majority of their presentation needs. Obviously
- there will
- be cases where greater flexibility is required, but the advantage of this technique is that only
- then, does the
- developer need to learn those constructs.
- </para>
- <para>
- As a further benefit, this technique minimized the interdependence of one XLST construct on another. Local
- changes stay
- local thereby reducing the brittleness of solutions. The developer also no longer has to remember
- and account
- for XSLT’s default behaviors.
- </para>
- <para>
- I hope from these few examples, I have opened a few eyes to the power of XSLT and how a small change in how
- XSLT is framed can make a huge difference in its understandability and accessibility to web developers. If
- nothing else, I hope to encourage some good discussions.
- </para>
- </section>
-</section>
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/concepts.xml b/docs/org.eclipse.wst.xsl.doc/docbook/concepts/concepts.xml
deleted file mode 100644
index 602a67a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/concepts.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="concepts/concepts.html" ?>
- <title>XSLT Concepts</title>
- <para>
-
- </para>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="RescuingXSLTfromNicheStatus.xml"/>
- <section id="concepts_Resources">
- <?dbhtml filename="concepts/resources.html" ?>
- <title>Resources</title>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://www.w3.org/TR/xslt">XSLT 1.0 Specification</ulink> - The official W3C XSLT 1.0 Specification.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://www.dpawson.co.uk/xsl/index.html">XSLT FAQ</ulink> - maintained by Dave Pawson.
- </para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.xfront.com/rescuing-xslt.html">Rescuing XSLT from Niche Status</ulink> - by David Jacobs.</para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.xml.com/pub/a/2003/11/26/learnXSLT.html">Five XSLT Basics</ulink> - by Michael Fitzgerald author of Learning XSLT.</para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.xfront.com/files/tutorials.html">XFront Tutorials</ulink> - provides several tutorials include XSLT 1.0.</para>
- </listitem>
- <listitem>
- <para><ulink url="http://www.cafeconleche.org/books/bible2/chapters/ch17.html">XSL Transformations</ulink> - Chapter 17 of the XML Bible 2nd Edition.</para>
- </listitem>
- </itemizedlist>
- </section>
-
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/gettingstarted.xml b/docs/org.eclipse.wst.xsl.doc/docbook/concepts/gettingstarted.xml
deleted file mode 100644
index ea3f41d..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/concepts/gettingstarted.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="introduction/gettingstarted.html" ?>
- <title>Getting Started</title>
- <para>
- Still trying to think of original content for this section.
- </para>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/editor/editor.xml b/docs/org.eclipse.wst.xsl.doc/docbook/editor/editor.xml
deleted file mode 100644
index 39c48d0..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/editor/editor.xml
+++ /dev/null
@@ -1,353 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="editor/xsleditor.html" ?>
- <title>XSL Editing</title>
- <para>
- The XSL Tools plugins extend the ability of the Web Standard
- Tools XML
- editor. This extension adds specific
- support and
- functionality for
- working with and debugging XSL files.
- </para>
- <section id="Validation">
- <?dbhtml filename="editor/xsleditor_validation.html" ?>
- <title>Validation</title>
- <para>
- The XSL extensions for the eclipse XML editor include as you
- type
- validation for XSL specific features. This
- includes not
- only the
- ability to syntax check the grammar, but to also to validate
- specific
- XSL specification
- rules. Grammar validation will
- be triggered based on
- the version attribute for the style sheet that is
- being
- edited. Valid
- version numbers are 1.0, and 2.0.
- </para>
- </section>
- <section id="ContentAssist">
- <?dbhtml filename="editor/xsleditor_contentassist.html" ?>
- <title>Content Assist</title>
- <para>
- XSL Tools extends the existing content assistance support of the
- XML Editor to provide content assistance for
- several XSL namespace
- attributes. The content assistance provided covers the available XPath
- statements as
- defined in the
- <emphasis>XPath Templates</emphasis>
- preference page.
- </para>
- <important>
- <title>XPath 2.0 Support</title>
- <para>
- Currently XPath 2.0 is not supported directly. However, a user
- can add this support if they need it by
- adding the missing XPath
- functions to the XPath Templates.
- </para>
- </important>
- <para>
- To initiate content assistance press CTRL + SPACE or CMD + SPACE. This will bring up
- a dialog that will
- contain any proposals that are available. If no proposals are available
- an message will be displayed in the
- status bar.
- </para>
- <section id="ed_XSLProposals">
- <title>XSLT Element Proposals</title>
- <para>
- Since XSLT is a templating language, it's elements must be able to be added
- to the various markup it
- includes. The XSLT Editor will provide content assistance
- and proposals for XSLT elements that are available
- to be used within non-XSLT namespaced
- elements. This is depicted in
- <xref linkend="fig_XSLProposals" />
- .
- </para>
- <figure id="fig_XSLProposals">
- <title>XSLT Proposals within Non-XSLT elements</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/xslproposals.png" />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="SelectTest">
- <title>Select, Test, and Match Attributes </title>
- <para>
- Where ever an xsl element supports a
- <emphasis>select</emphasis>
- ,
- <emphasis>test</emphasis>
- , or
- <emphasis>match</emphasis>
- attribute, content assistance is available. This includes support for
- the following:
- </para>
- <itemizedlist>
- <title>Select, Match and Test Assistance</title>
- <listitem>
- <para>
- <emphasis>Variables</emphasis>
- - both local and global variables are supported within the current
- stylesheet. Any local or global
- variable will be added to the list
- and the name is prefixed with a dollar sign $ symbol.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>XPath 1.0</emphasis>
- - XPath 1.0 is supported through the use of templates. All of the
- XPath 1.0 and XSLT xpath extension
- functions are available, as well
- as
- <emphasis>axis</emphasis>
- operations. Currently XPath 2.0 is not supported directly, but will
- be added in the future.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- Content assistance for the select and test attributes is
- intelligent enough to know that it is within an
- XPath expression, and will try to determine and provide content assistance based on the
- current cursor
- position. If a word has been partially typed it will
- filter the available assistance.
- </para>
- </section>
- <section id="ExcludeResultPrefixesContentAssist">
- <title>Exclude-Result-Prefixes</title>
- <para>
- The
- <emphasis>exclude-result-prefixes</emphasis>
- attribute in both XSLT 1.0 and XSLT 2.0 allows for the exclusion of
- certain namespace
- declarations in the
- output document. The content
- assistance populates a list of available namespaces that have been
- defined in
- the
- stylseheet and provides them as proposals as shown in
- <xref linkend="fig_ExcludeResultPrefixesContentAssist1" />
- .
- </para>
- <figure id="fig_ExcludeResultPrefixesContentAssist1">
- <title>Exclude-result-prefixes Content
- Assistance</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/ExcludeContentAssist1.png" />
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- If the attribute has no values defined, then the
- <emphasis>#all</emphasis>
- value will be available in the list. If #all
- is already in the
- attributes value, then no content assistance
- will be available.
- </para>
- <figure id="fig_ExcludeResultPrefixesContentAssist2">
- <title>Filtered exclude-result-prefixes proposals</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/ExcludeContentAssist2.png" />
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- Content assistance is intelligent enough to know when a
- namespace prefix is already in the list of
- excluded namespaces. In
- this
- case it will not show the namespace in the proposal list.
- </para>
- <note>
- <title>Why isn't the XSL Namespace prefix in the proposals?
- </title>
- <para>
- Currently the xsl prefix or any prefix that uses the XSL
- namespace is excluded from the list. This may
- be changed at
- a future
- date. This will depend on user feedback.
- </para>
- </note>
- </section>
- <section id="ed_ModeAssist">
- <title>Mode attribute assistance</title>
- <para>
- Content assistance is available for those xsl elements that support the mode attribute. For XSLT 1.0
- these
- elements are
- <emphasis>template</emphasis>
- ,
- <emphasis>apply-templates</emphasis>
- , and
- <emphasis>apply-imports</emphasis>
- .
- </para>
- <figure id="fig_ModeAssistance">
- <title>Mode attribute assistance</title>
- <mediaobject>
- <imageobject>
- <imagedata format="PNG" align="center" fileref="../images/editor/modeAssistance.png" />
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- The proposal list is populated by those modes defined on templates in the current stylesheet, and any
- of the
- templates that are
- <emphasis>included</emphasis>
- or
- <emphasis>imported</emphasis>
- .
- </para>
- </section>
- <section id="ed_CallTemplateAssist">
- <title>Call-Template Assistance</title>
- <para>
- Any
- <emphasis>call-template</emphasis>
- xslt element has content assistance available for
- it's name attribute. This will provide a list of possible
- XSLT named templates that can
- be called from the current stylesheet. This takes into effect all included and
- imported
- stylesheets as well as those defined in the current stylesheet.
- </para>
- <figure id="fig_CallTemplateAssist">
- <title>Call-Template Assistance</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/calltemplate.png" />
- </imageobject>
- </mediaobject>
- </figure>
-
- </section>
- <section id="ed_href">
- <title>
- Include and Import
- <emphasis>href</emphasis>
- Assistance
- </title>
- <para>
- XSLT stylesheets have the ability to import and include other stylesheets. This allows for
- a modular
- structure for the templates to be created. It also allows for easier maintenance.
- However, if one is working
- with a large project like the DocBook Projects stylesheets it can
- be difficult to remember the names and
- locations of all the stylesheets.
- </para>
- <para>
- To this end, the XSLT editor provides content assistance for the
- <emphasis>href</emphasis>
- attribute. The scope of the assistance is restricted to the project that the current
- stylesheet that is being
- editted resides.
- </para>
- <figure id="fig_HREFAssistance">
- <title>Include/Import href Assistance</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/hrefAssistance.png" />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- </section>
- <section id="XSLEditorTemplates">
- <?dbhtml filename="editor/xsleditor_templates.html" ?>
- <title>Templates</title>
- <para>
- Specific XSL code completion templates can be added to the XML
- editor's Templates. This allows a user to
- define specific markup
- completion templates that are commonly used. In addition, the XPath
- Templates page can be
- enhanced to allow commonly used XPath templates
- to be included, in addition to those installed by default.
- This
- allows a user the ability to add custom extension functions for XSLT that
- may be processor specific. Adopters
- may also use the standard template
- extension point to add additional functionality.
- </para>
- <section>
- <?dbhtml filename="editor/xsleditor_xpathtemplates.html" ?>
- <title>XPath Templates</title>
- <para>
- The XSL XPath Templates preference page allows for a user or
- adopter to add specific xpath extensions so
- that
- they show up in the
- content assistance. See the XPath Templates documentation for more
- information.
- </para>
- </section>
- </section>
- <section id="xsltMarkers">
- <?dbhtml filename="editor/xsleditor_markers.html" ?>
- <title>XSLT Markers and Annotations</title>
- <para>
- The XSL editor supports the ability to annotate or provide markers. These annotations provide additional
- information about the templates and XSLT elements in the stylesheet.
- </para>
- <section id="xsltOverRide">
- <title>Template Over Ride</title>
- <para>
- The XSLT editor will mark templates that have overriden an imported template of the same name.
- </para>
- <figure id="fig_OverRide1">
- <title>Overriden Template</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/override1.png" />
- </imageobject>
- </mediaobject>
- </figure>
- <para>
- In
- <xref linkend="fig_OverRide1" />
- , the template "TempB" overrides an imported template. By
- moving the mouse pointer over the triangle icon in
- the rule bar, information about which file
- the original template resides.
- </para>
- <figure id="fig_OverRide2">
- <title>Overriden Template Information</title>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/editor/override2.png" />
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- </section>
- <section id="XSLEditorDebugging">
- <?dbhtml filename="editor/xsleditor_debugging.html" ?>
- <title>XSL Debugging</title>
- <para>
- The XSL Editor supports the ability to specify break points within an XSL File. If the file is included or
- imported and the break point is encountered during a transformation scenario it will be respected. A break
- point may be set at any valid XSL element or other xml element within the XSLT stylesheet. See the Launching
- and Debugging section for more information on debugging XSLT stylesheets.
- </para>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/general/general.xml b/docs/org.eclipse.wst.xsl.doc/docbook/general/general.xml
deleted file mode 100644
index b72c45a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/general/general.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="general/general.html" ?>
- <title>General</title>
- <para>This section covers topics that don't have any other particular place to go.</para>
- <section id="XInclude">
- <?dbhtml filename="general/xinclude.html" ?>
- <title>XInclude</title>
- <para>
- XInclude allows a user to import or include other XML files into one xml file.
- It is used primarily with documentation file formats like Docbook and DITA. It
- allows for separating out large xml documents into more manageable chunks of information.
- </para>
- <para>
- The XSL Tools project includes an ANT task that can be run with in eclipse, eclipse
- headless, and without eclipse at all. If running outside of eclipse, you will need
- to make sure that the jar file xinclude.jar in the org.eclipse.wst.xsl.core.jar file
- is made avaiable on your class path.
- </para>
- <mediaobject>
- <objectinfo id="Xinclude">
- <title>XInclude Task</title>
- </objectinfo>
- <imageobject>
- <imagedata align="center" fileref="../images/general/xinclude.png"
- format="PNG" />
- </imageobject>
- </mediaobject>
- <para>
- The following parameters are available on the xsl.xinclude ANT task:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <emphasis role="bold">
- in
- </emphasis> - The full path to the input file that contains
- the file with the XIncludes. If the files that it includes have includes, then
- those will be brought in an expanded as well.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">out</emphasis> - The full path to the output file
- to be written with all includes expanded. This is typically used as the
- input to a stylesheet transformation process.
- </para>
- </listitem>
- </itemizedlist>
- <example>
- <title>XInclude Example</title>
- <programlisting xml:space="preserve">
-&lt;target name="merge">
- &lt;xsl.xinclude in="${docbooksource}/xslhelp.dbk"
- out="${docbooksource}/xslhelpcombined.dbk"/>
-&lt;/target>
- </programlisting>
- </example>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist1.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist1.png
deleted file mode 100644
index 2f0f2cb..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist1.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist2.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist2.png
deleted file mode 100644
index 2e53677..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/ExcludeContentAssist2.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/calltemplate.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/calltemplate.png
deleted file mode 100644
index 3a13f07..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/calltemplate.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/hrefAssistance.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/hrefAssistance.png
deleted file mode 100644
index 5f44986..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/hrefAssistance.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/modeAssistance.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/modeAssistance.png
deleted file mode 100644
index f5a9875..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/modeAssistance.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override1.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override1.png
deleted file mode 100644
index 88b878b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override1.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override2.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override2.png
deleted file mode 100644
index cfc415c..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/override2.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/xslproposals.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/xslproposals.png
deleted file mode 100644
index ffc127a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/editor/xslproposals.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/launchShortct.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/launchShortct.png
deleted file mode 100644
index 881813a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/launchShortct.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/resultView.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/resultView.png
deleted file mode 100644
index d6d1b91..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/launching/resultView.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/XPathTemplates.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/XPathTemplates.png
deleted file mode 100644
index 0f89304..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/XPathTemplates.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xm_template_xslnewfile.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xm_template_xslnewfile.png
deleted file mode 100644
index 7646a6d..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xm_template_xslnewfile.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_InstalledProcessors.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_InstalledProcessors.png
deleted file mode 100644
index 3295079..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_InstalledProcessors.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_outputproperties.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_outputproperties.png
deleted file mode 100644
index 4e00a42..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xsl_outputproperties.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslfeatures.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslfeatures.png
deleted file mode 100644
index 29dbec8..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslfeatures.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslpreferences.png b/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslpreferences.png
deleted file mode 100644
index dcb7187..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/images/preferences/xslpreferences.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/launching/launching.xml b/docs/org.eclipse.wst.xsl.doc/docbook/launching/launching.xml
deleted file mode 100644
index 8271e0b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/launching/launching.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="launching/launching.html" ?>
- <title>XSL Launching and Debugging</title>
- <para>
- XSL Tools adds support for XSL Launch and Debugging configurations.
- These allow you to setup XSL configurations for various jobs, and to also
- debug xsl stylsheet transformations.
- </para>
- <section id="XSLLaunch">
- <?dbhtml filename="launching/launching.html" ?>
- <title>XSL Launching</title>
- <para>
- In the Project Explorer, simply select the input XML file and the stylesheet(s) to transform it, and then right-click and select
- <emphasis>Run As > XSL Transformation</emphasis>.
- </para>
- <mediaobject>
- <imageobject>
- <imagedata align="center" format="PNG"
- fileref="../images/launching/launchShortct.png" />
- </imageobject>
- </mediaobject>
- </section>
- <section id="XSLDebug">
- <?dbhtml filename="launching/debugging.html" ?>
- <title>XSLT Debugging</title>
- <para>
- XSL Tools provides a framework for XSLT processors to provide debugging support. The support
- provided is highly dependent on the processors. XSL Tools comes with built in support
- for the Xalan 2.7.1 processor. Debugging is only available for those processors that
- support the feature and plug into the extension point.
- </para>
- <section>
- <title>Result View</title>
- <para>
- The XSLT Debugger has a result view. This will show the output that the
- stylesheet has generated to the current break point or since the last step command was issued.
- </para>
- <mediaobject>
- <imageobject>
- <imagedata align="center" format="PNG"
- fileref="../images/launching/resultView.png" />
- </imageobject>
- </mediaobject>
- </section>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/legal.xml b/docs/org.eclipse.wst.xsl.doc/docbook/legal.xml
deleted file mode 100644
index 2fe8845..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/legal.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="legal.html" ?>
- <title>Notices</title>
- <para>
- The material in this guide is Copyright (c) Doug Satchwell (<ulink url="http://www.chasetechnology.co.uk">Chase Technology Ltd</ulink>),
- David Carver (<ulink url="http://www.starstandard.org">Standards for Technology in Automotive Retail</ulink>)
- and others 2008.
- </para>
- <para>
- This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies
- this distribution, and is available at
- <ulink url="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</ulink>.
- </para>
- <para>
- <ulink url="about.html">Terms and conditions regarding the use of this guide.</ulink>.
- </para>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/preferences/preferences.xml b/docs/org.eclipse.wst.xsl.doc/docbook/preferences/preferences.xml
deleted file mode 100644
index 35063de..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/preferences/preferences.xml
+++ /dev/null
@@ -1,155 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter id="XSLPreferences">
- <?dbhtml filename="preferences/xslpreferences.html" ?>
- <title>XSL Tools Preferences</title>
- <para>
- The XSL Preference pages has several sub sections. Each of these allow for configuration
- of various aspects of the preferences. From the controlling of the default XSL processor
- to be used during transformations. To extending the content assist support of the XPath
- functions available in the XML editor.
- </para>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/preferences/xslpreferences.png"
- format="PNG" />
- </imageobject>
- </mediaobject>
- <section id="XSLFeatures">
- <?dbhtml filename="preferences/xslfeatures.html" ?>
- <title>Features</title>
- <para>
- The XSL Features preference page allows for the configuration of features for a particular
- processor. XSL Tools comes with Xalan 2.7.0 by default. Adopters can extend and include
- their own specific features for their own procesoors. An adopter could extend the tooling
- to support XSLT 2.0 transformations, and features particular to that parser.
- </para>
- <mediaobject>
- <imageobject>
- <imagedata align="center" format="PNG"
- fileref="../images/preferences/xslfeatures.png" />
- </imageobject>
- </mediaobject>
- <para>
- The <emphasis role="bold">Processor Type</emphasis> allows you to set features for a specific processor. In this case
- this is for the processor that is being installed. XSL Tools comes with Xalan 2.7.0, and it is the only available
- processor type by default.
- </para>
- <para>
- The feature table lists the features that are specific to the processor that was selected. As you
- select each of the features, information regarding that feature and it's abilitis is displayed in the
- description box. By clicking in the value column, next to the feature you want to set the value
- for, the user can set the feature.
- </para>
- </section>
- <section id="XSLProcessors">
- <?dbhtml filename="preferences/xslprocessors.html" ?>
- <title>Installed Processors</title>
- <para>
- The installed processors page lets you pick which of the installed XSLT processors will be used
- by default. The default is the System Default Procesoor, but you can select any of the
- available processors to be used as the default processor.
- </para>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/preferences/xsl_InstalledProcessors.png" format="PNG"/>
- </imageobject>
- </mediaobject>
- </section>
- <section id="XSLOutputProperties">
- <?dbhtml filename="preferences/xsloutputproperties.html" ?>
- <title>Output Properties</title>
- <para>
- The various xsl processors support a wide variety of processor specific tweaks. However there
- are several Standard processor features that all XSLT processors support. These options can be
- set and will act as the defaults for all transformations unless they are specifically overriden by
- the stylesheet or the launch configuration.
- </para>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../images/preferences/xsl_outputproperties.png" format="PNG"/>
- </imageobject>
- </mediaobject>
- <para>
- In addition to the Standard Output Properties, each XSLT processor can have processors
- specific features.
- </para>
- </section>
- <section id="XPathTemplates">
- <?dbhtml filename="preferences/xpathtemplates.html" ?>
- <title>XPath Templates</title>
- <para>
- XPath template proposal is supported by the XSL Tooling project through the
- built in template functionality of eclipse. Users and Adopters can add
- their own specific xpath extensions for processor specific extensions. An
- example would be to add the EXSLT extensions for proposal support.
- </para>
- <mediaobject>
- <imageobject>
- <objectinfo>
- <title>XPath Templates</title>
- </objectinfo>
- <imagedata align="center" fileref="../images/preferences/XPathTemplates.png" format="PNG"/>
- </imageobject>
- </mediaobject>
- <para>
- The following content types are available:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <emphasis role="bold">axis</emphasis> - an XPath navigation axis statement.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">exslt</emphasis> - An XPath statement that is defined by
- the <ulink url="http://www.exslt.org/">EXSLT</ulink> library. Xalan and most
- other processors have built in support for the EXSLT library.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">xpath</emphasis> - Represents an XPATH 1.0 function. These
- are functions as defined by the XPath 1.0 specification.
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">xpath 2.0</emphasis> - Represents an XPath 2.0 function.
- <emphasis>Note: That currently XSL Tools only ships with templates defined for XPath 1.0 .</emphasis>
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis role="bold">operator</emphasis> - An xpath logical operator like AND, OR, etc.
- </para>
- </listitem>
- </itemizedlist>
- <section id="XPathTemplateNew">
- <?dbhtml filename="preferences/xpathtemplatenew.html" ?>
- <title>Creating New Templates</title>
- <!-- TODO: Create Additional information on creating new templates-->
- <para>
- Add documentation about creating new templates.
- </para>
- </section>
- <section id="XPathImport">
- <?dbhtml filename="preferences/xpathimport.html" ?>
- <title>Import XPath Templates</title>
- <para>
- Add documentation about importing new templates.
- </para>
- </section>
- <section id="XPathExport">
- <?dbhtml filename="preferences/xpathexport.html" ?>
- <title>Import XPath Templates</title>
- <para>
- Add documentation about importing new templates.
- </para>
- </section>
-
- </section>
-
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/samples/samples.xml b/docs/org.eclipse.wst.xsl.doc/docbook/samples/samples.xml
deleted file mode 100644
index 710cf1c..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/samples/samples.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter>
- <?dbhtml filename="samples/samples.html" ?>
- <title>XSL Tooling Samples</title>
- <para>This section contains several samples and references to sample projects.</para>
- <section id="EclipseHelp">
- <?dbhtml filename="samples/eclipsehelp.html" ?>
- <title>Eclipse Help</title>
- <para></para>
- <section id="DocbookEclipseHelp">
- <?dbhtml filename="samples/docbookhelp.html" ?>
- <title>Creating Eclipse Help with Docbook and XSL Tools</title>
- <para>
- This tutorial assumes that you have knowledge of Docbook, ANT, and the
- ability to setup ANT build scripts.
- </para>
- <para>
- To Do write up the rest of the tutorial.
- </para>
- </section>
- <section id="DITAEclipseHelp">
- <?dbhtml filename="samples/ditahelp.html" ?>
- <title>Creating Eclipse Help with DITA and XSL Tools</title>
- <para>
- This tutorial assumes that you have knowledge of DITA, ANT, and the
- ability to setup ANT build scripts.
- </para>
- <para>
- To Do write up the rest of the tutorial.
- </para>
- </section>
- </section>
-</chapter> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/docbook/xslhelp.dbk b/docs/org.eclipse.wst.xsl.doc/docbook/xslhelp.dbk
deleted file mode 100644
index 0066ce9..0000000
--- a/docs/org.eclipse.wst.xsl.doc/docbook/xslhelp.dbk
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<book id="XSLUser" xmlns:xi="http://www.w3.org/2001/XInclude">
- <bookinfo>
- <title>XSL Tools User Documentation</title>
- <author>
- <firstname>David</firstname>
- <surname>Carver</surname>
- </author>
- <copyright>
- <year>2008</year>
- <holder>Eclipse Foundation and others</holder>
- </copyright>
- </bookinfo>
- <xi:include href="concepts/gettingstarted.xml"/>
- <xi:include href="concepts/concepts.xml"/>
- <xi:include href="editor/editor.xml"/>
- <xi:include href="launching/launching.xml"/>
- <xi:include href="preferences/preferences.xml"/>
- <xi:include href="general/general.xml"/>
- <xi:include href="samples/samples.xml"/>
- <xi:include href="legal.xml"/>
-</book>
-
diff --git a/docs/org.eclipse.wst.xsl.doc/html/about.html b/docs/org.eclipse.wst.xsl.doc/html/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.doc/html/book.css b/docs/org.eclipse.wst.xsl.doc/html/book.css
deleted file mode 100644
index e30f5af..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/book.css
+++ /dev/null
@@ -1,214 +0,0 @@
-p.Code {
- display: block;
- text-align: left;
- text-indent: 0.00pt;
- margin-top: 0.000000pt;
- margin-bottom: 0.000000pt;
- margin-right: 0.000000pt;
- margin-left: 15pt;
- font-weight: normal;
- font-style: normal;
- color: #4444CC;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
- font-family: "Courier New", Courier, monospace;
-}
-
-H6.CaptionFigColumn {
- display: block;
- text-align: left;
- text-indent: 0.000000pt;
- margin-top: 3.000000pt;
- margin-bottom: 11.000000pt;
- margin-right: 0.000000pt;
- margin-left: 0.000000pt;
- font-size: 75%;
- font-weight: bold;
- font-style: Italic;
- color: #000000;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
-}
-
-p.Note {
- display: block;
- text-align: left;
- text-indent: 0pt;
- margin-top: 19.500000pt;
- margin-bottom: 19.500000pt;
- margin-right: 0.000000pt;
- margin-left: 30pt;
- font-size: 110%;
- font-weight: normal;
- font-style: Italic;
- color: #000000;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
-}
-
-EM.UILabel {
- font-weight: Bold;
- font-style: normal;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
-}
-
-EM.CodeName {
- font-weight: Bold;
- font-style: normal;
- text-decoration: none;
- vertical-align: baseline;
- text-transform: none;
- font-family: "Courier New", Courier, monospace;
-}
-
-UL.NavList {
- margin-left: 1.5em;
- padding-left: 0px;
- list-style-type: none;
-}
-
-body,html {
- border: 0px
-}
-
-/* following font face declarations need to be removed for DBCS */
-body,h1,h2,h3,h4,h5,h6,p,table,td,caption,th,ul,ol,dl,li,dd,dt {
- font-family: Arial, Helvetica, sans-serif;
- color: #000000
-}
-
-pre,code {
- font-family: "Courier New", Courier, monospace;
-}
-
-/* end font face declarations */
-@media print {
- html {
- font-size: 12pt
- }
-}
-
-body {
- font-size: 83%;
- background: #FFFFFF;
- margin-bottom: 1em
-}
-
-h1 {
- font-size: 180%;
- margin-top: 5px;
- margin-bottom: 1px
-}
-
-h2 {
- font-size: 140%;
- margin-top: 25px;
- margin-bottom: 3px
-}
-
-h3 {
- font-size: 110%;
- margin-top: 20px;
- margin-bottom: 3px
-}
-
-h4 {
- font-size: 100%;
- margin-top: 20px;
- margin-bottom: 3px;
- font-style: italic
-}
-
-p {
- margin-top: 10px;
- margin-bottom: 10px
-}
-
-pre {
- font-size: 93%;
- margin-left: 6;
- color: #4444CC
-}
-
-code {
- font-size: 93%;
-}
-
-table {
- font-size: 100%
-} /* needed for quirks mode */
-a:link {
- color: #0000FF
-}
-
-a:hover {
- color: #000080
-}
-
-a:visited {
- text-decoration: underline
-}
-
-ul {
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-li {
- margin-top: 5px;
- margin-bottom: 5px;
-}
-
-li p {
- margin-top: 5px;
- margin-bottom: 5px;
-}
-
-ol {
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-dl {
- margin-top: 10px;
- margin-bottom: 10px;
-}
-
-dt {
- margin-top: 5px;
- margin-bottom: 5px;
- font-weight: bold;
-}
-
-dd {
- margin-top: 5px;
- margin-bottom: 5px;
-}
-
-strong {
- font-weight: bold
-}
-
-em {
- font-style: italic
-}
-
-var {
- font-style: italic
-}
-
-div.revision {
- border-left-style: solid;
- border-left-width: thin;
- border-left-color: #7B68EE;
- padding-left: 5
-}
-
-th {
- font-weight: bold
-} \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/concepts/concepts.html b/docs/org.eclipse.wst.xsl.doc/html/concepts/concepts.html
deleted file mode 100644
index 9fc2e53..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/concepts/concepts.html
+++ /dev/null
@@ -1,418 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Concepts</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../introduction/gettingstarted.html" title="Getting Started"><link rel="next" href="resources.html" title="Resources"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N10019"></a>XSLT Concepts</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="concepts.html#ResucingXSLT">Rescuing XSLT From Niche Status</a></span></dt><dd><dl><dt><span class="section"><a href="concepts.html#N10034">The Problem</a></span></dt><dt><span class="section"><a href="concepts.html#N1005A">The Solution</a></span></dt><dt><span class="section"><a href="concepts.html#N10081">Queries</a></span></dt><dt><span class="section"><a href="concepts.html#N100AF">Conclusion</a></span></dt></dl></dd><dt><span class="section"><a href="resources.html">Resources</a></span></dt></dl></div><p>
-
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ResucingXSLT"></a>Rescuing XSLT From Niche Status</h2></div><div><h3 class="subtitle">A Gentle Introduction to XSLT through HTML Templates</h3></div></div></div><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
- <span class="emphasis"><em>
- Editors Note: This originally appeared at
- <a class="ulink" href="http://www.xfront.com/rescuing-xslt.html" target="_top">XFront.com</a>
- , and is republished here with permission. The article is written by David Jacobs.
- </em></span>
- </p></div><div class="abstract"><p class="title"><b>Abstract</b></p><p>
- XSLT is one of the most exciting technologies to come out of the XML family. Unfortunately, its incredible
- power and associated complexity can be overwhelming to new users preventing many from experimenting with it or
- causing them to quickly give up in disgust. In fact, unless the method of teaching and the common style of use
- for XSLT is radically changed to make it more accessible, XSLT will be relegated to niche status like SGML and
- other powerful technologies.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10034"></a>The Problem</h3></div></div></div><p>
- The 1990&rsquo;s saw an incredible proliferation of new web related languages. Looking back we can see what
- features separated the winners and losers. The biggest key has been having a very low barrier to entry. Many
- languages accomplished this by following the following rules.
- </p><div class="itemizedlist"><ul type="disc"><li><p>
- Leverage as much existing knowledge as possible.
- </p></li><li><p>
- Make it easy to get started with "hello world" style example.
- </p></li><li><p>
- The most common and useful language constructs should be easily conveyed with a few small examples.
- </p></li><li><p>
- Complex programming constructs should only be required when what is trying to be accomplished is
- complex.
- </p></li></ul></div><p>
- From these rules we can see why embedded web scripting languages like Active Server Pages (ASPs), Cold
- Fusion, PHP and
- Java Server Pages (JSPs) are so popular. They all leverage a user&rsquo;s knowledge of HTML. They also
- allow the
- minimum amount of scripting to be added to accomplish the dynamic feature a developer is looking for.
- This has
- allowed numerous web developers to start off with very small projects and then through continuos
- enhancement
- and learning, find themselves using the full power of a complex programming language. Furthermore,
- because of
- the very incremental nature of that learning the developer was never scared off.
- </p><p>
- HTML has also fostered the technique of learning by example. When a web author sees another site with a
- feature they
- like, they immediately bring up the source to see how it was implemented. In this way many web
- authors were
- able to learn complex HTML tricks with no formal training. While server-side scripts are not as
- easy to come
- by, there are still numerous sites that house thousands of example scripts for a blossoming
- developer to
- examine.
- </p><p>
- Traditionally XSLT has been presented as a programming language for translating XML documents into another
- format, often for presentation. This frames the problem, such that for each element, the programmer has the
- task of figuring out how that element needs to be translated. As long as there are one to one mappings or one
- to zero mappings this is straightforward. For example, if every occurrence of a
- &lt;name&gt;
- element is going to
- become an HTML header. It is a simple matter to write a matching template to accomplish
- this.
- </p><a name="pl_NameTemplate"></a><pre class="programlisting">
-
-&lt;xsl:template match="name"&gt;
- &lt;h1&gt;&lt;xsl:apply-templates/&gt;&lt;/h1&gt;
-&lt;/xsl:template&gt;
-
- </pre><p>
- However when adding one to many mappings (i.e. when an element&rsquo;s contents will appear multiple times in the
- target document with different formatting), keeping track of all the relationships quickly grows in complexity
- and becomes confusing. For example, if, after writing the previous template, the programmer discovers that the
- name also needs to be placed in the title the programmer might add the template
- </p><a name="pl_valueOf"></a><pre class="programlisting">
-
-&lt;xsl:template match="/"&gt;
- &lt;title&gt;&lt;xsl:value-of select="name"/&gt;&lt;/title&gt;
-&lt;/xsl:template&gt;
-
- </pre><p>
- Notice the use of the &lt;xsl:value-of&gt;
- function in this template because using &lt;apply-templates select="name"&gt;
- would have caused a triggering of the previous template adding undesired header tags to my content. This means
- before adding a translation to an element the programmer must first be aware of all the existing translations
- (ugh!). Of course if the programmer became aware of the
- &lt;title&gt;
- requirement first, the contents of these templates could have been reversed. One can quickly see how
- the
- arbitrary decisions of development and discovery of requirements can lead to a set of templates that are
- no
- longer intuitive.
- </p><p>
- As a programmer with more than 20 years experience with over a dozen languages, XSLT templates and default
- rules were
- not obvious to me. Over the past year or two I had looked at numerous examples trying to discern how
- they
- worked. While I could understand the general gist of what was occurring, there was too much implied
- behavior
- that I did not pick up. It was not until going through formal XSLT training that I fully understood how
- XSLT
- worked. Clearly, if the barrier to entry is that high for an experienced programmer, the average web
- developer
- was not going to find this technology very useful.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1005A"></a>The Solution</h3></div></div></div><p>
- So how do we solve this problem and help deliver XSLT&rsquo;s promise to the masses? For XSLT to be successful it
- must be
- presented and used in a way that adopts those attributes discussed earlier (reuse of knowledge, fast
- start, and
- gradualism). This tutorial will attempt to ease XSLT&rsquo;s introduction by focusing on these attributes.
- First, it
- is only going to focus on the generation of HTML documents and users who are familiar with HTML. If
- your goal
- is to immediately start transforming one XML document into another XML document this tutorial is not
- for you.
- </p><p>
- The second is to reframe the problem so the XSLT solutions programmers write are more naturally extensible
- and
- intuitive. Instead of trying to translate an XML source document into an HTML presentation document, the
- programmer should see the XML document as a complex data structure with XSLT providing powerful tools for
- extracting that information into their HTML documents. This allows us to leverage the experience most people
- have with using an HTML templating language (e.g. ASP, PHP, JSP, Cold Fusion, Web Macro, etc). These templating
- languages are all based on the basic premise that HTML comes first and all enhancements are then embedded in
- special tags.
- </p><p>
- With some caveats, this tutorial will show how XSLT can be used in this same way. The benefit of this
- approach is it
- allows the quick use of many of XSLT&rsquo;s powerful functions while letting you learn its more
- esoteric
- capabilities as the need arises. In addition the resulting XSLT files are more intuitive and
- maintainable.
- </p><pre class="programlisting">
-<span class="bold"><strong>&lt;xsl:value-of&gt; and {}</strong></span>
- </pre><p>
- On to an example. Here is a very simple welcome page.
- </p><pre class="programlisting">
-
-&lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- Welcome!
- &lt;/body&gt;
-&lt;/html&gt;
-
- </pre><p>
- And here is an XML document with information on member.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- There are a couple of things that need to be pointed out right away. First this is a well-formed XML
- document. This mean all HTML used must conform to the XHTML specification (i.e. all tags must be closed and
- lowercase).
- </p><p>
- The lines before the &lt;html&gt;
- tag and after the &lt;/html&gt;
- tag will be seen in all the examples. For now, other than realizing that they are required in any style sheet
- created, just go ahead and forget they are there. You don&rsquo;t NEED to understand them right now to get useful
- work out of XSLT.
- </p><p>
- Notice the HTML is identical to the original except for the introduction of a new tag
- &lt;xsl:value-of&gt;.
- This tag is the key to extracting any piece of information out an XML document. It has a "select"
- attribute that
- provides the path through the XML document to the information we seek. In this case
- &lt;member&gt;
- is the outer most tag and
- &lt;name&gt;
- is the tag underneath it. Slash characters ("/") are used to designate parent/child relationships
- between tags.
- If you are used to navigating around a Unix file system this should feel familiar.
- </p><p>
- Now let&rsquo;s consider further customizing this page by making the welcome in the person&rsquo;s favorite color using the
- &lt;font&gt;
- tag with the "bgcolor" attribute. Because
- &lt;xsl:value-of&gt;
- is an XML tag it is not valid to insert it in an HTML attribute value. So another mechanism
- is needed to insert
- information from our XML file there.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/font&gt;
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- Notice the use of the curly brackets ("{}"). When used within an attribute assignment "{path}" has the exact
- same effect as
- &lt;xsl:value-of select="path" /&gt;
- used outside of attribute assignments.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N10081"></a>Queries</h3></div></div></div><p>
- Not all paths lead to a single node. For example, what if we wanted to put a person&rsquo;s home phone number on the
- page? Notice that the XML document contains two phone entries. If we simply used
- &lt;xsl:value-of select="member/phone" /&gt;
- both entries would be returned. We obviously need a way to be more specific. Luckily, XSLT allows the full
- power of XPath to describe the value(s) of interest. XPath allows conditions on any attribute or tag to be
- placed in square brackets ("[]") which are then used to restrict the values returned.
- </p><p>
- So to retrieve the home phone number we would use the path "member/phone[@type=&rsquo;home&rsquo;]". Notice the "@"
- symbol in front
- of "type". The "@" symbol signifies that we are referring to an attribute. So our new HTML
- template looks like:
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;br/&gt;
- Your home phone number is:
- <span class="bold"><strong>&lt;xsl:value-of select="member/phone[@type=&rsquo;home&rsquo;]"/&gt;</strong></span>
- &lt;/font&gt;
- &lt;/body
- &lt;/html
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1008F"></a>xsl:for-each</h4></div></div></div><p>
- The previous example brings up another issue. What if this
- &lt;member&gt;
- entry had numerous phone numbers and we wanted to print them all on the web page. We could simply use
- &lt;xsl:value-of select="member/phone" /&gt;
- but this would not enable us to format the phone number into a nice list that describes the type of each
- number.
- </p><p>
- To accomplish this requires the introduction of the
- &lt;xsl:for-each&gt;
- tag which allows us to loop through each of the elements that match a given path. So to
- create a table that
- contains the phone number type in the first column and the phone number in the second
- column, the following
- stylesheet could be used.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/font&gt;
- &lt;table&gt;
- &lt;tr&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Number&lt;/th&gt;&lt;/tr&gt;
- &lt;xsl:for-each select="member/phone"&gt;
- &lt;tr&gt;
- &lt;td&gt;&lt;xsl:value-of select="@type"/&gt;&lt;/td&gt;
- &lt;td&gt;&lt;xsl:value-of select="."/&gt;&lt;/td&gt;
- &lt;/tr&gt;
- &lt;/xsl:for-each&gt;
- &lt;/table&gt;
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- This example brings up a number of issues. First, while in the loop, all
- &lt;xsl:value-of /&gt;
- accesses are relative to the current element being iterated over (in this case
- &lt;phone&gt;).
- Notice the use of the period ("."), which like in a Unix file system means the current element.
- So in this
- case the period (".") refers to each phone element as the loop iterates. Also like in a file
- system you can
- address a parent element using a double period ("..") and can access any element in the
- document by starting
- over at the root element using a slash ("/").
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N1009B"></a>xsl:if</h4></div></div></div><p>
- As a last enhancement to our page let&rsquo;s add a special offer to "platinum" level members. To do this requires
- the use of a new tag
- &lt;xsl:if&gt;
- which allows us to insert content based on a condition of the data in the XML document.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/font&gt;
- &lt;xsl:if test="member[@level='platinum']"&gt;
- Our special offer to platinum members today is something great
- &lt;/xsl:if&gt;
- &lt;table&gt;
- &lt;tr&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Number&lt;/th&gt;&lt;/tr&gt;
- &lt;xsl:for-each select="member/phone"&gt;
- &lt;tr&gt;
- &lt;td&gt;&lt;xsl:value-of select="@type"/&gt;&lt;/td&gt;
- &lt;td&gt;&lt;xsl:value-of select="."/&gt;&lt;/td&gt;
- &lt;/tr&gt;
- &lt;/xsl:for-each&gt;
- &lt;/table&gt;
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- Within the "test" attribute the full array of Boolean and relative operators are available. The only caveat
- is that since this is an XML document less than and greater than ("&lt;",
- "&gt;") signs must be escaped as "&amp;lt;" and "&amp;gt;".
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="N100A5"></a>xsl:choose</h4></div></div></div><p>
- One nuance of the
- &lt;xsl:if&gt;
- tag that is not always obvious at first glance is the lack of an "else" statement. This means to have an
- else statement requires two ifs. The first one saying "if condition" and the second one saying &ldquo;if not
- condition&rdquo;. This scheme quickly becomes unworkable with embedded if then else logic. Luckily XSLT
- supports an
- additional test operator called
- &lt;xsl:choose&gt;
- which works like a switch/case statement.
- </p><pre class="programlisting">
-
-&lt;?xml version="1.0"?&gt;
-&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"&gt;
- &lt;xsl:template match="/"&gt;
- &lt;html&gt;
- &lt;head&gt;
- &lt;title&gt;Welcome&lt;/title&gt;
- &lt;/head&gt;
- &lt;body&gt;
- &lt;font bgcolor="{member/favoriteColor}"&gt;
- Welcome &lt;xsl:value-of select="member/name"/&gt;!
- &lt;/font&gt;
- &lt;xsl:choose&gt;
- &lt;xsl:when test="member[@level='platinum']"&gt;
- Our special offer to platinum members today is something great
- &lt;/xsl:when&gt;
- &lt;xsl:otherwise&gt;
- Become a platinum member today!
- &lt;/xsl:otherwise&gt;
- &lt;/xsl:choose&gt;
- &lt;table&gt;
- &lt;tr&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Number&lt;/th&gt;&lt;/tr&gt;
- &lt;xsl:for-each select="member/phone"&gt;
- &lt;tr&gt;
- &lt;td&gt;&lt;xsl:value-of select="@type"/&gt;&lt;/td&gt;
- &lt;td&gt;&lt;xsl:value-of select="."/&gt;&lt;/td&gt;
- &lt;/tr&gt;
- &lt;/xsl:for-each&gt;
- &lt;/table&gt;
- &lt;/body&gt;
- &lt;/html&gt;
- &lt;/xsl:template&gt;
-&lt;/xsl:stylesheet&gt;
-
- </pre><p>
- The &ldquo;test&rdquo; attribute has the same capabilities/ constraints as the &ldquo;test&rdquo; attribute in the
- &lt;xsl:if&gt;
- tag. Multiple
- &lt;xsl:when&gt;
- blocks are allowed. As soon as one &ldquo;when test&rdquo; is mached, it will not evaluate any further &ldquo;xsl:when
- tests&rdquo;
- in the
- &lt;xsl:choose&gt;
- block.
- </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N100AF"></a>Conclusion</h3></div></div></div><p>
- With just these few commands (an admittedly small subset of XSLT) and a strong background in HTML (DHTML and
- JavaScript
- included), I believe web developers could meet the majority of their presentation needs. Obviously
- there will
- be cases where greater flexibility is required, but the advantage of this technique is that only
- then, does the
- developer need to learn those constructs.
- </p><p>
- As a further benefit, this technique minimized the interdependence of one XLST construct on another. Local
- changes stay
- local thereby reducing the brittleness of solutions. The developer also no longer has to remember
- and account
- for XSLT&rsquo;s default behaviors.
- </p><p>
- I hope from these few examples, I have opened a few eyes to the power of XSLT and how a small change in how
- XSLT is framed can make a huge difference in its understandability and accessibility to web developers. If
- nothing else, I hope to encourage some good discussions.
- </p></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/concepts/resources.html b/docs/org.eclipse.wst.xsl.doc/html/concepts/resources.html
deleted file mode 100644
index 2e83f04..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/concepts/resources.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Resources</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="concepts.html" title="XSLT Concepts"><link rel="prev" href="concepts.html" title="XSLT Concepts"><link rel="next" href="../editor/xsleditor.html" title="XSL Editing"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="concepts_Resources"></a>Resources</h2></div></div></div><div class="itemizedlist"><ul type="disc"><li><p>
- <a class="ulink" href="http://www.w3.org/TR/xslt" target="_top">XSLT 1.0 Specification</a> - The official W3C XSLT 1.0 Specification.
- </p></li><li><p>
- <a class="ulink" href="http://www.dpawson.co.uk/xsl/index.html" target="_top">XSLT FAQ</a> - maintained by Dave Pawson.
- </p></li><li><p><a class="ulink" href="http://www.xfront.com/rescuing-xslt.html" target="_top">Rescuing XSLT from Niche Status</a> - by David Jacobs.</p></li><li><p><a class="ulink" href="http://www.xml.com/pub/a/2003/11/26/learnXSLT.html" target="_top">Five XSLT Basics</a> - by Michael Fitzgerald author of Learning XSLT.</p></li><li><p><a class="ulink" href="http://www.xfront.com/files/tutorials.html" target="_top">XFront Tutorials</a> - provides several tutorials include XSLT 1.0.</p></li><li><p><a class="ulink" href="http://www.cafeconleche.org/books/bible2/chapters/ch17.html" target="_top">XSL Transformations</a> - Chapter 17 of the XML Bible 2nd Edition.</p></li></ul></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor.html
deleted file mode 100644
index 1361f9b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Editing</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../concepts/resources.html" title="Resources"><link rel="next" href="xsleditor_contentassist.html" title="Content Assist"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N100E4"></a>XSL Editing</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="xsleditor.html#Validation">Validation</a></span></dt><dt><span class="section"><a href="xsleditor_contentassist.html">Content Assist</a></span></dt><dd><dl><dt><span class="section"><a href="xsleditor_contentassist.html#ed_XSLProposals">XSLT Element Proposals</a></span></dt><dt><span class="section"><a href="xsleditor_contentassist.html#SelectTest">Select, Test, and Match Attributes </a></span></dt><dt><span class="section"><a href="xsleditor_contentassist.html#ExcludeResultPrefixesContentAssist">Exclude-Result-Prefixes</a></span></dt><dt><span class="section"><a href="xsleditor_contentassist.html#ed_ModeAssist">Mode attribute assistance</a></span></dt><dt><span class="section"><a href="xsleditor_contentassist.html#ed_CallTemplateAssist">Call-Template Assistance</a></span></dt><dt><span class="section"><a href="xsleditor_contentassist.html#ed_href">
- Include and Import
- href
- Assistance
- </a></span></dt></dl></dd><dt><span class="section"><a href="xsleditor_templates.html">Templates</a></span></dt><dd><dl><dt><span class="section"><a href="xsleditor_templates.html#N101B9">XPath Templates</a></span></dt></dl></dd><dt><span class="section"><a href="xsleditor_markers.html">XSLT Markers and Annotations</a></span></dt><dd><dl><dt><span class="section"><a href="xsleditor_markers.html#xsltOverRide">Template Over Ride</a></span></dt></dl></dd><dt><span class="section"><a href="xsleditor_debugging.html">XSL Debugging</a></span></dt></dl></div><p>
- The XSL Tools plugins extend the ability of the Web Standard
- Tools XML
- editor. This extension adds specific
- support and
- functionality for
- working with and debugging XSL files.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="Validation"></a>Validation</h2></div></div></div><p>
- The XSL extensions for the eclipse XML editor include as you
- type
- validation for XSL specific features. This
- includes not
- only the
- ability to syntax check the grammar, but to also to validate
- specific
- XSL specification
- rules. Grammar validation will
- be triggered based on
- the version attribute for the style sheet that is
- being
- edited. Valid
- version numbers are 1.0, and 2.0.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist.html
deleted file mode 100644
index 2d141ab..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_contentassist.html
+++ /dev/null
@@ -1,141 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Content Assist</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor.html" title="XSL Editing"><link rel="next" href="xsleditor_templates.html" title="Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ContentAssist"></a>Content Assist</h2></div></div></div><p>
- XSL Tools extends the existing content assistance support of the
- XML Editor to provide content assistance for
- several XSL namespace
- attributes. The content assistance provided covers the available XPath
- statements as
- defined in the
- <span class="emphasis"><em>XPath Templates</em></span>
- preference page.
- </p><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">XPath 2.0 Support</h3><p>
- Currently XPath 2.0 is not supported directly. However, a user
- can add this support if they need it by
- adding the missing XPath
- functions to the XPath Templates.
- </p></div><p>
- To initiate content assistance press CTRL + SPACE or CMD + SPACE. This will bring up
- a dialog that will
- contain any proposals that are available. If no proposals are available
- an message will be displayed in the
- status bar.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_XSLProposals"></a>XSLT Element Proposals</h3></div></div></div><p>
- Since XSLT is a templating language, it's elements must be able to be added
- to the various markup it
- includes. The XSLT Editor will provide content assistance
- and proposals for XSLT elements that are available
- to be used within non-XSLT namespaced
- elements. This is depicted in
- <a class="xref" href="xsleditor_contentassist.html#fig_XSLProposals" title="Figure&nbsp;1.&nbsp;XSLT Proposals within Non-XSLT elements">Figure&nbsp;1, &ldquo;XSLT Proposals within Non-XSLT elements&rdquo;</a>
- .
- </p><div class="figure"><a name="fig_XSLProposals"></a><p class="title"><b>Figure&nbsp;1.&nbsp;XSLT Proposals within Non-XSLT elements</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/xslproposals.png" align="middle" alt="XSLT Proposals within Non-XSLT elements"></div></div></div><br class="figure-break"></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="SelectTest"></a>Select, Test, and Match Attributes </h3></div></div></div><p>
- Where ever an xsl element supports a
- <span class="emphasis"><em>select</em></span>
- ,
- <span class="emphasis"><em>test</em></span>
- , or
- <span class="emphasis"><em>match</em></span>
- attribute, content assistance is available. This includes support for
- the following:
- </p><div class="itemizedlist"><p class="title"><b>Select, Match and Test Assistance</b></p><ul type="disc"><li><p>
- <span class="emphasis"><em>Variables</em></span>
- - both local and global variables are supported within the current
- stylesheet. Any local or global
- variable will be added to the list
- and the name is prefixed with a dollar sign $ symbol.
- </p></li><li><p>
- <span class="emphasis"><em>XPath 1.0</em></span>
- - XPath 1.0 is supported through the use of templates. All of the
- XPath 1.0 and XSLT xpath extension
- functions are available, as well
- as
- <span class="emphasis"><em>axis</em></span>
- operations. Currently XPath 2.0 is not supported directly, but will
- be added in the future.
- </p></li></ul></div><p>
- Content assistance for the select and test attributes is
- intelligent enough to know that it is within an
- XPath expression, and will try to determine and provide content assistance based on the
- current cursor
- position. If a word has been partially typed it will
- filter the available assistance.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ExcludeResultPrefixesContentAssist"></a>Exclude-Result-Prefixes</h3></div></div></div><p>
- The
- <span class="emphasis"><em>exclude-result-prefixes</em></span>
- attribute in both XSLT 1.0 and XSLT 2.0 allows for the exclusion of
- certain namespace
- declarations in the
- output document. The content
- assistance populates a list of available namespaces that have been
- defined in
- the
- stylseheet and provides them as proposals as shown in
- <a class="xref" href="xsleditor_contentassist.html#fig_ExcludeResultPrefixesContentAssist1" title="Figure&nbsp;2.&nbsp;Exclude-result-prefixes Content Assistance">Figure&nbsp;2, &ldquo;Exclude-result-prefixes Content
- Assistance&rdquo;</a>
- .
- </p><div class="figure"><a name="fig_ExcludeResultPrefixesContentAssist1"></a><p class="title"><b>Figure&nbsp;2.&nbsp;Exclude-result-prefixes Content
- Assistance</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/ExcludeContentAssist1.png" align="middle" alt="Exclude-result-prefixes Content Assistance"></div></div></div><br class="figure-break"><p>
- If the attribute has no values defined, then the
- <span class="emphasis"><em>#all</em></span>
- value will be available in the list. If #all
- is already in the
- attributes value, then no content assistance
- will be available.
- </p><div class="figure"><a name="fig_ExcludeResultPrefixesContentAssist2"></a><p class="title"><b>Figure&nbsp;3.&nbsp;Filtered exclude-result-prefixes proposals</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/ExcludeContentAssist2.png" align="middle" alt="Filtered exclude-result-prefixes proposals"></div></div></div><br class="figure-break"><p>
- Content assistance is intelligent enough to know when a
- namespace prefix is already in the list of
- excluded namespaces. In
- this
- case it will not show the namespace in the proposal list.
- </p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Why isn't the XSL Namespace prefix in the proposals?
- </h3><p>
- Currently the xsl prefix or any prefix that uses the XSL
- namespace is excluded from the list. This may
- be changed at
- a future
- date. This will depend on user feedback.
- </p></div></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_ModeAssist"></a>Mode attribute assistance</h3></div></div></div><p>
- Content assistance is available for those xsl elements that support the mode attribute. For XSLT 1.0
- these
- elements are
- <span class="emphasis"><em>template</em></span>
- ,
- <span class="emphasis"><em>apply-templates</em></span>
- , and
- <span class="emphasis"><em>apply-imports</em></span>
- .
- </p><div class="figure"><a name="fig_ModeAssistance"></a><p class="title"><b>Figure&nbsp;4.&nbsp;Mode attribute assistance</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/modeAssistance.png" align="middle" alt="Mode attribute assistance"></div></div></div><br class="figure-break"><p>
- The proposal list is populated by those modes defined on templates in the current stylesheet, and any
- of the
- templates that are
- <span class="emphasis"><em>included</em></span>
- or
- <span class="emphasis"><em>imported</em></span>
- .
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_CallTemplateAssist"></a>Call-Template Assistance</h3></div></div></div><p>
- Any
- <span class="emphasis"><em>call-template</em></span>
- xslt element has content assistance available for
- it's name attribute. This will provide a list of possible
- XSLT named templates that can
- be called from the current stylesheet. This takes into effect all included and
- imported
- stylesheets as well as those defined in the current stylesheet.
- </p><div class="figure"><a name="fig_CallTemplateAssist"></a><p class="title"><b>Figure&nbsp;5.&nbsp;Call-Template Assistance</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/calltemplate.png" align="middle" alt="Call-Template Assistance"></div></div></div><br class="figure-break"></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="ed_href"></a>
- Include and Import
- <span class="emphasis"><em>href</em></span>
- Assistance
- </h3></div></div></div><p>
- XSLT stylesheets have the ability to import and include other stylesheets. This allows for
- a modular
- structure for the templates to be created. It also allows for easier maintenance.
- However, if one is working
- with a large project like the DocBook Projects stylesheets it can
- be difficult to remember the names and
- locations of all the stylesheets.
- </p><p>
- To this end, the XSLT editor provides content assistance for the
- <span class="emphasis"><em>href</em></span>
- attribute. The scope of the assistance is restricted to the project that the current
- stylesheet that is being
- editted resides.
- </p><div class="figure"><a name="fig_HREFAssistance"></a><p class="title"><b>Figure&nbsp;6.&nbsp;Include/Import href Assistance</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/hrefAssistance.png" align="middle" alt="Include/Import href Assistance"></div></div></div><br class="figure-break"></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_debugging.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_debugging.html
deleted file mode 100644
index d436ee2..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_debugging.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Debugging</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor_markers.html" title="XSLT Markers and Annotations"><link rel="next" href="../launching/launching.html" title="XSL Launching and Debugging"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLEditorDebugging"></a>XSL Debugging</h2></div></div></div><p>
- The XSL Editor supports the ability to specify break points within an XSL File. If the file is included or
- imported and the break point is encountered during a transformation scenario it will be respected. A break
- point may be set at any valid XSL element or other xml element within the XSLT stylesheet. See the Launching
- and Debugging section for more information on debugging XSLT stylesheets.
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_markers.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_markers.html
deleted file mode 100644
index cc8d3e4..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_markers.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Markers and Annotations</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor_templates.html" title="Templates"><link rel="next" href="xsleditor_debugging.html" title="XSL Debugging"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="xsltMarkers"></a>XSLT Markers and Annotations</h2></div></div></div><p>
- The XSL editor supports the ability to annotate or provide markers. These annotations provide additional
- information about the templates and XSLT elements in the stylesheet.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="xsltOverRide"></a>Template Over Ride</h3></div></div></div><p>
- The XSLT editor will mark templates that have overriden an imported template of the same name.
- </p><div class="figure"><a name="fig_OverRide1"></a><p class="title"><b>Figure&nbsp;7.&nbsp;Overriden Template</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/override1.png" align="middle" alt="Overriden Template"></div></div></div><br class="figure-break"><p>
- In
- <a class="xref" href="xsleditor_markers.html#fig_OverRide1" title="Figure&nbsp;7.&nbsp;Overriden Template">Figure&nbsp;7, &ldquo;Overriden Template&rdquo;</a>
- , the template "TempB" overrides an imported template. By
- moving the mouse pointer over the triangle icon in
- the rule bar, information about which file
- the original template resides.
- </p><div class="figure"><a name="fig_OverRide2"></a><p class="title"><b>Figure&nbsp;8.&nbsp;Overriden Template Information</b></p><div class="figure-contents"><div class="mediaobject" align="center"><img src="../images/editor/override2.png" align="middle" alt="Overriden Template Information"></div></div></div><br class="figure-break"></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_templates.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_templates.html
deleted file mode 100644
index a5003b5..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_templates.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Templates</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xsleditor.html" title="XSL Editing"><link rel="prev" href="xsleditor_contentassist.html" title="Content Assist"><link rel="next" href="xsleditor_markers.html" title="XSLT Markers and Annotations"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLEditorTemplates"></a>Templates</h2></div></div></div><p>
- Specific XSL code completion templates can be added to the XML
- editor's Templates. This allows a user to
- define specific markup
- completion templates that are commonly used. In addition, the XPath
- Templates page can be
- enhanced to allow commonly used XPath templates
- to be included, in addition to those installed by default.
- This
- allows a user the ability to add custom extension functions for XSLT that
- may be processor specific. Adopters
- may also use the standard template
- extension point to add additional functionality.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N101B9"></a>XPath Templates</h3></div></div></div><p>
- The XSL XPath Templates preference page allows for a user or
- adopter to add specific xpath extensions so
- that
- they show up in the
- content assistance. See the XPath Templates documentation for more
- information.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_validation.html b/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_validation.html
deleted file mode 100644
index d6df8e3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/editor/xsleditor_validation.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Content Assist</title><meta content="DocBook XSL Stylesheets V1.73.2" name="generator"><link rel="start" href="../index.html" title="XSL Tooling User Documentation"><link rel="up" href="xsleditor.html" title="Chapter&nbsp;2.&nbsp;XSL Editing"><link rel="prev" href="xsleditor.html" title="Chapter&nbsp;2.&nbsp;XSL Editing"><link rel="next" href="xsleditor_templates.html" title="Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="N10056"></a>Content Assist</h2></div></div></div><p>
- XSL Tooling extends the existing content assistance support of the XML
- Editor to provide content assistance for several XSL namespace attributes.
- The content assistance provided covers the available XPath statements as
- defined in the <span class="emphasis"><em>XPath Templates</em></span> preference page.
- </p><p>
- The elements and attributes that have content assist available are as follows:
- </p><div class="itemizedlist"><ul type="disc"><li><p>
- <span class="bold"><strong>template</strong></span> - The template element has several content assist
- options available for the <span class="emphasis"><em>match</em></span>, <span class="emphasis"><em>name</em></span>, and
- <span class="emphasis"><em>mode</em></span> attributes.
- </p><p>
- Add image showing template completion.
- </p></li><li><p>
- <span class="bold"><strong>variable</strong></span> and <span class="bold"><strong>param</strong></span> - The variable and param elements have content assist
- for xpath, axis, parmaters and variables that have already been predefined when using the optional
- <span class="emphasis"><em>select</em></span> attribute.
- </p><p>
- Add image showing variable completion.
- </p></li><li><p>
- <span class="bold"><strong>if</strong></span> and <span class="bold"><strong>when</strong></span> - The
- if and when elements have content assist for the <span class="emphasis"><em>test</em></span> attribute.
- This content assistance is available for all paramaters and variables that are in
- scope, as well as any available xpath or axis statement.
- </p><p>
- Add image showing test completion.
- </p></li><li><p>
- <span class="bold"><strong>apply-template</strong></span> - The apply template has content
- assistance for both the <span class="emphasis"><em>mode</em></span> and <span class="emphasis"><em>select</em></span>
- attributes.
- </p><p>
- Add image showing apply-template completion.
- </p></li></ul></div><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">XPath 2.0 Support</h3><p>
- Currently XPath 2.0 is not supported directly. However, a user can add this support if they need it by
- adding the missing XPath functions to the XPath Templates.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/general/general.html b/docs/org.eclipse.wst.xsl.doc/html/general/general.html
deleted file mode 100644
index b06368c..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/general/general.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>General</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../preferences/xpathtemplates.html" title="XPath Templates"><link rel="next" href="../samples/samples.html" title="XSL Tooling Samples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N102A7"></a>General</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="general.html#XInclude">XInclude</a></span></dt></dl></div><p>This section covers topics that don't have any other particular place to go.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XInclude"></a>XInclude</h2></div></div></div><p>
- XInclude allows a user to import or include other XML files into one xml file.
- It is used primarily with documentation file formats like Docbook and DITA. It
- allows for separating out large xml documents into more manageable chunks of information.
- </p><p>
- The XSL Tools project includes an ANT task that can be run with in eclipse, eclipse
- headless, and without eclipse at all. If running outside of eclipse, you will need
- to make sure that the jar file xinclude.jar in the org.eclipse.wst.xsl.core.jar file
- is made avaiable on your class path.
- </p><div class="mediaobject" align="center"><img src="../images/general/xinclude.png" align="middle"></div><p>
- The following parameters are available on the xsl.xinclude ANT task:
- </p><div class="itemizedlist"><ul type="disc"><li><p>
- <span class="bold"><strong>
- in
- </strong></span> - The full path to the input file that contains
- the file with the XIncludes. If the files that it includes have includes, then
- those will be brought in an expanded as well.
- </p></li><li><p>
- <span class="bold"><strong>out</strong></span> - The full path to the output file
- to be written with all includes expanded. This is typically used as the
- input to a stylesheet transformation process.
- </p></li></ul></div><div class="example"><a name="N102D2"></a><p class="title"><b>Example&nbsp;1.&nbsp;XInclude Example</b></p><div class="example-contents"><pre class="programlisting">
-&lt;target name="merge"&gt;
- &lt;xsl.xinclude in="${docbooksource}/xslhelp.dbk"
- out="${docbooksource}/xslhelpcombined.dbk"/&gt;
-&lt;/target&gt;
- </pre></div></div><br class="example-break"></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist1.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist1.png
deleted file mode 100644
index 2f0f2cb..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist1.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist2.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist2.png
deleted file mode 100644
index 2e53677..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/ExcludeContentAssist2.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/calltemplate.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/calltemplate.png
deleted file mode 100644
index 3a13f07..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/calltemplate.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/hrefAssistance.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/hrefAssistance.png
deleted file mode 100644
index 5f44986..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/hrefAssistance.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/modeAssistance.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/modeAssistance.png
deleted file mode 100644
index f5a9875..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/modeAssistance.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/override1.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/override1.png
deleted file mode 100644
index 88b878b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/override1.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/override2.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/override2.png
deleted file mode 100644
index cfc415c..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/override2.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/editor/xslproposals.png b/docs/org.eclipse.wst.xsl.doc/html/images/editor/xslproposals.png
deleted file mode 100644
index ffc127a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/editor/xslproposals.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/general/xinclude.png b/docs/org.eclipse.wst.xsl.doc/html/images/general/xinclude.png
deleted file mode 100644
index 50b9f73..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/general/xinclude.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/launchShortct.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/launchShortct.png
deleted file mode 100644
index 881813a..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/launchShortct.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/launching/resultView.png b/docs/org.eclipse.wst.xsl.doc/html/images/launching/resultView.png
deleted file mode 100644
index d6d1b91..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/launching/resultView.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/XPathTemplates.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/XPathTemplates.png
deleted file mode 100644
index 0f89304..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/XPathTemplates.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xm_template_xslnewfile.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xm_template_xslnewfile.png
deleted file mode 100644
index 7646a6d..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xm_template_xslnewfile.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_InstalledProcessors.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_InstalledProcessors.png
deleted file mode 100644
index 3295079..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_InstalledProcessors.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_outputproperties.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_outputproperties.png
deleted file mode 100644
index 4e00a42..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xsl_outputproperties.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslfeatures.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslfeatures.png
deleted file mode 100644
index 29dbec8..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslfeatures.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslpreferences.png b/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslpreferences.png
deleted file mode 100644
index dcb7187..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/images/preferences/xslpreferences.png
+++ /dev/null
Binary files differ
diff --git a/docs/org.eclipse.wst.xsl.doc/html/index.html b/docs/org.eclipse.wst.xsl.doc/html/index.html
deleted file mode 100644
index ef98c6f..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/index.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Tools User Documentation</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="index.html" title="XSL Tools User Documentation"><link rel="next" href="introduction/gettingstarted.html" title="Getting Started"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="XSLUser"></a>XSL Tools User Documentation</h1></div><div><div class="author"><h3 class="author"><span class="firstname">David</span> <span class="surname">Carver</span></h3></div></div><div><p class="copyright">Copyright &copy; 2008 Eclipse Foundation and others</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="introduction/gettingstarted.html">Getting Started</a></span></dt><dt><span class="chapter"><a href="concepts/concepts.html">XSLT Concepts</a></span></dt><dd><dl><dt><span class="section"><a href="concepts/concepts.html#ResucingXSLT">Rescuing XSLT From Niche Status</a></span></dt><dd><dl><dt><span class="section"><a href="concepts/concepts.html#N10034">The Problem</a></span></dt><dt><span class="section"><a href="concepts/concepts.html#N1005A">The Solution</a></span></dt><dt><span class="section"><a href="concepts/concepts.html#N10081">Queries</a></span></dt><dt><span class="section"><a href="concepts/concepts.html#N100AF">Conclusion</a></span></dt></dl></dd><dt><span class="section"><a href="concepts/resources.html">Resources</a></span></dt></dl></dd><dt><span class="chapter"><a href="editor/xsleditor.html">XSL Editing</a></span></dt><dd><dl><dt><span class="section"><a href="editor/xsleditor.html#Validation">Validation</a></span></dt><dt><span class="section"><a href="editor/xsleditor_contentassist.html">Content Assist</a></span></dt><dd><dl><dt><span class="section"><a href="editor/xsleditor_contentassist.html#ed_XSLProposals">XSLT Element Proposals</a></span></dt><dt><span class="section"><a href="editor/xsleditor_contentassist.html#SelectTest">Select, Test, and Match Attributes </a></span></dt><dt><span class="section"><a href="editor/xsleditor_contentassist.html#ExcludeResultPrefixesContentAssist">Exclude-Result-Prefixes</a></span></dt><dt><span class="section"><a href="editor/xsleditor_contentassist.html#ed_ModeAssist">Mode attribute assistance</a></span></dt><dt><span class="section"><a href="editor/xsleditor_contentassist.html#ed_CallTemplateAssist">Call-Template Assistance</a></span></dt><dt><span class="section"><a href="editor/xsleditor_contentassist.html#ed_href">
- Include and Import
- href
- Assistance
- </a></span></dt></dl></dd><dt><span class="section"><a href="editor/xsleditor_templates.html">Templates</a></span></dt><dd><dl><dt><span class="section"><a href="editor/xsleditor_templates.html#N101B9">XPath Templates</a></span></dt></dl></dd><dt><span class="section"><a href="editor/xsleditor_markers.html">XSLT Markers and Annotations</a></span></dt><dd><dl><dt><span class="section"><a href="editor/xsleditor_markers.html#xsltOverRide">Template Over Ride</a></span></dt></dl></dd><dt><span class="section"><a href="editor/xsleditor_debugging.html">XSL Debugging</a></span></dt></dl></dd><dt><span class="chapter"><a href="launching/launching.html">XSL Launching and Debugging</a></span></dt><dd><dl><dt><span class="section"><a href="launching/launching.html#XSLLaunch">XSL Launching</a></span></dt><dt><span class="section"><a href="launching/debugging.html">XSLT Debugging</a></span></dt><dd><dl><dt><span class="section"><a href="launching/debugging.html#N1020A">Result View</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="preferences/xslpreferences.html">XSL Tools Preferences</a></span></dt><dd><dl><dt><span class="section"><a href="preferences/xslpreferences.html#XSLFeatures">Features</a></span></dt><dt><span class="section"><a href="preferences/xslprocessors.html">Installed Processors</a></span></dt><dt><span class="section"><a href="preferences/xsloutputproperties.html">Output Properties</a></span></dt><dt><span class="section"><a href="preferences/xpathtemplates.html">XPath Templates</a></span></dt><dd><dl><dt><span class="section"><a href="preferences/xpathtemplates.html#XPathTemplateNew">Creating New Templates</a></span></dt><dt><span class="section"><a href="preferences/xpathtemplates.html#XPathImport">Import XPath Templates</a></span></dt><dt><span class="section"><a href="preferences/xpathtemplates.html#XPathExport">Import XPath Templates</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="general/general.html">General</a></span></dt><dd><dl><dt><span class="section"><a href="general/general.html#XInclude">XInclude</a></span></dt></dl></dd><dt><span class="chapter"><a href="samples/samples.html">XSL Tooling Samples</a></span></dt><dd><dl><dt><span class="section"><a href="samples/samples.html#EclipseHelp">Eclipse Help</a></span></dt><dd><dl><dt><span class="section"><a href="samples/samples.html#DocbookEclipseHelp">Creating Eclipse Help with Docbook and XSL Tools</a></span></dt><dt><span class="section"><a href="samples/samples.html#DITAEclipseHelp">Creating Eclipse Help with DITA and XSL Tools</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="legal.html">Notices</a></span></dt></dl></div><div class="list-of-figures"><p><b>List of Figures</b></p><dl><dt>1. <a href="xsleditor_contentassist.html#fig_XSLProposals">XSLT Proposals within Non-XSLT elements</a></dt><dt>2. <a href="xsleditor_contentassist.html#fig_ExcludeResultPrefixesContentAssist1">Exclude-result-prefixes Content
- Assistance</a></dt><dt>3. <a href="xsleditor_contentassist.html#fig_ExcludeResultPrefixesContentAssist2">Filtered exclude-result-prefixes proposals</a></dt><dt>4. <a href="xsleditor_contentassist.html#fig_ModeAssistance">Mode attribute assistance</a></dt><dt>5. <a href="xsleditor_contentassist.html#fig_CallTemplateAssist">Call-Template Assistance</a></dt><dt>6. <a href="xsleditor_contentassist.html#fig_HREFAssistance">Include/Import href Assistance</a></dt><dt>7. <a href="xsleditor_markers.html#fig_OverRide1">Overriden Template</a></dt><dt>8. <a href="xsleditor_markers.html#fig_OverRide2">Overriden Template Information</a></dt></dl></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/index.xml b/docs/org.eclipse.wst.xsl.doc/html/index.xml
deleted file mode 100644
index f515bc8..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/index.xml
+++ /dev/null
@@ -1 +0,0 @@
-<index></index> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/introduction/gettingstarted.html b/docs/org.eclipse.wst.xsl.doc/html/introduction/gettingstarted.html
deleted file mode 100644
index 868102f..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/introduction/gettingstarted.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Getting Started</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../index.html" title="XSL Tools User Documentation"><link rel="next" href="../concepts/concepts.html" title="XSLT Concepts"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N10012"></a>Getting Started</h2></div></div></div><p>
- Still trying to think of original content for this section.
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging.html b/docs/org.eclipse.wst.xsl.doc/html/launching/debugging.html
deleted file mode 100644
index 17ea446..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/debugging.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSLT Debugging</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="launching.html" title="XSL Launching and Debugging"><link rel="prev" href="launching.html" title="XSL Launching and Debugging"><link rel="next" href="../preferences/xslpreferences.html" title="XSL Tools Preferences"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLDebug"></a>XSLT Debugging</h2></div></div></div><p>
- XSL Tools provides a framework for XSLT processors to provide debugging support. The support
- provided is highly dependent on the processors. XSL Tools comes with built in support
- for the Xalan 2.7.1 processor. Debugging is only available for those processors that
- support the feature and plug into the extension point.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="N1020A"></a>Result View</h3></div></div></div><p>
- The XSLT Debugger has a result view. This will show the output that the
- stylesheet has generated to the current break point or since the last step command was issued.
- </p><div class="mediaobject" align="center"><img src="../images/launching/resultView.png" align="middle"></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/debuglaunching.html b/docs/org.eclipse.wst.xsl.doc/html/launching/debuglaunching.html
deleted file mode 100644
index 3988d97..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/debuglaunching.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Launch Debugging</title><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="launching.html" title="Chapter&nbsp;3.&nbsp;XSL Launching and Debugging"><link rel="prev" href="launching.html" title="Chapter&nbsp;3.&nbsp;XSL Launching and Debugging"><link rel="next" href="../preferences/xslpreferences.html" title="Chapter&nbsp;4.&nbsp;XSL Tools Preferences"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLDebug"></a>Launch Debugging</h2></div></div></div><p>
- This is a place holder until some actual documentation can be written.
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/launching/launching.html b/docs/org.eclipse.wst.xsl.doc/html/launching/launching.html
deleted file mode 100644
index 330adf3..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/launching/launching.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Launching and Debugging</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../editor/xsleditor_debugging.html" title="XSL Debugging"><link rel="next" href="debugging.html" title="XSLT Debugging"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N101EC"></a>XSL Launching and Debugging</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="launching.html#XSLLaunch">XSL Launching</a></span></dt><dt><span class="section"><a href="debugging.html">XSLT Debugging</a></span></dt><dd><dl><dt><span class="section"><a href="debugging.html#N1020A">Result View</a></span></dt></dl></dd></dl></div><p>
- XSL Tools adds support for XSL Launch and Debugging configurations.
- These allow you to setup XSL configurations for various jobs, and to also
- debug xsl stylsheet transformations.
- </p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLLaunch"></a>XSL Launching</h2></div></div></div><p>
- In the Project Explorer, simply select the input XML file and the stylesheet(s) to transform it, and then right-click and select
- <span class="emphasis"><em>Run As &gt; XSL Transformation</em></span>.
- </p><div class="mediaobject" align="center"><img src="../images/launching/launchShortct.png" align="middle"></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/legal.html b/docs/org.eclipse.wst.xsl.doc/html/legal.html
deleted file mode 100644
index 2dcbfea..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/legal.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Notices</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="index.html" title="XSL Tools User Documentation"><link rel="up" href="index.html" title="XSL Tools User Documentation"><link rel="prev" href="samples/samples.html" title="XSL Tooling Samples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N102F8"></a>Notices</h2></div></div></div><p>
- The material in this guide is Copyright (c) Doug Satchwell (<a class="ulink" href="http://www.chasetechnology.co.uk" target="_top">Chase Technology Ltd</a>),
- David Carver (<a class="ulink" href="http://www.starstandard.org" target="_top">Standards for Technology in Automotive Retail</a>)
- and others 2008.
- </p><p>
- This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies
- this distribution, and is available at
- <a class="ulink" href="http://www.eclipse.org/legal/epl-v10.html" target="_top">http://www.eclipse.org/legal/epl-v10.html</a>.
- </p><p>
- <a class="ulink" href="about.html" target="_top">Terms and conditions regarding the use of this guide.</a>.
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathtemplates.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathtemplates.html
deleted file mode 100644
index 4359459..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xpathtemplates.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XPath Templates</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="prev" href="xsloutputproperties.html" title="Output Properties"><link rel="next" href="../general/general.html" title="General"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XPathTemplates"></a>XPath Templates</h2></div></div></div><p>
- XPath template proposal is supported by the XSL Tooling project through the
- built in template functionality of eclipse. Users and Adopters can add
- their own specific xpath extensions for processor specific extensions. An
- example would be to add the EXSLT extensions for proposal support.
- </p><div class="mediaobject" align="center"><img src="../images/preferences/XPathTemplates.png" align="middle"></div><p>
- The following content types are available:
- </p><div class="itemizedlist"><ul type="disc"><li><p>
- <span class="bold"><strong>axis</strong></span> - an XPath navigation axis statement.
- </p></li><li><p>
- <span class="bold"><strong>exslt</strong></span> - An XPath statement that is defined by
- the <a class="ulink" href="http://www.exslt.org/" target="_top">EXSLT</a> library. Xalan and most
- other processors have built in support for the EXSLT library.
- </p></li><li><p>
- <span class="bold"><strong>xpath</strong></span> - Represents an XPATH 1.0 function. These
- are functions as defined by the XPath 1.0 specification.
- </p></li><li><p>
- <span class="bold"><strong>xpath 2.0</strong></span> - Represents an XPath 2.0 function.
- <span class="emphasis"><em>Note: That currently XSL Tools only ships with templates defined for XPath 1.0 .</em></span>
- </p></li><li><p>
- <span class="bold"><strong>operator</strong></span> - An xpath logical operator like AND, OR, etc.
- </p></li></ul></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XPathTemplateNew"></a>Creating New Templates</h3></div></div></div><p>
- Add documentation about creating new templates.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XPathImport"></a>Import XPath Templates</h3></div></div></div><p>
- Add documentation about importing new templates.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="XPathExport"></a>Import XPath Templates</h3></div></div></div><p>
- Add documentation about importing new templates.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xsloutputproperties.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xsloutputproperties.html
deleted file mode 100644
index fad925b..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xsloutputproperties.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Output Properties</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="prev" href="xslprocessors.html" title="Installed Processors"><link rel="next" href="xpathtemplates.html" title="XPath Templates"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLOutputProperties"></a>Output Properties</h2></div></div></div><p>
- The various xsl processors support a wide variety of processor specific tweaks. However there
- are several Standard processor features that all XSLT processors support. These options can be
- set and will act as the defaults for all transformations unless they are specifically overriden by
- the stylesheet or the launch configuration.
- </p><div class="mediaobject" align="center"><img src="../images/preferences/xsl_outputproperties.png" align="middle"></div><p>
- In addition to the Standard Output Properties, each XSLT processor can have processors
- specific features.
- </p></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xslpreferences.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xslpreferences.html
deleted file mode 100644
index 7d16368..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xslpreferences.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Tools Preferences</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../launching/debugging.html" title="XSLT Debugging"><link rel="next" href="xslprocessors.html" title="Installed Processors"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="XSLPreferences"></a>XSL Tools Preferences</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="xslpreferences.html#XSLFeatures">Features</a></span></dt><dt><span class="section"><a href="xslprocessors.html">Installed Processors</a></span></dt><dt><span class="section"><a href="xsloutputproperties.html">Output Properties</a></span></dt><dt><span class="section"><a href="xpathtemplates.html">XPath Templates</a></span></dt><dd><dl><dt><span class="section"><a href="xpathtemplates.html#XPathTemplateNew">Creating New Templates</a></span></dt><dt><span class="section"><a href="xpathtemplates.html#XPathImport">Import XPath Templates</a></span></dt><dt><span class="section"><a href="xpathtemplates.html#XPathExport">Import XPath Templates</a></span></dt></dl></dd></dl></div><p>
- The XSL Preference pages has several sub sections. Each of these allow for configuration
- of various aspects of the preferences. From the controlling of the default XSL processor
- to be used during transformations. To extending the content assist support of the XPath
- functions available in the XML editor.
- </p><div class="mediaobject" align="center"><img src="../images/preferences/xslpreferences.png" align="middle"></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLFeatures"></a>Features</h2></div></div></div><p>
- The XSL Features preference page allows for the configuration of features for a particular
- processor. XSL Tools comes with Xalan 2.7.0 by default. Adopters can extend and include
- their own specific features for their own procesoors. An adopter could extend the tooling
- to support XSLT 2.0 transformations, and features particular to that parser.
- </p><div class="mediaobject" align="center"><img src="../images/preferences/xslfeatures.png" align="middle"></div><p>
- The <span class="bold"><strong>Processor Type</strong></span> allows you to set features for a specific processor. In this case
- this is for the processor that is being installed. XSL Tools comes with Xalan 2.7.0, and it is the only available
- processor type by default.
- </p><p>
- The feature table lists the features that are specific to the processor that was selected. As you
- select each of the features, information regarding that feature and it's abilitis is displayed in the
- description box. By clicking in the value column, next to the feature you want to set the value
- for, the user can set the feature.
- </p></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/preferences/xslprocessors.html b/docs/org.eclipse.wst.xsl.doc/html/preferences/xslprocessors.html
deleted file mode 100644
index 54ad8b7..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/preferences/xslprocessors.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Installed Processors</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="prev" href="xslpreferences.html" title="XSL Tools Preferences"><link rel="next" href="xsloutputproperties.html" title="Output Properties"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="XSLProcessors"></a>Installed Processors</h2></div></div></div><p>
- The installed processors page lets you pick which of the installed XSLT processors will be used
- by default. The default is the System Default Procesoor, but you can select any of the
- available processors to be used as the default processor.
- </p><div class="mediaobject" align="center"><img src="../images/preferences/xsl_InstalledProcessors.png" align="middle"></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/reference/maintopic.html b/docs/org.eclipse.wst.xsl.doc/html/reference/maintopic.html
deleted file mode 100644
index a476078..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/reference/maintopic.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Main Topic</title>
-</head>
-
-<body>
-<h1>Main Topic</h1>
-Please enter your text here.
-</body>
-</html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic.html b/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic.html
deleted file mode 100644
index 8a61c50..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Sub Topic</title>
-</head>
-
-<body>
-<h1>Sub Topic</h1>
-Please enter your text here.
-</body>
-</html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic2.html b/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic2.html
deleted file mode 100644
index 86bcbf9..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/reference/subtopic2.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>Sub Topic 2</title>
-</head>
-
-<body>
-<h1>Sub Topic 2</h1>
-Please enter your text here.
-</body>
-</html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/html/samples/samples.html b/docs/org.eclipse.wst.xsl.doc/html/samples/samples.html
deleted file mode 100644
index 139439e..0000000
--- a/docs/org.eclipse.wst.xsl.doc/html/samples/samples.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>XSL Tooling Samples</title><link href="book.css" rel="stylesheet" type="text/css"><link href="../book.css" rel="stylesheet" type="text/css"><meta content="DocBook XSL Stylesheets V1.74.0" name="generator"><link rel="home" href="../index.html" title="XSL Tools User Documentation"><link rel="up" href="../index.html" title="XSL Tools User Documentation"><link rel="prev" href="../general/general.html" title="General"><link rel="next" href="../legal.html" title="Notices"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="N102D9"></a>XSL Tooling Samples</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="samples.html#EclipseHelp">Eclipse Help</a></span></dt><dd><dl><dt><span class="section"><a href="samples.html#DocbookEclipseHelp">Creating Eclipse Help with Docbook and XSL Tools</a></span></dt><dt><span class="section"><a href="samples.html#DITAEclipseHelp">Creating Eclipse Help with DITA and XSL Tools</a></span></dt></dl></dd></dl></div><p>This section contains several samples and references to sample projects.</p><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="EclipseHelp"></a>Eclipse Help</h2></div></div></div><p></p><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="DocbookEclipseHelp"></a>Creating Eclipse Help with Docbook and XSL Tools</h3></div></div></div><p>
- This tutorial assumes that you have knowledge of Docbook, ANT, and the
- ability to setup ANT build scripts.
- </p><p>
- To Do write up the rest of the tutorial.
- </p></div><div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="DITAEclipseHelp"></a>Creating Eclipse Help with DITA and XSL Tools</h3></div></div></div><p>
- This tutorial assumes that you have knowledge of DITA, ANT, and the
- ability to setup ANT build scripts.
- </p><p>
- To Do write up the rest of the tutorial.
- </p></div></div></div></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/plugin.properties b/docs/org.eclipse.wst.xsl.doc/plugin.properties
deleted file mode 100644
index ca15f82..0000000
--- a/docs/org.eclipse.wst.xsl.doc/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#Properties file for org.eclipse.wst.xsl.doc
-vendorName = Eclipse.org
-pluginName = XSL User Documentation (Incubating) \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/plugin.xml b/docs/org.eclipse.wst.xsl.doc/plugin.xml
deleted file mode 100644
index 7f5a61e..0000000
--- a/docs/org.eclipse.wst.xsl.doc/plugin.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<plugin>
- <extension point="org.eclipse.help.toc">
- <toc primary="true" file="toc.xml"></toc>
- </extension>
-</plugin> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.doc/toc.xml b/docs/org.eclipse.wst.xsl.doc/toc.xml
deleted file mode 100644
index b74ca1d..0000000
--- a/docs/org.eclipse.wst.xsl.doc/toc.xml
+++ /dev/null
@@ -1 +0,0 @@
-<toc topic="html/index.html" label="XSL Tools User Documentation"><topic href="html/introduction/gettingstarted.html" label="Getting Started"></topic><topic href="html/concepts/concepts.html" label="XSLT Concepts"><topic href="html/concepts/concepts.html#ResucingXSLT" label="Rescuing XSLT From Niche Status"><topic href="html/concepts/concepts.html#N10034" label="The Problem"></topic><topic href="html/concepts/concepts.html#N1005A" label="The Solution"></topic><topic href="html/concepts/concepts.html#N10081" label="Queries"><topic href="html/concepts/concepts.html#N1008F" label="xsl:for-each"></topic><topic href="html/concepts/concepts.html#N1009B" label="xsl:if"></topic><topic href="html/concepts/concepts.html#N100A5" label="xsl:choose"></topic></topic><topic href="html/concepts/concepts.html#N100AF" label="Conclusion"></topic></topic><topic href="html/concepts/resources.html" label="Resources"></topic></topic><topic href="html/editor/xsleditor.html" label="XSL Editing"><topic href="html/editor/xsleditor.html#Validation" label="Validation"></topic><topic href="html/editor/xsleditor_contentassist.html" label="Content Assist"><topic href="html/editor/xsleditor_contentassist.html#ed_XSLProposals" label="XSLT Element Proposals"></topic><topic href="html/editor/xsleditor_contentassist.html#SelectTest" label="Select, Test, and Match Attributes"></topic><topic href="html/editor/xsleditor_contentassist.html#ExcludeResultPrefixesContentAssist" label="Exclude-Result-Prefixes"></topic><topic href="html/editor/xsleditor_contentassist.html#ed_ModeAssist" label="Mode attribute assistance"></topic><topic href="html/editor/xsleditor_contentassist.html#ed_CallTemplateAssist" label="Call-Template Assistance"></topic><topic href="html/editor/xsleditor_contentassist.html#ed_href" label="Include and Import href Assistance"></topic></topic><topic href="html/editor/xsleditor_templates.html" label="Templates"><topic href="html/editor/xsleditor_templates.html#N101B9" label="XPath Templates"></topic></topic><topic href="html/editor/xsleditor_markers.html" label="XSLT Markers and Annotations"><topic href="html/editor/xsleditor_markers.html#xsltOverRide" label="Template Over Ride"></topic></topic><topic href="html/editor/xsleditor_debugging.html" label="XSL Debugging"></topic></topic><topic href="html/launching/launching.html" label="XSL Launching and Debugging"><topic href="html/launching/launching.html#XSLLaunch" label="XSL Launching"></topic><topic href="html/launching/debugging.html" label="XSLT Debugging"><topic href="html/launching/debugging.html#N1020A" label="Result View"></topic></topic></topic><topic href="html/preferences/xslpreferences.html" label="XSL Tools Preferences"><topic href="html/preferences/xslpreferences.html#XSLFeatures" label="Features"></topic><topic href="html/preferences/xslprocessors.html" label="Installed Processors"></topic><topic href="html/preferences/xsloutputproperties.html" label="Output Properties"></topic><topic href="html/preferences/xpathtemplates.html" label="XPath Templates"><topic href="html/preferences/xpathtemplates.html#XPathTemplateNew" label="Creating New Templates"></topic><topic href="html/preferences/xpathtemplates.html#XPathImport" label="Import XPath Templates"></topic><topic href="html/preferences/xpathtemplates.html#XPathExport" label="Import XPath Templates"></topic></topic></topic><topic href="html/general/general.html" label="General"><topic href="html/general/general.html#XInclude" label="XInclude"></topic></topic><topic href="html/samples/samples.html" label="XSL Tooling Samples"><topic href="html/samples/samples.html#EclipseHelp" label="Eclipse Help"><topic href="html/samples/samples.html#DocbookEclipseHelp" label="Creating Eclipse Help with Docbook and XSL Tools"></topic><topic href="html/samples/samples.html#DITAEclipseHelp" label="Creating Eclipse Help with DITA and XSL Tools"></topic></topic></topic><topic href="html/legal.html" label="Notices"></topic></toc> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/.classpath b/docs/org.eclipse.wst.xsl.sdk.documentation/.classpath
deleted file mode 100644
index 64c5e31..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/.project b/docs/org.eclipse.wst.xsl.sdk.documentation/.project
deleted file mode 100644
index 9fdf29d..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.wst.xsl.sdk.documentation</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.wst.validation.validationbuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.jdt.core.prefs b/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 2136ed3..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-#Sat Jun 21 18:22:30 GMT-05:00 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.wst.validation.prefs b/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.wst.validation.prefs
deleted file mode 100644
index 879153b..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/.settings/org.eclipse.wst.validation.prefs
+++ /dev/null
@@ -1,17 +0,0 @@
-#Sat Aug 02 08:45:39 GMT-05:00 2008
-DELEGATES_PREFERENCE=delegateValidatorList
-USER_BUILD_PREFERENCE=enabledBuildValidatorList
-USER_MANUAL_PREFERENCE=enabledManualValidatorList
-USER_PREFERENCE=overrideGlobalPreferencestruedisableAllValidationfalseversion1.2.0.v200806051402
-eclipse.preferences.version=1
-override=true
-suspend=false
-vals/org.eclipse.jst.jsp.core.JSPBatchValidator/global=FF01
-vals/org.eclipse.jst.jsp.core.JSPContentValidator/global=FF01
-vals/org.eclipse.wst.dtd.core.dtdDTDValidator/global=FF01
-vals/org.eclipse.wst.html.ui.HTMLValidator/global=FF01
-vals/org.eclipse.wst.wsdl.validation.wsdl/global=FF02158org.eclipse.wst.wsdl.validation.internal.eclipse.Validator
-vals/org.eclipse.wst.xml.core.xml/global=TT03
-vals/org.eclipse.wst.xsd.core.xsd/global=FF02162org.eclipse.wst.xsd.core.internal.validation.eclipse.Validator
-vals/org.eclipse.wst.xsl.core.xsl/global=TT02
-vf.version=3
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/META-INF/MANIFEST.MF b/docs/org.eclipse.wst.xsl.sdk.documentation/META-INF/MANIFEST.MF
deleted file mode 100644
index 87ba16b..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,11 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.wst.xsl.sdk.documentation; singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.wst.xsl.sdk.documentation.Activator
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.help
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-Vendor: %providerName
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/about.html b/docs/org.eclipse.wst.xsl.sdk.documentation/about.html
deleted file mode 100644
index 2199df3..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/about.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<HTML>
-
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-
-<BODY lang="EN-US">
-
-<H3>About This Content</H3>
-
-<P>June, 2008</P>
-
-<H3>License</H3>
-
-<P>The Eclipse Foundation makes available all content in this plug-in
-("Content"). Unless otherwise indicated below, the Content is provided to you
-under the terms and conditions of the Eclipse Public License Version 1.0
-("EPL"). A copy of the EPL is available at
-<A href="http://www.eclipse.org/org/documents/epl-v10.php">http://www.eclipse.org/org/documents/epl-v10.php</A>.
-For purposes of the EPL, "Program" will mean the Content.</P>
-
-<P>If you did not receive this Content directly from the Eclipse Foundation, the
-Content is being redistributed by another party ("Redistributor") and different
-terms and conditions may apply to your use of any object code in the Content.
-Check the Redistributors license that was provided with the Content. If no such
-license exists, contact the Redistributor. Unless otherwise indicated below, the
-terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at
-<A href="http://www.eclipse.org/">http://www.eclipse.org/</A>.</P>
-
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/build.properties b/docs/org.eclipse.wst.xsl.sdk.documentation/build.properties
deleted file mode 100644
index f3c3e9f..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/build.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = plugin.xml,\
- META-INF/,\
- .,\
- build.xml,\
- toc.xml,\
- doc/html/,\
- about.html,\
- bin/,\
- plugin.properties,\
- tocExtension.xml
-bin.excludes = doc/html/deleteme.html
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/build.xml b/docs/org.eclipse.wst.xsl.sdk.documentation/build.xml
deleted file mode 100644
index 0353bac..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/build.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- ======================================================================
- Jul 21, 2008 6:46:02 PM
-
- SDK Documentation
- Builds SDK TOC Documentation using JELDoclet.
-
- dcarver
- ====================================================================== -->
-<project name="SDK Documentation" default="default">
- <description>
- Builds SDK TOC Documentation using JELDoclet.
- </description>
-
- <property name="workspace" location="."/>
- <property name="workspaceloc" location=".."/>
-
- <!-- =================================
- target: default
- ================================= -->
- <target name="default" description="Builds SDK TOC Documentation using JELDoclet.">
-
- <javadoc destdir="doc" package="true" docletpath="${workspace}/lib/jeldoclet.jar">
- <fileset dir="${workspaceloc}">
- <include name="org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/*.java"/>
- <include name="org.eclipse.wst.xsl.core/src/org/eclipse/wst/xsl/core/resolver/*.java"/>
- <include name="org.eclipse.wst.xsl.jaxp.debug/src-debugger/org/eclipse/wst/xsl/jaxp/debug/debugger/*.java"/>
- <include name="org.eclipse.wst.xsl.jaxp.debug/src-invoker/org/eclipse/wst/xsl/jaxp/debug/invoker/*.java"/>
- <include name="org.eclipse.wst.xsl.xalan/src-debugger/org/eclipse/wst/xsl/xalan/debugger/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.core/src/org/eclipse/wst/xml/xpath/core/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.core/src/org/eclipse/wst/xml/xpath/core/util/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.ui/src-xpath/org/eclipse/wst/xml/xpath/ui/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.ui/src-xpath/org/eclipse/wst/xml/xpath/ui/views/*.java"/>
- </fileset>
- <doclet name="com.jeldoclet.JELDoclet"/>
- </javadoc>
-
- <xslt basedir="." style="doc/jeltohtml.xsl" in="doc/jel.xml" out="doc/html/deleteme.html">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
- <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
-
- </factory>
- </xslt>
-
-
- <xslt style="doc/jeltotoc.xsl" in="doc/jel.xml" out="toc.xml" destdir=".">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
- <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
- </factory>
- <param name="sdkname" expression="XSL Tools SDK Documentation"/>
- </xslt>
-
- </target>
-
- <target name="DocCheck">
- <javadoc destdir="doc/doccheck" package="true" docletpath="${workspace}/lib/doccheck.jar">
- <fileset dir="${workspaceloc}">
- <include name="org.eclipse.wst.xsl.core/**/*.java"/>
- <include name="org.eclipse.wst.xsl.debug/**/*.java"/>
- <include name="org.eclipse.wst.xsl.debug.ui/**/*.java"/>
- <include name="org.eclipse.wst.xsl.launching/**/*.java"/>
- <include name="org.eclipse.wst.xsl.saxon/**/*.java"/>
- <include name="org.eclipse.wst.xsl.ui/**/*.java"/>
- <include name="org.eclipse.wst.xsl.xalan/src-debugger/**/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.core/src/**/*.java"/>
- <include name="org.eclipse.wst.xml.xpath.ui/**/*.java"/>
- </fileset>
- <doclet name="com.sun.tools.doclets.doccheck.DocCheck">
- <param name="-execDepth" value="2"/>
- </doclet>
- </javadoc>
- </target>
-
- <target name="ExtensionPointDoc">
- <pde.convertSchemaToHTML manifest="../org.eclipse.wst.xsl.jaxp.launching/plugin.xml"
- destination="${workspace}/doc/html/extension_point"
- />
- </target>
-
-</project>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/.cvsignore b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/.cvsignore
deleted file mode 100644
index d68722e..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/.cvsignore
+++ /dev/null
@@ -1,299 +0,0 @@
-doccheck
-org.eclipse.wst.xsl.core.internal.parser.XSLSourceParser.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.OutputPreferencePage.xml
-org.eclipse.wst.xml.xpath.ui.views.DOMViewerFilter.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.argument_return.xml
-org.eclipse.wst.xml.xpath.ui.internal.contentassist.XPathTemplateCompletionProcessor.xml
-org.eclipse.wst.xsl.core.internal.modelhandler.ModelHandlerForXSL.xml
-org.eclipse.wst.xsl.core.internal.XSLCorePlugin.xml
-org.eclipse.wst.xsl.ui.internal.XSLUIPlugin.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.InstalledProcessorsBlock.xml
-org.eclipse.wst.xsl.internal.launching.XSLTSourceLookupParticipant.xml
-org.eclipse.wst.xsl.internal.launching.registry.DebuggerRegistry.xml
-org.eclipse.wst.xsl.core.internal.model.XSLAttribute.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.output.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParameterViewer.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.InstallStandin.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.variable_reference_return.xml
-org.eclipse.wst.xsl.core.internal.modelhandler.XSLModelLoader.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewWizardAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.model.XSLModelPresentation.xml
-org.eclipse.wst.xsl.core.resolver.XSLVersionHandler.xml
-org.eclipse.wst.xsl.internal.launching.DebuggerDescriptor.xml
-org.eclipse.wst.xsl.internal.launching.XSLTSourceLookupDirector.xml
-org.eclipse.wst.xsl.core.internal.encoding.XSLDocumentLoader.xml
-org.eclipse.wst.xsl.core.internal.text.IXSLPartitions.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AddParameterAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveAction.xml
-org.eclipse.wst.xsl.core.internal.util.StructuredDocumentUtil.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.FOFormatterTab.xml
-org.eclipse.wst.xsl.ui.internal.contentassist.XSLContentAssistProcessor.xml
-org.eclipse.wst.xsl.ui.internal.wizards.NewXSLFileWizardPage.xml
-org.eclipse.wst.xsl.ui.internal.wizards.NewXSLFileTemplatesWizardPage.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.relative_location_path_return.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.XSLFOComboBlock.xml
-org.eclipse.wst.xsl.ui.internal.style.LineStyleProviderForXSL.xml
-org.eclipse.wst.xsl.launching.IProcessorType.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.XSLMainTab.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.EditorReferenceLabelProvider.xml
-org.eclipse.wst.xsl.core.internal.parser.regions.XPathSeparatorRegion.xml
-org.eclipse.wst.xsl.core.internal.validation.XSLValidator.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.Messages.xml
-org.eclipse.wst.xsl.internal.launching.registry.InvokerRegistryReader.xml
-org.eclipse.wst.xsl.invoker.config.TypedValue.xml
-org.eclipse.wst.xsl.core.XSLCore.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanRootStyleFrame.xml
-org.eclipse.wst.xsl.core.internal.validation.Messages.xml
-org.eclipse.wst.xml.xpath.ui.internal.preferences.XPathTemplatePreferencePage.xml
-org.eclipse.wst.xsl.ui.internal.editor.XSLHyperlinkDetector.xml
-org.eclipse.wst.xsl.launching.model.Messages.xml
-org.eclipse.wst.xsl.ui.internal.util.XSLPluginImages.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.path_expr_return.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewXMLFileWizardDelegate.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.RefreshAction.xml
-org.eclipse.wst.xsl.invoker.Messages.xml
-org.eclipse.wst.xsl.internal.launching.OutputPropertyPreferences.xml
-org.eclipse.wst.xsl.ui.internal.preferences.AbstractXSLPreferencePage.xml
-org.eclipse.wst.xsl.invoker.config.Messages.xml
-org.eclipse.wst.xsl.core.internal.regions.XSLParserRegionFactory.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.JFaceNodeLabelProviderXPath.xml
-org.eclipse.wst.xsl.ui.internal.preferences.XSLTemplatePreferencePage.xml
-org.eclipse.wst.xsl.launching.model.XSLDebugElement.xml
-org.eclipse.wst.xsl.internal.launching.XSLTLaunchConfigurationDelegate.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.Messages.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.union_expr_return.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.expr_return.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewXSDFileWizardDelegate.xml
-org.eclipse.wst.xsl.internal.launching.registry.ProcessorTypeRegistryReader.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.equality_expr_return.xml
-org.eclipse.wst.xsl.core.internal.ant.XIncludeTask.xml
-org.eclipse.wst.xsl.internal.debug.ui.model.XSLBreakpointAdapterFactory.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.ProcessorDetailsDialog.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.filter_expr_return.xml
-org.eclipse.wst.xsl.ui.internal.XSLUIConstants.xml
-org.eclipse.wst.xsl.debug.internal.util.XSLDebugPluginImages.xml
-org.eclipse.wst.xml.xpath.ui.internal.contentassist.CustomTemplateProposal.xml
-org.eclipse.wst.xsl.internal.launching.registry.ProcessorRegistryReader.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLTTabGroup.xml
-org.eclipse.wst.xsl.internal.launching.registry.ProcessorRegistry.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AddWorkspaceFileAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.FeaturesBlock.xml
-org.eclipse.wst.xsl.core.internal.model.XSLElement.xml
-org.eclipse.wst.xsl.core.internal.model.StylesheetModel.xml
-org.eclipse.wst.xsl.core.internal.model.Import.xml
-org.eclipse.wst.xsl.ui.internal.preferences.MainPreferencePage.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.special_step_return.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.abbr_axis_specifier_return.xml
-org.eclipse.wst.xsl.invoker.TransformationException.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchShortcut.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.AddProcessorDialog.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.XPathParserLexer.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.XPathComputer.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.function_call_return.xml
-org.eclipse.wst.xml.xpath.ui.internal.XPathUIMessages.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanPrintTraceListener.xml
-org.eclipse.wst.xsl.internal.launching.Utils.xml
-org.eclipse.wst.xsl.core.internal.model.Include.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.absolute_location_path_return.xml
-org.eclipse.wst.xsl.core.internal.validation.MaxErrorsExceededException.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.XPathView.xml
-org.eclipse.wst.xml.xpath.ui.XPathUIMessages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.output.OutputFileBlock.xml
-org.eclipse.wst.xsl.internal.launching.ProcessorInvokerDescriptor.xml
-org.eclipse.wst.xml.xpath.ui.internal.util.XPathPluginImageHelper.xml
-org.eclipse.wst.xsl.launching.model.XSLDebugTarget.xml
-org.eclipse.wst.xsl.invoker.IProcessorInvoker.xml
-org.eclipse.wst.xsl.core.internal.model.Variable.xml
-org.eclipse.wst.xsl.internal.debug.ui.AbstractTableBlock.xml
-org.eclipse.wst.xsl.core.internal.model.Stylesheet.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.ProcessorMessages.xml
-org.eclipse.wst.xsl.invoker.config.PipelineDefinition.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.IParametersChangedListener.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.output.OutputTab.xml
-org.eclipse.wst.xsl.invoker.config.CreationException.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.ProcessorDescriptor.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MultipleInputDialog.FieldSummary.xml
-org.eclipse.wst.xsl.internal.launching.registry.DebuggerRegistryReader.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.ProcessorsPreferencePage.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIPlugin.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.JFaceNodeContentProviderXPath.xml
-org.eclipse.wst.xsl.ui.internal.validation.DelegatingSourceValidatorForXSL.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewWSDLFileWizardDelegate.xml
-org.eclipse.wst.xml.xpath.ui.internal.util.XPathPluginImages.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.literal_return.xml
-org.eclipse.wst.xsl.core.ValidationPreferences.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanTraceListener.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewXSLFileWizardDelegate.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractStylesheetAction.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.XPathAction.xml
-org.eclipse.wst.xsl.ui.internal.actions.NewDTDFileWizardDelegate.xml
-org.eclipse.wst.xsl.ui.internal.doubleclick.XSLDoubleClickStrategy.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.relational_expr_return.xml
-org.eclipse.wst.xsl.core.internal.validation.XSLValidationMessage.xml
-org.eclipse.wst.xml.xpath.ui.internal.preferences.XPathPrefencePage.xml
-org.eclipse.wst.xsl.core.internal.validation.eclipse.Validator2.xml
-org.eclipse.wst.xsl.launching.IProcessorInstall.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.MainTabMessages.xml
-org.eclipse.wst.xsl.core.internal.model.XSLNode.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetLabelProvider.xml
-org.eclipse.wst.xsl.ui.internal.contentassist.Messages.xml
-org.eclipse.wst.xsl.launching.config.LaunchProperties.xml
-org.eclipse.wst.xsl.core.internal.util.Debug.xml
-org.eclipse.wst.xml.xpath.ui.views.EditNamespacePrefixDialog.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.JarLabelProvider.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParametersContentProvider.xml
-jel.xml
-org.eclipse.wst.xml.xpath.core.XPathCorePlugin.xml
-org.eclipse.wst.xsl.internal.launching.PluginProcessorJar.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.primary_expr_return.xml
-org.eclipse.wst.xsl.internal.launching.XSLPropertyTester.xml
-org.eclipse.wst.xsl.internal.debug.ui.ResourceSelectionBlock.WidgetListener.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanVariable.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.number_return.xml
-org.eclipse.wst.xsl.ui.internal.validation.XSLMarkupValidator.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.xml
-org.eclipse.wst.xsl.internal.debug.ui.breakpoint.Messages.xml
-org.eclipse.wst.xsl.ui.internal.validation.DelegatingSourceValidatorForXalanXSL.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.RendererTabMessages.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLConsoleLineTracker.xml
-org.eclipse.wst.xsl.launching.IProcessorInvoker.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.ShowInSourceAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLLaunchConfigurationTab.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.formatter.RendererConfigurationBlock.xml
-org.eclipse.wst.xsl.internal.launching.registry.Messages.xml
-org.eclipse.wst.xsl.debugger.StyleFrame.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.InputFileBlock.xml
-org.eclipse.wst.xsl.debugger.IXSLDebugger.xml
-org.eclipse.wst.xsl.launching.IFeature.xml
-org.eclipse.wst.xsl.internal.debug.ui.model.XSLLineBreakpointAdapter.xml
-org.eclipse.wst.xsl.ui.internal.preferences.Messages.xml
-org.eclipse.wst.xsl.internal.launching.ProcessorPreferences.xml
-org.eclipse.wst.xsl.internal.launching.PreferenceInitializer.xml
-org.eclipse.wst.xsl.debugger.DebugRunner.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.i_relative_location_path_return.xml
-org.eclipse.wst.xsl.launching.config.Messages.xml
-org.eclipse.wst.xsl.core.internal.util.FileUtil.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.XSLProcessorTab.xml
-org.eclipse.wst.xml.xpath.core.internal.parser.XPathParser.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.ProcessorLibraryBlock.xml
-org.eclipse.wst.xsl.core.internal.model.Parameter.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.resolver.URIResolverBlock2.xml
-org.eclipse.wst.xsl.core.internal.preferences.PreferenceInitializer.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanStyleFrame.xml
-org.eclipse.wst.xsl.launching.model.XSLLineBreakpoint.xml
-org.eclipse.wst.xml.xpath.ui.internal.templates.TemplateContextTypeIdsXPath.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.resolver.Messages.xml
-org.eclipse.wst.xsl.internal.launching.registry.AbstractRegistryReader.xml
-org.eclipse.wst.xsl.internal.launching.LaunchingPlugin.xml
-org.eclipse.wst.xsl.ui.internal.templates.VersionTemplateVariableResolverXSL.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.xpath_return.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.FeaturesBlock.xml
-org.eclipse.wst.xsl.invoker.ConfigurationException.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.RemoveParameterAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MultipleInputDialog.xml
-org.eclipse.wst.xsl.launching.Messages.xml
-org.eclipse.wst.xsl.ui.internal.wizards.NewXSLFileWizard.xml
-org.eclipse.wst.xsl.launching.model.IXSLDebugTarget.xml
-org.eclipse.wst.xsl.core.internal.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.TransformsBlock.xml
-org.eclipse.wst.xsl.invoker.JAXPSAXProcessorInvoker.xml
-org.eclipse.wst.xsl.internal.launching.OutputProperty.xml
-org.eclipse.wst.xsl.core.internal.regions.XPathRegionContext.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.ControlAccessibleListener.xml
-org.eclipse.wst.xsl.ui.internal.util.XSLPluginImageHelper.xml
-org.eclipse.wst.xsl.launching.XSLLaunchConfigurationConstants.xml
-org.eclipse.wst.xsl.internal.launching.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.OutputBlock.xml
-org.eclipse.wst.xsl.launching.config.LaunchTransform.xml
-org.eclipse.wst.xsl.debugger.DebugConstants.xml
-org.eclipse.wst.xsl.core.internal.validation.eclipse.Validator.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.abbr_step_return.xml
-org.eclipse.wst.xsl.launching.config.LaunchAttribute.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.location_path_return.xml
-org.eclipse.wst.xml.xpath.ui.views.XPathNavigator.XMLEditorsContentProvider.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetViewer.xml
-org.eclipse.wst.xsl.debugger.Variable.xml
-org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.resolver.WorkingDirectoryBlock.xml
-org.eclipse.wst.xsl.core.internal.model.CallTemplate.xml
-org.eclipse.wst.xsl.core.resolver.ResolverExtension.xml
-org.eclipse.wst.xsl.ui.internal.StructuredTextViewerConfigurationXSL.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParametersBlock.xml
-org.eclipse.wst.xml.xpath.ui.XPathViewPlugin.xml
-org.eclipse.wst.xsl.internal.launching.PreferenceUtil.xml
-org.eclipse.wst.xsl.launching.model.IXSLConstants.xml
-org.eclipse.wst.xsl.launching.IDebugger.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.ParametersLabelProvider.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.mult_expr_return.xml
-org.eclipse.wst.xsl.internal.launching.FeaturePreferences.xml
-org.eclipse.wst.xsl.launching.IOutputProperty.xml
-org.eclipse.wst.xsl.launching.model.XSLThread.xml
-org.eclipse.wst.xsl.xalan.debugger.XalanDebugger.xml
-org.eclipse.wst.xsl.core.internal.validation.XSLValidationReport.xml
-org.eclipse.wst.xsl.launching.config.LaunchFeatures.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.FeaturesPreferencePage.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.IStylesheetEntriesChangedListener.xml
-org.eclipse.wst.xml.xpath.ui.views.DOMNodeLabelProvider.xml
-org.eclipse.wst.xsl.internal.launching.ProcessorType.xml
-org.eclipse.wst.xsl.ui.internal.validation.XSLErrorListener.xml
-org.eclipse.wst.xsl.core.internal.ant.Messages.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.resolver.URIResolverBlock.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AbstractParameterAction.xml
-org.eclipse.wst.xsl.launching.config.LaunchHelper.xml
-org.eclipse.wst.xsl.ui.internal.editor.SourceFileHyperlink.xml
-org.eclipse.wst.xsl.launching.model.XSLVariable.xml
-org.eclipse.wst.xsl.launching.model.XSLValue.xml
-org.eclipse.wst.xsl.launching.model.XSLStackFrame.xml
-org.eclipse.wst.xsl.core.internal.model.Template.xml
-org.eclipse.wst.xsl.internal.debug.ui.preferences.BasePreferencePage.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.predicate_expr_return.xml
-org.eclipse.wst.xsl.internal.launching.registry.ProcessorTypeRegistry.xml
-org.eclipse.wst.xsl.core.internal.xinclude.XIncluder.xml
-org.eclipse.wst.xml.xpath.ui.views.DOMTreeContentProvider.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.output.OutputPropertiesBlock.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.unary_expr_return.xml
-org.eclipse.wst.xsl.internal.launching.registry.InvokerRegistry.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MoveUpAction.xml
-org.eclipse.wst.xsl.invoker.config.TransformDefinition.xml
-org.eclipse.wst.xsl.ui.internal.templates.TemplateContextTypeXSL.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.OpenDialogAction.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.additive_expr_return.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.step_return.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.arg_list_return.xml
-org.eclipse.wst.xsl.debug.internal.util.XSLPluginImageHelper.xml
-org.eclipse.wst.xsl.internal.debug.ui.Messages.xml
-org.eclipse.wst.xsl.ui.internal.perspective.XMLPerspectiveFactory.xml
-org.eclipse.wst.xsl.ui.internal.handlers.OpenDeclarationHandler.xml
-org.eclipse.wst.xsl.launching.config.LaunchPipeline.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.AddExternalFileAction.xml
-org.eclipse.wst.xsl.internal.launching.ProcessorJar.xml
-org.eclipse.wst.xsl.launching.XSLTRuntime.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.main.StylesheetContentProvider.xml
-org.eclipse.wst.xsl.core.internal.text.rules.StructuredTextPartitionerForXSL.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathLexer.xml
-org.eclipse.wst.xsl.core.internal.model.StylesheetBuilder.xml
-org.eclipse.wst.xsl.internal.debug.ui.ResourceSelectionBlock.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.JarContentProvider.xml
-org.eclipse.wst.xsl.debugger.AbstractDebugger.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.ActionMessages.xml
-org.eclipse.wst.xsl.internal.launching.XSLTSourcePathComputerDelegate.xml
-org.eclipse.wst.xsl.internal.debug.ui.breakpoint.XSLBreakpointProvider.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MoveDownAction.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.ProcessorBlock.xml
-org.eclipse.wst.xsl.internal.debug.ui.tabs.processor.Messages.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.Messages.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.predicate_return.xml
-org.eclipse.wst.xml.xpath.internal.ui.views.XPathViewActions.xml
-org.eclipse.wst.xsl.ui.internal.preferences.ValidationPreferencePage.xml
-org.eclipse.wst.xsl.launching.IProcessorJar.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.or_expr_return.xml
-org.eclipse.wst.xsl.internal.debug.ui.actions.MultipleInputDialog.Validator.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.axis_return.xml
-org.eclipse.wst.xsl.internal.debug.ui.XSLDebugUIConstants.xml
-org.eclipse.wst.xsl.internal.launching.Feature.xml
-org.eclipse.wst.xsl.debugger.BreakPoint.xml
-org.eclipse.wst.xsl.launching.ProcessorInstall.xml
-org.eclipse.wst.xsl.core.internal.xpath.parser.xpathParser.and_expr_return.xml
-org.eclipse.wst.xsl.invoker.Main.xml
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/.cvsignore b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/.cvsignore
deleted file mode 100644
index 175a2a6..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-deleteme.html
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_debugger.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_debugger.html
deleted file mode 100644
index 885c8c2..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_debugger.html
+++ /dev/null
@@ -1,61 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSLT Debugger</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSLT Debugger</H1>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.launching.jaxp.debugger<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>Contribute a debugger for a particular JAXP processor type (e.g. Saxon). The extension point primarily defines the classpath and transformer factory to be used when debugging.<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.debugger">debugger</a>+)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.debugger">debugger</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST debugger</p>
-<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">classpath&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">processorTypeId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">className&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">transformerFactoryClass&nbsp;CDATA #REQUIRED&gt;</p>
-<p></p>
-<p class="ConfigMarkupElementDesc">
-A debugger for a processor type</p>
-<br>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>id</b> - A unique id for this debugger</li>
-<li><b>name</b> - A name to be displayed in the UI</li>
-<li><b>classpath</b> - A ';'-separated classpath required to run the debugger (in addition to that already added by the processor itself).</li>
-<li><b>processorTypeId</b> - The processor type that this debugger works with</li>
-<li><b>className</b> - A fully-qualified class that implement the IXSLDebugger interface. It is easier to extend AbstractXSLDebugger.</li>
-<li><b>transformerFactoryClass</b> - The fully-qualified class name of the transformer factory to use for debugging. This must be one of the transformer factories belonging to the processor type.</li>
-</ul>
-<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><pre class="Example"><span class="code SchemaTag">
- &lt;extension
- point=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.jaxp.launching.debugger&quot;</span><span class="code SchemaTag">&gt;
- &lt;debugger
- className=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.debugger.XalanDebugger&quot;</span><span class="code SchemaTag">
- classpath=</span><span class="code SchemaCstring">&quot;${eclipse_orbit:org.eclipse.wst.xsl.xalan}&quot;</span><span class="code SchemaTag">
- id=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.debugger&quot;</span><span class="code SchemaTag">
- name=</span><span class="code SchemaCstring">&quot;Xalan 2.5.1 or greater&quot;</span><span class="code SchemaTag">
- processorTypeId=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.processorType&quot;</span><span class="code SchemaTag">
- transformerFactoryClass=</span><span class="code SchemaCstring">&quot;org.apache.xalan.processor.TransformerFactoryImpl&quot;</span><span class="code SchemaTag">&gt;
- &lt;/debugger&gt;
- &lt;/extension&gt;
-</span></pre>
-<p></p>
-
-<br>
-<p class="note SchemaCopyright">
-Copyright (c) 2007 Chase Technology Ltd - <a href="http://www.chasetechnology.co.uk">http://www.chasetechnology.co.uk</a>.<br>
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at <a
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_invoke.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_invoke.html
deleted file mode 100644
index 6deb4d1..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_invoke.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSLT Processor Invoker</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSLT Processor Invoker</H1>
-<div style="border: 1px solid #990000; padding: 5px; text-align: center; color: red;">This extension point is internal</div>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.launching.jaxp.invoke<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6><b>This extension point is internal and should not be used by any other plugins.</b><p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.invoker">invoker</a>)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.invoker">invoker</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST invoker</p>
-<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">classpath&nbsp;CDATA #REQUIRED&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>id</b> - Unique id for this invoker</li>
-<li><b>class</b> - A class that implements the IProcessorInvoker interface</li>
-<li><b>classpath</b> - A semi-colon separated list of jars relative to the root of the contributing plugin. One of the jars must contain the Invoker class named in the class attribute.</li>
-</ul>
-<br><br>
-<p class="note SchemaCopyright">
-Copyright (c) 2007 Chase Technology Ltd - <a href="http://www.chasetechnology.co.uk">http://www.chasetechnology.co.uk</a>.<br>
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at <a
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processor.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processor.html
deleted file mode 100644
index 6dee1a4..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processor.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSLT Processor</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSLT Processor</H1>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.launching.jaxp.processor<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>Contribute a Java XSLT processor instance (e.g. Xalan 2.7.0). The extension point primarily defines the classpath to be used when launching an XSLT transformation.<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.processor">processor</a>+)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.processor">processor</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST processor</p>
-<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">processorTypeId&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">classpath&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">debuggerId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">supports&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED&gt;</p>
-<p></p>
-<p class="ConfigMarkupElementDesc">
-An instance of a JAXP-compliant XSLT processor</p>
-<br>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>id</b> - A unique id for this processor instance</li>
-<li><b>label</b> - A label for this instance to be displayed in the UI</li>
-<li><b>processorTypeId</b> - The id for the processor type</li>
-<li><b>classpath</b> - The classpath to use when this processor is launched</li>
-<li><b>debuggerId</b> - The id of a debugger to associate with the processor</li>
-<li><b>supports</b> - A comma-separated list of supported XSLT versions e.g. 1.0,2.0</li>
-</ul>
-<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><pre class="Example"><span class="code SchemaTag">
- &lt;extension
- point=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.jaxp.launching.processor&quot;</span><span class="code SchemaTag">&gt;
- &lt;!-- An adopter can specify the ${eclipse_orbit: } variable to indicate which eclipse
- bundle should be added to the class path. --&gt;
- &lt;processor
- classpath=</span><span class="code SchemaCstring">&quot;${eclipse_orbit:org.apache.xalan};${eclipse_orbit:org.apache.xml.serializer};${eclipse_orbit:org.apache.bcel};${eclipse_orbit:java_cup.runtime}&quot;</span><span class="code SchemaTag">
- id=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.launching.xalan.processor&quot;</span><span class="code SchemaTag">
- label=</span><span class="code SchemaCstring">&quot;%processor.label.1&quot;</span><span class="code SchemaTag">
- processorTypeId=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.processorType&quot;</span><span class="code SchemaTag">
- debuggerId=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.debugger&quot;</span><span class="code SchemaTag">
- supports=</span><span class="code SchemaCstring">&quot;1.0&quot;</span><span class="code SchemaTag">&gt;
- &lt;/processor&gt;
- &lt;/extension&gt;
-</span></pre>
-<p></p>
-
-<br>
-<p class="note SchemaCopyright">
-Copyright (c) 2007 Chase Technology Ltd - <a href="http://www.chasetechnology.co.uk">http://www.chasetechnology.co.uk</a>.<br>
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at <a
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processorType.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processorType.html
deleted file mode 100644
index 2b8140f..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/extension_point/org_eclipse_wst_xsl_jaxp_launching_processorType.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<HTML>
-<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>XSLT Processor Type</title>
-<style type="text/css">@import url("../../book.css");</style>
-<style type="text/css">@import url("../../schema.css");</style>
-</HEAD>
-<BODY>
-<H1 style="text-align:center">XSLT Processor Type</H1>
-<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.xsl.launching.jaxp.processorType<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>Contribute a Java XSLT processor type (e.g. Xalan, Saxon). The processor type defines which JAXP attributes and output properies are supported, and also the transformer factory classes it contains.<p></p>
-<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
-<p></p>
-<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.processorType">processorType</a>+)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
-<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.processorType">processorType</a> (<a href="#e.transformerFactory">transformerFactory</a>*)&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST processorType</p>
-<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">label&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">outputProperties&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">attributeProperties&nbsp;CDATA #IMPLIED&gt;</p>
-<p></p>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>id</b> - Unique id for the processor type</li>
-<li><b>label</b> - Name for display in the UI</li>
-<li><b>outputProperties</b> - Location of a properties file containing the list of the processors output properties. Must be a path relative to the root of the bundle.</li>
-<li><b>attributeProperties</b> - Location of a properties file containing the list of the attributes supported by this processor. Must be a path relative to the root of the bundle.</li>
-</ul>
-<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.transformerFactory">transformerFactory</a> EMPTY&gt;</p>
-<p class="code SchemaDtd">&lt;!ATTLIST transformerFactory</p>
-<p class="code SchemaDtdAttlist">factoryClass&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED&gt;</p>
-<p></p>
-<p class="ConfigMarkupElementDesc">
-A TransformerFactory for this type</p>
-<br>
-<ul class="ConfigMarkupAttlistDesc">
-<li><b>factoryClass</b> - The fully-qualified transformer factory class</li>
-<li><b>name</b> - A name for this transformer factory to be displayed in the UI</li>
-</ul>
-<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6><pre class="Example"><span class="code SchemaTag">
- &lt;extension
- point=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.jaxp.launching.processorType&quot;</span><span class="code SchemaTag">&gt;
- &lt;processorType
- attributeProperties=</span><span class="code SchemaCstring">&quot;XalanAttributes.properties&quot;</span><span class="code SchemaTag">
- id=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.xsl.xalan.processorType&quot;</span><span class="code SchemaTag">
- label=</span><span class="code SchemaCstring">&quot;%processorType.label.0&quot;</span><span class="code SchemaTag">
- outputProperties=</span><span class="code SchemaCstring">&quot;XalanOutputProperties.properties&quot;</span><span class="code SchemaTag">&gt;
- &lt;transformerFactory
- factoryClass=</span><span class="code SchemaCstring">&quot;org.apache.xalan.processor.TransformerFactoryImpl&quot;</span><span class="code SchemaTag">
- name=</span><span class="code SchemaCstring">&quot;Interpretive&quot;</span><span class="code SchemaTag">&gt;
- &lt;/transformerFactory&gt;
- &lt;transformerFactory
- factoryClass=</span><span class="code SchemaCstring">&quot;org.apache.xalan.xsltc.trax.TransformerFactoryImpl&quot;</span><span class="code SchemaTag">
- name=</span><span class="code SchemaCstring">&quot;Compiling&quot;</span><span class="code SchemaTag">&gt;
- &lt;/transformerFactory&gt;
- &lt;/processorType&gt;
- &lt;/extension&gt;
-</span></pre>
-<p></p>
-
-<br>
-<p class="note SchemaCopyright">
-Copyright (c) 2007 Chase Technology Ltd - <a href="http://www.chasetechnology.co.uk">http://www.chasetechnology.co.uk</a>.<br>
-All rights reserved. This program and the accompanying materials are made
-available under the terms of the Eclipse Public License v1.0 which accompanies
-this distribution, and is available at <a
-href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
-
-</p>
-</BODY>
-</HTML>
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.XPathCorePlugin.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.XPathCorePlugin.html
deleted file mode 100644
index e4b81ed..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.XPathCorePlugin.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath.core</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath.core</strong></font><br>
- Class XPathCorePlugin</h2><br><hr><pre>public class <strong>XPathCorePlugin</strong>
-extends Plugin</pre>The activator class controls the plug-in life cycle<hr><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Field Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_PLUGIN_ID">PLUGIN_ID</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><br><table width="100%" border="1"><tr bgcolor="#CCCCFF"><td width="100%"><h2>Constructor Summary</h2></td></tr><tr><td><code><strong><a href="#con_XPathCorePlugin">XPathCorePlugin</a></strong>()</code></td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.eclipse.wst.xml.xpath.core.XPathCorePlugin</code></td><td width="" align="left"><code><a href="#method_getDefault">getDefault</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Returns the shared instance</td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_start">start</a>(BundleContext context)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_stop">stop</a>(BundleContext context)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Field Detail
- </h2></td></tr></table><h2><a name="field_PLUGIN_ID">PLUGIN_ID</a></h2><p><code>public static java.lang.String <strong>PLUGIN_ID</strong></code></p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Constructor Detail
- </h2></td></tr></table><h2><a name="con_XPathCorePlugin">XPathCorePlugin</a></h2><p><code>public <strong>XPathCorePlugin</strong>()</code></p><p>The constructor</p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Methods Detail
- </h2></td></tr></table><h2><a name="method_getDefault">getDefault</a></h2><p><code>public org.eclipse.wst.xml.xpath.core.XPathCorePlugin <strong>getDefault</strong>()</code></p><p>Returns the shared instance</p><h3>Returns</h3><p><code>org.eclipse.wst.xml.xpath.core.XPathCorePlugin</code> - the shared instance</p><hr><h2><a name="method_start">start</a></h2><p><code>public void <strong>start</strong>(BundleContext context)</code></p><p></p><h3>Parameters</h3><p><code>context</code></p><h3>Throws:</h3><p><code>java.lang.Exception</code></p><hr><h2><a name="method_stop">stop</a></h2><p><code>public void <strong>stop</strong>(BundleContext context)</code></p><p></p><h3>Parameters</h3><p><code>context</code></p><h3>Throws:</h3><p><code>java.lang.Exception</code></p><hr></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper.html
deleted file mode 100644
index 548a7c7..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper.html
+++ /dev/null
@@ -1,117 +0,0 @@
-<html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath.core.util</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath.core.util</strong></font><br>
- Class XSLTXPathHelper</h2><br><hr><pre>public class <strong>XSLTXPathHelper</strong>
-extends java.lang.Object</pre><hr><table width="100%" border="1"><tr bgcolor="#CCCCFF"><td width="100%"><h2>Constructor Summary</h2></td></tr><tr><td><code><strong><a href="#con_XSLTXPathHelper">XSLTXPathHelper</a></strong>()</code></td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static void</code></td><td width="" align="left"><code><a href="#method_compile">compile</a>(java.lang.String expression)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static XObject</code></td><td width="" align="left"><code><a href="#method_eval">eval</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Evaluate XPath string to an XObject. Using this method, XPath namespace
- prefixes will be resolved from the namespaceNode.</td></tr><tr valign="top"><td width="20%" align="right"><code>public static XObject</code></td><td width="" align="left"><code><a href="#method_eval">eval</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- org.w3c.dom.Node namespaceNode)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Evaluate XPath string to an XObject. XPath namespace prefixes are
- resolved from the namespaceNode. The implementation of this is a little
- slow, since it creates a number of objects each time it is called. This
- could be optimized to keep the same objects around, but then
- thread-safety issues would arise.</td></tr><tr valign="top"><td width="20%" align="right"><code>public static XObject</code></td><td width="" align="left"><code><a href="#method_eval">eval</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- PrefixResolver prefixResolver)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Evaluate XPath string to an XObject. XPath namespace prefixes are
- resolved from the namespaceNode. The implementation of this is a little
- slow, since it creates a number of objects each time it is called. This
- could be optimized to keep the same objects around, but then
- thread-safety issues would arise.</td></tr><tr valign="top"><td width="20%" align="right"><code>protected static FunctionTable</code></td><td width="" align="left"><code><a href="#method_getFunctionTable">getFunctionTable</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.w3c.dom.traversal.NodeIterator</code></td><td width="" align="left"><code><a href="#method_selectNodeIterator">selectNodeIterator</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Use an XPath string to select a nodelist. XPath namespace prefixes are
- resolved from the contextNode.</td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.w3c.dom.traversal.NodeIterator</code></td><td width="" align="left"><code><a href="#method_selectNodeIterator">selectNodeIterator</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- org.w3c.dom.Node namespaceNode)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Use an XPath string to select a nodelist. XPath namespace prefixes are
- resolved from the namespaceNode.</td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.w3c.dom.NodeList</code></td><td width="" align="left"><code><a href="#method_selectNodeList">selectNodeList</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Use an XPath string to select a nodelist. XPath namespace prefixes are
- resolved from the contextNode.</td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.w3c.dom.NodeList</code></td><td width="" align="left"><code><a href="#method_selectNodeList">selectNodeList</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- org.w3c.dom.Node namespaceNode)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Use an XPath string to select a nodelist. XPath namespace prefixes are
- resolved from the namespaceNode.</td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.w3c.dom.Node</code></td><td width="" align="left"><code><a href="#method_selectSingleNode">selectSingleNode</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Use an XPath string to select a single node. XPath namespace prefixes are
- resolved from the context node, which may not be what you want (see the
- next method).</td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.w3c.dom.Node</code></td><td width="" align="left"><code><a href="#method_selectSingleNode">selectSingleNode</a>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- org.w3c.dom.Node namespaceNode)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Use an XPath string to select a single node. XPath namespace prefixes are
- resolved from the namespaceNode.</td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Constructor Detail
- </h2></td></tr></table><h2><a name="con_XSLTXPathHelper">XSLTXPathHelper</a></h2><p><code>public <strong>XSLTXPathHelper</strong>()</code></p><p></p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Methods Detail
- </h2></td></tr></table><h2><a name="method_compile">compile</a></h2><p><code>public void <strong>compile</strong>(java.lang.String expression)</code></p><p></p><h3>Parameters</h3><p><code>expression</code></p><h3>Throws:</h3><p><code>javax.xml.xpath.XPathExpressionException</code></p><hr><h2><a name="method_eval">eval</a></h2><p><code>public XObject <strong>eval</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str)</code></p><p>Evaluate XPath string to an XObject. Using this method, XPath namespace
- prefixes will be resolved from the namespaceNode.</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><h3>Returns</h3><p><code>XObject</code> - An XObject, which can be used to obtain a string, number, nodelist, etc, should never be null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr><h2><a name="method_eval">eval</a></h2><p><code>public XObject <strong>eval</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- org.w3c.dom.Node namespaceNode)</code></p><p>Evaluate XPath string to an XObject. XPath namespace prefixes are
- resolved from the namespaceNode. The implementation of this is a little
- slow, since it creates a number of objects each time it is called. This
- could be optimized to keep the same objects around, but then
- thread-safety issues would arise.</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><p><code>namespaceNode</code> - The node from which prefixes in the XPath will be resolved to namespaces.</p><h3>Returns</h3><p><code>XObject</code> - An XObject, which can be used to obtain a string, number, nodelist, etc, should never be null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr><h2><a name="method_eval">eval</a></h2><p><code>public XObject <strong>eval</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- PrefixResolver prefixResolver)</code></p><p>Evaluate XPath string to an XObject. XPath namespace prefixes are
- resolved from the namespaceNode. The implementation of this is a little
- slow, since it creates a number of objects each time it is called. This
- could be optimized to keep the same objects around, but then
- thread-safety issues would arise.</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><p><code>prefixResolver</code> - Will be called if the parser encounters namespace prefixes, to resolve the prefixes to URLs.</p><h3>Returns</h3><p><code>XObject</code> - An XObject, which can be used to obtain a string, number, nodelist, etc, should never be null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr><h2><a name="method_getFunctionTable">getFunctionTable</a></h2><p><code>protected FunctionTable <strong>getFunctionTable</strong>()</code></p><p></p><h3>Returns</h3><p><code>FunctionTable</code></p><hr><h2><a name="method_selectNodeIterator">selectNodeIterator</a></h2><p><code>public org.w3c.dom.traversal.NodeIterator <strong>selectNodeIterator</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str)</code></p><p>Use an XPath string to select a nodelist. XPath namespace prefixes are
- resolved from the contextNode.</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><h3>Returns</h3><p><code>org.w3c.dom.traversal.NodeIterator</code> - A NodeIterator, should never be null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr><h2><a name="method_selectNodeIterator">selectNodeIterator</a></h2><p><code>public org.w3c.dom.traversal.NodeIterator <strong>selectNodeIterator</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- org.w3c.dom.Node namespaceNode)</code></p><p>Use an XPath string to select a nodelist. XPath namespace prefixes are
- resolved from the namespaceNode.</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><p><code>namespaceNode</code> - The node from which prefixes in the XPath will be resolved to namespaces.</p><h3>Returns</h3><p><code>org.w3c.dom.traversal.NodeIterator</code> - A NodeIterator, should never be null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr><h2><a name="method_selectNodeList">selectNodeList</a></h2><p><code>public org.w3c.dom.NodeList <strong>selectNodeList</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str)</code></p><p>Use an XPath string to select a nodelist. XPath namespace prefixes are
- resolved from the contextNode.</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><h3>Returns</h3><p><code>org.w3c.dom.NodeList</code> - A NodeIterator, should never be null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr><h2><a name="method_selectNodeList">selectNodeList</a></h2><p><code>public org.w3c.dom.NodeList <strong>selectNodeList</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- org.w3c.dom.Node namespaceNode)</code></p><p>Use an XPath string to select a nodelist. XPath namespace prefixes are
- resolved from the namespaceNode.</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><p><code>namespaceNode</code> - The node from which prefixes in the XPath will be resolved to namespaces.</p><h3>Returns</h3><p><code>org.w3c.dom.NodeList</code> - A NodeIterator, should never be null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr><h2><a name="method_selectSingleNode">selectSingleNode</a></h2><p><code>public org.w3c.dom.Node <strong>selectSingleNode</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str)</code></p><p>Use an XPath string to select a single node. XPath namespace prefixes are
- resolved from the context node, which may not be what you want (see the
- next method).</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><h3>Returns</h3><p><code>org.w3c.dom.Node</code> - The first node found that matches the XPath, or null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr><h2><a name="method_selectSingleNode">selectSingleNode</a></h2><p><code>public org.w3c.dom.Node <strong>selectSingleNode</strong>(org.w3c.dom.Node contextNode
- ,
- java.lang.String str
- ,
- org.w3c.dom.Node namespaceNode)</code></p><p>Use an XPath string to select a single node. XPath namespace prefixes are
- resolved from the namespaceNode.</p><h3>Parameters</h3><p><code>contextNode</code> - The node to start searching from.</p><p><code>str</code> - A valid XPath string.</p><p><code>namespaceNode</code> - The node from which prefixes in the XPath will be resolved to namespaces.</p><h3>Returns</h3><p><code>org.w3c.dom.Node</code> - The first node found that matches the XPath, or null.</p><h3>Throws:</h3><p><code>javax.xml.transform.TransformerException</code></p><hr></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathUIMessages.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathUIMessages.html
deleted file mode 100644
index a921231..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathUIMessages.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath.ui</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath.ui</strong></font><br>
- Class XPathUIMessages</h2><br><hr><pre>public class <strong>XPathUIMessages</strong>
-extends NLS</pre>Strings used by XPath UI<hr><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Field Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Context">XPathNavigator_Context</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Document">XPathNavigator_Document</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_DOM_Tree">XPathNavigator_DOM_Tree</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Expression">XPathNavigator_Expression</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Namespace_Prefixes">XPathNavigator_Namespace_Prefixes</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Namespaces">XPathNavigator_Namespaces</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Namespaces_Tip">XPathNavigator_Namespaces_Tip</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Node_could_not_be_selected">XPathNavigator_Node_could_not_be_selected</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Nothing_selected">XPathNavigator_Nothing_selected</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Refresh_Source_Docs">XPathNavigator_Refresh_Source_Docs</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Refresh_Source_Docs_Tip">XPathNavigator_Refresh_Source_Docs_Tip</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Run_on_selected">XPathNavigator_Run_on_selected</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Run_XPath_Query">XPathNavigator_Run_XPath_Query</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Select_source_first">XPathNavigator_Select_source_first</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Selection">XPathNavigator_Selection</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Show_In_Source">XPathNavigator_Show_In_Source</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Show_In_Source_Tip">XPathNavigator_Show_In_Source_Tip</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_Text">XPathNavigator_Text</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_XML_Source_Document">XPathNavigator_XML_Source_Document</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_XPath_Eval_Failed">XPathNavigator_XPath_Eval_Failed</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_XPath_Navigator">XPathNavigator_XPath_Navigator</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="80%" align="left"><code><a href="#field_XPathNavigator_XPath_Show_In_Source_Failed">XPathNavigator_XPath_Show_In_Source_Failed</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.util.ResourceBundle</code></td><td width="" align="left"><code><a href="#method_getResourceBundle">getResourceBundle</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Field Detail
- </h2></td></tr></table><h2><a name="field_XPathNavigator_Context">XPathNavigator_Context</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Context</strong></code></p><hr><h2><a name="field_XPathNavigator_Document">XPathNavigator_Document</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Document</strong></code></p><hr><h2><a name="field_XPathNavigator_DOM_Tree">XPathNavigator_DOM_Tree</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_DOM_Tree</strong></code></p><hr><h2><a name="field_XPathNavigator_Expression">XPathNavigator_Expression</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Expression</strong></code></p><hr><h2><a name="field_XPathNavigator_Namespace_Prefixes">XPathNavigator_Namespace_Prefixes</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Namespace_Prefixes</strong></code></p><hr><h2><a name="field_XPathNavigator_Namespaces">XPathNavigator_Namespaces</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Namespaces</strong></code></p><hr><h2><a name="field_XPathNavigator_Namespaces_Tip">XPathNavigator_Namespaces_Tip</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Namespaces_Tip</strong></code></p><hr><h2><a name="field_XPathNavigator_Node_could_not_be_selected">XPathNavigator_Node_could_not_be_selected</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Node_could_not_be_selected</strong></code></p><hr><h2><a name="field_XPathNavigator_Nothing_selected">XPathNavigator_Nothing_selected</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Nothing_selected</strong></code></p><hr><h2><a name="field_XPathNavigator_Refresh_Source_Docs">XPathNavigator_Refresh_Source_Docs</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Refresh_Source_Docs</strong></code></p><hr><h2><a name="field_XPathNavigator_Refresh_Source_Docs_Tip">XPathNavigator_Refresh_Source_Docs_Tip</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Refresh_Source_Docs_Tip</strong></code></p><hr><h2><a name="field_XPathNavigator_Run_on_selected">XPathNavigator_Run_on_selected</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Run_on_selected</strong></code></p><hr><h2><a name="field_XPathNavigator_Run_XPath_Query">XPathNavigator_Run_XPath_Query</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Run_XPath_Query</strong></code></p><hr><h2><a name="field_XPathNavigator_Select_source_first">XPathNavigator_Select_source_first</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Select_source_first</strong></code></p><hr><h2><a name="field_XPathNavigator_Selection">XPathNavigator_Selection</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Selection</strong></code></p><hr><h2><a name="field_XPathNavigator_Show_In_Source">XPathNavigator_Show_In_Source</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Show_In_Source</strong></code></p><hr><h2><a name="field_XPathNavigator_Show_In_Source_Tip">XPathNavigator_Show_In_Source_Tip</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Show_In_Source_Tip</strong></code></p><hr><h2><a name="field_XPathNavigator_Text">XPathNavigator_Text</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_Text</strong></code></p><hr><h2><a name="field_XPathNavigator_XML_Source_Document">XPathNavigator_XML_Source_Document</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_XML_Source_Document</strong></code></p><hr><h2><a name="field_XPathNavigator_XPath_Eval_Failed">XPathNavigator_XPath_Eval_Failed</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_XPath_Eval_Failed</strong></code></p><hr><h2><a name="field_XPathNavigator_XPath_Navigator">XPathNavigator_XPath_Navigator</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_XPath_Navigator</strong></code></p><hr><h2><a name="field_XPathNavigator_XPath_Show_In_Source_Failed">XPathNavigator_XPath_Show_In_Source_Failed</a></h2><p><code>public static java.lang.String <strong>XPathNavigator_XPath_Show_In_Source_Failed</strong></code></p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Methods Detail
- </h2></td></tr></table><h2><a name="method_getResourceBundle">getResourceBundle</a></h2><p><code>public java.util.ResourceBundle <strong>getResourceBundle</strong>()</code></p><p></p><h3>Returns</h3><p><code>java.util.ResourceBundle</code></p><hr></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathViewPlugin.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathViewPlugin.html
deleted file mode 100644
index c3434c2..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.XPathViewPlugin.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath.ui</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath.ui</strong></font><br>
- Class XPathViewPlugin</h2><br><hr><pre>public class <strong>XPathViewPlugin</strong>
-extends AbstractUIPlugin</pre><hr><table width="100%" border="1"><tr bgcolor="#CCCCFF"><td width="100%"><h2>Constructor Summary</h2></td></tr><tr><td><code><strong><a href="#con_XPathViewPlugin">XPathViewPlugin</a></strong>()</code></td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public static org.eclipse.wst.xml.xpath.ui.XPathViewPlugin</code></td><td width="" align="left"><code><a href="#method_getDefault">getDefault</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Returns the shared instance.</td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="" align="left"><code><a href="#method_getPluginId">getPluginId</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public java.util.ResourceBundle</code></td><td width="" align="left"><code><a href="#method_getResourceBundle">getResourceBundle</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Returns the plugin's resource bundle</td></tr><tr valign="top"><td width="20%" align="right"><code>public static java.lang.String</code></td><td width="" align="left"><code><a href="#method_getResourceString">getResourceString</a>(java.lang.String key)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Returns the string from the plugin's resource bundle,
- or 'key' if not found.</td></tr><tr valign="top"><td width="20%" align="right"><code>public ContextTypeRegistry</code></td><td width="" align="left"><code><a href="#method_getXPathTemplateContextRegistry">getXPathTemplateContextRegistry</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Returns the template context type registry for xpath</td></tr><tr valign="top"><td width="20%" align="right"><code>public TemplateStore</code></td><td width="" align="left"><code><a href="#method_getXPathTemplateStore">getXPathTemplateStore</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- Returns the template store for the xpath templates.</td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_info">info</a>(java.lang.String message)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>protected void</code></td><td width="" align="left"><code><a href="#method_initializeImageRegistry">initializeImageRegistry</a>(ImageRegistry reg)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_log">log</a>(java.lang.String message
- ,
- java.lang.Throwable ex)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_log">log</a>(java.lang.Throwable ex)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_partActivated">partActivated</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_partBroughtToTop">partBroughtToTop</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_partClosed">partClosed</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_partDeactivated">partDeactivated</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_partHidden">partHidden</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_partInputChanged">partInputChanged</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_partOpened">partOpened</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_partVisible">partVisible</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_start">start</a>(BundleContext context)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- This method is called upon plug-in activation</td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_stop">stop</a>(BundleContext context)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- This method is called when the plug-in is stopped</td></tr><tr valign="top"><td width="20%" align="right"><code>public static void</code></td><td width="" align="left"><code><a href="#method_throwCoreException">throwCoreException</a>(java.lang.String message
- ,
- java.lang.Throwable t)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>protected void</code></td><td width="" align="left"><code><a href="#method_updateXPathNavigatorView">updateXPathNavigatorView</a>(IWorkbenchPartReference partRef)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_warn">warn</a>(java.lang.String message)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Constructor Detail
- </h2></td></tr></table><h2><a name="con_XPathViewPlugin">XPathViewPlugin</a></h2><p><code>public <strong>XPathViewPlugin</strong>()</code></p><p>The constructor.</p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Methods Detail
- </h2></td></tr></table><h2><a name="method_getDefault">getDefault</a></h2><p><code>public org.eclipse.wst.xml.xpath.ui.XPathViewPlugin <strong>getDefault</strong>()</code></p><p>Returns the shared instance.</p><h3>Returns</h3><p><code>org.eclipse.wst.xml.xpath.ui.XPathViewPlugin</code></p><hr><h2><a name="method_getPluginId">getPluginId</a></h2><p><code>public java.lang.String <strong>getPluginId</strong>()</code></p><p></p><h3>Returns</h3><p><code>java.lang.String</code></p><hr><h2><a name="method_getResourceBundle">getResourceBundle</a></h2><p><code>public java.util.ResourceBundle <strong>getResourceBundle</strong>()</code></p><p>Returns the plugin's resource bundle</p><h3>Returns</h3><p><code>java.util.ResourceBundle</code></p><hr><h2><a name="method_getResourceString">getResourceString</a></h2><p><code>public java.lang.String <strong>getResourceString</strong>(java.lang.String key)</code></p><p>Returns the string from the plugin's resource bundle,
- or 'key' if not found.</p><h3>Parameters</h3><p><code>key</code></p><h3>Returns</h3><p><code>java.lang.String</code></p><hr><h2><a name="method_getXPathTemplateContextRegistry">getXPathTemplateContextRegistry</a></h2><p><code>public ContextTypeRegistry <strong>getXPathTemplateContextRegistry</strong>()</code></p><p>Returns the template context type registry for xpath</p><h3>Returns</h3><p><code>ContextTypeRegistry</code> - the template context type registry for xpath</p><hr><h2><a name="method_getXPathTemplateStore">getXPathTemplateStore</a></h2><p><code>public TemplateStore <strong>getXPathTemplateStore</strong>()</code></p><p>Returns the template store for the xpath templates.</p><h3>Returns</h3><p><code>TemplateStore</code> - the template store for the xpath templates</p><hr><h2><a name="method_info">info</a></h2><p><code>public void <strong>info</strong>(java.lang.String message)</code></p><p></p><h3>Parameters</h3><p><code>message</code></p><hr><h2><a name="method_initializeImageRegistry">initializeImageRegistry</a></h2><p><code>protected void <strong>initializeImageRegistry</strong>(ImageRegistry reg)</code></p><p></p><h3>Parameters</h3><p><code>reg</code></p><hr><h2><a name="method_log">log</a></h2><p><code>public void <strong>log</strong>(java.lang.String message
- ,
- java.lang.Throwable ex)</code></p><p></p><h3>Parameters</h3><p><code>message</code></p><p><code>ex</code></p><hr><h2><a name="method_log">log</a></h2><p><code>public void <strong>log</strong>(java.lang.Throwable ex)</code></p><p></p><h3>Parameters</h3><p><code>ex</code></p><hr><h2><a name="method_partActivated">partActivated</a></h2><p><code>public void <strong>partActivated</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_partBroughtToTop">partBroughtToTop</a></h2><p><code>public void <strong>partBroughtToTop</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_partClosed">partClosed</a></h2><p><code>public void <strong>partClosed</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_partDeactivated">partDeactivated</a></h2><p><code>public void <strong>partDeactivated</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_partHidden">partHidden</a></h2><p><code>public void <strong>partHidden</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_partInputChanged">partInputChanged</a></h2><p><code>public void <strong>partInputChanged</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_partOpened">partOpened</a></h2><p><code>public void <strong>partOpened</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_partVisible">partVisible</a></h2><p><code>public void <strong>partVisible</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_start">start</a></h2><p><code>public void <strong>start</strong>(BundleContext context)</code></p><p>This method is called upon plug-in activation</p><h3>Parameters</h3><p><code>context</code></p><h3>Throws:</h3><p><code>java.lang.Exception</code></p><hr><h2><a name="method_stop">stop</a></h2><p><code>public void <strong>stop</strong>(BundleContext context)</code></p><p>This method is called when the plug-in is stopped</p><h3>Parameters</h3><p><code>context</code></p><h3>Throws:</h3><p><code>java.lang.Exception</code></p><hr><h2><a name="method_throwCoreException">throwCoreException</a></h2><p><code>public void <strong>throwCoreException</strong>(java.lang.String message
- ,
- java.lang.Throwable t)</code></p><p></p><h3>Parameters</h3><p><code>message</code></p><p><code>t</code></p><h3>Throws:</h3><p><code>CoreException</code></p><hr><h2><a name="method_updateXPathNavigatorView">updateXPathNavigatorView</a></h2><p><code>protected void <strong>updateXPathNavigatorView</strong>(IWorkbenchPartReference partRef)</code></p><p></p><h3>Parameters</h3><p><code>partRef</code></p><hr><h2><a name="method_warn">warn</a></h2><p><code>public void <strong>warn</strong>(java.lang.String message)</code></p><p></p><h3>Parameters</h3><p><code>message</code></p><hr></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMNodeLabelProvider.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMNodeLabelProvider.html
deleted file mode 100644
index b4596d3..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMNodeLabelProvider.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath.ui.views</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath.ui.views</strong></font><br>
- Class DOMNodeLabelProvider</h2><br><hr><pre>public class <strong>DOMNodeLabelProvider</strong>
-extends LabelProvider</pre><hr><table width="100%" border="1"><tr bgcolor="#CCCCFF"><td width="100%"><h2>Constructor Summary</h2></td></tr><tr><td><code><strong><a href="#con_DOMNodeLabelProvider">DOMNodeLabelProvider</a></strong>()</code></td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public Image</code></td><td width="" align="left"><code><a href="#method_getImage">getImage</a>(java.lang.Object element)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public java.lang.String</code></td><td width="" align="left"><code><a href="#method_getText">getText</a>(java.lang.Object element)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Constructor Detail
- </h2></td></tr></table><h2><a name="con_DOMNodeLabelProvider">DOMNodeLabelProvider</a></h2><p><code>public <strong>DOMNodeLabelProvider</strong>()</code></p><p></p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Methods Detail
- </h2></td></tr></table><h2><a name="method_getImage">getImage</a></h2><p><code>public Image <strong>getImage</strong>(java.lang.Object element)</code></p><p></p><h3>Parameters</h3><p><code>element</code></p><h3>Returns</h3><p><code>Image</code></p><hr><h2><a name="method_getText">getText</a></h2><p><code>public java.lang.String <strong>getText</strong>(java.lang.Object element)</code></p><p></p><h3>Parameters</h3><p><code>element</code></p><h3>Returns</h3><p><code>java.lang.String</code></p><hr></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMTreeContentProvider.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMTreeContentProvider.html
deleted file mode 100644
index 7ea99b3..0000000
--- a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMTreeContentProvider.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<html><body><p><font size="+1"><strong>Package org.eclipse.wst.xml.xpath.ui.views</strong></font></p><hr><h2><font size="-1"><strong>org.eclipse.wst.xml.xpath.ui.views</strong></font><br>
- Class DOMTreeContentProvider</h2><br><hr><pre>public class <strong>DOMTreeContentProvider</strong>
-extends java.lang.Object</pre><hr><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Field Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>package-private org.w3c.dom.Node</code></td><td width="80%" align="left"><code><a href="#field_node">node</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>package-private static java.lang.Object[]</code></td><td width="80%" align="left"><code><a href="#field_NOTHING">NOTHING</a></code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><br><table width="100%" border="1"><tr bgcolor="#CCCCFF"><td width="100%"><h2>Constructor Summary</h2></td></tr><tr><td><code><strong><a href="#con_DOMTreeContentProvider">DOMTreeContentProvider</a></strong>()</code></td></tr></table><br><table width="100%" border="1"><tr cols="2" bgcolor="#CCCCFF"><td colspan="2" width="100%"><h2>Method Summary</h2></td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_dispose">dispose</a>()</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public java.lang.Object[]</code></td><td width="" align="left"><code><a href="#method_getChildren">getChildren</a>(java.lang.Object parentElement)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public java.lang.Object[]</code></td><td width="" align="left"><code><a href="#method_getElements">getElements</a>(java.lang.Object inputElement)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public java.lang.Object</code></td><td width="" align="left"><code><a href="#method_getParent">getParent</a>(java.lang.Object element)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public boolean</code></td><td width="" align="left"><code><a href="#method_hasChildren">hasChildren</a>(java.lang.Object element)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr><tr valign="top"><td width="20%" align="right"><code>public void</code></td><td width="" align="left"><code><a href="#method_inputChanged">inputChanged</a>(Viewer viewer
- ,
- java.lang.Object oldInput
- ,
- java.lang.Object newInput)</code><br>
- &nbsp;&nbsp;&nbsp;&nbsp;
- </td></tr></table><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Field Detail
- </h2></td></tr></table><h2><a name="field_node">node</a></h2><p><code>package-private org.w3c.dom.Node <strong>node</strong></code></p><hr><h2><a name="field_NOTHING">NOTHING</a></h2><p><code>package-private static java.lang.Object[] <strong>NOTHING</strong></code></p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Constructor Detail
- </h2></td></tr></table><h2><a name="con_DOMTreeContentProvider">DOMTreeContentProvider</a></h2><p><code>public <strong>DOMTreeContentProvider</strong>()</code></p><p></p><hr><table cols="2" width="100%" border="1"><tr colspan="2" width="100%" bgcolor="#CCCCFF" align="left"><td><h2>
- Methods Detail
- </h2></td></tr></table><h2><a name="method_dispose">dispose</a></h2><p><code>public void <strong>dispose</strong>()</code></p><p></p><hr><h2><a name="method_getChildren">getChildren</a></h2><p><code>public java.lang.Object[] <strong>getChildren</strong>(java.lang.Object parentElement)</code></p><p></p><h3>Parameters</h3><p><code>parentElement</code></p><h3>Returns</h3><p><code>java.lang.Object[]</code></p><hr><h2><a name="method_getElements">getElements</a></h2><p><code>public java.lang.Object[] <strong>getElements</strong>(java.lang.Object inputElement)</code></p><p></p><h3>Parameters</h3><p><code>inputElement</code></p><h3>Returns</h3><p><code>java.lang.Object[]</code></p><hr><h2><a name="method_getParent">getParent</a></h2><p><code>public java.lang.Object <strong>getParent</strong>(java.lang.Object element)</code></p><p></p><h3>Parameters</h3><p><code>element</code></p><h3>Returns</h3><p><code>java.lang.Object</code></p><hr><h2><a name="method_hasChildren">hasChildren</a></h2><p><code>public boolean <strong>hasChildren</strong>(java.lang.Object element)</code></p><p></p><h3>Parameters</h3><p><code>element</code></p><h3>Returns</h3><p><code>boolean</code></p><hr><h2><a name="method_inputChanged">inputChanged</a></h2><p><code>public void <strong>inputChanged</strong>(Viewer viewer
- ,
- java.lang.Object oldInput
- ,
- java.lang.Object newInput)</code></p><p></p><h3>Parameters</h3><p><code>viewer</code></p><p><code>oldInput</code></p><p><code>newInput</code></p><hr></body></html> \ No newline at end of file
diff --git a/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMViewerFilter.html b/docs/org.eclipse.wst.xsl.sdk.documentation/doc/html/org.eclipse.wst.xml.xpath.ui.views.DOMViewerFilter.html
deleted file mode 100644
index 5724acf..0000000