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

Add an Option to the XSLT Component to support custom EntityResolver

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.0
    • Fix Version/s: 2.18.0
    • Component/s: camel-core
    • Labels:
    • Environment:

      all (windows, linux)

    • Estimated Complexity:
      Novice

      Description

      While using the XSLT component of Camel i came across this post in Nabble:

      http://camel.465427.n5.nabble.com/Make-xslt-component-not-to-validate-dtd-s-or-use-local-copy-td5727789.html#a5728034

      I am using XML files that looks like:

      <!DOCTYPE E20 SYSTEM  "myapp.dtd"><E20>
      	<E20.001>
      		<REC.ID>A00008:20:018046</REC.ID>
      	</E20.001>
      <COMP VAR="A">&lt;&lt;m&eacute;talliques&gt;&gt; &lt;s&eacute;dimentation&gt; pargravi</COMP>
      ...
      

      so it would be nice to have a EntityResolver for my DTD and the entities.

      At the moment i can only specify a custom URIResolver bean (which works great, by the way).
      (see "uriResolver"-option documentation http://camel.apache.org/xslt.html)

      Is it possible to add an simliar option to the XSLT component to achieve this?

      I am using Camel 2.17.0 and Saxon 9.5.1.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                h.willuhn Hubertus Willuhn
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: