Issue with XSLT

Hi All,
I am working on a requirement to write an XSLT file which will do the following:
1. Copy contents from Input.xml to Output.xml
2. Read another xml file named Map.xml, select the value of printImmediate corresponding to Report Name and Version from Input.xml.
3. If printImmediate is true, then update the "VALUE" attribute of PRINT_IMMEDIATE element to 1, otherwise keep it same.
XSLT File
<xsl:stylesheet version="1.0"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:ns0="http://www.pwb.com/UBE"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xsi xsl ns0 xsd plt opaque tns wsdl xp20 bpws mhdr bpel2 oraext dvm hwf med ids bpm xdk xref pwb ora socket ldap">
<xsl:variable name="map" select='document("Map.xml")'/>
<xsl:template match="/">
<xsl:apply-templates mode="copy"/>
<xsl:copy-of select="*"/>
</xsl:template>     
<xsl:template match="ns0:PRINT_IMMEDIATE" mode="copy">
<xsl:variable name="reportName" select="string(ancestor-or-self::ns0:ACTION/ns0:REPORT_NAME/@VALUE)"/>
<xsl:variable name="reportVersion" select="string(ancestor-or-self::ns0:ACTION/ns0:REPORT_VERSION/@VALUE)"/>
<xsl:variable name="printImmediate" select="$map/root/job[@report=$reportName and xp20:matches($reportVersion, @version)][1]/@printImmediate"/>
<xsl:attribute name="VALUE">
<xsl:choose>
<xsl:when test="string($printImmediate)">
<xsl:value-of select="1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>          
</xsl:template>
</xsl:stylesheet>
Map.xml
<?xml version='1.0' encoding='UTF-8' ?>
<root>
<job report="R55" version="001" printImmediate="true" />
<job report="R56" version="001" printImmediate="true" />
<job report="R57" version="001" printImmediate="false" />
</root>
Input.xml
<?xml version='1.0' encoding='UTF-8' ?>
<REQUEST>
     <ACTION>
          <REPORT_NAME VALUE='R55'/>
          <REPORT_VERSION VALUE='001'/>
          <RUNTIME_OPTIONS>
               <ADVANCED_OPTIONS>
                    <PRINT_IMMEDIATE VALUE='0'/>
               </ADVANCED_OPTIONS>
          </RUNTIME_OPTIONS>
     </<ACTION>
</REQUEST>
My issue is that the xslt is not updating the PRINT_IMMEDIATE value to 1. Seems like the template is not working. Can you please help?
Thanks,
Maitrayee

Hi,
Only a guess but you could try without the prefix ?
I mean you search for "ns0:PRINT_IMMEDIATE", but seems like your input doesn't contain any prefix nor namespace.
regards,
mathieu

Similar Messages

  • Issue with xslt transform

    I'm having a problem with xslt transformations.
    I'm sending a DOMDocument to be transformed into a varchar2. The transformation was into html and I was then printing the returning varchar2 to a web page, along the lines of...
    htp.prn(Xslt.transform(domdoc, xslt.stylesheet( l_stylesheet_bfile)));
    I subsequently broke the varchar2 32k limit so I started playing with transforming into a dom instead of a varchar, then writing the dom to a clob and the printing the clob to the web page in 32k chunks.
    I noticed this produced different results than the first method. Now I'm assuming that this is not because xslt is doing the transformations differently but because it's trying to put my html into a well-formed DOMdocument. I have noticed, though, that things like & #160; seemed to have disappeared.
    Just wondering if I'm doing something wrong, and also any reason why the transform functionality doesn't have an output option of CLOB?
    Thanks
    Jason

    What is the DB version?

  • Issue with XSLT Mapping

    Hi Team,
    I have one requirements which I am explaining below:
    Source structure should be:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Student xmlns:ns0="urn:bp:xi:hr:edm:test:100">
       <Data>
          <FName>
          <LName>     
          <Marks>                            Here Data fiels is 0......Unbounded.
                    <Maths>
                    <Science>        
    </ns0:MT_Student>
    and Target structure must be like below:
    <MT_Student_Result>
    <Data>
          <Name>                         Here data field is 0......Unbounded.
          <Marks>
                   <Total_Marks>
    In the target structure Filed "Name" is obtained by concating "FName" and "LName" in the source structure
    and the field "Total_Marks" is the sum of field "Maths" and "Science" in the source structure.
    I have used XSLT mapping to obtain this.I have got the value of the "Name" field in the Target structure as required but I am not getting the value of the field "Total_Marks" in the target structure as required.Every time I am putting any value the result is comming as "NaN" as a value of the field "Total_Marks".Can you explain what is the issue?I am providing the code that I have done
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" xmlns:fo="urn:bp:xi:hr:edm:test:100" xmlns:ns0="urn:bp:xi:hr:edm:test:100">
    <xsl:template match="/">
    <MT_Student_Result>
    <xsl:for-each select="ns0:MT_Student/Data">
    <xsl:variable name="name" select="FName"/>
    <xsl:variable name="surname" select="LName"/>
    <Data>
    <Name>
    <xsl:value-of select="concat($name,'',$surname)"/>
    </Name>
    <Marks>
    <Total_Marks>
    <xsl:variable name="maths" select="ns0:MT_Student/Data/Marks/Maths"/>
    <xsl:variable name="science" select="ns0:MT_Student/Data/Marks/Science"/>
    <xsl:value-of select="($maths+$science)" />
    </Total_Marks>
    </Marks>
    </Data>
    </xsl:for-each>
    </MT_Student_Result>
    </xsl:template>
    </xsl:transform>
    Edited by: ATANU1 on Mar 17, 2011 1:40 PM

    Hei,
    you have to add the namespace prefix to each element of the path (and of course: check out if the hierarchy is matching)
    ns0:MT_Student/ns0:Data/ns0:Marks/ns0:Science
    Regards,
    Udo

  • Issue with XSLT For each loop in B2B Mapping

    Hi All,
    I am trying to map the inbound 997 Payload into Headers and Lines Table. I am using the For Each XSLT Construct to map the Loop AK2 of 997 into the 997 Lines Collection.
    Issue I am facing is that if the Loop AK2 is repeated for 33 times then for all the 33 times only its first element's value is getting passed into the target of mapping file.
    in coming payload
    <Loop-AK2>
    <Segment-AK2>
    <Element-143>810</Element-143>
    <Element-329>0001</Element-329>
    </Segment-AK2>
    <Segment-AK5>
    <Element-717>A</Element-717>
    </Segment-AK5>
    </Loop-AK2>
    <Loop-AK2>
    <Segment-AK2>
    <Element-143>810</Element-143>
    <Element-329>0002</Element-329>
    </Segment-AK2>
    <Segment-AK5>
    <Element-717>A</Element-717>
    </Segment-AK5>
    </Loop-AK2>
    <Loop-AK2>
    <Segment-AK2>
    <Element-143>810</Element-143>
    <Element-329>0003</Element-329>
    </Segment-AK2>
    <Segment-AK5>After transformation using XSLT file the payload looks like as follows
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>33</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>
    <ns0:segmentError/>
    <ns0:trxSetAckCode>A</ns0:trxSetAckCode>
    </ns0:XxmfiEdi997_AckLines>
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>34</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>
    <ns0:segmentError/>
    <ns0:trxSetAckCode>A</ns0:trxSetAckCode>
    </ns0:XxmfiEdi997_AckLines>
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>35</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>
    <ns0:segmentError/>
    <ns0:trxSetAckCode>A</ns0:trxSetAckCode>
    </ns0:XxmfiEdi997_AckLines>
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>36</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>
    <ns0:segmentError/>
    <ns0:trxSetAckCode>A</ns0:trxSetAckCode>
    </ns0:XxmfiEdi997_AckLines>
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>37</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>the Element-329 of incoming source payload is mapped to trxSetControlNumber of target payload, the issue is obvious from the above XML data that trxSetControlNumber is always having the value 0001 for every occurence where as its expected to fetch the value of the element of its corresponding occurence not the first elements value.
    Please find below the xslt file code i used for mapping
    <ns0:XxmfiEdi997_AckHeadersCollection>
          <ns0:XxmfiEdi997_AckHeaders>
            <ns0:headerId>
              <xsl:value-of select='oraext:sequence-next-val("XXMFI_EDI_997_ACK_HEADERS_S","jdbc/MTSI-apps")'/>
            </ns0:headerId>
            <ns0:processFlag>
              <xsl:text disable-output-escaping="no">I</xsl:text>
            </ns0:processFlag>
             <ns0:xxmfiEdi997_AckLinesCollection>
              <xsl:for-each select="/ns1:Transaction-997/ns1:Loop-AK2">
                <ns0:XxmfiEdi997_AckLines>
                  <ns0:lineId>
                    <xsl:value-of select='oraext:sequence-next-val("XXMFI_EDI_997_ACK_LINES_S","jdbc/MTSI-apps")'/>
                  </ns0:lineId>
                  <ns0:trxSetIdentCode>
                    <xsl:value-of select="/ns1:Transaction-997/ns1:Loop-AK2/ns1:Segment-AK2/ns1:Element-143"/>
                  </ns0:trxSetIdentCode>
                  <ns0:trxSetControlNumber>
                    <xsl:value-of select="ns1:Segment-AK2/ns1:Element-329"/>
                  </ns0:trxSetControlNumber>
                  <ns0:segmentError>
                    <xsl:value-of select="/ns1:Transaction-997/ns1:Loop-AK2/ns1:Loop-AK3/ns1:Segment-AK3/ns1:Element-720"/>
                  </ns0:segmentError>
                  <ns0:trxSetAckCode>
                    <xsl:value-of select="/ns1:Transaction-997/ns1:Loop-AK2/ns1:Segment-AK5/ns1:Element-717"/>
                  </ns0:trxSetAckCode>
                </ns0:XxmfiEdi997_AckLines>
              </xsl:for-each>
            </ns0:xxmfiEdi997_AckLinesCollection>
          </ns0:XxmfiEdi997_AckHeaders>Is there something I am doing wrong in mapping or am I missing something here. Please suggest .
    Thanks in advance
    ~TK.

    Hi,
    In your xslt code within the for loop, for the trxSetIdentCode why are you using the xpath "/ns1:Transaction-997/ns1:Loop-AK2/ns1:Segment-AK2/ns1:Element-143"? It should be just "ns1:Segment-AK2/ns1:Element-143". Similar changes for segmentError and trxSetAckCode also should be done. Remove the '/ns1:Transaction-997/ns1:Loop-AK2/' part from your xpath expressions inside the for loop and try it.
    Sahay

  • Performance issues with FDK in large XML documents

    In my current project with FrameMaker 8 I'm experiencing severe performance issues with some FDK API calls.
    The documents are about 3-8 MBytes in size. Fortmatted they cover 150-250 pages.
    When importing such an XML document I do some extensive "post-processing" using FDK. This processing happens in Sr_EventHandler() during the SR_EVT_END_READER event. I noticed that some FDK functions calls which modify the document's structure, like F_ApiSetAttribute() or F_ApiNewElementInHierarchy(), take several seconds, for the larger documents even minutes, to complete one single function call. I tried to move some of these calls to earlier events, mostly to SR_EVT_END_ELEM. There the calls work without a delay. Unfortunately I can't rewrite the FDK client to move all the calls that are lagging to earlier events.
    Does anybody have a clue why such delays happen, and possibly can make a suggestion, how to solve this issue? Thank you in advance.
    PS: I already thought of splitting such a document in smaller pieces by using the FrameMaker book function. But I don't think, the structure of the documents will permit such an automatic split, and it definitely isn't an option to change the document structure (the project is about migrating documents from Interleaf to XML with the constraint of keeping the document layout identical).

    FP_ApplyFormatRules sounds really good--I'll give it a try on Monday. Wonder how I could miss it, as I already tried FP_Reformatting and FP_Displaying at no avail?! By the way, what is actually meant with FP_Reformatting (when I used it I assumed it would do exactly what FP_ApplyFormatRules sounds to do), or is that one another of Lynne's well-kept secrets?
    Thank's for all the helpful suggestions, guys. On Friday I already had my first improvements in a test version of my client: I did some (not all necessary) structural changes using XSLT pre-processing, and processing went down from 8 hours(!) to 1 hour--Yeappie! I was also playing with the idea of writing a wrapper to F_ApiNewElementInHierarchy() which actually pastes an appropriate element created in a small flow on the reference pages at the intended insertion location. But now, with FP_ApplyFormatRules on the horizon, I'm quite confident to get even the complicated stuff under control, which cannot be handled by the XSLT pre-processing, as it is based on the actual formatting of the document at run-time and cannot be anticipated in pre-processing.
    --Franz

  • Issue with the presence indicator in list/library web part.

    When viewing a user field (Created By, Modified By or a custom People column) through the list web part (either through the default page /Forms/AllItems.aspx or a custom web part page using a list/library) the presence indicator always says presence unknown.
     However if I go to the Site Permissions on the same site, or My Site or a custom page using a modified core search results web part I wrote the presence indicator works fine.  I can't find any errors being reported on the server.  
    Looking at the rendered code the list web part generates:
    <IMG name=imnmark width=12 height=12 title="" class=ms-imnImg id=imn_48683,type=smtp alt="No presence information" src="/_layouts/images/blank.gif" border=0 sip="[email protected]">
    Locations where the presence indicator works the code is:
    <IMG name=imnmark width=12 height=12 title="" class=ms-imnImg id=imn{20140822-1752-098D-8C11-188AD0B8B8B6},type=sip alt=Available src="http://portal.mydomain.com/_layouts/images/imnon.png" border=0 sip="[email protected]" valign="middle">
    It appears that the List web part is not detecting that the users have a sip address and they appear to be rendered using smtp instead.  It's also odd that the list web part is pulling the correct sip address while the one that works is pulling the
    email address, not the sip address stored in the user profile.  I spent considerable time going through the xslt to try and figure how the tag is rendered but I haven't been able to figure it out.
    We are using Cisco Jabber 9.2.3 for IM, I don't know if that should make a difference or not. It's working fine in other parts of SharePoint and in Outlook. Running SharePoint Dec 2011 CU (14.0.6114.5000) with MS Office 2010 SP2 installed on the client. Tested
    in IE 9.0/10/11.
    Any ideas?

    We don't have a Lync server and I don't have the software available.  Are you saying just having Lync installed even though it won't work might help?
    I did some more digging and believe that this is an issue with the XsltListViewWebPart.  If I go to the UserInformationList the web part used to render the list is the ListViewWebPart and the presence indicator works there.  Also our environment
    was migrated from 2007 and there are a number of pages that are using the old ListViewWebPart and the presence indicator works fine in this part.  If edit the page and add the same list library to it, it's added as a XsltListViewWebPart and the presence
    indicator does not work.
    The presence control is not rendered by the xsl files used by the webpart.  I modified the xsl to display the raw xml and the html code for the presence is part of the xml.  I'm guessing this can't be changed and is part of how SharePoint is rendering
    the data for the XsltListViewWebPart.  You can see the Editor and CheckoutUser lines have the html code embedded in the data.
    <Row
    ID="60"
    PermMask="0x7fffffffffffffff"
    HTML_x0020_File_x0020_Type=""
    File_x0020_Type="xlsx"
    HTML_x0020_File_x0020_Type.File_x0020_Type.mapall="icxlsx.png|Microsoft Excel|SharePoint.OpenDocuments"
    HTML_x0020_File_x0020_Type.File_x0020_Type.mapcon="SharePoint.OpenDocuments"
    HTML_x0020_File_x0020_Type.File_x0020_Type.mapico="icxlsx.png"
    serverurl.progid="1http://myparkersdev.domain.com/sites/BPIT/_layouts/xlviewer.aspx?id=/sites/BPIT/Shared%20Documents/Database%20Sizes.xlsx"
    ile_x0020_Type.progid="SharePoint.OpenDocuments.3"
    File_x0020_Type.url="FALSE"
    FSObjType="0"
    FileRef="/sites/BPIT/Shared Documents/Database Sizes.xlsx"
    FileRef.urlencode="%2Fsites%2FBPIT%2FShared%20Documents%2FDatabase%20Sizes%2Exlsx"
    FileRef.urlencodeasurl="/sites/BPIT/Shared%20Documents/Database%20Sizes.xlsx"
    FileLeafRef="Database Sizes.xlsx"
    FileLeafRef.Name="Database Sizes"
    FileLeafRef.Suffix="xlsx"
    CheckoutUser="&lt;span class=&quot;ms-imnSpan&quot;&gt;&lt;a href='javascript:;' onclick='IMNImageOnClick(event);return false;' class='ms-imnlink'&gt;&lt;img name='imnmark' class='ms-imnImg' title='' border='0' height='12' width='12' src='/_layouts/images/blank.gif' alt='No presence information' sip='[email protected]' id='imn_77,type=smtp'/&gt;&lt;/a&gt;&lt;a onclick=&quot;GoToLink(this);return false;&quot; href=&quot;/sites/BPIT/_layouts/userdisp.aspx?ID=526&quot;&gt;Ian Howe&lt;/a&gt;&lt;/span&gt;"
    CheckoutUser.id="526"
    CheckoutUser.title="Ian Howe"
    CheckoutUser.span="&lt;nobr&gt;&lt;span&gt;&lt;a onclick=&quot;GoToLink(this);return false;&quot; href=&quot;/sites/BPIT/_layouts/userdisp.aspx?ID=526&quot;&gt;Ian Howe&lt;/a&gt;&lt;img border=&quot;0&quot; height=&quot;1&quot; width=&quot;3&quot; src=&quot;/_layouts/images/blank.gif&quot;/&gt;&lt;a href='javascript:;' onclick='IMNImageOnClick(event);return false;' class='ms-imnlink'&gt;&lt;img name='imnmark' class='ms-imnImg' title='' border='0' height='12' width='12' src='/_layouts/images/blank.gif' alt='No presence information' sip='[email protected]' id='imn_78,type=smtp'/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/nobr&gt;"
    CheckedOutUserId="526"
    IsCheckedoutToLocal="0"
    Created_x0020_Date="0;#2014-08-22 09:47:01"
    Created_x0020_Date.ifnew=""
    ContentTypeId="0x0101000AE0EC76CD0DB743B42D2FE022EAA6DC"
    Modified="8/22/2014 10:51 AM"
    Editor="&lt;span class=&quot;ms-imnSpan&quot;&gt;&lt;a href='javascript:;' onclick='IMNImageOnClick(event);return false;' class='ms-imnlink'&gt;&lt;img name='imnmark' class='ms-imnImg' title='' border='0' height='12' width='12' src='/_layouts/images/blank.gif' alt='No presence information' sip='[email protected]' id='imn_79,type=smtp'/&gt;&lt;/a&gt;&lt;a onclick=&quot;GoToLink(this);return false;&quot; href=&quot;/sites/BPIT/_layouts/userdisp.aspx?ID=526&quot;&gt;Ian Howe&lt;/a&gt;&lt;/span&gt;"
    Editor.id="526"
    Editor.title="Ian Howe"
    Editor.span="&lt;nobr&gt;&lt;span&gt;&lt;a onclick=&quot;GoToLink(this);return false;&quot; href=&quot;/sites/BPIT/_layouts/userdisp.aspx?ID=526&quot;&gt;Ian Howe&lt;/a&gt;&lt;img border=&quot;0&quot; height=&quot;1&quot; width=&quot;3&quot; src=&quot;/_layouts/images/blank.gif&quot;/&gt;&lt;a href='javascript:;' onclick='IMNImageOnClick(event);return false;' class='ms-imnlink'&gt;&lt;img name='imnmark' class='ms-imnImg' title='' border='0' height='12' width='12' src='/_layouts/images/blank.gif' alt='No presence information' sip='[email protected]' id='imn_80,type=smtp'/&gt;&lt;/a&gt;&lt;/span&gt;&lt;/nobr&gt;"
    ecb.dispex="return DispEx(this,event,'TRUE','FALSE','FALSE','SharePoint.OpenDocuments.3','0','SharePoint.OpenDocuments','','1http://myparkersdev.domain.com/sites/BPIT/_layouts/xlviewer.aspx?id=/sites/BPIT/Shared%20Documents/Database%20Sizes.xlsx','526','526','1','0','0x7fffffffffffffff','','')" />
    I just find it strange that the old ListViewWebPart works.  Our SP environment has not been patched to the latest version, I'll try that next and see if it makes a difference.

  • 10g Reports issue with XML Data Source

    Hi,
    Has anybody ever encountered an issue with Oracle 10g report using an XML as the data source? What happens is, some of the values in the XML are printed to the wrong column.
    One of the elements in our XML file is a complex type with 10 elements under it. The first 5 are picked up properly, but the last 6 are not. Elements #6 to #9 has a minimum occurence of 0. What happens is when element #6 is present, but #7 is, the value for element #7 is passed on to element #6.
    The XSD and XSL files are both valid since the reports were working when we were still using 9i. There is no hidden logic in the report which might cause this issue to come up, i.e., the report just picks up the values from the XML and prints it to the appropriate columns.
    Any help will be greatly appreciated.

    XSD used
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
            <!-- trade instructions detail & trailer -->
            <xs:element name="TradeDetail">
                    <xs:complexType>
                            <xs:sequence>
                                    <xs:element ref="TradeType"/>
                                    <xs:element ref="TradeID"/>
                                    <xs:element ref="TradeDate"/>
                                    <xs:element ref="FundID"/>
                                    <xs:element ref="FundName"/>
                                    <xs:element ref="DollarValue" minOccurs="0"/>
                                    <xs:element ref="UnitValue" minOccurs="0"/>
                                    <xs:element ref="PercentageValue" minOccurs="0"/>
                                    <xs:element ref="OriginalTradeID" minOccurs="0"/>
                                    <xs:element ref="CancellationFlag"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
            <xs:element name="Instruction">
                    <xs:complexType>
                            <xs:sequence minOccurs="0">
                                    <xs:element ref="TradeDetail" maxOccurs="unbounded"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
            <!-- overall trade instruction message -->
            <xs:element name="InterchangeHeader">
                    <xs:complexType>
                            <xs:sequence>
                                    <xs:element ref="Instruction"/>
                            </xs:sequence>
                    </xs:complexType>
            </xs:element>
            <!-- definition of simple elements -->
            <xs:element name="FundID" type="xs:string"/>
            <xs:element name="TradeType" type="xs:string"/>
            <xs:element name="TradeID" type="xs:string"/>
            <xs:element name="TradeDate" type="xs:string"/>
            <xs:element name="FundName" type="xs:string"/>
            <xs:element name="DollarValue" type="xs:decimal"/>
            <xs:element name="UnitValue" type="xs:decimal"/>
            <xs:element name="PercentageValue" type="xs:decimal"/>
            <xs:element name="OriginalTradeID" type="xs:string"/>
            <xs:element name="CancellationFlag" type="xs:string"/>
    </xs:schema>
    XML used
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <InterchangeHeader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TradeInstruction.xsd">
       <Instruction>
          <TradeDetail>
             <TradeType>Purchase</TradeType>
             <TradeID>M000038290</TradeID>
             <TradeDate>20061201</TradeDate>
             <FundID>ARO0011AU</FundID>
             <FundName>ABN Fund</FundName>
             <DollarValue>2111.53</DollarValue>
             <CancellationFlag>N</CancellationFlag>
          </TradeDetail>
          <TradeDetail>
             <TradeType>Redemption</TradeType>
             <TradeID>M000038292</TradeID>
             <TradeDate>20061201</TradeDate>
             <FundID>ARO0011AU</FundID>
             <FundName>AMRO Equity Fund</FundName>
             <UnitValue>104881.270200</UnitValue>
             <CancellationFlag>N</CancellationFlag>
          </TradeDetail>
          <TradeDetail>
             <TradeType>ISPurchase</TradeType>
             <TradeID>M000038312</TradeID>
             <TradeDate>20061201</TradeDate>
             <FundID>MLC0011AU</FundID>
             <FundName>Cash Fund</FundName>
             <OriginalTradeID>M000038311</OriginalTradeID>
             <CancellationFlag>N</CancellationFlag>
          </TradeDetail>
       </Instruction>
    </InterchangeHeader>
    XSLT used
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
            <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
            <xsl:template match="/">
                    <InterchangeHeader>
                            <xsl:for-each select="InterchangeHeader/Instruction/TradeDetail">
                            <xsl:sort select="FundName"/>
                            <xsl:sort select="TradeDate"/>
                                    <TradeDetail>
                                            <TradeType><xsl:value-of select="TradeType"/></TradeType>
                                            <TradeID><xsl:value-of select="TradeID"/></TradeID>
                                            <TradeDate><xsl:value-of select="TradeDate"/></TradeDate>
                                            <FundID><xsl:value-of select="FundID"/></FundID>
                                            <FundName><xsl:value-of select="FundName"/></FundName>
                                            <DollarValue><xsl:value-of select="DollarValue"/></DollarValue>
                                            <UnitValue><xsl:value-of select="UnitValue"/></UnitValue>
                                            <PercentageValue><xsl:value-of select="PercentageValue"/></PercentageValue>
                                            <OriginalTradeID><xsl:value-of select="OriginalTradeID"/></OriginalTradeID>
                                            <CancellationFlag><xsl:value-of select="CancellationFlag"/></CancellationFlag>
                                    </TradeDetail>
                            </xsl:for-each>
                    </InterchangeHeader>
            </xsl:template>
    </xsl:stylesheet>

  • Issue in XSLT mappings in PI7.1

    Dear all,
    Problem Desc:
    We have a scenario in PI 7.0 with XSLT mapping. It was working fine there. But when it was transported to PI 7.1, we are facing issues.
    The issue is that, XSLT mapping with Java Enhancements is not working when we uncheck the SAP XML Toolkit option, in Operation Mapping.
    The error statement says" The XSLT stylesheet could not be compiled".
    Please note that, the Java Class being used in the XSLT mapping has been compiled with JAVA 1.5
    Did any one encounter a similar error, If yes, please share your responses and help us in resolving the issue.
    Regards,
    Younus

    The issue is that, XSLT mapping with Java Enhancements is not working when we uncheck the SAP XML Toolkit option, in Operation Mapping
    Since the XSLT was working for PI7.0 and not working for PI7.1 you need to use SAP XML Toolkit option in your Operation Mapping.....not using this option results in faster execution of the XSLT mapping but then your XSLT mapping should be changed accordingly to work with JDK 5 if you intend not to use the toolkit option....for more information refer this help section:
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/73/f61eea1741453eb8f794e150067930/content.htm
    Regards,
    Abhishek.

  • MIAL RECIEVER CC -- ISSUE USED XSLT MAPPING

    Hi All,
    I have a Scenario   in which  IDOC  is a sender and Mail Adaptert  is reciever .The Xi is supposed to sent the Email notification to the client . Mail adapter is SMTP configured correctly ,Reciever  Mail CC is up and running but Error  is :Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    The Mapping here is used is XSLT mapping and in SXMB_MONITOR , Error shown is :
    SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">TRANSFORMER_CONF_EX</SAP:Code>
    Could you plesae help  me this  Issue asap .
    Thanks,
    Vara

    Hi Abhi ,
    I checked in ATOVA SPY XML Check , it seems to be the issue in XSLT mapping .
    Part of XSLT mapping  Error line:
    when test="//IDOC/EDI_DC40/RCVLAD = '3157411730014'">   --There was a single  qoute missing
    Tested in Atova with payload , it worked
    Thanks for your  supprt as well.
    Best Regards,
    Vara

  • Issue with inbound xml..

    Hi All,
    We have an issue with inbound XML :
    XML structure is as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <SOAP-ENV:Header>
          <Q-ENV:Header>
                  </Q-ENV:Header>
        </SOAP-ENV:Header>
        <SOAP-ENV:Body>
          <Q-ENV:Body>
            <Q-ENV:Content-Type>text/xml</Q-ENV:Content-Type>
            <Q-ENV:Message-Type>xCBL</Q-ENV:Message-Type>
            <Q-ENV:Encoding>UTF-8</Q-ENV:Encoding>
            <Q-ENV:Message-Body>
              <?xml version="1.0"?>
    <?soxtype urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0?>
    <OrderResponse>
    The issue is see at the <Q-ENV:Message-Body>  we are receiving  <?soxtype urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0?> for OrderResponse header ..it is neither validating as valid xml or unable to read the items after that namespace with graphical mapping or xslt ..if anybody have any idea, thanks

    Hello,
    The issue is see at the <Q-ENV:Message-Body> we are receiving <?soxtype urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0?> for OrderResponse header
    You can use java mapping for your requirement. The key is to convert the inputStream into String and then use a find/replace that value and then write to outputStream afterwards.
    Here is a sample code using PI 7.1 API:
    https://wiki.sdn.sap.com/wiki/display/XI/SampleJAVAMappingcodeusingPI7.1+API
    Hope this helps,
    Mark

  • Issues with Creative Cloud for teams deployment workflow

    The Adobe Creative Cloud for teams IT Deployment Guide lists out steps for IT admins to deploy the CS6 applications and then have their end-users license the trial software with their Adobe IDs once they have been invited to the team. There are two major issues with this document.
    First, the media that is on the FTP is not for North American English. We are working to get that posted on the FTP site ASAP. In the meantime, you can find the CS6 MC media from: http://www.adobe.com/downloads/
    [Note: Getting media from that page requires the use of the Adobe Download Assistant which is very consumer focused. Sorry about that.]
    Second, in order to have the ability to login properly with a Creative Cloud for Teams account the system needs to have the latest copy of Adobe Application Manager installed. If you do not do this step the end user will be prompted for a serial number.
    Unfortunately the Adobe Application Manager can’t be packaged with AAMEE nor is it a native installer. I know, I know! Here are the links to the Adobe Application Manager installers:
    Windows: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4773
    Mac: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4774
    It can be installed from command line by:
    Win: <Path to Setup.exe>Set-up.exe –mode=silent –action=install
    Mac: <path to ASU> /ASU/Install.app/Contents/MacOS/Install –mode=silent –action=install
    Jody Rodgers | Sr. Product Manager | Creative Cloud for Enterprise | Adobe Systems

    Hi Boncker,
    I see that you have an active Subscription under your account . Please launch any of the installed product and when you get the trial prompt , please click on License this software and then Enter the Adobe Id & Password for the account that you have accepted the invite .
    Please do let us know if that worked for you or not .
    Cheers,
    Kartikay Sharma

  • Issue with magsafe/charging (blinks green, amber, off)

    Having a quirky issue with my mid-2009 Macbook Pro.
    A month or so ago, I began having an issue with my macbook charging. When the computer is up and running and I plug in the magsafe it will say "Calculating..." and then say "Not Charging" and then switch to battery use. It constantly does this as long as the magsafe is connected. The lights on the magsafe will constantly cycle from green to amber to no light.
    At first, it would do it a few times then it would start charging. Now it constantly does this without ever stopping. I was editing video the other day for a while and it never stopped the cycle.
    Thinking it was the battery, I took it into the Apple Store last week and got a new battery because it had been saying "Service battery" for a while and the battery would only last about 20 minutes on a charge. So I just thought the battery finally refused to charge.
    But the problem still exists.
    The magsafe is new (only 3 months old) and here's the quirky thing: the computer will charge if it's asleep (lid closed) or shut down completely. No blinking lights at all. It will charge as long as it's asleep or shut down. So I don't think it's the charger. But as soon as you hit the power button to starting booting up, it will blink.
    I have reset the SMC a couple times actually, but no change.
    Is there something software/firmware related that I haven't tried? Any insight or suggestions would be greatly appreciated before I take it back to the Apple Store (which is about an hour away).
    Thanks!

    Try resetting the system management controller
    http://support.apple.com/kb/HT3964?viewlocale=en_US
    If that did nothing for you,  try resetting the NVRAM
    https://support.apple.com/kb/HT1379

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Issue with PTO (Paid Time Off) quota generation

    Hi All,
    We have an issue with quota generation of PTO for our employees.
    The issue goes like this:
    We have a Paid time off for employees 5weeks( 200 hrs) for employees who have worked less than 5 years.
    we have  paid time off for employees 6 weeks ( 240 hrs) for employees who have worked more than 5 years.
    we have the following logic that has to go in this config:
    -- Our fiscal year starts on Feb 1st and ends on Jan end or Feb starts which has a full week of working days. ( ex: if 01/31/2012 falls on a Thursday the following Monday which has full 5 day working week would be the end of the fiscal year).
    -- Depending on the working hours of  the employees and the date of joining for the first year ( for new hires)0041 info type the eligibility gets varied and reduced. Ex( employees who joins on start of fiscal year and works 40hrs per week schedules is eligible for 200hrs of PTO. Employees who join in the month of august and works for 35 hrs per week ( i.e mid of fiscal year) would get 91 hrs of PTO.
    I need to put this in the system. I am thinking this could be done with out tweaking PCR.I need help in configuring this in Absence quotas as to what are the things i need change in system config and how do i do it. Please help with some screen shots if possible.  I really need this to get it done ASAP. Looking forward for help.
    Thanks,
    Chowdary.

    We use TM00 schema. Can i call TS15 and TS 12  rules into TM00 acheieve my issue of quota entilements?
    Iam doing this because my businees needs to see if an employee chages his work schedule from 40 to 30 or 20 etc.. the PTO has to vary accordingly.
    As the minimum eligibility is to work for 20 hrs to avail the PTO days. If at any point the employee drops it under 20 he will not be eligible till he work any this >= 20hrs per month so the evaluation has to check periodically to update the quota availability.... I need help plz suggest ...

  • Issues with iMessage when switching data carrier (wifi - cellular)

    So I have had this issue with my 5S and now my 6+ in iMessage. Not *always* but often enough I've run into issues sending messages via iMessage when I associate with wifi in that they don't send. I'll get an error message saying "not delivered" and it will stack as many outgoing messages I try to send. However, if I force the first message to send as text, subsequent messages will go through afterwards without issue. If I go from wifi to cellular I have no issues whatsoever and when I have these issues on wifi, my data works fine (incoming emails, Facebook notifications, etc.). I used to run cellular data only because I had unlimited but now I have a cap so I intend on using wifi when possible...but to have to send my first message as a text just so I can use iMessage is annoying...

    Hi there BigDogg795,
    I would recommend taking a look at the troubleshooting steps for iMessage found in the article below. 
    iOS: Troubleshooting Messages - Apple Support
    To resolve issues with sending and receiving iMessages, follow these steps
    Check iMessage system status for current service issues.
    Go to Settings > Messages > Send & Receive and make sure that you registered iMessage with your phone number or Apple ID and that you selected iMessage for use. If the phone number or Apple ID isn't available for use, troubleshoot iMessage registration.
    Open Safari and navigate to www.apple.com to verify data connectivity. If a data connection isn't available, troubleshoot cellular data or a Wi-Fi connection.
    iMessage over cellular data might not be available while you're on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn which network your phone supports. If your network doesn't support simultaneous data and voice calls, go to Settings > Wi-Fi and turn Wi-Fi on to use iMessage while you're on a call.
    Restart your device.
    Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    If you still can't send or receive an iMessage, follow these steps
    Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    Make sure that the contact you're trying to send a message to is registered with iMessage.
    If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and recreate the contact in the Contacts app. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    -Griff W.

Maybe you are looking for

  • Parallel port printing problem

    I was printing quite fine on LaserJet 2100 (I was even surprised how easily I've set it all up, thought it woudl be more compliacted). I even tried different drivers, all worked fine so far. Now I acquired LaserJet 2200 which has USB in addition to L

  • Windows can compile phonegap iOS apps in dw cs6

    ONCE I DOWNLOAD IN MY ANDROID PHONE AN APP FROM DW CS6-PHONEGAP VIA QR SCANNER, where saved the App downloaded? 2.3.6 Android... windows can compile phonegap iOS apps in dw cs6 on WINDOWS? to make win phone 7 or 8 Apps can I from dw cs6 or needed pho

  • WRT160NL - reset/reboot through web interface

    Hello there, Is it possible to reboot / reset the router remotely by using the web interface? On SMC routers that option is available and is of great value. I'm using my WRT160NL with a usb hub (powered) so I can connect 2 hard drives at the same tim

  • How to check inventory inconsistence btwn EWM Vs ECC

    Hi Experts, Is there any report to check inventory inconsistence btwen EWM Vs ECC? Like WMS LX23 to clear difference btwn IM Vs WM stock? Thanks, Julia

  • Lightroom question

    I have photoshop elements 9.   Does lightroom interface with this software or replace it?    Does lightroom have more capabilities?