<?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 Transformation Functions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647354#M1285114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what I not understand is that &amp;lt;item&amp;gt; is not a command, I can wrote in this &amp;lt; &amp;gt; somethinf else and it works &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 16:03:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-14T16:03:25Z</dc:date>
    <item>
      <title>XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647352#M1285112</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;I have a trasnformation and something in this transformation is not logical. why do I have to write after the expression for-each, &amp;lt;item&amp;gt;????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
        &amp;lt;ROOT&amp;gt;

          &amp;lt;LIST&amp;gt;

            &amp;lt;xsl:for-each select="/pre:XmlInterchange/pre:Payload/pre:Organisations/pre:Organisation/pre:OrganisationDetails/pre:Addresses/pre:Address"&amp;gt;

              &amp;lt;item&amp;gt;

                &amp;lt;NAME&amp;gt;
                  &amp;lt;xsl:value-of select="string(../../pre:Name)"/&amp;gt;
                &amp;lt;/NAME&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I delete the expression &amp;lt;item&amp;gt; I get a short dump, the funny thing is that I can write whatever I want for the expression &amp;lt;item&amp;gt; and it works &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So following I don't understand, why do I have to write it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 13:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647352#M1285112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T13:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647353#M1285113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done a little XLST, but never used 'for-each'. So I am just speculating...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe the &amp;lt;item&amp;gt; element is mandatory for the parser in order to bound each item of the for-each?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think someone more experienced with the topic would tell us!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 16:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647353#M1285113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T16:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647354#M1285114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what I not understand is that &amp;lt;item&amp;gt; is not a command, I can wrote in this &amp;lt; &amp;gt; somethinf else and it works &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 16:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647354#M1285114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T16:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647355#M1285115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only elements which have the namespace xls for example &amp;lt;xls:for-each&amp;gt; are part of the XSLT. In your example &amp;lt;item&amp;gt; is an element (not part of the XSLT) that will be copied to the result as is. That's why there is no problem with your XSLT. If I understood your question correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best website for XSLT is [http://w3schools.com]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 19:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647355#M1285115</guid>
      <dc:creator>former_member207438</dc:creator>
      <dc:date>2009-05-14T19:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647356#M1285116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually. Can you post your entire XSLT? Might help to answer your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 19:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647356#M1285116</guid>
      <dc:creator>former_member207438</dc:creator>
      <dc:date>2009-05-14T19:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647357#M1285117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is my xslt which works very well, but I understand not why I have to write the element &amp;lt;item&amp;gt; on the top and on the buttom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

&amp;lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pre="http://www.edi.com.au/EnterpriseService/" version="1.0"&amp;gt;

  &amp;lt;xsl:template match="*"&amp;gt;
    &amp;lt;asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"&amp;gt;
      &amp;lt;asx:values&amp;gt;

        &amp;lt;ROOT&amp;gt;

          &amp;lt;LIST&amp;gt;

            &amp;lt;xsl:for-each select="/pre:XmlInterchange/pre:Payload/pre:Organisations/pre:Organisation/pre:OrganisationDetails/pre:Addresses/pre:Address"&amp;gt;
              &amp;lt;item&amp;gt;

                &amp;lt;NAME&amp;gt;
                  &amp;lt;xsl:value-of select="string(../../pre:Name)"/&amp;gt;
                &amp;lt;/NAME&amp;gt;

                &amp;lt;COUNTRY&amp;gt;
                  &amp;lt;xsl:value-of select="string(../../pre:Location/@Country)"/&amp;gt;
                &amp;lt;/COUNTRY&amp;gt;

                &amp;lt;CITY&amp;gt;
                  &amp;lt;xsl:value-of select="string(../../pre:Location/@City)"/&amp;gt;
                &amp;lt;/CITY&amp;gt;

                &amp;lt;LOCATION&amp;gt;
                  &amp;lt;xsl:value-of select="string(../../pre:Location)"/&amp;gt;
                &amp;lt;/LOCATION&amp;gt;

                &amp;lt;ADDRESSLINE1&amp;gt;
                  &amp;lt;xsl:value-of select="string(pre:AddressLine1)"/&amp;gt;
                &amp;lt;/ADDRESSLINE1&amp;gt;

                &amp;lt;ADDRESSLINE2&amp;gt;
                  &amp;lt;xsl:value-of select="string(pre:AddressLine2)"/&amp;gt;
                &amp;lt;/ADDRESSLINE2&amp;gt;

                &amp;lt;ADDRESSCODE&amp;gt;
                  &amp;lt;xsl:value-of select="string(pre:AddressCode)"/&amp;gt;
                &amp;lt;/ADDRESSCODE&amp;gt;

                &amp;lt;CITYORSUBURB&amp;gt;
                  &amp;lt;xsl:value-of select="string(pre:CityOrSuburb)"/&amp;gt;
                &amp;lt;/CITYORSUBURB&amp;gt;

                &amp;lt;STATEORPROVINCE&amp;gt;
                  &amp;lt;xsl:value-of select="string(pre:StateOrProvince)"/&amp;gt;
                &amp;lt;/STATEORPROVINCE&amp;gt;

                &amp;lt;POSTCODE&amp;gt;
                  &amp;lt;xsl:value-of select="string(pre:PostCode)"/&amp;gt;
                &amp;lt;/POSTCODE&amp;gt;

                &amp;lt;LANGUAGE&amp;gt;
                  &amp;lt;xsl:value-of select="string(pre:Language)"/&amp;gt;
                &amp;lt;/LANGUAGE&amp;gt;

              &amp;lt;/item&amp;gt;
            &amp;lt;/xsl:for-each&amp;gt;

          &amp;lt;/LIST&amp;gt;

        &amp;lt;/ROOT&amp;gt;

      &amp;lt;/asx:values&amp;gt;
    &amp;lt;/asx:abap&amp;gt;
  &amp;lt;/xsl:template&amp;gt;

&amp;lt;/xsl:transform&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 21:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647357#M1285117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T21:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647358#M1285118</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;Again many important pieces of information are missing in order to answer your question. However, I assume your scenario looks like this:&lt;/P&gt;&lt;P&gt;- You have an XML file with data&lt;/P&gt;&lt;P&gt;- You want to make an XSLT transformation XML -&amp;gt; ABAP (using CALL TRANSFORMATION)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  ld_xml      TYPE string,
  lt_data      TYPE &amp;lt;table type&amp;gt;.

"... Upload XML file into string

  CALL TRANSFORMATION ID 'Z_MY_XSLT'
    SOURCE ld_xml
    RESULT itab = lt_data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think to remember that this transformation expects each record of the ABAP itab to be defined as &amp;lt;ITEM&amp;gt; structure (complex sequence) in the XML. &lt;/P&gt;&lt;P&gt;You may also replace the &amp;lt;xsl:transform&amp;gt; statement with &amp;lt;xsl:stylesheet&amp;gt; and check if you still need &amp;lt;item&amp;gt; or if you can use any other name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 03:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647358#M1285118</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-05-15T03:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647359#M1285119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logically(for me) the &amp;lt;item&amp;gt;&amp;lt;/item&amp;gt; element is very much required. Let me explain..&lt;/P&gt;&lt;P&gt;From your XSLT code the source/result XML should look like below rite... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ROOT&amp;gt; 
     &amp;lt;LIST&amp;gt; 
        &amp;lt;ITEM&amp;gt;                    " First Item
            &amp;lt;NAME&amp;gt;
            Jose
            &amp;lt;/NAME&amp;gt; 
            &amp;lt;COUNTRY&amp;gt;
             India
             &amp;lt;/COUNTRY&amp;gt; 
            .
            .
            &amp;lt;LANGUAGE&amp;gt;
             English
             &amp;lt;/LANGUAGE&amp;gt; 
        &amp;lt;/ITEM&amp;gt; 
        &amp;lt;ITEM&amp;gt;                    " Second Item 
            &amp;lt;NAME&amp;gt;
            ABAP OO Beginner
            &amp;lt;/NAME&amp;gt; 
            .
            .
            &amp;lt;LANGUAGE&amp;gt;
             English
             &amp;lt;/LANGUAGE&amp;gt; 
         &amp;lt;/ITEM&amp;gt; 
     &amp;lt;/LIST&amp;gt; 
&amp;lt;/ROOT&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here if you have only one item, element &amp;lt;item&amp;gt; is not required. But for the other cases(multiple items), the XML document is not proper without &amp;lt;item&amp;gt;.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 07:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647359#M1285119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T07:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647360#M1285120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but instead of &amp;lt;item&amp;gt;  I can write whatever I want, this is what I not really understand, as item is not a expression &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 08:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647360#M1285120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T08:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647361#M1285121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the very limited knowledge on ABAP &amp;lt;-&amp;gt; XML conversions using XSLT, I assume &lt;/P&gt;&lt;P&gt;this conversion is for converting SAP data to XML format... If it is so, the name of element does not &lt;/P&gt;&lt;P&gt;matter at all becoz &lt;STRONG&gt;&amp;lt;item&amp;gt; is just going to be the element name in the result XML document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If it is &amp;lt;item&amp;gt; , the result XML document will be like in the above message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Or if it is &amp;lt;somethingelse&amp;gt; the result XML document will be &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ROOT&amp;gt; 
     &amp;lt;LIST&amp;gt; 
        &amp;lt;somethingelse&amp;gt;                    " First Item
            &amp;lt;NAME&amp;gt;
            Jose
            &amp;lt;/NAME&amp;gt; 
            &amp;lt;COUNTRY&amp;gt;
             India
             &amp;lt;/COUNTRY&amp;gt; 
            .
            .
            &amp;lt;LANGUAGE&amp;gt;
             English
             &amp;lt;/LANGUAGE&amp;gt; 
        &amp;lt;/somethingelse&amp;gt; 
        &amp;lt;somethingelse&amp;gt;                    " Second Item 
            &amp;lt;NAME&amp;gt;
            ABAP OO Beginner
            &amp;lt;/NAME&amp;gt; 
            .
            .
            &amp;lt;LANGUAGE&amp;gt;
             English
             &amp;lt;/LANGUAGE&amp;gt; 
         &amp;lt;/somethingelse&amp;gt;
     &amp;lt;/LIST&amp;gt; 
&amp;lt;/ROOT&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Jose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jose on May 15, 2009 2:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 09:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647361#M1285121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T09:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647362#M1285122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The element &amp;lt;item&amp;gt; (or whatever the name) seems just to declare the item that are to be repeted with the for-each. Like some kind of a container...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 09:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647362#M1285122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T09:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: XSLT Transformation Functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647363#M1285123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide the following, if you'd like further discussion on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) A sample XML that you are transforming&lt;/P&gt;&lt;P&gt;2) Your CALL TRANSFORMATION with the declaration of variables used in it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no further discussion needed, then, in my opinion, Uwe Schieferstein answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 13:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xslt-transformation-functions/m-p/5647363#M1285123</guid>
      <dc:creator>former_member207438</dc:creator>
      <dc:date>2009-05-15T13:05:28Z</dc:date>
    </item>
  </channel>
</rss>

