<?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 Call Transformation With Parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-with-parameter/m-p/1645765#M287343</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;is it possible to call a xslt program with a parameter which contains a xpath expression and use this in "xsl:value-of"-tag. I´ve testet it, but my transformation returns the string '//Child/@attribute' (see below) not the attribute value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there such a thing to evaluate a expression in xsl or is it not possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/code"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;call transformation (´xy´)&lt;/P&gt;&lt;P&gt;  parameter expr = '//Child/@attribute'&lt;/P&gt;&lt;P&gt;  source xml xml_source&lt;/P&gt;&lt;P&gt;  result   xml xml_result&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/code"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xslt-program&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/code"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:transform version="1.0"&lt;/P&gt;&lt;P&gt;  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&lt;/P&gt;&lt;P&gt;  xmlns:sap="http://www.sap.com/sapxsl "&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:strip-space elements="*"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:param name="EXPR" /&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:template match="/"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:value-of select="$EXPR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xsl:template&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xsl:transform&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/code"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 11:16:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T11:16:10Z</dc:date>
    <item>
      <title>Call Transformation With Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-with-parameter/m-p/1645765#M287343</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;is it possible to call a xslt program with a parameter which contains a xpath expression and use this in "xsl:value-of"-tag. I´ve testet it, but my transformation returns the string '//Child/@attribute' (see below) not the attribute value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there such a thing to evaluate a expression in xsl or is it not possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/code"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;call transformation (´xy´)&lt;/P&gt;&lt;P&gt;  parameter expr = '//Child/@attribute'&lt;/P&gt;&lt;P&gt;  source xml xml_source&lt;/P&gt;&lt;P&gt;  result   xml xml_result&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/code"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xslt-program&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/code"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:transform version="1.0"&lt;/P&gt;&lt;P&gt;  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&lt;/P&gt;&lt;P&gt;  xmlns:sap="http://www.sap.com/sapxsl "&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:strip-space elements="*"/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:param name="EXPR" /&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:template match="/"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xsl:value-of select="$EXPR" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xsl:template&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xsl:transform&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/code"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 11:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-with-parameter/m-p/1645765#M287343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T11:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Call Transformation With Parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-with-parameter/m-p/1645766#M287344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It´s not possible to evaluate the value of a variable or parameter which contains a xsl-statement on runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 17:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transformation-with-parameter/m-p/1645766#M287344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T17:02:50Z</dc:date>
    </item>
  </channel>
</rss>

