Testing XSLT in WPC

I'm wondering what methods folks are using when they are testing out XSLT changes.  It appears as though one must bounce the portal in order for XSLT changes to take affect.
Is there an easier way to have a change to the XSLT for a document type take affect?  I'd prefer to avoid cycling the portal everytime I make a change.  The velocity of development is slowing to a halt.

Hi,
Check the Editor Service Cache in the below link:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b07754de-e048-2b10-a0a9-8b732cf54b2c
I would set the Default Time-To-live setting to 1, so that the cached content expires after 1 sec.
Regards,
Praveen Gudapati

Similar Messages

  • 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

  • XSLT mapping not working b'coz " " & " " replaced with and

    Hello Experts,
      I have a RFC to JMS scenario. One of the parameter of RFC is a string field. This field will contain the XML data in it.
    I need to create a complete XML payload using this data in a string field. For this I am using XSLT map :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
         <xsl:output method="xml" omit-xml-declaration="no"/>
         <xsl:template match="/">
              <xsl:for-each select="//Nem">
                   <xsl:copy-of select="."/>
              </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    This XSLT mapping works fine when tested independently.
    But in actual scenario at runtime the "<" & ">" used to indicate a node are getting replaced with < and >. Then the XSLT mapping fails and produces no output.
    The output of XSL will be passed in to a java mapping which signs the payload digitally.
    What is the issue with these signs? How can I overcome this problem?
    Any inputs will be of great help.
    Kind Regards,
    Abhijeet.
    Edited by: Abhijeet Ambekar on May 4, 2010 2:01 PM

    Hi Stefan,
      Yes - I want to get rid of & # 60. But these (& # 60 and & # 62) are not added by XSLT mapping. Rather they are in the input available to XSLT map.
    In sxmb_moni, i can see the inbound payload correctly :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:HDK083_REFUS_SENDDOCU xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <P_SIGN_DOCUMENT />
      <P_XML_DOCUMENT><NemRefusionIndberetningSamling><NemRefusionIndberetningStruktur MessageID="1"><HeaderStruktur><SignOffIndikator>true</SignOffIndikator><TransaktionKode>Opret</TransaktionKode><IndberetningstypeKode>Anmeldelse</IndberetningstypeKode><FravaerTypeKode>Sygdom</FravaerTypeKode><FravaerendeStruktur><FravaerendeTypeKode>Loenmodtager</FravaerendeTypeKode><LoenUnderFravaerIndikator>false</LoenUnderFravaerIndikator></FravaerendeStruktur><IndberetningUUIDIdentifikator>bf9cc44e-af15-4e19-8457-5845d75385d2</IndberetningUUIDIdentifikator><ReferenceAttributTekst>ref. Nielsen-1503831372 (23. oktober 2009)</ReferenceAttributTekst>
    but when I try to download the payload or right click on payload to view source I get something like below:
    <?xml version="1.0" encoding="UTF-8"?><rfc:HDK083_REFUS_SENDDOCU xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><P_SIGN_DOCUMENT></P_SIGN_DOCUMENT><P_XML_DOCUMENT>& # 6 0;NemRefusionIndberetningSamling& # 62; & # 60;NemRefusionIndberetningStruktur MessageID="1"& #62;& #60;HeaderStruktur& #62;& #60;SignOffIndikator& #62;true& #60;/SignOffIndikator& #62;& #60;TransaktionKode& #62;Opret& #60;/TransaktionKode& #62;& #60;IndberetningstypeKode& #62;Anmeldelse& #60;/IndberetningstypeKode& #62;& #60;FravaerTypeKode& #62;Sygdom& #60;/FravaerTypeKode& #62;& #60;FravaerendeStruktur& #62;& #60;FravaerendeTypeKode& #62;Loenmodtager</FravaerendeTypeKode><LoenUnderFravaerIndikator& #62;false</LoenUnderFravaerIndikator></FravaerendeStruktur& #62;<IndberetningUUIDIdentifikator& #62;bf9cc44e-af15-4e19-8457-5845d75385d2& #60;/IndberetningUUIDIdentifikator& #62;& #60;ReferenceAttributTekst& #62;ref. Nielsen-1503831372 (23. oktober 2009)& #60;/ReferenceAttributTekst& #62;
    (extra spaces added to "& # 60" as browser was converting it to < ,>)
    If i take the source code for payload and test XSLT mapping, it fails. But if I manually replace all "& # 60" with < and "& # 6 2" with >, then the mapping works fine.
    So I think for XSLT map to work correctly, we need to replace all "& # 60 " . Please suggest.
    Kind Regards,
    Abhijeet.

  • XSLT 2.0 template error in OeBS XMLP 5.6.2

    Hi everybody.
    I've added the following XSL-XML template to my XMLP data definition to test XSLT 2.0 grouping capabilities:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="/">     
         <Groups>
              <xsl:for-each-group select="1 to 10" group-by=". mod 3">
                   <Group id="{current-grouping-key()}">
                             <xsl:copy-of select="current-group()"/>
                   </Group>
              </xsl:for-each-group>
              </Groups>      
         </xsl:template>
    </xsl:stylesheet>
    I've ran concurrent program using the above template, the result was "Warning", conc program log reported about OPP errors. In OPP log I found the error:
    [5/2/07 9:31:23 AM] [UNEXPECTED] [41563:RT1774967] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:580)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:378)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:197)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:160)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:6071)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3555)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3614)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:245)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    Caused by: java.lang.NullPointerException
         at oracle.xdo.parser.v2.XSLTContext.isStrippedWS(XSLTContext.java:719)
         at oracle.xdo.parser.v2.XSLExprValue.removeWhiteSpace(XSLExprValue.java:1202)
         at oracle.xdo.parser.v2.XSLForEachGroup.processAction(XSLForEachGroup.java:81)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
         at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
         at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:508)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
    The questions are:
    - Is XMLP 5.6.2 in OeBS support XSLT 2.0 templates?
    - If it's true, what is the reason of getting the above error?

    I took xdoparser.zip from EBS $JAVA_TOP and tried to do XSLT transformation locally using
    java -cp .;xdoparser.zip oracle.xdo.parser.v2.oraxsl %1 %2 %3
    where %1 из source xml file, %2 - xslt file , %3 - resulting xml file
    and got the same error.
    So it is not the error of XMLP, but the error of Oracle XSLT processor.
    As far as I understood, in xdoparser.zip oracle.xdo.parser package is the same as oracle.xml.parser package from original Oracle XDK. The question is: what version of XDK XSLT processor xdoparser.zip corresponds to?

  • Help,about jsp+xml+xslt

    if I write like this:
    <?xml version="1.0" encoding="GB2312"?>
    <%@ page contentType="text/html;charset=GB2312"%>
    <?xml-stylesheet type="text/xsl" href="xslt/test.xslt"?>
    <news>
    <word>
    link
    </word>
    <link>
    abc.jsp
    </link>
    </news>
    the test.xslt can convert the xml to html
    but I write like this:
    <?xml version="1.0" encoding="GB2312"?>
    <%@ page contentType="text/html;charset=GB2312"%>
    <?xml-stylesheet type="text/xsl" href="xslt/href.xslt"?>
    <%
    out.println("<news><word>link</word><link>abc.jsp</link></news>");
    %>
    the test.xslt would not work,why????

    first the xslt is in a .xsl file
    second I'm pretty sure you can't put java in an xsl file.

  • STRANS

    Hi,
    Has anybody tested xslt mapping via STRANS.
    I am unable to test it as it always gives me error XSLT mapping not specified.
    Without debugging, it is difficult for me to find the error that happens in the call transformation step
    It raises an exception with cx_mapping_fault and error code 4. I am uanble to find where it failed in call transformation
    This is the place where it fails.
      TRY.
          CALL TRANSFORMATION zxi_gen_error_email
            SOURCE XML xml
            RESULT email_details = ca_email_details_t.
        CATCH cx_transformation_error INTO ca_oref.
          MOVE ca_error_c TO ca_mpg_errcode.
          RAISE EXCEPTION TYPE cx_mapping_fault
            EXPORTING error_code = ca_mpg_errcode.
      ENDTRY.

    There was a problem with one character in the namespace which was in CAPS.  Now, it is working fine.

  • How do you display xml file with xlst sheet in jsp

    I have an xml file with accompanying xslt file (and several images that are used in a single directory. If I doubleclick on the xml file, it displays perfectly in my browser - Formatting, images and all!
              The 100 dollar question - How do I duplicate this behavior in a JSP page in WebLogic 8.1 using the code in the xml and the accompanying xslt (formatting) file? I tried simple embedding the xml code in the jsp, but that didn't seem to work. What is the secret?
              Okay, I need to add a bit more information here. I understand that it is really easy to just redirect to the XML file. The issue is really security. I want the XML to be inside a jsp that will only allow validated users to view it.
              Another way to look at the problem would be, can I add a jsp security tag to the xml file? Or how to I add the xml code inside a jsp and keep the path references to the xslt and graphics.
              Hope the added information helps
              Thanks,
              Ken
              Message was edited by: KLee - 20050609 10:25 MST
              [email protected]

    This proved out to be the answer. Thanks for the direction!
              import java.io.File;
              import java.io.IOException;
              import java.io.InputStream;
              import java.io.OutputStream;
              import java.io.FileNotFoundException;
              import java.io.FileOutputStream;
              import javax.servlet.ServletException;
              import javax.servlet.http.HttpServlet;
              import javax.servlet.http.HttpServletRequest;
              import javax.servlet.http.HttpServletResponse;
              import javax.xml.transform.Transformer;
              import javax.xml.transform.TransformerConfigurationException;
              import javax.xml.transform.TransformerException;
              import javax.xml.transform.TransformerFactory;
              import javax.xml.transform.stream.StreamResult;
              import javax.xml.transform.stream.StreamSource;
              public class XML_XSLT_Servlet extends HttpServlet {
              protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
                        String xmlfile = req.getParameter("xmlfile"); if (xmlfile==null) xmlfile = "test.xml";
                        String xsltfile = req.getParameter("xsltfile"); if (xsltfile==null) xsltfile = "test.xslt";
                        /* Test if file exists!, or use default file */
                        File f1 = new File(getServletContext().getRealPath("WEB-INF/displayfiles/"), xmlfile);
                        File f2 = new File(getServletContext().getRealPath("WEB-INF/displayfiles/"), xsltfile);
                   if (f1.exists() && f2.exists()) {
                             // System.out.println("Files Found");
                        } else {
                             System.out.println("XML and XSLT Files NOT Found");
                             System.out.println(f1.getPath());
                             System.out.println(f1.getName());
                             xmlfile = "test.xml";
                             xsltfile = "test.xslt";
              InputStream fileXML = getServletContext().getResourceAsStream("WEB-INF/displayfiles/" + xmlfile);
              InputStream fileXSLT = getServletContext().getResourceAsStream("WEB-INF/displayfiles/" + xsltfile);
              OutputStream os = res.getOutputStream();
              TransformerFactory xFactory = TransformerFactory.newInstance();
              StreamSource stylesheet = new StreamSource(fileXSLT);
              Transformer xformer = null;
              try {
              xformer = xFactory.newTransformer(stylesheet);
              } catch (TransformerConfigurationException tfce) {
              tfce.printStackTrace();
              StreamSource input = new StreamSource(fileXML);
              StreamResult output = null;
              try {
              output = new StreamResult(os);
              } catch (Exception e) {
              e.printStackTrace();
              try {
              xformer.transform(input, output);
              } catch (TransformerException xfe) {
              xfe.printStackTrace();
              <pre></pre><pre></pre>

  • Web Page Composer - Styles/CSS issues?

    On version 2004s SPS13...
    In my testing of the WPC, I have a web page thate is using the 3-column layout.
    I am dropping  a link list onto the right-most column.
    The text is very large when on the web page; however when you view just the link list by clicking on it in the folder structure, it appears normal.
    Has anyone else expereinced this issue?
    I also have a similar issue where the title/link of a teaser on a web page has very large text.

    We deployed SP 13 per the note 1080110, however it does not show WPC as updated, when we go to NetWeaver installed components, it still shows SP 12.
    Any thoughts, we have tried to rebooted and tried to reinstall, SDM does not read the SCA file as it thinks its deployed, also the logs do show a successful deployment.
    Windows 2003 Enterprise Edition, SQL 2000.

  • LrXML xsl transform cannot match document node on windows

    On windows the xsl library used has a bug which is preventing it from matching the document node (the parent of the root element of the document).
    I reduced this to a test case:
    xml data:
    <first>
      <second />
    </first>
    xsl stylesheet:
    <xsl:stylesheet version='1.0' xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method='text'/>
      <xsl:template match='/'>ROOT<xsl:apply-templates/></xsl:template>
      <xsl:template match='first'>FIRST<xsl:apply-templates/></xsl:template>
      <xsl:template match='second'>SECOND<xsl:apply-templates/></xsl:template>
    </xsl:stylesheet>
    The output should be ROOTFIRSTSECOND and this is the observed output if this stylesheet is processed by msxsl or xsltproc. The problem is, when this is processed by LrXML on windows the output is FIRSTSECOND.
    Granted I am not an xsl expert but to the best of my knowledge this looks like a bug. Any chance this can be fixed?
    Cheers.

    I used process explorer and found that in my case Lightroom uses msxml3.dll. I also ran msxml.exe -u 3.0 which selects the same dll for processing and verified that msxml.exe gives different results that Lightroom.
    Here's the code I am running. In Info.lua:
      LrExportMenuItems = {
          title = 'Test XSLT',
          file = 'TestXSLT.lua'
    and in TestXSLT.lua:
    local logger = import('LrLogger')()
    logger:enable('logfile')
    local LrXml = import('LrXml')
    local utils = require('utils')
    local xml_data = [[
    <?xml version='1.0' encoding='UTF-8'?>
    <first>
      <second />
    </first>
    local xslt_data = [[
    <xsl:stylesheet version='1.0' xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method='text'/>
      <xsl:template match='/'>ROOT<xsl:apply-templates/></xsl:template>
      <xsl:template match='first'>FIRST<xsl:apply-templates/></xsl:template>
      <xsl:template match='second'>SECOND<xsl:apply-templates/></xsl:template>
    </xsl:stylesheet>
    logger:debug('Parsing xml: ' .. xml_data)
    local xml = LrXml.parseXml(xml_data)
    logger:debug('Applying xslt: ' .. xslt_data)
    local res = xml:transform(xslt_data)
    logger:debug('Result: ' .. res)
    Can you please try and verify that it is broken for you as well?
    Thank you.
    Fixed code formatting. disht

  • Installing standard Unix software

    I'm not sure I know the right question to ask...maybe someone can help me. What I'm eventually trying to do is to work with a Perl-based system on my Mac (Mac Snow Leopard); I need the Apache2 Perl .pm files available. They seem to be in /System/Library/Perl/Extras/5.10.0/darwin...but although this is in my path, referencing the packages as Apache2::Request (for example) does not work because of the path names of the library.
    I've tried installing Apache from source, and make install appears to get confused by the fact that there's already an Apache installation that ships with the OS.
    I'm sure there are lots of things I just don't understand here. Can someone point me at a resource that explains how the Apple versions of Unix software interact with potentially newly-installed versions (or explain it to me)? How much trouble can I get myself into by installing packages (Apache is the example above, but there are/may be others) that ship also with Mac OS? Should I be starting by re-installing Perl from scratch, changing my Perl include path, and pretending all the Apple software just doesn't exist? Should I just go buy a Linux box?
    Thanks.

    rm50 wrote:
    First, the Apache2::Request library is still (not surprisingly) not findable by Perl, since it doesn't live in my standard INC. That seems odd (it lives in /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/DBI/Gofer). Is there something going on, or should I just make sure my @INC points there?
    It doesn't live there. It isn't installed at all. I had to install it via:
    sudo perl -MCPAN -e 'shell'
    install Apache2::Request
    At some point, it stopped and asked me if I wanted to run the tests. The first time I accepted the default and the tests failed. Then I did the install again and it quickly got back to the point of asking about the tests. This time, I told it to skip the tests. Those CPAN tests often fail due to very specific configurations required.
    Then I added a new script to test this module:
    use Apache2::Request;
    $req = Apache2::Request->new($r);
    @foo = $req->param("foo");
    $bar = $req->args("bar");
    $req->content_type("text/html");
    $req->print("Bar is $bar
    It failed. After a little Googling it appears you need a specific module to support this. That module seems to be there already, so I added it to /etc/apache2/httpd.conf.
    LoadModule apreq_module libexec/apache2/mod_apreq2.so
    Restarted Apache and it worked this time. Moving on...
    Also, when I tried to install XML::LibXSLT, the perl makefile complains that I only have version 1.69 of LibXML, not 1.70. Can I safely install the 1.70 LibXML.pm on top of the 1.69 that lives in my system area, or should I put it somewhere in my INC path before the system version? What would you suggest?
    Actually, that was just a warning. I let CPAN run and I now have LibXML. CPAN appears to put things into /Library/Perl. That seems like a logical place. On MacOS X, while there is a /usr directory, there is also a MacOSX equivalent /System. The same goes for /usr/local. Things that you might expect to go into /usr/local might sometimes be in /Library. I guess it depends on how "Mac-friendly" a particular package might be. Many are too difficult to reconfigure and are better left to /usr or /usr/local. I haven't tested XSLT or XML because I don't have any XSL files handy on this machine. But I don't expect it to have problems.
    Keep in mind that if you intend to deploy anything on a different system (such as a shared hosting provider), that other system must have the same modules. The big web hosting companies usually have all the bells and whistles, but you never know. You usually cannot install Apache modules or make most system configuration changes on a shared provider.
    You can install CPAN modules anywhere you want and tell Perl about the new library path. I normally do that rather than just letting CPAN do it all, but this is a throwaway 10.6 install on this machine so I don't care. I like to keep my Perl projects as self-contained as possible. I don't think that is really possible with mod_perl though.

  • Addressing   same xml  tags  on different  levels

    Dears Guys ,
    I have an XML data file with <name> tag on two levels
    <db_mapper>
    <name>Testing XSLT</name>
    <cards>
    <card type="simple">
    <name>John Doe</name>
    <title>CEO, Widget Inc.</title>
    <email>[email protected]</email>
    <phone>(202) 456-1414</phone>
    </card>
    <card type="simple1">
    <name>John Woe</name>
    <title>CEO, Sun Inc.</title>
    <email>[email protected]</email>
    <phone>(22222) xxx-1414</phone>
    </card>
    </cards>
    </db_mapper>
    in the XSLT I need the db_mapper/name in one template and
    db_mapper/cards/card/name in the other template
    how can I do this in the following templates :
    <xsl:template match="db_mapper/cards/card/name">
    <td><xsl:value-of select="text()"/></td>
    </xsl:template>
    <xsl:template match="db_mapper/name">
    <td><xsl:value-of select="text()"/></td>
    </xsl:template>
    Thanks in advance!

    I'm not sure either that I understand your question correctly. Didnt' you forget the root "/" from your XPath:
    <xsl:template match="/db_mapper/cards/card/name">
        <td><xsl:value-of select="text()"/></td>
    </xsl:template>

  • Reg - XSLT Mapping using stylesheet exception during test

    Hi experts,
    I am new to SAP PI. Currently i am working on PI's XSLT Mapping using Stylusstudio.
    I got error *Transformer Configuration Exception occurred when loading XSLT <name>.xsl; details: Could not compile stylesheet*.
    I tried test by selecting SAP XML TOOLKIT too, then i am facing
    *com.sap.engine.lib.xml.parser.NestedSAXParseException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'a' is not mapped to a namespace (:main:, row:4, col:15)(:main:, row=4, col=15) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'a' is not mapped to a namespace (:main:, row:4, col:15)*.
    Kindly help me to overcome this issue.

    Hi,
    Simply your XSLT file is not a well-formed XML. Check your syntax. You could also use the XML Tools plugin to Notepad++ to help you determine where the syntax error is precisely.
    Moreover, this error "Prefix 'a' is not mapped to a namespace" might mean that you are using a tag: <a:something>, but "a" is not properly declared as a namespace, for instance like: xmlns:a="something.sap.com".
    Hope this helps,
    Greg

  • XSLT MAPPING TEST PROBLEM

    Hi All,
             We had a problem while testing mapping in Altova Map Force.Here question is while testing our mapping in IR's interface mapping we got the message "Error while loading XSLT ".Target result is notgetting displayed.
    Any ideas.....
    Regards,
    Surya.

    After importing XSL in imported archives, double click it and check whether u can open it or not. Make sure that the namespace ur XSL uses is same as the namespac under which it is imported. Make sure file loaded is XSL and not XSLT. Then try running end-to-end scenario and check the result.
    Regards,
    Prateek

  • Outbound Proxy is generating Mapping Transformation XSLT error in SPROXY Test

    Hi,
    I have searched already online but i am unable to find anything relevant.
    The scenario is that I have an Inbound proxy for processing the incoming payload and in this code the call is made to the oubound proxy method and i am gettin the MAPPING.TRANSFORMER_EXCEPTION Exception occurred during XSLT mapping of the application
    CALL METHOD outbound_obj->shipment_status_notification_o
    EXPORTING
    output = wa_orders_request_out
    IMPORTING
    input = wa_orders_response_out.
    We just updated the orders_request_out  with a single field and activated and regnerated the proxy in ECC and i can now see the updated structure.
    However, if i take the payload from production and just pass the payload in debug to the above method call  in both Dev and QA with the added field, I am getting the above error.
    I cannot do the proxy debug in production unfortunately so i cannot see if this is happening only in Dev and QA.
    Can anyone please help me as this is urgent and If i can get past this error  i can actually test if processing is working as expected?
    Regards,
    Archana

    Hi Mark,
    I have checked the data type and the field occurrence is 0.1
    The change was made only to the request structure as based on this field value some selection needs to be made. The Response structure was not changed at all.
    I have regenerated the outbound proxy as well and surprisingly even though it was not modified it still did not give me a message that the proxy object has not changed. I had to activate it as changed to inactive.
    I am also not sure why that happened.
    Regards,
    Archana

  • Got Exceptions XSLT mapping  while testing the scenarion.........

    Hi
    I got the following exceptions while testing the XSLT mapping scenario...
    Hi
    I have created a XSLT mapping with java conjunction... i have created a ZIP file and i have palced java class file, java file and xsl file in that ZIP file... I have imported this archive into imported archives... but when i am testing the application i got the follwoing exceptions
    <b>Details
    com.sap.engine.services.ejb.exceptions.BaseRemoteException:
    Exception in method transform.
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:182)
    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:304)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
    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.lang.UnsupportedClassVersionError:
    DATEandTIME/Date_Time (Unsupported major.minor version
    49.0)
    at java.lang.ClassLoader.defineClass0(Native
    Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingLoader.findClass(RepMappingLoader.java:175)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at com.sap.engine.lib.xsl.xpath.JLBLibrary.<init>(JLBLibrary.java:33)
    at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:69)
    at com.sap.engine.lib.xsl.xpath.functions.XFFunctionAvailable.execute(XFFunctionAvailable.java:24)
    at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:110)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:54)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:41)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:49)
    at com.sap.engine.lib.xsl.xslt.XSLIf.process(XSLIf.java:28)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272)
    at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:457)
    at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:391)
    at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:392)
    at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:234)
    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:131)
    ... 10 more
    ; nested exception is:
    java.lang.UnsupportedClassVersionError:
    DATEandTIME/Date_Time (Unsupported major.minor version
    49.0)
    com.sap.engine.services.ejb.exceptions.BaseRemoteException:
    Exception in method transform.
    at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:182)
    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:304)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
    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.lang.UnsupportedClassVersionError:
    DATEandTIME/Date_Time (Unsupported major.minor version
    49.0)
    at java.lang.ClassLoader.defineClass0(Native
    Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
    at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingLoader.findClass(RepMappingLoader.java:175)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at com.sap.engine.lib.xsl.xpath.JLBLibrary.<init>(JLBLibrary.java:33)
    at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:69)
    at com.sap.engine.lib.xsl.xpath.functions.XFFunctionAvailable.execute(XFFunctionAvailable.java:24)
    at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:110)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:54)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:41)
    at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:49)
    at com.sap.engine.lib.xsl.xslt.XSLIf.process(XSLIf.java:28)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:248)
    at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:293)
    at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272)
    at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:457)
    at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:391)
    at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:392)
    at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:234)
    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:131)
    ... 10 more
    ; nested exception is:
    java.lang.UnsupportedClassVersionError:
    DATEandTIME/Date_Time (Unsupported major.minor version
    49.0)</b>
    Please help me....
    Best Regards
    Ravi Shankar B
    Message was edited by: RaviShankar B

    Hi
    Following is my XSLT code
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:javamap="java:DATEandTIME.Date_Time">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:param name="inputparam" />
         <xsl:template match="/">
         <MT_TARGET>
              <date>
                   <xsl:if test="function-available('javamap:getDateValue')">
                       <xsl:value-of select="javamap:getDateValue($inputparam)"/>                    </xsl:if>
              </date>
              <time>
              <xsl:if test="function-available('javamap:getTimeValue')">
                       <xsl:value-of select="javamap:getTimeValue($inputparam)"/>                       <xsl:value-of select="$test"/>
              </xsl:if>
              </time>
              <project>
                        <xsl:value-of select= "//project"/>
              </project>
         </MT_TARGET>
         </xsl:template>
    </xsl:stylesheet>
    Following is my Java Code
    package DATEandTIME;
    import java.util.Map;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import java.util.*;
    import java.text.*;
    public class Date_Time {
                private static AbstractTrace trace = null;
                public static String getDateValue(Map inputparam)
                        trace = (AbstractTrace)inputparam.get(
                                 StreamTransformationConstants.MAPPING_TRACE );
                        Date now1 = new Date();
                        SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMd");
                        String dateString = formatter.format(now1);
                        return dateString;
                public static String getTimeValue(Map inputparam)
                            trace = (AbstractTrace)inputparam.get(
                                    StreamTransformationConstants.MAPPING_TRACE );
                            Date now1 = new Date();
                            SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");
                            String dateString1 = formatter.format(now1);
                            return dateString1;
    Best Regards
    Ravi Shankar B

Maybe you are looking for

  • Opening balances for excise registers

    Hi What would be the process for updation of excise registers with  opening balance. The transfer is from Legacy to SAP Regards Sanil

  • Are my ADSL stats normal?

    Hi there, Just looking for some insight on the ADSL stats on my line. Recently connected, still in DLM period but have noticed noise, output and attentuation settings have not changed +/- 0.5 dB at any point since connection. Broadband performance fe

  • What software do i need to play audio not through itunes

    Hi Community, I love my airport express. I use it only for sending music into the kids playroom. I want to send music playing youtube and npr radio stations but airport express only plays through itunes. What software would allow me to broadcast othe

  • Suggestions to improve Bridge CS4 Collections feature

    The new "Collections" feature in Bridge CS4 is Great! It's pretty close to what I've been missing in CS3. In working with the new feature I've discovered several areas where it could be made even more useful. 1. It appears folders get added to Smart

  • Audio Editing Constantly Crashes Premiere CC

    Hello, Getting close to a deadline and doing my final audio mix and Premiere CC keeps crashing. When I try to move/roll audio clips in the timeline it will crash. Clicking on the constant power filter will crash (see image) I've tried trashing the pe