<?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: Problem getting xslt transform to work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512523#M1655007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put namspaces inside &amp;lt;xsl:transform&amp;gt; tag, bellow is the correct XSLT for you:&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:inv="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ccts="urn:un:unece:uncefact:documentation:2"
xmlns:stat="urn:oasis:names:specification:ubl:schema:xsd:DocumentStatusCode-1.0"
xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988"
xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001"
xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001"
xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003"
xmlns:sapxsl="http://www.sap.com/sapxsl"
version="1.0"&amp;gt;

  &amp;lt;xsl:strip-space elements="*"/&amp;gt;

  &amp;lt;xsl:strip-space elements="*"/&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;ALLIR_REIKNINGAR&amp;gt;
          &amp;lt;xsl:apply-templates select="//inv:Invoice"/&amp;gt;
        &amp;lt;/ALLIR_REIKNINGAR&amp;gt;
      &amp;lt;/asx:values&amp;gt;
    &amp;lt;/asx:abap&amp;gt;
  &amp;lt;/xsl:template&amp;gt;

  &amp;lt;xsl:template match="inv:Invoice"&amp;gt;
    &amp;lt;REIKNINGUR&amp;gt;
      &amp;lt;REIKN_NUMER&amp;gt;
        &amp;lt;xsl:value-of select="cbc:ID"/&amp;gt;
      &amp;lt;/REIKN_NUMER&amp;gt;

      &amp;lt;REIKN_AFRIT&amp;gt;
        &amp;lt;xsl:value-of select="cbc:CopyIndicator"/&amp;gt;
      &amp;lt;/REIKN_AFRIT&amp;gt;

      &amp;lt;REIKN_UTGAFUDAGS&amp;gt;
        &amp;lt;xsl:value-of select="cbc:IssueDate"/&amp;gt;
      &amp;lt;/REIKN_UTGAFUDAGS&amp;gt;

      &amp;lt;REIKN_MYNT&amp;gt;
        &amp;lt;xsl:value-of select="cbc:DocumentCurrencyCode"/&amp;gt;
      &amp;lt;/REIKN_MYNT&amp;gt;

      &amp;lt;REIKN_TIMABIL_FRA&amp;gt;
        &amp;lt;xsl:value-of select="cac:InvoicePeriod/cbc:StartDate"/&amp;gt;
      &amp;lt;/REIKN_TIMABIL_FRA&amp;gt;

      &amp;lt;REIKN_TIMABIL_TIL&amp;gt;
        &amp;lt;xsl:value-of select="cac:InvoicePeriod/cbc:EndDate"/&amp;gt;
      &amp;lt;/REIKN_TIMABIL_TIL&amp;gt;
    &amp;lt;/REIKNINGUR&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>Fri, 03 Feb 2012 13:13:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-03T13:13:44Z</dc:date>
    <item>
      <title>Problem getting xslt transform to work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512522#M1655006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following ABAP Xslt  transformation&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;xsl:transform
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sap="http://www.sap.com/sapxsl" version="1.0"
&amp;gt;
 &amp;lt;xsl:strip-space elements="*"/&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;ALLIR_REIKNINGAR&amp;gt;
					&amp;lt;xsl:apply-templates select="//Invoice"/&amp;gt;    
				&amp;lt;/ALLIR_REIKNINGAR&amp;gt;
			&amp;lt;/asx:values&amp;gt;
		&amp;lt;/asx:abap&amp;gt;
	&amp;lt;/xsl:template&amp;gt;

    &amp;lt;xsl:template match="Invoice"&amp;gt;
    &amp;lt;REIKNINGUR&amp;gt;
        &amp;lt;REIKN_NUMER&amp;gt;
            &amp;lt;xsl:value-of select="cbc:ID"/&amp;gt;            
        &amp;lt;/REIKN_NUMER&amp;gt;

        &amp;lt;REIKN_AFRIT&amp;gt;
            &amp;lt;xsl:value-of select="cbc:CopyIndicator"/&amp;gt;
        &amp;lt;/REIKN_AFRIT&amp;gt;

        &amp;lt;REIKN_UTGAFUDAGS&amp;gt;
            &amp;lt;xsl:value-of select="cbc:IssueDate"/&amp;gt;
        &amp;lt;/REIKN_UTGAFUDAGS&amp;gt;

        &amp;lt;REIKN_MYNT&amp;gt;
            &amp;lt;xsl:value-of select="cbc:DocumentCurrencyCode"/&amp;gt;
        &amp;lt;/REIKN_MYNT&amp;gt;

        &amp;lt;REIKN_TIMABIL_FRA&amp;gt;
            &amp;lt;xsl:value-of select="cac:InvoicePeriod/cbc:StartDate"/&amp;gt;
        &amp;lt;/REIKN_TIMABIL_FRA&amp;gt;

        &amp;lt;REIKN_TIMABIL_TIL&amp;gt;
            &amp;lt;xsl:value-of select="cac:InvoicePeriod/cbc:EndDate"/&amp;gt;
        &amp;lt;/REIKN_TIMABIL_TIL&amp;gt;
    &amp;lt;/REIKNINGUR&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;P&gt;And the following XML input file&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;?xml-stylesheet type="text/xsl" href="vodafone_xslt_namespace.xslt"?&amp;gt;
