Step by step creating XSLT Mapping

Hi ,
         Will any one help me how to create XSLT Mapping, and where to create the program. Please help me with an example.
Regards,
Amruth

Hi
I do not know much about Xi.  I tried to include a link to a site which provided an example but the forum guidelines would not allow for it to be included.  If you search Google for XSLT mapping and SAP there is a link to SAPtechnical which provides an example.
Regards
Paul Hawking
SAP Academic Program Director
Victoria University
Australia

Similar Messages

  • XSLT Mapping for creating Excel files

    Hi ,
    I am following the blog /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible by Michal regarding conversion of Flat files to Excel file format.
    My input xml format is
             <?xml version="1.0" encoding="utf-8"?>
             <FILE>
                  <Record>
         <Name>Navin</Name>
                         <EmpID>123456</EmpID>
                         <Location>Bangalore</Location>
                  </Record>
                 <Record>
         <Name>Ravi</Name>
                         <EmpID>789456</EmpID>
                         <Location>Hyderabad</Location>
                  </Record>
             </FILE>
    i need to convert this file into an Excel format with each record in single rows with Column Header names as Name,EmpID,Location.
    Could you please suggest how the XLST mapping should be done for this as i am very new to XSLT mapping concept.
    Please suggest how we can attain the target structure(datatype) and  steps to do this XSLT mapping.
    Note:- We are not doing Adapter module for this conversion.
    Thanks,
    Navin

    > i need to convert this file into an Excel format with each record in single rows with Column Header names as Name,EmpID,Location.
    This can be done with file content convertion. Use delimiter ; for excel
    > Could you please suggest how the XLST mapping should be done for this as i am very new to XSLT mapping concept.
    If you do not understand XSLT, you you want to maintain your development, in case if an error?
    http://w3schools.com/xsl/default.asp

  • XSLT Mapping :-- End to End Scenario

    Can any one provide XSLT Mapping End to End scenario with screen shots?

    HI
    XSLT Mapping
    XSLT stands for EXtensible Stylesheet Language Transformations. It is an XML based language for transforming XML documents into any other formats suitable for browser to display, on the basis of set of well-defined rules.
    Using XSLT mapping in a ccBPM scenario
    File to Multiple IDocs (XSLT Mapping)
    Steps required for developing XSLT Mapping
    u2022 Create a source data type and a target data type
    u2022 Create Message types for the source and target data types.
    u2022 Create Message Interfaces includes Inbound Message interface and Outbound Message interface.
    u2022 XSLT Mapping does not require creation of Message mapping, so donu2019t create any Message mapping.
    u2022 Create an .XSL file which converts source data type into target data type.
    u2022 Zip that .xsl file and import it into Integration Repository under Imported Archives.
    u2022 In Interface Mapping choose mapping program as XSL and specify this zip program. (Through search help you will get XSL Mapping programs that you imported under Imported Archives, select your corresponding XSL Program)
    u2022 Test this mapping program by navigating to Test tab.
    By having look at above steps you can easily find out that this mapping is no where different from other mapping programs, here the challenging lies in creating an XSLT file. If you spend couple of minutes in studying XPATH tutorial you would be in ideal position to create an XSL Transformation (.xsl extension).
    If you still find difficulties in generating XSL Transformation, then you can make use of a tool u201CAltova MapForceu201D which will create XSL file for you.
    Steps for creating XSL file using this tool:
    1. Open the Alto MapForce, import the source .xml and .xsd file in it
    2. Similarly import the target .xml and .xsd in MapForce.
    3. These two data files should match with source and target data types in Integration Repository.
    4. Complete the graphical mapping using extensive list of XSLT functions available there.
    5. Save the mapping file.
    6. Click the XSLT tab. You will have the entire xslt logic there.
    7. Copy that content and save it as .xsl file.
    8. Zip above .xsl file and import the same into IR under Imported Archives.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae3f15
    xpath functions in xslt mapping
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=xslt+mapping&adv=false&sortby=cm_rnd_rankvalue#
    complete mapping guide:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    XSLT MAPPING:
    Generic XSLT Mapping for SAP XI,Part I
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    Generic XSLT Mapping for SAP XI,Part II
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    XSLT: Recursive Templates
    XSLT: Recursive Templates
    Easy RFC lookup from XSLT mappings using a Java helper class
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
    Step u2013 By u2013 Step Simple Approach for XSLT Mapping
    Step – By – Step Simple Approach for XSLT Mapping
    http://www.devguru.com/Technologies/xslt/quickref/xslt_element_applytemplates.html
    cheers
    Edited by: vemuganti naga phalguna on Jul 2, 2008 8:59 AM
    Edited by: vemuganti naga phalguna on Jul 2, 2008 9:07 AM

  • What are the tools for doing xslt mapping.

    Hi All,
    I am doing a a scenario with xslt mapping. Can anybody give be step by step procedure for doing xslt mapping.

    Hi Ankur ,
    U can use Altova XMLSpy for XSLT Mapping.
    See the below links
    XSLT Mapping
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    XSLT Mapping with java enhancement
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    Step by Step procedure:
    for doing xslt mapping you need to create a .xlst file containing the xslt mapping of source and target data.
    U can use Altova XMLSpy for creating .xslt mapping.
    Following following steps for executing this mapping.
    1. Create Source Data and Target Data Type in IR.
    2. Take xml representation of source data and open it into Alto XMLSpy.
    3. Create .xsd file for above source xml data.
    4. Repeat above two procedure for Target Data.
    Now Creating .xslt file you need to Use Alto MapForce.
    Steps will be:
    1. Open the Alto MapForce. Import the source .xml and .xsd file in it.
    2. Similarly import the target .xml and .xsd in the MapForce.
    3. You will have both source and target data available in MapForce in similar fashion as you have in IR.
    4. Do the graphical mapping using extensive list of functions available there.
    5. Save the mapping file.
    6. Click the XSLT Tab . You will have the entire .xslt logic there.
    6. Copy the above content and save it as .xslt file.
    7. Create a jar file for the above .xslt file.
    8. Go to IR , Import the .jar file into 'Imported Archive'
    7. In Message Mapping , Choose XSLT from drop down box of Message program.
    8. Import the jar containing the .xslt file.
    9. Test the mapping

  • XSLT mapping for fixed values

    Hi,
    i am doing a XSLT mapping. i have a field which has fixed values(can be performed using graphical mapping). but the same i am not able to implement for XSLT. can anyone give me a idea about this
    <removed by moderator>
    Thanks
    Deepika
    Edited by: Mike Pokraka on Jul 24, 2008 12:57 PM

    Step u2013 By u2013 Step Simple Approach for XSLT Mapping                         
    Step – By – Step Simple Approach for XSLT Mapping                         
    generic xslt mapping part 1                                             
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1                                             
    generic xslt mapping part2                                   
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a                                             
    xslt recursive templates                                             
    XSLT: Recursive Templates
    regards
    kummari

  • Is it possible to replace  XSLT mapping in place of Graphical mapping

    Is it possible to do XSLT mapping in place of Graphical mapping, in any normal scenario?
    Means the fuctionality we do by using Graphical mapping(like the operations by using node functions etc...) could possible to do with XSLT Mapping?

    HI
    yes it is possible to replace the graphical mapping with the XSLT mapping.
    But using XSLTs degrade the performance of the interface and moreover they are not easily maintainable.
    Refer the below links for assistance on XSLT Mapping:
    XSLT MAPPING:
    Generic XSLT Mapping for SAP XI,Part I
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    Generic XSLT Mapping for SAP XI,Part II
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    XSLT: Recursive Templates
    XSLT: Recursive Templates
    Easy RFC lookup from XSLT mappings using a Java helper class
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
    Step u2013 By u2013 Step Simple Approach for XSLT Mapping
    Step – By – Step Simple Approach for XSLT Mapping
    http://www.devguru.com/Technologies/xslt/quickref/xslt_element_applytemplates.html
    XSLT Mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae3f15
    xpath functions in xslt mapping
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=xslt+mapping&adv=false&sortby=cm_rnd_rankvalue#
    Using XSLT mapping in a ccBPM scenario
    File to Multiple IDocs (XSLT Mapping)
    Comparsion of Different mappings:
    Comparing Performance of Mapping Programs
    Complete mapping guide url:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    cheers

  • What are the Built-In-Functions in XSLT mapping?

    what are the Built-In-Functions in XSLT mapping?

    hi praveen
    check the below blogs
    XSLT MAPPING                                   
    Step u2013 By u2013 Step Simple Approach for XSLT Mapping                                   
    Step – By – Step Simple Approach for XSLT Mapping                                   
    XSLT mapping for multiple segments of XML                                   
    XSLT mapping for multiple segments of XML                                   
    IF - ELSE IF and XSLT - A Better work around ?                                   
    IF - ELSE IF and XSLT - A Better work around ?                                   
    Calling instance (object) method of ABAP Class into xslt mapping by using SAP: CALL-EXTERNAL                                             
    Calling instance (object) method of ABAP Class into xslt mapping by using SAP: CALL-EXTERNAL                                             
    xpath functions in xslt mapping                                             
    xpath functions in xslt mapping                                             
    Using XSLT Mapping within the J2EE Adapter Framework                                             
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]                                             
    EDIFACT to XML - Stylus Studio Solution                                             
    EDIFACT to XML - Stylus Studio Solution                                             
    Running NetWeaver's XSLT processor from XMLSpy                                             
    Running NetWeaver's XSLT processor from XMLSpy                                             
    generic xslt mapping part 1                                             
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1                                             
    generic xslt mapping part 1          part2                                   
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a                                             
    xslt recursive templates                                             
    XSLT: Recursive Templates                                             
    Generating Generic XML / HTML files without using XSLT Mappings                                                       
    Generating Generic XML / HTML files without using XSLT Mappings                                                       
    regards
    kummari

  • What is XSLT mapping ? where it can be carrid out in PI?

    Hi all,
    What is XSLT mapping ?
    Where it can be carrid out in PI?
    How it is useful in excel to RFC scenario ?
    Can some one help on this please?
    Regards
    Venkat

    Hi
    XSLT is one type of mapping that Xi supports. XSLT mapping also do have certain advantages like if you need a formatted output like HTML in XSLT it would be easy to implement... XSLT is a W3C standard so if also works in any other integration s/w other than XI so it is portable.
    Advantage
    the changes to XSD's loses all mappings with graphical mappings but with XSLT's you just add the field changed or added, instead of starting over
    XSLT Mapping:
    Step – By – Step Simple Approach for XSLT Mapping
    File to Multiple IDocs (XSLT Mapping)
    The specified item was not found.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30ac53f2-21d7-2a10-afa2-ce1a0577ca18
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    Regard's
    Chetan Ahuja

  • XSLT Mapping - Configuration error

    Hi there,
    I have loaded an XSLT mapping that references 2 other mapping templates (in separate files). When I test the main mapping (in the Interface Mapping test tool) I get the following error:
    Transformer configuration exception occurred when loading XSLT POSbankingPacketToWPUFIB.xsl (http://ournamespace, 36cb0f00-1a9b-11d8-96af-e1600a114c15, -1)
    The trace in the tool showed the following:
    Creating XSLT mapping POSbankingPacketToWPUFIB
    URIResolver called with href = EDI_DC40.xsl and base =  POSbankingPacketToWPUFIB.xsl
    Source resolved. System id = EDI_DC40.xsl
    URIResolver called with href = WPUFIB.WPUFIB01.xsl and base = POSbankingPacketToWPUFIB.xsl
    Source resolved. System id = WPUFIB.WPUFIB01.xsl
    Any ideas on how to resolve this problem would be appreciated. Info below may also be helpful:
    - I have tested the XSL mapping in xmlSpy and it produces the required result but in the IR the error above occur. - I am using <xsl:stylesheet version="2.0" .... > in my definition
    - I am calling templates from the POSbankingPacketToWPUFIB.xsl that exist in both EDI_DC40.xsl and WPUFIB.WPUFIB01.xsl
    - I am using variables, template parameters and <xsl:text disable-output-escaping="yes"> in the referenced xsl stylesheets.
    Regards
    Christiaan

    Hi there,
    Thank you for your answer. All of those things were okay.
    The problem was related to XPath 2.0 syntax which does not seem to be supported by XI. The statement in question was:
    <xsl:for-each select="POSbankingPacket/DetailGroup[GroupType ne 'HD']">
    I have now switched to XSLT 1.1 and will hopefully find a adequate replacement statement.
    Thank you,
    Christiaan

  • Increment counter in XSLT mapping

    Hi Experts,
    I am creating xslt mapping by using mapforce tool. I am trying to get increment counter variable in xslt mapping. can you please tell me what would be the code for getting sequence number.
    Thanks for your help.
    Thanks,
    Hari

    yes, there is a global variable concept in XI which u can use for your Sequence Number concept.
    If you are on SP14 and above, just take a lookat this blog and the GLOBAL Variables Section
    XI: New features in SP14
    check this thread
    Re: Need Help in XSLT Mapping
    Re: Sequence Number in XI Mapping

  • XSLT Mapping Docs

    Hi,
    Can any one post me some good Documents on XSLT mapping?
    With kind regards,
    Joseph

    Hi,
    Each mapping has its own adavantages and disadvantages. XSLT is one type of mapping that Xi supports. XSLT mapping also do have certain advantages like if you need a formatted output like HTML in XSLT it would be easy to implement... XSLT is a W3C standard so if also works in any other integration s/w other than XI so it is portable
    prefer XSLT Mappings over Graphical mappings, since it's easier to use. One other big advantage of using XSLT mapping not mention, atleast I think, is that changes to XSD's loses all mappings with graphical mappings but with XSLT's you just add the field changed or added, instead of starting over(which you will have to do if you re-import your XSD)...
    XSLT is made for mapping XML to HTML or XML to XML. In the XI environment there are different mappings options availiable e.g: graphical (message) mapping, XSLT, Java , ABAP.
    XSLT is, compared to the other techniques, easy to learn and good to enhance. It has a worse performance than the other techniques.
    Usually it is the decision of the developer which mapping to choose looking at the different aspects of the requirement like message size, complexity of mapping and so on.
    For "An Overview of XSLT Mapping":
    https://www.sdn.sap.com/irj/sdn/developerareas/java?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798
    Few other links that might help you to understand XSLT in better way :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
    File to Multiple IDocs (XSLT Mapping)
    And also Refer these links
    Creating XSLT Mapping using STYLUS studio Editor
    xpath functions in xslt mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae3f15
    Hope this helps.
    Cheers,
    Suryanarayana

  • XSLT mapping - namespace problem?

    Hello,
    I am trying to proces a message with the following format:
    <XMLMESSAGE  xsi:nonamespaceSchemalocation='schema.xsd' >
       <ORDER>
         <HEADER>
         </HEADER>
         <ITEM>
         </ITEM
      </ORDER>
    <XMLMESSAGE>
    the mapping (XSLT or message mapping) throws an exception. During runtime or test, this is the same.
    The problem occurs, I think, because of the nonamespace atriibute. If a change or remove the value, the mapping is fine.
    Does anybody know if I should save the file mentioned in the attribute somewhere? Or is there a workaround for this problem?
    thnx, Paul
    PS: we are using PI 7.0.

    Hi Russ (and others),
    I tested it in the real example, but it still throws the same error on the  java (=compiled) mapping.
    this is my input:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ORDER [
    <!ENTITY % iso-lat1 PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML" "http://www.oasis-open.org/docbook/xmlcharent/0.3/iso-lat1.ent">
    %iso-lat1;
    ]>
    <XMLMESSAGE xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:noNamespaceSchemaLocation="OrderBericht.xsd">
         <ORDER>
              <HEADER>
                   <ACCOUNT_NUMBER></ACCOUNT_NUMBER>
              </HEADER>
              <LINE_ITEMS>
                   <ITEM>
                        <LINE>1</LINE>
                   </ITEM>
              </LINE_ITEMS>
         </ORDER>
    </XMLMESSAGE>
    this is my xslt:
    <?xml version='1.0' ?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="no" standalone="no" indent="yes"/>
         <xsl:template match="/">
              <ORDERS05 xmlns="com:root">
                   <IDOC BEGIN="1">
                       <xsl:call-template name="CrtEDIDC40"/>
                   </IDOC>
              </ORDERS05>
         </xsl:template>
         <xsl:template name="CrtEDIDC40">
              <EDI_DC40 SEGMENT="1">
                   <TABNAM>EDI_DC40</TABNAM>
                   <SNDPRT>LS</SNDPRT>
                   <SNDPRN>XIDCLNT300</SNDPRN>
              </EDI_DC40>
         </xsl:template>
    </xsl:stylesheet>
    and this is the error:
    18:00:41 Start of test
    Creating XSLT mapping mindef_test
    Call XSLT processor with stylsheet mindef_test.xsl.
    Method error called terminate transformation
    javax.xml.transform.TransformerException: IOException occurred while parsing stream. An empty document will be used! at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:351) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150) at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127) at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: java.io.IOException: Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.net.UnknownHostException: www.oasis-open.org at com.sap.engine.lib.xml.parser.URLLoaderBase.resolveEntity(URLLoaderBase.java:148) at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.addInputFromEntity(AdvancedXMLStreamReader.java:393) at com.sap.engine.lib.xml.parser.XMLParser.handleDTDReference(XMLParser.java:2267) at com.sap.engine.lib.xml.parser.XMLParser.scanIntSubset(XMLParser.java:1057) at com.sap.engine.lib.xml.parser.XMLParser.scanDTD(XMLParser.java:1246) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2795) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2830) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:347) ... 19 more --------- java.io.IOException: Failed to load resource from the context classloader of the current thread! Loading from classloader was caused by: java.net.UnknownHostException: www.oasis-open.org at com.sap.engine.lib.xml.parser.URLLoaderBase.resolveEntity(URLLoaderBase.java:148)
    any ideas? I am totally lost here.

  • Extracting more information from XI XSLT mapping failure

    Hello
    I am getting to grips with XI. When developing XSLT mappings I first run them on Stylus or XMLSpy, ensure they work, and then deploy them to XI.
    Unfortunately they sometimes fail to work in XI, and the amount of information retrieved about the failure is very small.
    I thought of a method to get more infomation in situations like this. I could write a Java method that sends messages to the XI console. This would involve seeing the javadoc API for GlobalContainer, Container and AbstractTrace. I would also need to have these objects in my classpath in order to compile the method. Then I could use the method in the XSL.
    There are two small drawbacks to this plan: I cannot find the Javadoc or the Jar file holding the classes.
    Perhaps one of you readers could either tell me where these things are, or suggest a better method of solving problems like this.
    In either case I look forward to receiving a reply.
    Thanks
    Bill Logan

    Thanks for the suggestion,
    completely forgot about the simpler <xsl:message/> command. I tried this, and it worked fine in Stylus.....but not in XI.
    I think the problem s when the file is being loaded. An alert box pops up. It says
    "Transformer configuration exception occurred when loading XSLT GDS_to_DP.xsl (http://sap.com/xi/GDSConsole, 155fc320-f69f-11d8-97f7-c0140a114c15, -1)"
    and the trace window says this
    "10:00:13 Start of test
    Creating XSLT mapping GDS_to_DP
    URIResolver called with href = GDS_DP_Common.xsl and base = GDS_to_DP.xsl
    Source resolved. System id = GDS_DP_Common.xsl
    10:00:14 End of test"
    It seems obvious (from deduction) that the problem lies in GDS_DP_Common.xsl. XI will not give me any information precisely where this occurs
    Thanks for you earlier answer Alessandro

  • Xi xslt mapping

    1.where do I write the xsl mapping?
    2.Do I need to import the xsd and namespaces for applying xsl onto the xml files(outbound xml and Inbound xml) in these IDEs?
    3.How to test whether applied xsl mapping on the Outbound xml data is mapped to Inbound or receiving xml file?
    4.how should I use this xslt developed outside XI and use it in XI?
    1.You can use any available XML transformation IDEs like Xml Spy or Stylus studio.
    2.  No. There is no need to import neither these xsd nor the necessity to create namespaces. You just create Outbound xml file with same structure as in xi and apply the XSL to that xml file.
    3.Here testing outside      XI means just transforming the outbound xml data into inbound xml data with whatever elements you want by applying the XSL.
    when you import this xsl file in XI as archive file you insert the namespace in the root element of the creating inbound xml tree in xslt.This namespace is very import.
    4.You should zip this xslt file and in XI goto Mapping objects and right click on imported archives and select new.goto the ziped files directory and click import archive button.To use this xslt mapping go to the interface mapping and in mapping program select xsl from the drop down and select the imported xslt mapping.

    Thanks for the suggestion,
    completely forgot about the simpler <xsl:message/> command. I tried this, and it worked fine in Stylus.....but not in XI.
    I think the problem s when the file is being loaded. An alert box pops up. It says
    "Transformer configuration exception occurred when loading XSLT GDS_to_DP.xsl (http://sap.com/xi/GDSConsole, 155fc320-f69f-11d8-97f7-c0140a114c15, -1)"
    and the trace window says this
    "10:00:13 Start of test
    Creating XSLT mapping GDS_to_DP
    URIResolver called with href = GDS_DP_Common.xsl and base = GDS_to_DP.xsl
    Source resolved. System id = GDS_DP_Common.xsl
    10:00:14 End of test"
    It seems obvious (from deduction) that the problem lies in GDS_DP_Common.xsl. XI will not give me any information precisely where this occurs
    Thanks for you earlier answer Alessandro

  • Detroubulator:  RESOURCE_NOT_FOUND when testing XSLT mapping

    Hello Everybody
    I have tried to test a XSLT mapping on SAP-XI (7.0, service pack 14) using Detroubulator (1.1.0):
    - JRE = jre1.6.0_03
    - JCo = 2.1.8
    - JUnit = junit-4.4.jar
    - aii_map_api.jar was copied from XI server to /detroubulator/lib
    However, running my test file I receive the following error:
    Detroubulator version 1.1.0, copyright 2006, 2007 AppliCon A/S
    Test file: test_xslt.xml
    04.02.2008 07:36:08 org.detroubulator.server.XIServerRFCImpl configure
    INFO: JCo version: 2.1.8 (2006-12-11)
    04.02.2008 07:36:09 org.detroubulator.core.Launcher terminate
    SCHWERWIEGEND: Termination requested with message: Server error: RESOURCE_NOT_FOUND,E,205,0,sap.invoic02.tradacom.1993.invoic.xsl,http://lindt.com/customer/defaults,829eeb5c-6af6-3be5-838d-0a40ea0fdfcb,-1
    04.02.2008 07:36:09 org.detroubulator.core.Launcher terminate
    SCHWERWIEGEND: org.detroubulator.server.ServerException: RESOURCE_NOT_FOUND,E,205,0,sap.invoic02.tradacom.1993.invoic.xsl,http://lindt.com/customer/defaults,829eeb5c-6af6-3be5-838d-0a40ea0fdfcb,-1
         at org.detroubulator.server.XIServerRFCImpl.executeMapping(Unknown Source)
         at org.detroubulator.server.XIServerRFCImpl.executeXSLTMapping(Unknown Source)
         at org.detroubulator.mappingprograms.XSLTMapping.execute(Unknown Source)
         at org.detroubulator.core.TestSuite.execute(Unknown Source)
         at org.detroubulator.core.Launcher.start(Unknown Source)
         at org.detroubulator.core.Launcher.main(Unknown Source)
    Server error: RESOURCE_NOT_FOUND,E,205,0,sap.invoic02.tradacom.1993.invoic.xsl,http://lindt.com/customer/defaults,829eeb5c-6af6-3be5-838d-0a40ea0fdfcb,-1
    The crucial parts of the test file are shown below:
    <?xml version="1.0" encoding="UTF-8"?>
    <testsuite>     
         <server>
              <configuration>
              </configuration>
         </server>
         <program type="xslt">
              <configuration>
                   <parameter name="name">sap.invoic02.tradacom.1993.invoic.xsl</parameter>
                   <parameter name="ns">http://lindt.com/customer/defaults</parameter>
                   <parameter name="swcv.id">829eeb5c6af63be5838d0a40ea0fdfcb</parameter>
              </configuration>
         </program>
         <!--
         <transformationparams>
        <parameter name="MESSAGE_ID">4fc43701f6e53e3eb5ef4748631adffb</parameter>
    </transformationparams>
      -->
         <reporting>
              <testreport type="console">
                   <configuration>
                        <parameter name="dumpdir">dumped_output</parameter>
                   </configuration>
              </testreport>
              <testreport type="xml">
                   <configuration>
                        <parameter name="file">sample_report_xslt.xml</parameter>
                        <parameter name="dumpdir">dumped_output</parameter>
                   </configuration>
              </testreport>
              <testreport type="html">
                   <configuration>
                        <parameter name="file">sample_report_xslt.html</parameter>
                        <parameter name="dumpdir">dumped_output</parameter>
                   </configuration>
              </testreport>
         </reporting>
         <tests>
              <testcase>
                   <inputdocument>invoic_00256850.xml</inputdocument>
                   <assertions>
                      <content xpath="/INVOIC/SG_THEADER/S_STX/APRF" expect="INVTES">Invoice is test-only</content>
                   </assertions>
              </testcase>
         </tests>
    </testsuite>
    The JCo connection to the SAP-XI server works yet the XSLT program is not recognized.
    Has anybody experienced similar problems and found a solution?
    Regards,
      Uwe

    Hello everybody,
    I have the same problem, but as path delimiter I use the slash.
    <parameter name="name">com/invoice01/my_map.xsl</parameter>
    Detroubulator with option -d writes such a log:
    1A      "3"     "Creating XSLT mapping /EDIFAKT/xslt/InvoiceEdiToInvoiceIdoc.xsl."
    2A      "3"     "Load 0c04fdb5-57db-3510-989e-afa01a95280e, http://vng.de/xi/energy/vng, -1, EDIFAKT/xslt/InvoiceEdiToInvoiceIdoc.xsl."
    3A      "3"     "Search EDIFAKT/xslt/InvoiceEdiToInvoiceIdoc.xsl (http://vng.de/xi/energy/vng, -1) in swcv 0c04fdb5-57db-3510-989e-afa01a95280e."
    4A      "3"     "Does not found exact entry. Search in other namspaces."
    5A      "3"     "Search EDIFAKT/xslt/InvoiceEdiToInvoiceIdoc.xsl (-1) in swcv 0c04fdb5-57db-3510-989e-afa01a95280e without namespace."
    6A      "1"     "Unable to find resource EDIFAKT/xslt/InvoiceEdiToInvoiceIdoc.xsl (http://vng.de/xi/energy/vng, 0c04fdb5-57db-3510-989e-afa01a95280e, -1)"
    7A      "1"     "com.sap.aii.ibrun.server.mapping.persist.ResourceNotFoundException: Unable to find resource EDIFAKT/xslt/InvoiceEdiToInvoiceIdoc.xsl (http://vng.de/xi/energy/vng, 0c04fdb5-57db-3510-989e-afa01a95280e, -1) at com.sap.aii.ibrun.server.mapping.persist.DBSwcvMappingPersistor.getInputStream(DBSwcvMappingPersistor.java:325) at com.sap.aii.ibrun.server.mapping.persist.DBSwcvMappingPersistor.readFile(DBSwcvMappingPersistor.java:203) at com.sap.aii.ibrun.server.mapping.MappingResolver.loadSource(MappingResolver.java:114) at com.sap.aii.ibrun.server.mapping.MappingPool$TemplateFactory.load(MappingPool.java:314) at com.sap.aii.ibrun.server.mapping.MappingPool$TemplateFactory.newFactory(MappingPool.java:331) at com.sap.aii.ibrun.server.mapping.pool.Pool.getNewPoolLine(Pool.java:72) at com.sap.aii.ibrun.server.mapping.pool.Pool.checkOut(Pool.java:60) at com.sap.aii.ibrun.server.mapping.MappingPool.checkOut(MappingPool.java:82) at com.sap.aii.ibrun.server.mapping.XSLTMapping.executeStep(XSLTMapping.java:44) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62) at java.lang.reflect.Method.invoke(Method.java:391) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy217.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor276.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62) at java.lang.reflect.Method.invoke(Method.java:391) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.call(RFCDefaultRequestHandler.java:277) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:219) at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:260) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:215) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)"
    The xi system finds the xslt as part of a szenario.
    Regards
    Christof

