Skip to Content
author's profile photo Former Member
Former Member

Using the XSLT processor for non-workbench XSLT

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 03, 2008 at 05:28 PM

    Well i haven't tried this personally but have a look at package SXSLT_APP OR SXSLT in SE80.

    These contain some interesting classes !

    In fact class CL_XSLT_PROCESSOR might be the one you are looking for

    Edited by: Rashid Javed on Jul 3, 2008 8:28 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 08:23 AM

    Problem is solved.

    See above test program for the needed functionality.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.