&amp;lt;Invoice 
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" 
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" 
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" 
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" 
xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" 
xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:ccts="urn:un:unece:uncefact:documentation:2" 
xmlns:stat="urn:oasis:names:specification:ubl:schema:xsd:DocumentStatusCode-1.0" 
xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" 
xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" 
xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001"
xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003"
 &amp;gt;
	&amp;lt;cbc:UBLVersionID&amp;gt;2.0&amp;lt;/cbc:UBLVersionID&amp;gt;
	&amp;lt;cbc:CustomizationID&amp;gt;NES&amp;lt;/cbc:CustomizationID&amp;gt;
	&amp;lt;cbc:ProfileID schemeID="Profile" 
	schemeAgencyID="NES"&amp;gt;urn:www.nesubl.eu:profiles:profile4:ver1.1&amp;lt;/cbc:ProfileID&amp;gt;
	&amp;lt;cbc:ID&amp;gt;PB1554421&amp;lt;/cbc:ID&amp;gt;
	&amp;lt;cbc:CopyIndicator&amp;gt;false&amp;lt;/cbc:CopyIndicator&amp;gt;
	&amp;lt;cbc:IssueDate&amp;gt;2011-12-31&amp;lt;/cbc:IssueDate&amp;gt;
	&amp;lt;cbc:InvoiceTypeCode listID="UN/ECE 1001 Restricted" listAgencyID="NES"&amp;gt;380&amp;lt;/cbc:InvoiceTypeCode&amp;gt;
	&amp;lt;cbc:Note languageID="IS"&amp;gt;Company name&amp;lt;/cbc:Note&amp;gt;
	&amp;lt;cbc:DocumentCurrencyCode listID="ISO 4217 Alpha"&amp;gt;ISK&amp;lt;/cbc:DocumentCurrencyCode&amp;gt;
	&amp;lt;cbc:AccountingCost&amp;gt;2001523&amp;lt;/cbc:AccountingCost&amp;gt;
	&amp;lt;cac:InvoicePeriod&amp;gt;
		&amp;lt;cbc:StartDate&amp;gt;2011-12-01&amp;lt;/cbc:StartDate&amp;gt;
		&amp;lt;cbc:EndDate&amp;gt;2011-12-31&amp;lt;/cbc:EndDate&amp;gt;
	&amp;lt;/cac:InvoicePeriod&amp;gt;
&amp;lt;/Invoice&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that this transformation does not work unless I completly strip out the namespace parts i.e. cbc:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the parser to read the tags with namespace part. And if the parser can not handle namespace in XML how can I go about reding the data into sap ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 20:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512522#M1655006</guid>
      <dc:creator>Sigurdur</dc:creator>
      <dc:date>2012-02-02T20:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting xslt transform to work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512523#M1655007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to put namspaces inside &amp;lt;xsl:transform&amp;gt; tag, bellow is the correct XSLT for you:&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:inv="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ccts="urn:un:unece:uncefact:documentation:2"
xmlns:stat="urn:oasis:names:specification:ubl:schema:xsd:DocumentStatusCode-1.0"
xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988"
xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001"
xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001"
xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003"
xmlns:sapxsl="http://www.sap.com/sapxsl"
version="1.0"&amp;gt;

  &amp;lt;xsl:strip-space elements="*"/&amp;gt;

  &amp;lt;xsl:strip-space elements="*"/&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;ALLIR_REIKNINGAR&amp;gt;
          &amp;lt;xsl:apply-templates select="//inv:Invoice"/&amp;gt;
        &amp;lt;/ALLIR_REIKNINGAR&amp;gt;
      &amp;lt;/asx:values&amp;gt;
    &amp;lt;/asx:abap&amp;gt;
  &amp;lt;/xsl:template&amp;gt;

  &amp;lt;xsl:template match="inv:Invoice"&amp;gt;
    &amp;lt;REIKNINGUR&amp;gt;
      &amp;lt;REIKN_NUMER&amp;gt;
        &amp;lt;xsl:value-of select="cbc:ID"/&amp;gt;
      &amp;lt;/REIKN_NUMER&amp;gt;

      &amp;lt;REIKN_AFRIT&amp;gt;
        &amp;lt;xsl:value-of select="cbc:CopyIndicator"/&amp;gt;
      &amp;lt;/REIKN_AFRIT&amp;gt;

      &amp;lt;REIKN_UTGAFUDAGS&amp;gt;
        &amp;lt;xsl:value-of select="cbc:IssueDate"/&amp;gt;
      &amp;lt;/REIKN_UTGAFUDAGS&amp;gt;

      &amp;lt;REIKN_MYNT&amp;gt;
        &amp;lt;xsl:value-of select="cbc:DocumentCurrencyCode"/&amp;gt;
      &amp;lt;/REIKN_MYNT&amp;gt;

      &amp;lt;REIKN_TIMABIL_FRA&amp;gt;
        &amp;lt;xsl:value-of select="cac:InvoicePeriod/cbc:StartDate"/&amp;gt;
      &amp;lt;/REIKN_TIMABIL_FRA&amp;gt;

      &amp;lt;REIKN_TIMABIL_TIL&amp;gt;
        &amp;lt;xsl:value-of select="cac:InvoicePeriod/cbc:EndDate"/&amp;gt;
      &amp;lt;/REIKN_TIMABIL_TIL&amp;gt;
    &amp;lt;/REIKNINGUR&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>Fri, 03 Feb 2012 13:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512523#M1655007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-03T13:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting xslt transform to work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512524#M1655008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilljant !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solved the issue for me, actually I did test this solution but probably because of some other conflicting issue or not testing against the latest version. This did not seem to Work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 13:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512524#M1655008</guid>
      <dc:creator>Sigurdur</dc:creator>
      <dc:date>2012-02-03T13:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting xslt transform to work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512525#M1655009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are trying convert the xml to an internal table because of // in apply-templates, then you need to change last XSLT program and include &amp;lt;item&amp;gt; tag inside the &amp;lt;xsl:template match="inv:Invoice"&amp;gt;  template, see updated XSLT bellow. &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:inv="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2"
xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ccts="urn:un:unece:uncefact:documentation:2"
xmlns:stat="urn:oasis:names:specification:ubl:schema:xsd:DocumentStatusCode-1.0"
xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988"
xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001"
xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001"
xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003"
xmlns:sapxsl="http://www.sap.com/sapxsl"
version="1.0"&amp;gt;
 
  &amp;lt;xsl:strip-space elements="*"/&amp;gt;
 
  &amp;lt;xsl:strip-space elements="*"/&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;ALLIR_REIKNINGAR&amp;gt;
          &amp;lt;xsl:apply-templates select="//inv:Invoice"/&amp;gt;
        &amp;lt;/ALLIR_REIKNINGAR&amp;gt;
      &amp;lt;/asx:values&amp;gt;
    &amp;lt;/asx:abap&amp;gt;
  &amp;lt;/xsl:template&amp;gt;
 
  &amp;lt;xsl:template match="inv:Invoice"&amp;gt;
    &amp;lt;item&amp;gt;
    &amp;lt;REIKNINGUR&amp;gt;
      &amp;lt;REIKN_NUMER&amp;gt;
        &amp;lt;xsl:value-of select="cbc:ID"/&amp;gt;
      &amp;lt;/REIKN_NUMER&amp;gt;
 
      &amp;lt;REIKN_AFRIT&amp;gt;
        &amp;lt;xsl:value-of select="cbc:CopyIndicator"/&amp;gt;
      &amp;lt;/REIKN_AFRIT&amp;gt;
 
      &amp;lt;REIKN_UTGAFUDAGS&amp;gt;
        &amp;lt;xsl:value-of select="cbc:IssueDate"/&amp;gt;
      &amp;lt;/REIKN_UTGAFUDAGS&amp;gt;
 
      &amp;lt;REIKN_MYNT&amp;gt;
        &amp;lt;xsl:value-of select="cbc:DocumentCurrencyCode"/&amp;gt;
      &amp;lt;/REIKN_MYNT&amp;gt;
 
      &amp;lt;REIKN_TIMABIL_FRA&amp;gt;
        &amp;lt;xsl:value-of select="cac:InvoicePeriod/cbc:StartDate"/&amp;gt;
      &amp;lt;/REIKN_TIMABIL_FRA&amp;gt;
 
      &amp;lt;REIKN_TIMABIL_TIL&amp;gt;
        &amp;lt;xsl:value-of select="cac:InvoicePeriod/cbc:EndDate"/&amp;gt;
      &amp;lt;/REIKN_TIMABIL_TIL&amp;gt;
    &amp;lt;/REIKNINGUR&amp;gt;
   &amp;lt;/item&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;P&gt;According to the XSLT program you need dclare an itab like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF ls_reikningur,
      reikn_numer(10) TYPE c,
      END OF ls_reikningur.

DATA: BEGIN OF ls_invoice,
      reikningur LIKE ls_reikningur,
      END OF ls_invoice.

DATA: lt_invoice LIKE TABLE OF ls_invoice.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And finally you need a call transformation in your abap code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: root_error TYPE REF TO cx_root.
DATA: lv_mess TYPE string.

TRY.

    CALL TRANSFORMATION  zinvoice
       SOURCE XML lv_xml
       RESULT allir_reikningar = lt_invoice.

  CATCH cx_root INTO root_error.


    lv_mess = root_error-&amp;gt;if_message~get_text( ).


    WRITE lv_mess.

ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-xslt-transform-to-work/m-p/8512525#M1655009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-03T15:46:46Z</dc:date>
    </item>
  </channel>
</rss>

