Skip to Content
0
Former Member
Jul 03, 2008 at 03:43 PM

Using the XSLT processor for non-workbench XSLT

220 Views

Hi there,

is it possible to use the built-in XSLT processor for arbitrary XSLT transformations which aren't checked in in the ABAP workbench but instead given as a runtime object (string or iXML)?

Instead of the built-in command CALL TRANSFORMATION which according to the doc is restricted to workbench transformations, I am looking for an option like this:

data: lo_transformation type ref to if_ixml_document,
      lo_source         type ref to if_ixml_document,
      lo_target         type ref to if_ixml_focument.
...
* I get lo_transformation and lo_source from somewhere out there
...
try.
    lo_target ?= cl_some_fine_class_which_i_am_looking_for=>transform( 
                      io_source         = lo_source
                      io_transformation = lo_transformation ).
     ...
  catch cx_xslt_runtime_error.
       ...
endtry.

Does anybody know such a feature?

For a background about this problem - in German language - see my blog

http://ruediger-plantiko.blogspot.com/2007/08/xslt-in-bsp-anwendungen-und-in-abap.html

Thanks and Regards,

Rüdiger