[246500] Model Stylesheet getGlobalVariables() doesn't include parameters https://bugs.eclipse.org/bugs/show_bug.cgi?id=246500
diff --git a/bundles/org.eclipse.wst.xsl.core/.cvsignore b/bundles/org.eclipse.wst.xsl.core/.cvsignore
index 964f6df..a066c9c 100644
--- a/bundles/org.eclipse.wst.xsl.core/.cvsignore
+++ b/bundles/org.eclipse.wst.xsl.core/.cvsignore
@@ -1,2 +1,3 @@
 src_xpath
 xpathgrammar
+.byecycle
diff --git a/bundles/org.eclipse.wst.xsl.core/META-INF/MANIFEST.MF b/bundles/org.eclipse.wst.xsl.core/META-INF/MANIFEST.MF
index ad0b998..80dda1e 100644
--- a/bundles/org.eclipse.wst.xsl.core/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.wst.xsl.core/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@
 Bundle-ManifestVersion: 2
 Bundle-Name: %Bundle-Name.0
 Bundle-SymbolicName: org.eclipse.wst.xsl.core;singleton:=true
-Bundle-Version: 1.0.100.qualifier
+Bundle-Version: 1.1.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)",
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
index 57995a4..5c776e4 100644
--- 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
@@ -219,7 +219,7 @@
 					CallTemplate currentCallTemplate = callTemplates.peek();
 					currentCallTemplate.addParameter(param);
 					xslEl = param;
-				} else if ("variable".equals(elName)) //$NON-NLS-1$
+				} else if ("variable".equals(elName) || "param".equals(elName)) //$NON-NLS-1$ //$NON-NLS-2$
 				{
 					if (elementStack.size() == 1)
 					{// global variable
@@ -233,7 +233,7 @@
 						currentTemplate.addVariable(var);
 						xslEl = var;
 					}
-				} 
+				}
 				else {
 					xslEl = new XSLElement(sf);
 				}
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
index a8d92a9..27f4df9 100644
--- 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
@@ -7,6 +7,7 @@
  *
  * Contributors:
  *     Doug Satchwell (Chase Technology Ltd) - initial API and implementation
+ *     David Carver (STAR) - bug 246500 - Add Paramters to global variables type.
  *******************************************************************************/
 package org.eclipse.wst.xsl.core.model;
 
@@ -53,4 +54,9 @@
 			return true;
 		return false; 
 	}
+	
+	@Override
+	public Type getModelType() {
+		return Type.PARAM;
+	}
 }
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
index 8b58e30..1bae6a7 100644
--- 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
@@ -7,6 +7,7 @@
  *
  * Contributors:
  *     Doug Satchwell (Chase Technology Ltd) - initial API and implementation
+ *     David Carver (STAR) - bug 246500 - added ability to get parameters in global variables.
  *******************************************************************************/
 package org.eclipse.wst.xsl.core.model;
 
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
index 8f7b2a5..0ecdba1 100644
--- 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
@@ -1,15 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Chase Technologies 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 Satchwel (Chase Technologies) - initial API and implementation
+ *******************************************************************************/
 package org.eclipse.wst.xsl.core.model;
 
 import org.eclipse.core.runtime.PlatformObject;
 
 /**
- * @author dcarver
+ * 
  * @since 1.0
  *
  */
 public abstract class XSLModelObject extends PlatformObject
 {
-	public enum Type {STYLESHEET_MODEL,IMPORT,INCLUDE,TEMPLATE,VARIABLE, CALL_TEMPLATE, STYLESHEET, ATTRIBUTE, OTHER_ELEMENT};
+	public enum Type {STYLESHEET_MODEL,IMPORT,INCLUDE,TEMPLATE,VARIABLE, CALL_TEMPLATE, STYLESHEET, ATTRIBUTE, OTHER_ELEMENT, /**
+	 * @since 1.1
+	 */
+	PARAM};
 	
 	public abstract Type getModelType();
 }