Using custom xslt file for mapping

I have a map using custom xsl. I deployed it to different enviroment. When my BTS application ran, it complained
There was a failure executing the receive pipeline: "WS.Pipeline.MsgTransformDebatchPipeline, WS.Pipeline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c7f3bdebaae529db" Source: "MsgTransformDecoder" Receive Port: "WS_Debatch"
URI: "C:\TestData\WS\InternalInput\*_batch.xml" Reason: Could not find file 'C:\WS\BTS\WS.Map\BatchOrder_to_CanonicalBatchOrder.xsl'.
I have to create corresponding path and copy my xsl file there to make it work. Why?
I tried Microsoft.Samples.BizTalk.ExtendingMapper.OverridingMapXslt sample. I compiled and deployed it, then I modified OverridingMapXslt.xslt to OverridingMapXslt2.xslt. I dropped input file and there was no complaint about missing OverridingMapXslt.xslt.
I thought .xsl is treated like any other source code file and is compiled into the assembly at build time. Why I got this error?
Thanks in advance!!!

Unless you've compiled the .xsl into your custom component as a Resource, then yes, that exact path has to exist anywhere it will run.
However, as la Cour points out, a BizTalk Map has a Custom XSLT Path property that will take care of that for you.

Similar Messages

  • Using Custom XSLT File for html output file

    Hi all
    I have probably rather a silly question but I have not found a solution yet.
    I would like to use a custom XSLT file, which I already have and is working, within a Biztalk Map. The custom XSLT is generating a html file out of an xml file. However I'm not able to succeed so far because I have probably some issues in defining the correct
    target schema. 
    The output that I get at the moment is just a duplicate of the input, probably because I have used the schema for source and target.
    So my question is, how do I create a html file out of an xml with a custom XSLT file?
    Sorry if this is a nooby question but I couldn't find an answer.

    Hi Jerome,
    Sorry, your question is not very clear. "I would like to use a custom XSLT file, which I already have and is working, within a BizTalk Map. The custom XSLT is generating a html file out of an xml file" -  You have an XSLT which you use for map and how
    its generating a HTML file? Are you using something like this?
    Changing an XML Response to an HTML output using a Map
    If your requirement is to output the html file from the received XML file using XSLT, then use a custom pipeline at send port like XSLT Transform Component and provide the XST which would change the XML to HTML. Here is an example of an XST which I have
    used in the past, which converts the received OrderResponse XML to nicely formatted HTML.
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://biztalk.orderapp.schemas.OrderResponse">
    <xsl:template match="/">
    <html>
    <body>
    <TABLE BORDER="0" cellspacing="2" cellpadding="2" width="90%">
    <xsl:apply-templates select="/ns0:OrderResponse"/>
    </TABLE>
    </body>
    </html>
    </xsl:template>
    <xsl:template match="/ns0:OrderResponse">
    <TR>
    <TD colspan="8" align="center">
    <H1>Order Confirmation</H1>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Order no : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:OrderNumber/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Supplier : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:SupplierDetails/ns0:SupplierName/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Supplier Order no : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:SupplierDetails/ns0:SupplierOrderNumber/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Account no : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:CustomerAccountNumber/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Order date : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:OriginalOrderCreationDate/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Delivery date : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:DeliveryDate/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Order Status : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:OrderStatus/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="8">
    <BR></BR>
    </TD>
    </TR>
    <TR>
    <TD valign="top">
    <B>Line</B>
    </TD>
    <TD valign="top">
    <B>Code</B>
    </TD>
    <TD valign="top">
    <B>UOM</B>
    </TD>
    <TD valign="top">
    <B>
    Avail<BR></BR>Qty
    </B>
    </TD>
    <TD valign="top">
    <B>
    Line<BR></BR>Price
    </B>
    </TD>
    <TD valign="top">
    <B>
    Line<BR></BR>Status
    </B>
    </TD>
    </TR>
    <xsl:for-each select="ns0:LineItems">
    <xsl:for-each select="ns0:LineItem">
    <TR>
    <TD valign="top">
    <xsl:value-of select="ns0:LineNumber/text()"/>
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:ProductCode/text()"/>
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:UnitOfMeasure/text()"/>
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:Quantity/text()"/>
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:UnitPrice/text()" />
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:LineStatus/text()" />
    </TD>
    </TR>
    </xsl:for-each>
    </xsl:for-each>
    <TR>
    <TD colspan="8">
    <BR></BR>
    </TD>
    </TR>
    </xsl:template>
    </xsl:stylesheet>
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Error while using custom xslt: Cannot find the script or external object that implements prefix 'ScriptNS0'.

    Hi,
    We had a complex map. Because of some requirement, we used custom xslt on this map. Somehow at runtime that custom xslt is giving below error:
    Cannot find the script or external object that implements prefix 'ScriptNS0'.
    I checked below links, it seems this is a bug in Biztalk 2010/Visual stuio 2010.
    http://sandroaspbiztalkblog.wordpress.com/2012/07/29/biztalk-mapper-patterns-calling-an-external-assembly-from-custom-xslt-in-biztalk-server-2010/
    The above link suggest to add a xml element in the .btm file. I tried that as well but no luck. Can anyone suggest me reason and solution for this?
    Thanks, Girish R. Patil.

    When using the Custom XSLT option, you have to maintain the Extension Xml yourself, just as you would for inline custom Xslt that calls external Assemblies.
    Docs:
    http://msdn.microsoft.com/en-us/library/aa547368.aspx
    Sample:
    http://blog.vertica.dk/2013/03/20/using-custom-xslt-in-biztalk/

  • Orchestration Variable in Custom XSLT in Biztalk Map

    Hi,
    I have a custom xslt for mapping HL7 messages to CRM fields.
    For one field, I 'll get the data from DB so it is stored in my orchestration variable. How can I use that variable in my custom xslt file? Thanks.
    Regards,
    Lakshmi

    Hi Laxme,
    As far I know, there is no way you can access Orchestration variable in custom XSLT.
    Workaround : you can create a intermediate message with a field and assign the variable value (the data from DB) to it and later use message assignment to assign this value to the field which you want to the mesage which you created using custom
    xslt.
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • Using Digital Personnel File for HCM Forms & Processes

    Hi,
    We would like to use Digital Personnel File for HCM Forms & Processes to save forms and attachments using record case management. For this to be done record case management needs to be customized. Can you provide the steps for record case management customization and integrating digital personnel files with HCM forms.
    Regards,
    Amit

    http://help.sap.com/erp2005_ehp_03/helpdata/en/43/1d63953fce3566e10000000a11466f/frameset.htm
    Refer here

  • Help creating custom XMP file for Photoshop CS5

    I was wondering if there is anyone out there that would be willing to help me create a custom XMP file for Photoshop CS5. What I need is very simple, I really just don't know how to go about creating it myself.
    Feel free to email me at [email protected]

    Hi Robert,
    please have a look at the "Generic Panel" example of the File Info SDK.
    Using that you only need to create a simple XML-file to create a simple custom panel.
    -- Stefan Makswit

  • Create Custom response file for Oracle 9i client

    I am trying to create a customized response file for oracle 9i client installation,
    setup -record -destinationFile C:\response_files\install_oracle
    i replaced setup with the path and i followed the instruction correctly, after the installation is done i do get two response files in the location
    Then i created a batch file to run the response file , it installed , but when i check the compmonents what ever is installed, it never recorded all the components which i installed during the time of RECORD mode
    is there any thing i need to do for record all the components
    Please advice
    Thank you
    Ravi

    i have oracle client 9.2.0.1.0
    We need to run both the run time installation and custom installation
    when i did record i was able to get only the run time installation, the components which i customized, i never got, after when i try to install the response file, it never installa all the components
    what should i do to make both runtime and custom to be done in one response file,
    i have a .rsp files which do install the custom with all installtion, but we also need
    under programs, ORACLE INSTALLTION PRODUCTS and under that HOME SELCTOR, UNIVERSAL INSTALLER, missing.
    let meknow how i can add this to my .rsp files which installs perfectly with custom installtion, if you have any customised .rsp files which will fill my needs, can any one post it

  • "Your bootable USB drive could not be created" "Boot Camp only supports 64-bit Windows installation on this platform. Please use an ISO file for 64-bit Windows installation."

    I try to install windows7 system on my macbook air, which version is 10.8.5. When I open the bootcamp, it let me to choose a windows ISO image, which I've already downloaded from this website: http://www.w7forums.com/threads/official-windows-7-sp1-iso-image-downloads.12325 /, it also asked me to select a USB drive, which is kingston that has 8GB. Then when I clicked "continue", it said that "Your bootable USB drive could not be created" "Boot Camp only supports 64-bit Windows installation on this platform. Please use an ISO file for 64-bit Windows installation." But actually the ISO image I downloaded is 64-bit windows7. I don't know why this would happen. Could someone help me please!!

    Thanks for your feedbakc Kiranjj!
    I identified the reason to be that the W8 installation file didn't download completely from a Mac OS-device. I downloaded from another Win-device and the moved the installation file with a USB-stick and then everything worked diectly! But thanks anyway.

  • XPath Error after using custom xslt

    I made a mapping between my input schema and destination schema through custom xslt.
     After constructing the message when I fetch the destination schema element value through xpath it does not contains
    any value but when I saved that destination message in a location then I got all the elements value.
    When I want to update the value of any element then it shows the following error :
    The XPath expression: ' xpath of element '
    selected a node which is not valid for property or distinguished field retrieval, or it selected no node at all. Only text-only elements or attributes may be selected.
    The xpath is correct.
    Why this is occuring ?
    While I am not using any custom xslt, it is working fine.
    Any kind of help would be appreciated.
    Prakash

    Look like you're trying to use a XPath for an element/node which doesn't exist in the received message.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How can I use custom WLST commands for Oracle SOA Suite in Weblogic

    Hi There,
    I'm trying to view and search the weblogic log files using WLST on a Solaris/Unix system.
    I have come across this "custom WLST commands for Oracle SOA Suite" and thought of using the custom logging commands to get my task done.
    However, my WLST shell is not recognizing the commands and giving me the NameError!
    wls:/devDomain1/domainRuntime> listLogs()
    Traceback (innermost last):
    File "<console>", line 1, in ?
    NameError: listLogs
    I tried the commands listLogs, displayLogs, getLogLevel & setLogLevel but in vain!
    I have followed the instructions as per the oracle recommendation of using Custom WLST commands (http://docs.oracle.com/cd/E29597_01/core.1111/e10105/getstart.htm#ASADM10692) as below
    - Launched the WLST shell from Oracle Home.
    cd ORACLE_HOME/common/bin
    ./wlst.sh
    - Tried to run the listLogs command from domainRuntime()
    I would like to know if I need to import any additional libraries to run the custom WLST commands for Oracle SOA Suite in my WLST shell?
    I have only weblogic 10.3.1 server installed on my Solaris 10 machine on which I have deployed the OSB application software.
    There is no SOA Suite installed.
    Or is there any other way I can browse the Server Log file and get the list of log messages? Basically I would like to use this feature in my script to customize it according to my requirement of listing specific error logs which I can work it out if I know how to make these commands work.
    Please advise if this is possible and how?
    Cheers.
    Satish

    I have tried on my OSB installation (no SOA Suite here), the command listLogs() works (I was in online mode, after a connect), and the classpath is:
    CLASSPATH=/opt/oracle/fmw11_1_1_5/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/oracle/fw11_1_1_5/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.33.x6_64/lib/tools.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/oracle/fmw11_1_1_5/wlserver_10./server/lib/weblogic.jar:/opt/oracle/fmw11_1_1_5/modules/features/weblogic.server.modules_10.3.5.0.jar:/opt/oracle/fmw111_1_5/wlserver_10.3/server/lib/webservices.jar:/opt/oracle/fmw11_1_1_5/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/optoracle/fmw11_1_1_5/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/opt/oracle/fmw11_1_1_5/oracle_common/moules/oracle.jrf_11.1.1/jrf-wlstman.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lib/adfscripting.jar:/opt/oracl/fmw11_1_1_5/oracle_common/common/wlst/lib/adf-share-mbeans-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/lb/mdswlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/auditwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_cmmon/common/wlst/resources/igfwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jps-wlst.jar:/optoracle/fmw11_1_1_5/oracle_common/common/wlst/resources/jrf-wlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/reources/oamap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/opt/oracle/fmw111_1_5/oracle_common/common/wlst/resources/ossoiap_help.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/osoiap.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/opt/oracle/fmw11_1_1_5/oracle_comon/common/wlst/resources/sslconfigwlst.jar:/opt/oracle/fmw11_1_1_5/oracle_common/common/wlst/resources/wsm-wlst.jar:/optoracle/fmw11_1_1_5/utils/config/10.3/config-launch.jar::/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbynet.ar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/derby/lib/derbyclient.jar:/opt/oracle/fmw11_1_1_5/wlserver_10.3/common/drby/lib/derbytools.jar::
    The wlst.sh I have used is /opt/oracle/fmw11_1_1_5/osb/common/bin/wlst.sh
    I hope this can help

  • XML Validation using custom DTD file

    Well, I thought that my problem is about to be a trivial one, but now, I don't think so. I have to develop XML-based protocol over HTTP. XML Document doesn't contain any reference to DTD, but I have some DTDs. I want to validate my XML messages in real time and I want to find some library that allows to do something like that:
    SomeXmlValidatingParser s = new SomeXmlValidatingParser(InputStream dtdFileStream);
    for(;;)
        InputStream is = message.recive();
        DocumentObject = s.parseAndValidate(is);
    }So, the issue is to pass my custom DTD file (it is already loaded to memory) into validating parser.
    So, which library have such functionality? And if there are some, could you be so kind to advice some of them?

    Well, I've just realized that JDK 1.5 has standard way to validate XMLs using XSD schemas. Ok. But look at the sample
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:import namespace="http://www.w3.org/XML/1998/namespace"
            schemaLocation="http://www.w3.org/2001/xml.xsd" />
      <xs:element name="birthdate">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="month" type="xs:string" />
            <xs:element name="day" type="xs:int" />
            <xs:element name="year" type="xs:int" />
          </xs:sequence> 
        </xs:complexType>
      </xs:element>
    </xs:schema>Every time I process this schema, it goes to w3c.org... And I wonder if it cause some problems if I delete
      <xs:import namespace="http://www.w3.org/XML/1998/namespace"
            schemaLocation="http://www.w3.org/2001/xml.xsd" />

  • Using custom style sheet for UI  presentations

    Hi...
    is there a possibility to use custom stylesheets for UI presentations in BPM ???
    if so how do i link the custom stylesheet to my workspace so that i get the desired output on my UI screens.
    The only style sheet i see fro UI is fo_style.css

    You first will need to import the CSS file into your project. You do this by right clicking on the webResources folder located under the WebRoot branch of your project tree. This will present a short menu to you, and one of the options is Import Resources. Browse to your CSS file and click Open.
    Next you need to open your ALBPM Presentation and open the Properties window. Set the CSS Support property to True, and then select the imported CSS file under the CSS Filename property.

  • How to modify & use Printer Defination files for Character Mode Report

    How can use & modify printer defination files for changing formats & orientation in character mode report. I donot know how to use printer defination files I tried to set the system parameter (Desformat) but it doesn't work.

    I m also faced same problem that u face,
    If u want to make character mode report so plz follow these instructions:
    1. Set the properties of Report Name Node in Character Cell is Yes.
    2. Change the mode of the System Parameter Mode is Character.
    3. Goto the Layout---> Main Section Properties and set the Character Report Width and Height like 132 and 66
    4. Create Formula Column and write this code "RETURN(CHR(14));"
    5. Goto Layout Model and map this formula column into Header of the Body Like If ur Company Name is "ABC COMPANY" attached with field and map Formula Column.
    5. Goto Printer Definition File DFLT.prt open in NotePad and set width and hieght that u set in Main Section of Report.
    6. At Last u Run the Report with Some System Parameter or User Parameter and View as Character Mode Report.
    In My Case I used EPSON LQ2180 Printer
    So, U Ask More Qustion and u have more knowledge About character mode report Plz Mail me at this address.
    Shahid Shafi
    [email protected]

  • How to use customer extension table for schedule line for shopping cart ?

    Dear Experts,
    One of our client wants to have schedule lines in shopping cart item. I am thinking of using customer extension table at item level for shopping cart. Could you please help me on  how I should proceed with the appending the structures so that the end user can fill the shopping cart schedule line details?
    Which fields should I consider in such cases?
    Thanks and regards,
    Ranjan

    Hi.
    I guess you use SRM 7.0. Please go to IMG.
    SRM -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Create Table Extensions and Supply with Data
    Regards,
    Masa

  • 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

    Dear Rashid,
    thanks - this is the answer! I wonder why I didn't find this class one year ago. A little test prog shows that it works fine and even performant (about 0.5 millisec for creating the new dynamic XSLT program with the method set_source_stream( ) ). For usage in web apps, it would be nice to know whether the temporary program remains available in the application servers' buffer after end of process. I can't check this, since this is performed on the C/C++ level, and SE30 doesn't track the method set_source_stream() itself (it could show a decrease of runtime after the first call).
    Here comes a little self-contained ABAP program to test the functionality. It works well on our system with SAPKB70012.
    Thanks and regards,
    Rüdiger
    * --- Test usage of a dynamically given non-workbench XSLT program
    report  zz_test_cl_xslt_processor.
    data:
    * iXML master
      go_xml type ref to if_ixml,
    * iXML stream factory
      go_sf  type ref to if_ixml_stream_factory.
    load-of-program.
      go_xml = cl_ixml=>create( ).
      go_sf  = go_xml->create_stream_factory( ).
    start-of-selection.
      perform start.
    * --- Start
    form start.
      data: lo_source    type ref to if_ixml_document,
            lo_result    type ref to if_ixml_document,
            lo_processor type ref to cl_xslt_processor,
            lv_p         type progname,
            lo_ex        type ref to cx_xslt_exception.
      perform get_source changing lo_source.
      create object lo_processor.
      try.
    * Set source
          lo_processor->set_source_node( lo_source ).
    * Set result
          lo_result = go_xml->create_document( ).
          lo_processor->set_result_document( lo_result ).
    * This could be time-critical, the creation of a dynamical XSLT prog?
          perform set_transformation using lo_processor
                                     changing lv_p.
    * call xslt-proc
          lo_processor->run( lv_p ).
    * Display result
          call function 'SDIXML_DOM_TO_SCREEN'
            exporting
              document    = lo_result
              title       = 'Result of Transformation'
            exceptions
              no_document = 1
              others      = 2.
        catch cx_xslt_exception into lo_ex.
          sy-msgli = lo_ex->get_text( ).
          message sy-msgli type 'I'.
      endtry.
    endform.                    "start
    * --- Set XSLT transformation from stream
    form set_transformation using io_processor type ref to cl_xslt_processor
                            changing cv_p type progname.
      data: lo_trans     type ref to if_ixml_istream.
    * sv_p contains temp. name of XSLT program after first call
      statics: sv_p   type string.
      if sv_p is initial.
    * It seems that the name can be buffered on appserver level?
        import progname to sv_p
               from shared buffer indx(zx) id 'ZZ_TEST_XSLT_PROC'.
        if sv_p is initial.
          sv_p = 'X'.
        endif.
      endif.
    * Provide the stream containing the XSLT document (as a stream)
      perform get_transformation changing lo_trans.
    * Set transformation
      io_processor->set_source_stream( exporting stream = lo_trans
                                       changing  p      = sv_p ).
    * Buffer progname on server - seems to work
      export progname from sv_p
             to shared buffer indx(zx) id 'ZZ_TEST_XSLT_PROC'.
    * string -> c move necessary, since xslt-proc-interface doesn't use
    * the generic type csequence for program name
      cv_p = sv_p.
    endform.                    "set_transformation
    * --- Parse a source given as string into an if_ixml_document
    form get_source changing co_src type ref to if_ixml_document.
      data: lv_s      type string,
            lo_stream type ref to if_ixml_istream,
            lo_parser type ref to if_ixml_parser.
      concatenate
    `<?xml version="1.0" encoding="iso-8859-1"?>`
    `<countings filiale="2412" invnu="TIEFKUEHL SEPT.07">`
    `<count recNum="1" gid="1" ean="59111828843" menge="1"`
    `preis="0" recNumFrom="1"></count>`
    `</countings>`
    into lv_s.
    * Eingabestream erzeugen und in if_ixml_document abbilden
      lo_stream   = go_sf->create_istream_string( lv_s ).
      co_src      = go_xml->create_document( ).
      lo_parser   = go_xml->create_parser( document       = co_src
                                           istream        = lo_stream
                                           stream_factory = go_sf ).
      lo_parser->parse( ).
    endform.                    "get_source
    * --- Put the transformation given as string into an if_ixml_istrean
    form get_transformation changing co_trans type ref to if_ixml_istream.
      data: lv_s   type string.
      concatenate
      `<?xml version="1.0" encoding="iso-8859-1"?>`
      `<xsl:transform version="1.0"`
      ` xmlns:xsl="http://www.w3.org/1999/XSL/Transform"`
      ` xmlns:asx="http://www.sap.com/abapxml">`
      `<xsl:strip-space elements="*"></xsl:strip-space>`
      `<xsl:template match="countings">`
      ` <asx:abap>`
      `   <asx:values>`
      `     <SELOPT>`
      `       <WERKS><xsl:value-of select="@filiale"></xsl:value-of></WERKS>`
      `       <INVNU><xsl:value-of select="@invnu"></xsl:value-of></INVNU>`
      `     </SELOPT>`
      `     <COUNTINGS>`
      `       <xsl:for-each select="count">`
      `         <ZSRS_ZWSTI_LINE>`
      `           <MATNR></MATNR>`
      `           <EAN11><xsl:value-of select="@ean"></xsl:value-of></EAN11>`
      `           <MAKTX></MAKTX>`
      `           <MENGE><xsl:value-of select="@menge"></xsl:value-of></MENGE>`
      `           <MEINH></MEINH>`
      `           <UNAME></UNAME>`
      `           <EXVKW></EXVKW>`
      `           <WAERS></WAERS>`
      `           <FF></FF>`
      `           <GID><xsl:value-of select="@gid"></xsl:value-of></GID>`
      `           <RECNUM><xsl:value-of select="@recNum"></xsl:value-of></RECNUM>`
      `           <RECNUM_FROM><xsl:value-of select="@recNumFrom"></xsl:value-of></RECNUM_FROM>`
      `           <REF_RECNUM><xsl:value-of select="@refRecNum"></xsl:value-of></REF_RECNUM>`
      `         </ZSRS_ZWSTI_LINE>`
      `       </xsl:for-each>`
      `     </COUNTINGS>`
      `   </asx:values>`
      ` </asx:abap>`
      `</xsl:template>`
      `</xsl:transform>`
      into lv_s.
      co_trans = go_sf->create_istream_string( lv_s ).
    endform.                    "get_transformation
    Edited by: Rüdiger Plantiko on Jul 4, 2008 10:25 AM

