diff --git a/lib/galaxy/tools/xsd/galaxy.xsd b/lib/galaxy/tools/xsd/galaxy.xsd
index 3ced93719fd..96f9f9289a2 100644
--- a/lib/galaxy/tools/xsd/galaxy.xsd
+++ b/lib/galaxy/tools/xsd/galaxy.xsd
@@ -4888,16 +4888,17 @@ for more examples.
]]>
-
+
- This value must be the attribute name of
+ This attribute should be the name of
the desired input parameter (e.g. ``input="out_format"`` above).
- This value must also be an attribute
-name of an input parameter (e.g. ``value="interval"`` above).
+ This must be a possible value of the ``input``
+parameter (e.g. ``value="interval"`` above), or of the deprecated ``input_dataset``'s
+``attribute.
@@ -4908,6 +4909,16 @@ name of an input parameter (e.g. ``value="interval"`` above).
for a list of supported formats.
+
+
+ Deprecated.
+
+
+
+
+ Deprecated.
+
+
diff --git a/test/functional/tools/output_format_deprecated_when.xml b/test/functional/tools/output_format_deprecated_when.xml
new file mode 100644
index 00000000000..63cf1b406e1
--- /dev/null
+++ b/test/functional/tools/output_format_deprecated_when.xml
@@ -0,0 +1,30 @@
+
+
+ echo "test" > 5;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/functional/tools/samples_tool_conf.xml b/test/functional/tools/samples_tool_conf.xml
index 9ea7ee03ac7..40fa9c1f17b 100644
--- a/test/functional/tools/samples_tool_conf.xml
+++ b/test/functional/tools/samples_tool_conf.xml
@@ -48,6 +48,7 @@
+