Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-3658

Specify custom TransformerFactory in org.springframework.web.servlet.view.xslt.XsltView

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: 2.0.7, 2.1 M3
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      org.springframework.web.servlet.view.xslt.XsltView has outstanding realization and solves all our problems except one.
      Would be quite useful to have an ability to customize TransformerFactory implementation via class specification or instantiation of realization.

      Currently the only ways to specify custom TransformerFactory for XsltView are to set System Property "javax.xml.transform.TransformerFactory" or put custom library to endorsed path (either of jvm or app-server). But both of them are too strong and may violate behaviour of app-server or ay other component of system.

      It would be handy to have a set method for "TransformerFactory transformerFactory" field or any other way to override JAXP TransformerFactory.newInstance() logic.

        Issue Links

          Activity

          Hide
          juergen.hoeller Juergen Hoeller added a comment -

          Thanks for the suggestion! I've added a "transformerFactoryClass" property and a "newTransformerFactory()" template method to XsltView as well as its sibling AbstractXsltView.

          This will be available in the next nightly 2.1 M3 and 2.0.7 snapshots.

          Juergen

          Show
          juergen.hoeller Juergen Hoeller added a comment - Thanks for the suggestion! I've added a "transformerFactoryClass" property and a "newTransformerFactory()" template method to XsltView as well as its sibling AbstractXsltView. This will be available in the next nightly 2.1 M3 and 2.0.7 snapshots. Juergen

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              dp Dennis Pashutkin
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                10 years, 24 weeks, 6 days ago