XQuery: Can fill us 10 records with sequence based on a record

I got a requirment which i wil get a single range GN record and corresponding I need to create a record of the range GN and 10 article (subtraction of RangeFrom and entablature) GN records. For a better understanding, I give you the payload.
Input payload

< ns0:InitDisconnectGNWorkflowRequest >
< DisconnectionDetails >
GN_1 < GN > < /GN >
< RangeFROM > 1 < / RangeFROM >
< RangeTO > 10 < / RangeTO >
< disconnecttype > disconnecttype_1 < / disconnecttype >
< CUGname > CUGname_1 < / CUGname >
< / DisconnectionDetails >
< / ns0:InitDisconnectGNWorkflowRequest >


and the output should be

< ns0:createDisconnectionServiceRequest xmlns:ns0 = "http://vodafone.gr/esb/bpm/servicedelivery/CustomerInitiatedDisconnectionProcess/1.0" >
< serviceRequest >
< active >
< orderItem >
< voiceItem >
< gNRangeItem >
< gNRangeDeatils >
< fromGN > 1 < / fromGN >
< toGN > 10 < / toGN >
< / gNRangeDeatils >
< GNRangeServiceItemId > VF_RANGE_HOL_INTEGRATION_ID_1 < / GNRangeServiceItemId >
< / gNRangeItem >
< gNItem >
< > 1 < LARP > LARP
< / gnItem >
< gNItem >
< > 2 < LARP > LARP
< / gnItem > <!- and so on 10 Articles... in charge of the Source, we only had one record->
< / voiceItem >
< / orderItem >
< / assets >
< / serviceRequest >
< / ns0:createDisconnectionServiceRequest >


OT is possible to reach the load desired using Xquery? If we can achieve this using the XSLT. ???
Separate GN records are inserted with the sequence from RangeFrom and RangeTo end.
Here, in these cases 1-10


Thanks in advance
Raja

Published by: user12893766 on August 18, 2010 12:04 AM

Hi Raja,

Use the below excerpt for your lines

for $icount to 1 data($body/*:InitDisconnectGNWorkflowRequest/*:DisconnectionDetails/*:RangeTO)
return

{data ($icount)}

}

Thank you
Sylvie

Tags: Fusion Middleware

Similar Questions

  • How to fill the new column with values based on the subquery

    How can I fill a new column (teamid) with the following query below, at my table dept? I'm empty/null entries in teamid collar when I run the code ff:

    ALTER table dept add (teamid varchar2 (15));

    Update dept

    define the teamid = select upper (substr (deptname, 1, 3)) | Upper (substr (Color, 1, 2)) | rownum

    of the Department;

    Want to output:

    DEPTNAME COLOR TEAMID
    SALESORANGESALOR1
    ACCOUNTINGBLUEACCBL2
    BILLINGYELLOWBILL3
    SQL> create table dept as
      2  select 'SALES' deptname, 'ORANGE' color from dual union all
      3  select 'ACCOUNTING' deptname, 'BLUE' color from dual union all
      4  select 'BILLING' deptname, 'YELLOW' color from dual
      5  /
    Table created
    
    SQL>
    SQL> select * from dept;
    DEPTNAME   COLOR
    ---------- ------
    SALES      ORANGE
    ACCOUNTING BLUE
    BILLING    YELLOW
    
    SQL>
    SQL> alter table dept add(teamid varchar2(15));
    Table altered
    
    SQL> update dept set teamid = upper(substr(deptname,1,3)) || upper(substr(color,1,2)) || rownum;
    3 rows updated
    
    SQL> select * from dept;
    DEPTNAME   COLOR  TEAMID
    ---------- ------ ---------------
    SALES      ORANGE SALOR1
    ACCOUNTING BLUE   ACCBL2
    BILLING    YELLOW BILYE3
    
    SQL> rollback;
    Rollback complete
    
    SQL> drop table dept purge;
    Table dropped
    
    SQL>
    

    ----

    Ramin Hashimzade

  • Fill an input value with text div/p

    I have a set up as entry form:

    < form > < input id = "start" name = "" type = "text" id = "DΘmarrer" value = "BLABLA" > < / make >

    Ill be using this form on multiple pages so I don't want to have to code the value for each specific page. Is it possible that I can fill in the value = "" with a div or < p > information on the page? "

    As in, if I have this:

    grass < div id = 'test' > < / div >

    Then the value = "" in my form will be automatically filled with everything that is in the div 'test'. "

    < form >, < input id = "start" name = "" type = "text" id = "DΘmarrer" value = "grass" > < / make >

    Maybe some kind of javascript?

    Thank you

    You can also do it easily with javascript.

  • How can I make the popup with empty fields and create new record?

    I would use a popup create new record.
    I created an af:popup drag and drop a data control VO in jsff. Then, I created a button and place an af:showPopupBehavior. I was able to pop-up window by clicking on the button.
    However, the window filled with information from the record 1. and when I select a record in the table and click on the popup, the popup is filled with this record.
    How can I make the popup with empty fields and create a new record by recording the popup?
    Thank you

    Hello

    You must call the CreateInsert for the underlying ViewObject operation when opening the popup because it does not allow to clear the input field, you must have a new record created

    Frank

  • I composed original songs on GarageBand.  I save my bass, guitar and vocals, but use the drums in GarageBand.  Can I copyright my songs with the drum on my record part, or I have my compounds of copyright songs drums in GarageBand?

    I composed original songs on GarageBand.  I save my bass, guitar and vocals, but GarageBand library allows you to add drums.  Can I copyright my songs with the drum on my record part, or I have my compounds of copyright songs drums in GarageBand?

    rickcly wrote:

    Can I copyright my songs with the drum part [GB] on my record [?]

    Yes:

    http://www.bulletsandbones.com/GB/GBFAQ.html#commercialrelease

    (Let the page load COMPLETELY. The link to your answer is at the top of your screen)

  • With windows XP I could scan a photo and click on an icon so he can fill the page - can I do with windows 7?

    With windows XP I could scan a photo and click on an icon so he can fill the page - can I do with windows 7?

    The game, 27 Sep 2012 22:57:18 + 0000, AdaRocchi wrote:

    With windows XP I could scan a photo and click on an icon so he can fill the page - can I do with windows 7?

    This has to do with what software you use for scanning, and not with
    a version of Windows or another.

    Ken Blake, Microsoft MVP

  • Can fill us transitional attribute in the table with no serial like 1,2,3, etc.? And how?

    Mr President.

    Can fill us transitional attribute in the table with no serial like 1,2,3, etc.? And how?

    Concerning

    You want to show serial No. on the page for all the lines?

    Check once-

    Blog of Ashish Awasthi (Jdev/ADF): Add the serial number to the table of the ADF, column to auto-increment in the table to the ADF

    Actually transitional attribute loses its value when page refreshes or viewObject is not appropriate in this case if your use case is different, so please tell us

    Ashish

  • Can I evaluate and fill out a form with data from a custom data object?

    I'm not a developer, but I'm trying to find as much information for my web team so they can implement this for me.  We use the E10.

    I have some information for the contacts stored in a data object custom I want to use for pre-population information access door and in another form.  For example:

    1. User enters his email address into a form and hands
    2. A search and contact and custom data object (CDO)
      1. If the contact has a CDO with the required information, he fills the following form with the information
      2. If the contact does not have the required ORDER, it displays information and a link to the place where to go next

    Is it possible, and where should I direct my developers learn more about treatments?

    Richard

    Hi Richard,

    You can certainly do so using data for the Eloqua Web search (Setup > data Web Look Ups). A database search allows you to request data stored in Eloqua, bring up the page and with a few JS, we determine if they will go on track 1 or 2 you described above.

    Is that an advanced feature requires knowledge of HTML and JS. Here is a good article on data search that should help:

    Using the Eloqua Cookie to customize your Web site

    If you have any specific questions, our support team is very familiar with this feature and can help to solve problems or answer specific questions.

    -Andrew.

  • Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Why are publish you again? You must first answer the question I ask in your original thread.

  • Hello! I've got CS3 Design Standard - real records and certificate of software license. It was installed on my laptop that crashed and could not be uninstalled. I have now installed on my new MacBook Pro, but can't get it registered with the

    Hello! I've got CS3 Design Standard - real records and certificate of software license. It was installed on my laptop that crashed and could not be uninstalled. I have now installed it on my new MacBook Pro, but can't get it registered with the serial number. Is it because it has not been uninstalled on the previous laptop? What should I do now? THX!

    Maybe this can help someone else...  I had to simply properly uninstall CS3 and reinstall again after that.  I think what he sort!  I also remember having a similar problem with the Mac at work a couple of years back.  Not sure if it is the same for CS5/CS6.  Here is a link on how to properly uninstall CS3 on Windows XP, Windows Vista and Mac OS.  I'm on OS X 10.9.2 but it works beautifully.  Remove from Creative Suite 3 and CS3 products

  • How can I replace a color with a pattern fill?

    Hi everyone, thanks for all the answers in advance!

    I've created quite a detailed design that works with 4 pixels per cm and 16 colors, canvas size 120x170cm. I'm wanting to replace all one color with a pattern, is there a way to do this?

    Can I replace a color with another flat color using the settings etc. but I want to meet all of an area of color with a pattern instead. The only way I can think to do would be to use the magic wand tool to select each pixel of the same color, then create a new layer and overlay with a filling of the desired design, however the design is so detailed, it would take me a terrible long to select each color!

    Can someone suggest a faster way of efficiant more to do?

    Thank you!

    Select--> color range

    Mylenium

  • How can you fill a hollow fonts with color in Indesign

    Hello

    someone knows something about how to fill it with the color of the inside of a police dig?

    The policy in question is ROSEWOOD (rosewood - download free fonts)

    Here is a picture of the police.

    Rosewood.gif

    The white parts are actually empty hollow parts of the police...

    Any suggestion?

    OK, I found a solution... I found a version of the same font, called to FILL.  Using two layers, I was able to fill the police with police filling in the layer under.

    That being said, I still wonder if there is a way to fill the hollow fonts with colours, where a policy of filling would be unavailable...

    All suggestions welcome.

  • How can fill us with data in this table AR_RECEIVABLE_APPLICATIONS_ALL

    Hi all

    How can fill us the data in this table, I created a credit memo and marked it complete but I'm still not able to get the data in this table.

    What is the correct approach or any other alternative available.

    Thank you
    Ajay

    Hello.

    Ok. In the Menu, choose Actions and Applications.

    Octavio

  • I can automatically fill a PDF form with data from another file of the Government?

    I need to be able to insert automatically the data into a PDF form to print.  I can create the data file with alpha and numeric values to be inserted into the form.  Is there a way to merge/package/combine without action from the user to slide, falling, or gluing?

    It would be on a platform Windows (ideally for XP and Windows 7).

    Hi Mike,.

    Yes you can import data to a PDF file from another data file using option "Import data" in Acrobat. AXI supports the .fdf, the .xfdf, the .xfd, .xml and .txt file formats. I'm not sure the version of Acrobat you have, but here I am you provide the links of the AXI and AX online help documentation. Please post back if you need more information:

    AXI: http://help.adobe.com/en_US/acrobat/using/WSE8580964-0716-4452-BA8D-EA9AAD3F6091.html#WSDD 95883E-EB9B - 409 b-8C7C-33E0DAE68FFE

    AX: http://help.adobe.com/en_US/acrobat/standard/using/WSDD95883E-EB9B-409b-8C7C-33E0DAE68FFE. html

    ~ Sandeep V.

  • How can I update the rubrics with WebServices?

    How can I update the rubrics with WebServices?

    /Anyone/ has some success with this?

    It becomes important to our business objectives in order to solve the problems within the control elements.

    I can't enter the number of line by line in order to uniquely identify it. How can I get that number, so I can send it with xml "update"?

    A little nudge in the right direction would be much appreciated.

    Aaron.

    You must use a field on the form as the one on the line items, NOT the line number that appears in the journal of the line item. If I understand correctly, the LineItemIdentifier can be any field on the form, even the short description. It is best if you know you will use web services to update the line items, you add a (potentially hidden) field to the form and fill that with unique values when positions are created. If you are working with existing elements of line, then you must choose a field that will be usually unique within a single record and hope, you don't have a lot of duplicates.

Maybe you are looking for