How to repeat elements within a xsl for multiple mapping

Hi,
My input xml is :
<POC_XML xmlns="http://www.aaa.com/esb/abc/Item/POC/1.0">
<POC_HEADER>
<EVENT_NAME></EVENT_NAME>
<EVENT_TYPE></EVENT_TYPE>
<EVENT_KEY></EVENT_KEY>
<SOURCE_SYSTEM></SOURCE_SYSTEM>
<TARGET_SYSTEM></TARGET_SYSTEM>
</POC_HEADER>
<POC_DETAILS>
<ITEM></ITEM>
<GTIN></GTIN>
<ITEM_</ITEM_SERIAL_NO>
<UDI></UDI>
<PRINTER_NAME></PRINTER_NAME>
</POC_DETAILS>
</POC_XML>
The expected output xml is:
<ns1:printSynch>
<jobRequest>
<printRequests>
<templatePath>lib://poc/formats/material.btw</templatePath>
<printData>
<entry>
<key>ITEM</key>
<value>item1</value>
</entry>
<entry>
<key>GTIN</key>
<value>0123343T5432000A</value>
</entry>
<entry>
<key>ITEM_SERIAL_NO</key>
<value>S123345</value>
</entry>
<entry>
<key>UDI</key>
<value>U98765</value>
</entry>
</printData>
<printQuantity>1</printQuantity>
<duplicates>0</duplicates>
</printRequests>
<printerName>SamplePrinter</printerName>
</jobRequest>
<reference>abc:U98765</reference>
</ns1:printSynch>
Where as currently the target system has their xml exposed with only one of the <entry><key><value> instance but we need to repeat this instance and map as per the structure above. The <entry> node is capable of handling multiple values but how to tranform it within xsl.
Please help

Hi,
Try using the below logic in xsl. It should work.
<entry>
<key>
<xsl:value-of select="string('ITEM')" />
</key>
<value>
<xsl:value-of select="Xpath corresponding to ITEM from source xsd"/>
</value>
</entry>
<entry>
<key>
<xsl:value-of select="string('GTIN')" />
</key>
<value>
<xsl:value-of select="Xpath corresponding to GTIN from source xsd"/>
</value>
</entry>
<entry>
<key>
<xsl:value-of select="string('item serial no')" />
</key>
<value>
<xsl:value-of select="Xpath corresponding to item serial no from source xsd"/>
</value>
</entry>
Let me know incase any issues.
Regards,
Dhanumjay

