Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3067

xslt-transformer should return correct 'text' result for <xsl:output method="text">

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.2.4
    • Fix Version/s: 3.0 M3
    • Component/s: XML
    • Labels:

      Description

      The following xslt-transformer configuration:

      <int-xml:xslt-transformer id="itemTransformer"
      	    input-channel="inputChannel" output-channel="outputChannel"
      	    xsl-resource="file:/test-transformer.xsl" result-transformer="resultToString">
      	</int-xml:xslt-transformer>
      

      Does not seem to accept <xsl:output method="text"/>. The result of this transformation is the following line in the output:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      

      If the output type is changed to xml or html things seem to work fine. The xsl and the xml are attached.

      This is the same issue as INT-1838 which should have been resolved in 2.0.4.

        Attachments

        1. integration-config.xml
          2 kB
        2. SMTP216DWC10_20130430_180857P.txt
          0.1 kB
        3. test.xml
          2 kB
        4. test-transformer.xsl
          0.2 kB

          Issue Links

            Activity

              People

              • Assignee:
                abilan Artem Bilan
                Reporter:
                farhanhh Farhan Hussain
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: