Uploaded image for project: 'Turbine'
  1. Turbine
  2. TRB-19

Extend Fulcrum XSLT Service

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Fulcrum
    • None

    Description

      I ported my changes to the TurbineXSLTService over to Fulcrum.

      This is what I did:

      • Get rid of direct File() access in DefaultXSLTService and replace it with URL access. The change also allows to place the repository of XSL files elsewhere. You can, for example, define your style sheet path as "http://style.acme.com/"
      • Add transform() methods having an additional parameter to forward a parameter set to the XSLT. The parameters can be used in the style sheet.
      • Addition of several JavaDocs
      • Code formatting
      • Fixed visibility issues

      The Turbine 2.3.2 code base has additionally

      • Replace the cache Map() with a LRUMap() to avoid infinite memory growth

      I did not want to add a dependency on commons-collections just for this only purpose, so I left that out.

      Attachments

        1. fulcrum-xslt.diff
          27 kB
          Thomas Vandahl

        Activity

          People

            seade Scott Eade
            tv Thomas Vandahl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: