Addition in XSLT

10-11  Source: Network gathering  Views:2 

hi gurus,
this is my input file in XSLT mapping.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:out_mt xmlns:ns0="http://cog152516/xsltmapping2">
i want to get the output as mark=26.
how the mapping to be done in XSLT file.. please help me with sample code.
thanks in advance.
Indira D
Use the following Code to add:-
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:ns0="http://cog152516/xsltmapping2">
     <xsl:template match="/">
          <ns0:out_mt xmlns:ns0="http://cog152516/xsltmapping2">
                         <xsl:value-of select="ns0:out_mt/item/mark1+ns0:out_mt/item/mark2"/>
Please let me know if this helps...
Related articles
  • Addition in XSLT 10-11

    hi gurus, this is my input file in XSLT mapping. <?xml version="1.0" encoding="UTF-8"?> <ns0:out_mt xmlns:ns0="http://cog152516/xsltmapping2">    <item>       <mark1>13</mark1>       <mark2>

  • JavaServlet with XSLT 11-30

    Hi. Guys I am trying to develop a web application using javaservlet, this application invokes an XSLT style sheet to transform an XML document. I am getting a mistake that I believe it is concern with the configuration, any one can help please? Here

  • Using Java XML 1.5 toolkit instead of sapxmltoolkit for xslt mappings 10-11

    Hi All    We have a case whereby our xlst requires a number of customised java class functions as we are porting webmethods systems across to PI. eg in the xslt adding <xsl:when test="function-available('java:concat">     <xsl:value-of

  • How to use another XSLT processor 10-11

    Hello all, Recently, I do need to use XSLT 2.0 processor, but how to install it to the JDK? Please give the detailed steps. And how to use it, just import the package? How to avoid the program to the old processor, because I doubt probably the old pr

  • How can I make my XSLT processor accept html code ? 10-11

    In my applications the Oracle xslt processor wont accept simple HTML tags within an XML source while transforming the source into HTML. Both processors either will throw parser exceptions or ignore the HTML code in the XML source completely, though o

  • Swapping XML Parser and XSLT to Xalan 2.7.0 - Not Working (OC4J 10.1.3) 10-11

    Hi- I'm trying to use the latest Xercies/Xalan classes in OC4J 10.1.3 as described in the How-To swap XML Parsers document: What I can see happening is t

  • How to update XML file using XSLT 10-11

    Hi there, I have a "small" issue with exporting data to an XML file using XSLT. A two steps process is needed to import data from a non-hierarchical XML file into ABAP, change the data, and then update the XML file with new values. The problem i

  • How to define myself transform function in a xslt document???!! 10-11

    "XSL Transformations (XSLT) Version 1.0"( have "Additional Function" and "Extension Functions". It is easy to define a transform function with ms biztalk mapper. but how to do with

  • XSLT Mapping: Namespace for prefix 'ns0' has not been declared 10-11

    Hello, I am working on a synchronous SOAP call and having some trouble with the response message. The web service has its own namespace and I am trying to convert this to my custom data type in PI. PI wants the message to be in format of having ns0 p

  • Change Filename using XSLT mapping without variable subtitution 10-11

    Hi, My scenario is IDOC to file...i am using XSLT mapping, i want to change the filename format to OUT_<Purchase Number>_<DDMMYYYYhhmmss>_KKKK.txt, i cannot use UDF function as i do XSLT mapping i also i cannot use variable substitution as the

  • File to RFC - XSLT Mapping after RFC structure has changed 10-11

    Hi I'm an XI beginner, and am looking at a File to RFC scenario which has been implemented in our 7.0 system. We have a requirement to add a new field to the RFC (which has already been done by the ABAPer) and I need to make the necessary changes in

  • Using XSLT to empty nodes with the exception of  specific node. 10-11

    I have XSLT code working which will remove all the empty elements. My user wishes to exempt a specific node, <BypassDateEdits>. I can not figure out the correct syntax to do this. Source XML is: <?xml version="1.0" encoding="UTF-8&

  • Imported XSLT cannot create attributes for generated XML element 10-11

    I have two xslts. One imports the other. The imported xslt creates XML elements with attributes and this XML is stored in a variable in the main stylesheet If I perform the transformation with JRE prior to then all works fine If I use 1.6.0.

  • How to pass simple parameter to XSLT from BPM 11g Data Association 10-11

    Is it possible to pass a simple parameter to an XSLT from a BPM 11g Data Association (  Here is why I asked.  I have a transform that I want to reuse across two service activities in the same process.  The only difference is one integer I

  • Calling Custom XSLT java class from BPEL in SOA Suite 11g 10-11

    Hi All, Morning...need some help with this issue...we are currently on SOA Suite 11g ( version. Earlier while we were on SOA Suite version 10g ( we were calling the custom java classes from the xsl mapping for complex transformation

  • XSLT 1 or 2? 10-11

    A developer has produced for us an XSLT transform. When run outside FrameMaker it works fine, and the resulting XML imports into FrameMaker. With a view to streamlining the process, I am trying to call the XSLT by adding it to the structured applicat

  • Xslt/xsql for csv output 10-11

    anyone have a translator to convert the XML out of a XSQL servlet to deliver plain old comma separated values for Excel? i've got some users that want to hit our XSQL servlet but can't handle the processing of XML, they just want csv files. i was thi

  • JavaServlet + xslt problem 10-11

    Hi. I am developing a web application using Javaservlet technology. The application reads an xml document and then invokes an XSLT stylesheet to transform it into XForms doc. However, the xslt processor initiates the instance data just fine. Then the

  • Running NetWeaver's XSLT processor from Oxygen 10-11

    Hello I am using Oxgen XML Editor (version 12.1, build 2011012011) to create my XSLT mappings. Having tested these mappings successfully offline they are imported onto our SAP-PI ( SAP NetWeaver 7.01 ). However, sometimes mappings that work in Oxygen

  • XSLT document() function 10-11

    I am using the Oracle XML parser, and I am finding that some funny things are happening when I try to use the document(object, node-set?) function, as defined in the XSLT specification. For some reason, my xmlns path is being prepended to any file pa