<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://www.springframework.org/schema/integration/scripting"
			xmlns:xsd="http://www.w3.org/2001/XMLSchema"
			targetNamespace="http://www.springframework.org/schema/integration/scripting"
			elementFormDefault="qualified">

	<xsd:include
			schemaLocation="https://www.springframework.org/schema/integration/scripting/spring-integration-scripting-core.xsd"/>

	<xsd:element name="script">
		<xsd:annotation>
			<xsd:documentation>
				Configures an inner bean
				('org.springframework.integration.scripting.jsr223.ScriptExecutingMessageProcessor')
				that will generate a JSR 223 compliant script.
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>

	<xsd:complexType name="Jsr223Script">
		<xsd:complexContent>
			<xsd:extension base="ScriptType">
				<xsd:attribute name="lang">
					<xsd:annotation>
						<xsd:documentation>
							The script language or JSR 223 scripting engine name. Required only for inline scripts.
							If a script location is referenced, the language may be derived from the file extension
							(.rb: ruby, .groovy, js: javascript (ECMAScript), .py: python).
						</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
				<xsd:attribute name="return">
					<xsd:annotation>
						<xsd:documentation>
							The script variable to return as a result of the evaluation (Optional).
						</xsd:documentation>
					</xsd:annotation>
				</xsd:attribute>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>


</xsd:schema>