Similar Messages

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • How do I set individual sound alerts for multiple email accounts?

    How do I set individual sound alerts for multiple email accounts?

    Here: http://www.guidingtech.com/15275/get-different-notifications-per-mail-account-io s-6/
    Long and short of it, the settings can be individually changed under Notifications. Select Mail and then the account you want to change the sound to.

  • How Can I Create One Entry Sheet For Multiple Line Items of A PO

    Please Tell Me How Can I Create One Entry Sheet For Multiple Line Items of A PO

    hi,
    It is not possible to create single Service Entry sheet for multiple PO line items. It is 1 to 1 relation.
    you have to make different service entry sheets for different item of service master.
    regards
    Manish Joshi

  • How to repeat elements

    Hello,
    I have excel 2013 and the repeat elements option is present in the components tab. However, this option does not exist in excel 2007 and excel 2010.
    Looking for information it seems that this option exists but I don't know where to find this one.
    Can anybody help me?
    Thanks in advance.
    Regards.

    Thanks for your reply.
    It's the same with excel 2013 but, I don't know why, in 2007 and 2010 in the components tab I only see the Book1 and 5 options for being chosen.
    The last option is "Merge variables".
    I have just fount the following link:
    http://help.sap.com/businessobject/product_guides/AMS12/en/12_aaoffice_whatsnew_sp3_en.pdf
    Perhaps it's a version problem and the Repeat elements has disappeared.
    My version is 1.4.7.3073
    Any suggestion?

  • How do I update grouping or description for multiple items?

    As the question implies, I would like to update information in the Grouping and Description fields for multiple items as a way to keep things organized. What I have discovered is that there are some quirks in the new Get Info window that were not in past implementations, which are completely inexplicable and nonsensical to me.
    For instance, when you open the Get Info window for an item that has no information in, for instance, the Grouping field, you will not see a Grouping input field, as in this screenshot. The Grouping field should be where the bottom arrow is. Notice also that the Description field is available. I will get back to that in a minute.
    If you manually double-click into the Grouping field on the main iTunes screen, you can enter the information there. Then, when you open the Get Info window, ta-dah! The field magically reappears, as in the screenshot below.
    The trouble comes when you want to edit this field for multiple tracks. If you select multiple tracks, and they do not all have the Grouping field already populated, the field does not appear. What this means is that you are forced to manually enter the information for every track! This is completely unacceptable when you need to edit information for, as in my case, 122 tracks. The following image shows the Get Info window that appears after selecting two items, one with the Grouping field manually populated, and one with no info in the Grouping field.
    Not only has the Grouping field disappeared, but the Description field, as well. Thanks, Apple, but I think I can decide for myself whether or not to populate these fields for multiple items. Let's get 'em back, huh?
    SO… does anyone know of any valid method for accomplishing this task? Without manually entering the same information in hundreds of fields? This is the future; computers are supposed to do these monotonous tasks for us, aren't they?
    Oh, please don't suggest Option-clicking to open the older, better, Get Info window, as Apple has decided that we should not have that option any longer. We apparently have to organize our music their way. Think different!

    The Add Field button was in the editors of 12.0.1 (where the new-style editors had a very "half-finished" feel)  - it is not there in 12.1.  Apple have determined which metadata fields should be available for each kind of media, with no option for the user to modify this.  In Apple's own words: "Get Info has been completely redesigned in iTunes 12 to focus your attention only on what’s necessary for the selected item."
    The only options are:
    temporarily change the media kind (Options tab) to one that includes the field you want to add values to, enter those values, and then change the media kind back again
    make the relevant fields visible in an appropriate list view and edit values there - the big limitation being that you can only do this one item at a time
    I can see - to a degree - why Apple may have made some limitations so that metadata elements are available based on their relevance to different media kinds.  However, one of the issues mentioned above seems like a bug - if a single audiobook file can have a Description tab, I see no reason at all for that not to be available for multiple items of the same kind.
    If not already done so, report these issues and dissatisfaction with the "new" metadata editors in 12.1 (and the absence of a "back door" for the old-style ones) using Apple's iTunes feedback page.

  • How to Maintain Payment with one check for Multiple Vendors?

    Dear Gurus,
    i have a scenario for outgoing payment, here it is
    i have some open items for multiple vendors. say it for open item
    1. with amount 5000 USD for vendor A
    2. wiht amount 10000 USD for vendor B
    my company pay both open item 1 & 2 with one check, say the check no is 27382830 and the amount is 15000 USD. The check is given to the Bank as an order to Pay the vendor. so the check does not have receiver name. i attach a formal letter to the bank to ask them for making payment with that check. the letter contains a detail the amount, vendor bank account number, account holder, and the vendor name.
    so how i can threat this business scenario into SAP? i want to trace check number used to pay the vendors.
    hope you can give some clues. is it possible to maintain scenario above with automatic payment?
    best regards,
    land lord

    Hi,
    Yes you can map this scenario in SAP and use F110 for this. But you will also have to use some Z programs..
    1. For F110 FBZP configuration, maintain outgoing bank clearing Account (this will be a dummy account and not the actual Outgoing Bank Account) as the Bank Sub Account.
    By doing this when you run payment in F110, entry will be
    Vendor A A/c...Dr.
    outgoing bank clearing Account Cr.(1)
    Vendor B A/C... Dr.
    outgoing bank clearing Account Cr.(2)
    2.Then you will have to use Post with clearing transaction codes and make one entry
    outgoing bank clearing Account Cr.(1)..Dr.
    outgoing bank clearing Account Cr.(2)..Dr.
    To Bank Outgoing Account(Actual Bank outgoing Account) Cr.
    3. Now, when you get the single cheque no. from Bank against both the vendors, then thru FB02, change the assignment field/Reference field for Che No. updates.
    But do check BRS also for its reconciliation.. If you do it on a daily basis.. then it would not be difficult.
    Hope this helps you..
    Regards,
    SAPFICO

  • How to create a B/D Order for multiple notifications?

    Dear Sirs,
      I would like to know how to create single order for multiple notifications of the same breakdown type.
    Is it allowed to do so what are the advantages and disadvantages of the same.
    Regards,
    M.Boopathy

    Dear Boopathy,
    You can create a Maintenance Order with Ref. to a main notification thorugh Order Create icon in transaction IW22.
    Once the Order is created, you can add remaining Notification in Object Links Tab in the Maintenance Order.
    This is the standard way of attaching multiple Notifications to a single Order.
    Kindly acknowledge if this answer helped.
    Do let me know if you have any other query in the same.
    Thanks.
    Regards,
    Avi

  • How to maintain One product cost collector for multiple materials and configuration setting

    Hi experts,
    my requirement is that i want to maintain one product cost collector for multiple materials ans also i want to know the configuration setting for the same.
    I have used KKF6N but it is not working in my case. I went through KKF6M also but there i found multiple cost collectors.
    please guide me in the same.
    Thanks in advance.

    Hi Shripad,
    you cannot assign same  Product cost collector to different material.
    Because you creating cost collector for material combination of material /production version,material /Bom Routing.
    so please create individual cost collector for every material.
    if you have any query kindly revert back.
    Please mark the answer as helpful if it is helpful to you.
    Because march 5 onwards scn has stopped awarding points to liked content.
    Starting now: No more points for likes on comments/replies
    Thanks & Regards
    Sandeep Kumar Praharaj

  • How do I use the rating system for multiple raters?

    My wife, her sister, and I are all rating some photos I took a couple of days ago. Each of us, of course, has different favorites.
    I would like to record our different ratings in the LR3 rating system but can't see an immediately obvious way to do so. I thought of using the color labels--different color for each of us. But each photo will only take one color label. I could use the star ratings, one star for only one selection, two for two, etc. But that would not record who chose which. I need to know that.
    Has anyone had the same problem? If so, is there some rather obvious solution? I would think that it's not all that unusual for several folk to participate in a shoot, using one camera; and then to need some way to record their differing judgments on the photos in LR3.
    Any thoughts would be helpful. Thanks in advance,
    John Kendrick

    The rating system in LR3 is not really designed with that type of functionality in mind.  The "target Lightroom user" is an individual that uses LR to create a catalog of photographs which can be graded with a star rating based upon their opinion of the photograph.  The concept of seperate star ratings for multiple users doesn't really fit into that concept.  LR3, in general, is designed with a single photographer in mind... one that essentially uses the program by his/herself... so it has a bare minimum of 'group' functionality.
    It may be possible to find a plug-in that will enable star ratings by multiple users, but I've never heard of one before.
    If you really, really need this type of functionality (i.e. saving star ratings by multiple people), the only way to do it that I could think of would be to create multiple collections of the same shoot, each of which is filled with virtual copies of the original photos.  Each collection could hypothetically be called '08-03-2010 Bill Ratings'...'08-03-2010 Jill Ratings'... etc... etc.  Admittedly, such a workaround may very well be more trouble than its worth... that's just the only way I can think of that you might come close to achieving the functionality you're after.
    ***EDIT:  You beat me to it (VC idea) while I was typing this reply, Ian... wasn't trying to post redundant info...

  • How to move elements within the master region of a Master/Detail spry data set?

    Hi there,
    I am unsure of how to move the different items within the master region of a master/detail spry dataset. The default style is such that if I include 3 or more elements e.g. Thumb, etc., they are stacked vertically :
    How do I move them so that they can be positioned differently? The look I am going for is one where the thumb image is positioned to the left while the other items are stacked alongside it so that the end effect for the master region would look like this:
    I greatly appreciate the help! Thanks!

    This is the complete page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Check :: Fashion+Lifestyle</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMasterDetail_final.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var cal4 = new Spry.Data.HTMLDataSet("calendarList.html", "calendarList", {sortOnLoad: "When", sortOrderOnLoad: "ascending"});
    cal4.setColumnType("Thumb", "html");
    cal4.setColumnType("Picture", "html");
    cal4.setColumnType("When", "date");
    function MM_effectAppearFade(targetElement, duration, from, to, toggle)
        Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function closeAd() {
        document.getElementById('adRollover').style.visibility='hidden';   
    function MM_effectBlind(targetElement, duration, from, to, toggle)
        Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_effectSlide(targetElement, duration, from, to, toggle)
        Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
        Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
    //-->
    </script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="pageContainer">
        <div id="adBanners">
            <div id="halfBanner"><a href="#" onClick="document.getElementById('adRollover').style.visibility='visible';"><img src="images/banner_half_1.jpg" alt="Half Banner" width="237" height="90" /></a></div>
            <div id="leaderboardBanner"><a href="#"><img src="images/banner_leaderboard_1.jpg" width="728" height="90" alt="Leaderboard Banner" /></a></div>
            <div class="clearFloats"></div>
        </div><!--div#adBanners-->
        <div id="mainHeader">
            <div id="homepageLink"><a href="index.html"><img src="images/spacer.gif" width="400" height="100" /></a></div>
            <ul id="MenuBar1" class="MenuBarHorizontal">
                <li><a href="feature.html">FEATURES</a></li>
                <li><a href="#">FASHION</a></li>
                <li><a href="calendar.html" class="on">CALENDAR</a></li>
                <li><a href="#">VIDEO</a></li>
                <li><a href="blog.html">BLOG</a></li>
            </ul>
        </div><!--div#mainHeader-->
        <div class="MasterDetail">
          <div class="DetailContainer" id="event" spry:detailregion="cal4">
            <div class="DetailPicture">{Picture}</div>
            <div class="DetailColumn DetailTitle">{What}</div>
            <div class="DetailColumn"><div class="DetailLabel">WHEN:</div> {When}
            </div>
            <div class="DetailColumn"><div class="DetailLabel">WHERE:</div> {Where}
            </div>
            <div class="DetailColumn">{Details}</div>
          </div>
          <div id="calHeader"><p><img src="images/calendar_hdr.gif" width="492" height="100" /></p></div>
          <div spry:region="cal4" class="MasterContainer" onclick="MM_effectAppearFade(this, 1000, 0, 100, false); MM_effectBlind('event', 1000, '0%', '100%', false);">
            <div class="MasterColumn" spry:repeat="cal4" spry:setrow="cal4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected"><div class="MasterColumnPicture">{Thumb}</div>
              <div class="MasterColumnTitle">{What}</div>
              <div class="MasterColumnText"><div class="DetailLabel">WHEN:</div> {When}</div>
              <div class="MasterColumnText"><div class="DetailLabel">WHERE:</div> {Where}</div>
              <div style="clear:both"></div>
            </div>
          </div>
          <br style="clear:both" />
        </div>
    </div><!--div#pageContainer-->
    <div id="footer">
        <div class="text">Use of this site constitutes acceptance of our User Agreement and Privacy Policy. &copy; 2008 Adobe All rights reserved. The material on this site may not be reproduced, distributed, transmitted, cached, or otherwise used, except with the prior written permission of Adobe is a trademark owned by Adobe.</div>
    </div><!--div#footer-->
    <div id="adRollover" style="visibility: hidden;">
    <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
                'width', '536',
                'height', '479',
                'src', 'watch_ad',
                'quality', 'high',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'wmode', 'transparent',
                'devicefont', 'false',
                'id', 'watch_ad',
                'bgcolor', '#ffffff',
                'name', 'watch_ad',
                'menu', 'true',
                'allowFullScreen', 'false',
                'allowScriptAccess','sameDomain',
                'movie', 'watch_ad',
                'salign', ''
                ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="536" height="479" id="watch_ad" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="watch_ad.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
        <param name="wmode" value="transparent" /><embed src="watch_ad.swf" quality="high" bgcolor="#ffffff" width="536" height="479" name="watch_ad" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </noscript>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

  • How to pass parameters to an XSL for use in a transform (JSP/XSLT)?

    I have an XSL: style.xsl
    I have an XML: data.xml
    I want to do an XSL Transform on data.xml, using style.xsl, with parameter
    Language=en
    With Saxon you would do:
    saxon data.xml style.xsl Language=en
    But how would I do this with WL6.x, using the JSP XSLT tag:
    <x:xslt [xml="uri of XML file"]
    [media="media type to determine stylesheet"]
    [stylesheet="uri of stylesheet"]
    <x:xml>In-line XML goes here
    </x:xml>
    <x:stylesheet [media="media type to determine stylesheet"]
    [uri="uri of stylesheet"]
    </x:stylesheet>
    </x:xslt>
    Thanks
    Alain Jacquot

    There is currently no way to do this from the jsp xslt tag. I have filed an
    issue because this is available in the JAXP 1.1 API. If you need this
    functionality in the current version you will need to use the JAXP API
    directly.
    Sam
    "Alain Jacquot" <[email protected]> wrote in message
    news:3b368016$[email protected]..
    I have an XSL: style.xsl
    I have an XML: data.xml
    I want to do an XSL Transform on data.xml, using style.xsl, with parameter
    Language=en
    With Saxon you would do:
    saxon data.xml style.xsl Language=en
    But how would I do this with WL6.x, using the JSP XSLT tag:
    <x:xslt [xml="uri of XML file"]
    [media="media type to determine stylesheet"]
    [stylesheet="uri of stylesheet"]
    <x:xml>In-line XML goes here
    </x:xml>
    <x:stylesheet [media="media type to determine stylesheet"]
    [uri="uri of stylesheet"]
    </x:stylesheet>
    </x:xslt>
    Thanks
    Alain Jacquot

  • Page Element within PageDef Files for Nested Pages

    Hello all,
    I have found in the help file of the JDeveloper, information about the <page> element which can be added in a page's definition (xml file) for referencing a nested page definition, but it does not work, I do not know, perhaps I use it wrongly.
    Please any ideas or recommendations?

    Hi,
    nested bindings are not supported in 10.1.3.x. In Jdeveloper 11 the templating mechanism uses pageDef references
    Frank

  • NI9203 - Need to know how to set up the FPGA code for multiple NI9203 modules and how to calibrate the data

    Hi. I'm using the NI9203 module to detect pressure, temerature and flow rate of water in a cooling system. I have 17 different inputs coming in therefore i'm using 3 NI9203 modules. I've used the example provided with labview as a base for designing my code. The example can be found here : Program Files\National Instruments\LabVIEW 8.0\examples\CompactRIO\Module Specific\NI 9203.
    I've had no problems when testing this code out for a single NI9203 module but when i add code for 3 modules the code will not compile as my resources are over mapped. Is there a simpler way to program the FPGA code.
    That said how do you go about calibrating the data that's received from the module. Preferably i'd like to write a vi to do the calibrating. Just need help on how to go about writing this vi

    Hi havok,
    Firstly, I would use constants to configure the modules, it'll save some resources on the FPGA.  I'm not typically changing the settings on the fly, so using constants whenever possible helps.  I would also take a look at the following KnowledgeBase article on other changes you can make to the FPGA VI to compile the code:
    http://digital.ni.com/public.nsf/allkb/311C18E2D635FA338625714700664816?OpenDocument
    The best changes you can make are to use fewer arrays and front panel elements.  This can be done by using a DMA FIFO or constants on the block diagram. 
    Now actually calibrating the data will require you to do it on the host side.  There is an example VI called Binary to Nominal that changes the raw data to something more useful for datalogging, display, etc.  It can be found in some of the example VIs, or in the following link:
    http://digital.ni.com/public.nsf/allkb/E86D8D460C4C092F8625752F00050A61?OpenDocument 

  • How to use one pop up window for multiple buttons and input fields?

    Hi Experts,
    I have created a pop up window that will be opened from multiple buttons in the same view. There are input fields that the data will be populated from a pop up window.  How can I set up which button that a pop up window is opened from? I also would like to populate the data from a pop up window to the input field next to a clicked button. There are 6 buttons and 6 input fields that share the same pop up window. I would very appreciate your responses.
    Thank you,
    Don

    Hi,
    Try creating 2 context attributes, one in your component controller and the other in the pop-up view. Bind the attribute of pop-up view to the component controller attribute.
    In the main view, on click of every button set a unique code in the controller's context which helps you in identifying the button clicked. Since u have created a binding to the pop-up view attribute the value flows from the controller.
    In the init method of your pop-up view, check the value of the attribute and based on that display which ever UI elements are required.
    Eg:
    On Button 1 click set value "B1", Button 2  value "B2" etc. In the init() of pop-up view u can check the values and perform the required operation:
    if(("B1").wdContext().currentContextElement().getButtonIdentifier()){
    else...{
    Hope this helps you.
    Regards,
    Poojith MV

Maybe you are looking for