Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-79

Setting a URIResolver for the XSLT Transform

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Java
    • Security Level: Public (Public issues, viewable by everyone)
    • None
    • Operating System: All
      Platform: All
    • 39349

    Description

      Hello,

      I apologize, if this functionality is already implemented and I just fail
      to see it.

      Using the JSR 105 API I see no way to set a javax.xml.transform.URIResolver for
      resolving URIs when performing an XSLT Transform. This means, that the default
      URIResolver will be used, which is not always desirable.

      Looking at the source code, I can see 2 ways of implementing this
      (I assume you do not want to change the API of XMLCryptoContext):

      1) explicitly setting a URIResolver property in the XMLCryptoContext,
      e.g. XMLCryptoContext.setProperty("javax.xml.transform.URIResolver", myURIResolver)

      2) implementing a URIResolver that internally uses the URIDereferencer
      from the XMLCryptoContext

      In both cases, the resulting URIResolver would have to be passed down to the
      org.apache.xml.security.transforms.implementations.TransformXSLT that
      actually does the transform.

      If you indicate which way you would prefer it, i would be willing to implement
      this functionality and provide a patch.

      Regards,
      Patrick Peck

      Attachments

        Activity

          People

            Unassigned Unassigned
            patrick@zync.at patrick peck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: