Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5849

XSLTJaxbProvider document() resources and URIResolver

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.15, 2.7.12, 3.0.1
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      XSLTJaxbProvider provider may include some default URIResolver class, to resolve relative adressed resources included in xslt with document('path/to/file')
      Currently relative addressing works only in case of Client-side xslt transformation XSLTTransform.TransformType.CLIENT (when browser resolves relative paths)
      Eg I have

      {WEBROOT}/stylesheets/document.xsl and {WEBROOT}

      /schemas/document.xsd
      and I can relatively address document.xsd with
      document('../schemas/document.xsd')

      But in case of XSLTTransform.TransformType.SERVER relative address is comuted against current dir (user.dir property, which defaults to ${catalina_home}/bin) and not against dir where xslt file is placed.

      So XSLTTransform.TransformType.SERVER differs from XSLTTransform.TransformType.CLIENT.

      As a workaround if this is unacceptable, can someone point me is it possible to configure XSLTJaxbProvider uri resolver without Spring?

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              slavb18 Vjacheslav Borisov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: