<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: XSLT Processor, set_expression in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-processor-set-expression/m-p/1674860#M297752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I come to the conclusion that it´s not possible to use any xsl-function such as concat, substring etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 16:52:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T16:52:18Z</dc:date>
    <item>
      <title>XSLT Processor, set_expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-processor-set-expression/m-p/1674859#M297751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the last few days i´ve posted several questions about xslt, xslt processor, ixml etc., but nobody could give me an answer. i think all my attempts to solve my problem gone to the wrong path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, this will be my last question to this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to use xsl functions such like concat, count, etc. with the set_expression method in class cl_xslt_processor  (see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it tested it with different xpath-expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess it is not possible. only logical path expression seems to work. when i call method "get_nodes" the result is empty, also the result of method "output_string" and "output_stream".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;okay, i see why get_nodes do not return a ixml_node_collection, but i hoped a result would be return by an other method or attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would be very happy, if someone could approve my attempts or knows a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: lr_xslt                  TYPE REF TO cl_xslt_processor,
            lr_node_collection TYPE REF TO if_ixml_node_collection,

  CREATE OBJECT lr_xslt.

  CALL METHOD ori_xslt-&amp;gt;set_expression
        EXPORTING
          expression = 'concat(//Child/@attribute,''1'')'.  

  CALL METHOD lr_xslt-&amp;gt;run
        EXPORTING
          progname = ' '
        RECEIVING
          rval     = lv_subrc.

      lr_node_collection = ori_xslt-&amp;gt;get_nodes( ).

      lr_node_collection = "*** illegal reference ***

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;Has nobody an answer or estimation to my attempts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and kind regards&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;P&gt;        Sebastian Rasp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 09:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-processor-set-expression/m-p/1674859#M297751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T09:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Processor, set_expression</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-processor-set-expression/m-p/1674860#M297752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I come to the conclusion that it´s not possible to use any xsl-function such as concat, substring etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 16:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-processor-set-expression/m-p/1674860#M297752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T16:52:18Z</dc:date>
    </item>
  </channel>
</rss>