Maybe you are looking for

  • All the apps on my new iPod touch 5 are messed up.

    On Instagram I can't post videos or pictures and it keeps telling me that all the posts are from 2h ago but when I look on my phone it says 1sec.It is doing this with Twitter and Vine app. I just got this iPod for my birthday so it's strange that my

  • Add multiple objects to a Deque to be retrieved in that order?

    All: We are using a LinkedBlockingDeque in a classic producer/consumer setup -- multiple threads may post "commands" to the Q, and the consumer retrieves and executes each command in a separate thread. We have very rare cases where we need to post mo

  • Can two ipods share music even if only one has it?

    i just got an ipod video for christmas. i originally had an ipod mini. i went to my friends house and got a couple songs on my mini a while back. my computer is authorized with account as well as with mine. i know that i have to go to the one that pu

  • Memory Consumption: Start A Petition!

    I am using SQL Developer 4.0.0.13 Build MAIN 13.80.  I was praying that SQL Developer 4.0 would no longer use so much memory and, when doing so, slow to a crawl.  But that is not the case. Is there a way to start a "petition" to have the SQL Developm

  • How to call a method of another class ?

    Hello, I�d like to know how to call a method of another class. I have to classes (class 1 and class 2), class 1 instantiates an object of class 2 and executes the rest of the method. Later, class 1 has to call a method of class 2, sending a message t