Maybe you are looking for

  • Color editor removed in JDeveloper 10.1.3.1.0?

    I recently upgraded to JDeveloper 10.1.3.1.0 (using the migrate option) from the Early Access 10.1.3.0.3 version. I noticed that the nice color editor you could use for setting a background color or a foreground color (accessed by clicking on the "..

  • PDF maker toolbar inactive in Office 2013

    Hello. I have Adobe Acrobat Standard XI installed on Windows 7 Pro with Office 2013 Home & Business. The PDF Maker toolbar is not visible in any Office application. In Excel, Options, Add-ins, the Adobe Acrobat Create PDF Toolbar is listed as an Inac

  • Can not fast forward though podcasts on iPhone 4.

    When I first got the phone I was able to fast forward though them. Then something happened three days ago and now I can't fast forward though them at all. When I'm looking at the podcast selection screen it shows '--:--' as the time for all the podca

  • Opening an external .exe?

    Hi I have a button in my Air app that, when clicked, I want to open an .exe app (unrelated program that doesn't have to communicate with my air app). I found the following code on the Adobe site to get me started, but a) I'm not sure how to run it fr

  • Why is Firefox very slow and Safari fast, opening up Yahoo/AOL?

    My iMac is all up to date, running fine! My wife loves AOL, the default browser for her is Safari. It runs fine and is fast. I prefer Yahoo and use Firefox. Firefox can be fast but most of the time it take 30+ seconds to open any page/link....? I hav