Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2463

xslt component - Should be able to load resources from classpath in xsl:include

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2, 2.0.0, 2.1.0, 2.2.0
    • 1.6.3, 2.3.0
    • camel-spring
    • None

    Description

      If you use xsl include

          <xsl:include href="staff_template.xsl"/>
      

      Then currently staff_template.xsl is expected to be loaded from file system from the folder where Camel was started.
      What it should support is to load it relative to the endpoint uri configured and from classpath.

      So if you have configured the endpoint as follows

                          .to("xslt:org/apache/camel/component/xslt/staff_include_relative.xsl")
      

      Then the staff_template.xsl file should be loaded from classpath in the folder org/apache/camel/component/xslt.
      Which means the 2 xsl files is in the same location.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: