<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:int="http://www.springframework.org/schema/integration"
       xmlns:int-xml="http://www.springframework.org/schema/integration/xml"
       xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/integration/xml https://www.springframework.org/schema/integration/xml/spring-integration-xml.xsd">

    <int:message-history/>

    <int:channel id="output">
        <int:queue/>
    </int:channel>

    <int-xml:xslt-transformer id="paramHeadersWithStartWildCharacter"
                              input-channel="paramHeadersWithStartWildCharacterChannel"
                              output-channel="output"
                              xsl-resource="classpath:org/springframework/integration/xml/transformer/transformer.xslt"
                              xslt-param-headers="*Param, foo"
                              transformer-factory-class="com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl">
    </int-xml:xslt-transformer>

    <int-xml:xslt-transformer id="paramHeadersWithEndWildCharacter"
                              input-channel="paramHeadersWithEndWildCharacterChannel"
                              output-channel="output"
                              xsl-resource="classpath:org/springframework/integration/xml/transformer/transformer.xslt"
                              xslt-param-headers="testP*">
    </int-xml:xslt-transformer>

    <int-xml:xslt-transformer id="paramHeadersWithIndividualParameters"
                              input-channel="paramHeadersWithIndividualParametersChannel"
                              output-channel="output"
                              xsl-resource="classpath:org/springframework/integration/xml/transformer/transformer.xslt">

        <int-xml:xslt-param name="testParam" expression="headers.testParam"/>
        <int-xml:xslt-param name="testParam2" expression="headers.testParam2"/>
        <int-xml:xslt-param name="unresolved" expression="headers.foo"/>
        <int-xml:xslt-param name="testParam3" value="hello"/>
    </int-xml:xslt-transformer>

    <int-xml:xslt-transformer id="paramHeadersCombo"
                              input-channel="paramHeadersComboChannel"
                              output-channel="output"
                              xsl-resource="classpath:org/springframework/integration/xml/transformer/transformer.xslt"
                              xslt-param-headers="testP*">

        <int-xml:xslt-param name="testParam3" value="hello"/>
    </int-xml:xslt-transformer>

    <int-xml:xslt-transformer id="outputAsString"
                              input-channel="outputAsStringChannel"
                              output-channel="output" result-type="StringResult" result-transformer="resultToStringTransformer"
                              xsl-resource="classpath:org/springframework/integration/xml/transformer/transform-tostring.xsl">
    </int-xml:xslt-transformer>

	<int-xml:xslt-transformer id="outputFileAsString"
							  input-channel="outputFileAsStringChannel"
							  output-channel="output" result-transformer="resultToStringTransformer"
							  xsl-resource="classpath:org/springframework/integration/xml/transformer/transform-tostring.xsl">
	</int-xml:xslt-transformer>

    <bean id="resultToStringTransformer" class="org.springframework.integration.xml.transformer.ResultToStringTransformer" />



</beans>
