XSLT single elements to multi elements

I need to transform the input on the left into the format on the right with a transformation in jdeveloper BPEL:
       Coming In:                                Desired Output:
<inputone>test1</inputone> ---------> <input attr="one">test1</input>
<inputtwo>test2</inputtwo> ---------> <input attr="two">test2</input>
<inputthr>test3</inputthr> ---------> <input attr="thr">test3</input>Not sure how to handle this single node to multi node.....thanks.

Your requirement is to clone the input element.
In Jdev, the only XSLT construct that may be cloned is the for-each element.
So your steps would be:
1. Right-Click the Input element and add XSL Node for-each.
2. Right-Click the for-each and clone 3 times.
3. Map inputone to the 1st for-each and the 1st attr.
4. Repeat step 3 twice to map 2nd and 3rd for-each and the attrs to inputtwo and inputthr respectively.
HTH,
Neil.

Similar Messages

  • Diferencia entre RT FIFO shared variable Single element y Multi-element.

    Si en las propiedades de una Shared  Variable, elijo el tipo de dato como Booleano y activo RT-FIFO, Cuál es el tamaño del buffer en la opción Single element? Si elijo Multi-elemet, entiendo que el tamaño lo determino en "Number of Booleans".
    Gracias

    Hola Ainhoa!
    Estuve leyendo un poco respecto a la diferencia entre ambas opciones. Realmente no pude encontrar el tamaño del buffer, por lo que pude entender la diferencia principal es el acceso de más de un lector o escritor a la variable.
    En el caso del single element, solo un elemento permanece en el buffer por lo que si tienes dos lectores, ambos obtendran el mismo valor. Así mismo el tipo single-element FIFO no reporta alertas cuando existe un underflow u overflow en el buffer. En el caso del multi-element, por cada lector o escritor que accese la variable se creará un nuevo buffer independiente y los valores que lean serán así mismo independientes. Finalmente, en LV 8.6 tu puedes definir el tamaño del buffer, dentro de la categoría Networking. Te dejo una liga a un poco más de información que espero te sea de utilidad:
    http://zone.ni.com/devzone/cda/tut/p/id/4679
    Que tengas un excelente día!
    Oswald Branford

  • How to send multiple data for a single element

    Hi All,
    I have a requirement where I have to send multiple data for single element per single transaction. For example
    Id details
    1 abcd
    1 efgh
    1 def
    Now, when I am selecting this ID from database, I have to get all the details in a single xsd like
    <id>1</id>
    ---><details>abcd</details>
    <details>efgh</details>
    <details>def</details>
    Thanks

    Hi,
    The following XSLT...
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <xsl:variable name="root" select="/"/>
    <root>
    <xsl:for-each select="distinct-values(/root/entry/id)">
    <xsl:variable name="id" select="."/>
    <entry>
    <id><xsl:value-of select="$id"/></id>
    <xsl:for-each select="$root/root/entry[id = $id]">
    <details><xsl:value-of select="details"/></details>
    </xsl:for-each>
    </entry>
    </xsl:for-each>
    </root>
    </xsl:template>
    </xsl:stylesheet>Will work for a document like this...
    <root>
    <entry>
    <id>1</id>
    <details>detail1</details>
    </entry>
    <entry>
    <id>1</id>
    <details>detail2</details>
    </entry>
    <entry>
    <id>2</id>
    <details>detail3</details>
    </entry>
    </root>Hope this helps...
    Cheers,
    Vlad

  • Add 1 single element in Java Mapping

    I have quite a simple requirement for my Java Mapping, however as I have done just message mappings and XSLT mappings maybe you could help how to achieve the following:
    I have an input message with attachment, what I want to do now is to read a string out of the attachment (this is already what I have done) and append a single element to the input message. No other elements should be changed.
    What would be a simple way to do this?
    Thank you very much
    Edited by: Florian G. on Nov 12, 2009 9:02 PM
    Edited by: Florian G. on Nov 12, 2009 9:03 PM

    Hi,
    You can access your attachements in:
    1. UDFs (by using package com.sap.aii.mappingtool.tf7.rt interface GlobalContainer method getInputAttachments())
    2. Java mappings (by using package com.sap.aii.mapping.api class TransformationInput method getInputAttachments())
    3. Adapter Modules
    For each area, you can find how to acccess the payloads by referring to the javadocs:
    http://help.sap.com/javadocs/pi/SP3/xpi/index.html?index-all.html
    They will all give you your attachment as text or binary data, but you will need to parse the data yourself. If your attachment itself is an XML as well, you might use DOM, SAX, stAX or other parsers if the structure is complex. Otherwise, a simple Java regex or  any simple String parsing will do as well for simple cases.
    Regards,
    S. Gökhan TOPÇ

  • How to use single element as both control as well as indicator in labview

    Hi All,
    I need to use single element for both control and as an indicator.
    I need not want to use its value property os shift register.

    Hi pmg,
                I think this thread will be helpful to you.
               http://forums.ni.com/t5/LabVIEW/Using-a-control-as-both-an-indicator-and-control/td-p/1113158 
    Thanks as kudos only

  • How do you assign multiple values to a single element in an array?

    I'm probably not wording the question right.
    I have an array, let's call it M[], and for each element in the array (we'll say M[1]), I need assign three integers: row, col and value.
    I need to set it up so I can do something like this:
    A.row = M[i].col;
    A[i].col = M[i].row;
    A[i].value = M[i].value;
    The algorithm isn't what I need help with, it's assigning .col, .row and .value to an index of an array.
    Please help if you can.

    You are right. You did not word your question perfectly, but I still think I get what you want.
    First of all: A single element in an array always has exactly one value. No more, no less.
    But that's not a problem. The element in an array is either of a primitive type (boolean, byte, char, short, int, long, float, double) or it's a reference (to a Object, String, MyClass, ...).
    You can simply write a class that holds your three values and create an array of that type:
    public class SomeData {
      public int row;
      public int col;
      public int value;
    // somewhere else:
    SomeData[] a = new SomeData[10];
    a[0] = new SomeData();
    a[0].row = 10;
    a[0].col = 5;
    a[0].value = 42;Note how you only assign a single value to the element (a[0]) itself. All other assignment actually go to fields of the object refered to by that element in the array.
    Also note that in Java types (such as classes, interfaces, ...) should start with a upper-case letter, while variables (local variables, members, parameters) and method names should start with a lower-case letter.
    Edit: I'm getting old ...

  • WS-Security - Single element encryption ?

    Hi Guys,
    The credit card data is sensitive and we have messages going through XI which has CVV code the 3 digit code and since XI logs this, we are planning to use single element encryption (XML encryption) in the web service security.
    Customer asked that we can disable the logging only for this particular field, which is not possible in XI and thats the reason we are thinking to go for single element encryption. we have configured soap adapters on both the sender and receiver side.
    any suggestions how to acheive this or any different ideas would be really appreciated
    Thanks,
    Srini

    Hi Srinivas,
    You can go for SOAP adapter for your requirement.
    To add......if u wantt to check out the details of SOAP adapter.......
    SOAP Adapter: SOAP Adapter converts the SOAP messages into SAP XI message format that is SOAP with header attachments. This in an area many needs to really concentrate as it is heart of the ESA literature going forward.
    Refer Testing XI exposed Web-Services:
    /people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
    and Invoking XI Webservices:
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    RFC to WebService - A Complete Walkthrough - Part 1
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    and RFC -> XI -> WebService - A Complete Walkthrough -Part 2.
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    You can down load a sample SOAP Client tool from SAP SOAP Client Tool.
    https://www.sdn.sap.com/irj/sdn/downloads
    Please refer How to Set Up a Web Service-Related Scenario with SAP XI for delving more deep.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/befdeb90-0201-0010-059b-f222711d10c0
    Reward points if this helps
    Regards
    Vani.

  • Graph & Chart: select and colour single element of data series

    Hi,
    my question is about formatting Keynote graph: i.e. bar graph 2d or 3d, is it possible select and colour differently a single element of series? In Powerpoint exists that possibility, but in Keynote I can't find the way to select only one element. If I change colour, all series elements change.
    Thanks in advance
    Antonella

    Hi Pasha ,
    yes, i am quite sure that bars are overlapping and checked with the 3 options you have mentioned.
    3. I have tried streching the graph horizontally but still the same display.
    2. I did moved to mouse to the edge points of bar .. it only mentioned one data series instead of two
    1. See if the db column contains NON-ZERO values ? ..
    I am not sure of it but when deploying the model in VC , i got a warning message saying " Zero fill is checked without Max length in field "Gross Turnover Actual " of entity " query name "
    Let me know, how this efffects the display and what do i need to do to resolve the issue .
    Appreciate your valuable inputs ...
    Thnks,
    NR

  • Single Element in Multiple hierarchies

    Hi ,
    Is it possible to have single element in multiple hierarchies in OBI EE .Lets say I have an prebuilt hierarchies
    Programs-->Campaigns and Offer--> Treatment?
    Can i create one more hierarchy Programs--> Campaigns --> Offer.It doesnot allow me to drag the offer_name to any other hierarchy since offer--> treatment hierarchy is present.
    Any pointers?
    Thanks & Regards,
    Gaurav

    Hi YSS,
    Thanks for yopur reply.
    The example which u sent to me is different to the requirement which iam looking for.Here is the more detailed abt my scenario.I have a cost element and under this cost element i have for example 4 hierarchies.under each hierarchy there are several sub nodes.in my query i want to disply like this.
    Hierarchy 1       Kf1 Kf2 Kf3
        sub node 1
          sub node 2
           Result
    Hierarchy 2
        sub node 1
          sub nde 2
           Result
    I hope now its more clear.please let me know if its possible and also can u explain how we can create Hierarchy variables to enable end user to select required hierarchies while running the query.
    Thanks,
    Vaka

  • Convert from Single Org to Multi-Org

    Hi All,
    Can someone tell me what are the steps to convert from Single Org to Multi-Org ?
    Is it only the profile value 'MO: Operating Unit' to be setup ? or any other steps to be setup ?
    Regards
    Jhansi

    Jhansi,
    Please see the following:
    Note 259546.1 - Setting Up Multiple Organizations in Oracle HRMS
    Regards,
    Greg

  • How to do data migration between single node and multi node HANA systems ?

    Data migration between single node and multi node HANA systems ?
    What are limitations ?
    What should be the best practices ?

    Data migration between single node and multi node HANA systems ?
    What are limitations ?
    What should be the best practices ?

  • PLS-00497: cannot mix between single row and multi-row (BULK) in INTO list

    Hi,
    I have a requirement to send a table data through mail,
    so am using execute statement after opening the connection and am using the following PLSQL code, which am failing to execute successfully.
    My code goes like this.
        0            10            20           30           40            50
    1  CREATE OR REPLACE PROCEDURE SEND_TABLE_DATA( FROMAD IN VARCHAR2,
    2   TOAD IN VARCHAR2,
    3   SUBJECT IN VARCHAR2,
    4   MESSAGE IN VARCHAR2,
    5   DOCID IN VARCHAR2,
    6   DOCDT IN DATE,
    7   PRODOAID IN NUMBER )
    8   AS
    9   BATCHNO  VARCHAR2(32767);
    10  PCSBOX  NUMBER;
    11  AMOUNT  NUMBER;
    12  SMTPHOST VARCHAR2(255) := 'XXX.XXX.X.XXX' ;
    13  A UTL_SMTP.CONNECTION ;
    14  BEGIN
    15  A :=UTL_SMTP.OPEN_CONNECTION(SMTPHOST,25);
    16  UTL_SMTP.HELO(A,SMTPHOST);
    17  UTL_SMTP.MAIL(A,FROMAD);
    18  UTL_SMTP.RCPT(A,TOAD);
    19  UTL_SMTP.OPEN_DATA(A);
    20  UTL_SMTP.WRITE_DATA(A, CHR(13) ||CHR(13) || CHR(13) );
    21  UTL_SMTP.WRITE_DATA (A,'Date: '|| TO_CHAR(SYSDATE,'DD/MM/YYYY HH24:MI:SS') || CHR(13) );
    22  UTL_SMTP.WRITE_DATA(A,'From: '||FROMAD|| CHR(13) );
    23  UTL_SMTP.WRITE_DATA(A, 'To: '||TOAD|| CHR(13) );
    24  UTL_SMTP.WRITE_DATA(A, 'Subject: '|| SUBJECT || CHR(13) );
    25  UTL_SMTP.WRITE_DATA(A,MESSAGE||DOCID||' Documented on '||DOCDT||CHR(13) );
    26  UTL_SMTP.WRITE_DATA(A,CHR(13) || CHR(13) || CHR(13) );
    27  UTL_SMTP.WRITE_DATA(A,'This is for your information'||CHR(13) );
    28  UTL_SMTP.WRITE_DATA (A,' BATCHNO '|| ' -- '||' PCSBOX '||' -- '||' AMOUNT '||CHR(13) );
    29  EXECUTE IMMEDIATE
    30         'SELECT
    31       A.BATCHNO,B.PCSBOX,B.AMOUNT
    32        FROM
    33      SCHEMA1.TABLEX A,SCHEMA2.TABLEY B
    34        WHERE
    35       A.BATCHID=B.BATCHNO AND B.PRODOAID='|| PRODOAID
    36     BULK COLLECT INTO BATCHNO,PCSBOX,AMOUNT;
    37  FOR indx IN 1..BATCHNO.COUNT
    38   LOOP
    39    UTL_SMTP.WRITE_DATA (A,BATCHNO(indx)|| ' -- '||PCSBOX(indx)||' -- '||AMOUNT(indx)||CHR(13) );
    40   END LOOP;
    41  UTL_SMTP.WRITE_DATA( A,CHR(13) || CHR(13) || CHR(13) );
    42  UTL_SMTP.CLOSE_DATA(A);
    43  UTL_SMTP.QUIT(A);
    44  EXCEPTION
    45  WHEN OTHERS THEN
    46  UTL_SMTP.QUIT(A);
    47  RAISE;
    48  END;
    49  /
    SELECT * FROM USER_ERRORS
    NAME                       TYPE             SEQUENCE    LINE         POSITION        TEXT                                                                                                             ATTRIBUTE                 MESSAGE_NUMBER
    SEND_TABLE_DATA
    PROCEDURE
    3
    37
    1
    PL/SQL: Statement ignored
    ERROR
    0
    SEND_TABLE_DATA
    PROCEDURE
    2
    37
    24
    PLS-00487: Invalid reference to variable 'BATCHNO'
    ERROR
    487
    SEND_TABLE_DATA
    PROCEDURE
    1
    36
    25
    PLS-00497: cannot mix between single row and multi-row (BULK) in INTO list
    ERROR
    497
    Thanks In Advance
    Regards
    Pradeep.

    > 29  EXECUTE IMMEDIATE
    > 30         'SELECT
    > 31       A.BATCHNO,B.PCSBOX,B.AMOUNT
    > 32        FROM
    > 33      SCHEMA1.TABLEX A,SCHEMA2.TABLEY B
    > 34        WHERE
    > 35       A.BATCHID=B.BATCHNO AND B.PRODOAID='|| PRODOAID
    > 36     BULK COLLECT INTO BATCHNO,PCSBOX,AMOUNT;
    The variables BATCHNO, PCSBOX and AMOUNT are defined as scalar variables. Check there definition
    > 9   BATCHNO  VARCHAR2(32767);
    > 10  PCSBOX  NUMBER;
    > 11  AMOUNT  NUMBER;
    You cannot use BULK COLLECT on scalar variables. The variables must be defined as a COLLECTION TYPE in order to perform bulk collect.

  • Faster way to migrate from Single byte to Multi byte

    Hello,
    We are in the process of migrating from a 9i Single byte db to a 10g Multi byte db. The size of our DB is roughly 125 GB. We have fixed everything in the source database (9i) in terms of seamlessly migrating from a single byte to a multi byte db. The only issue is the migration window - curently we are doing an export/import since there is a character set migration involved and it's taking about 20+ hrs to do the import in 10g. The management wants to cut this down to less than 10 hours, if that's possible. I know the duration it takes to import depends on many factors like the system/OS configuration, SAN, etc but I wanted to know what , in theory, is considered the fastest method of migrating a database from single byte to multi byte.
    Have anybody here gone through this before?
    Thanks,
    Shaji

    If the percentage of user tables containing some convertible data (I am assuming you will not have any truncation or lossy data) is low, you can export only those tables, truncate them, and rescan the database. This should report no convertible data, except some CLOBs in Data Dictionary. Such database can be migrated to AL32UTF8 using csalter.plb. After the migration, you import only the previously exported subset of tables.
    Note, for this process to work, no convertible VARCHAR2, nor CHAR, nor LONG data can be present in the Data Dictionary.
    The process should be refined by dropping and recreating indexes on the exported tables as recreating an index is faster then updating it during import. You should also disable triggers so that they do not interfere with the migration (for example, they should not update any "last_updated" timestamp columns).
    If the number and size of affected tables is low compared to the overall size of the database, the time saved may be significant.
    There may also be tables that require even more sophisticated approach. Let's say you have a multi-gigabyte table that stores pictures or documents in a BLOB column. The table also has a single text column that keeps some non-ASCII descriptions of the stored entities. Exporting/truncating/importing such table may be still very expensive. A possible optimization is to offload the description column to an auxiliary table (together with ROWIDs), update the original column to NULL, export the auxiliary table, drop it, rescan the database, migrate with csalter.plb, re-import the auxiliary table, and restore the original column. If pictures alone occupy, for example, 30% of the whole database, such approach should yield significant time saving.
    -- Sergiusz

  • DIFFERENCE BETWEEN SINGLE LEVEL AND MULTI LEVEL COSTING

    Sir,'
    Please explain the difference between Single Level and Multi Level Costing in Detail
    thanking You

    While using material ledger, we can use the single level or multi-level price determination for valuation of inventory.
    Procurement processes are used in Product Cost Controlling to determine procurement costs and to present those costs. Purchase Order, for example, is single-level procurement and Production is multilevel procurement.
    Single-level material price determination calculates the periodic unit price for a material. The standard price and the cumulative single-level differences of the period are taken into account. Single-level material price determination takes into account the differences that arise directly when a material is procured.
    Multilevel price determination calculates the periodic unit price for a material. The standard price, the single-level differences cumulated in the period, the differences between planned and actual prices, as well as input material differences (multilevel differences) are all taken into account.
    Single-level material price determination  is a prerequisite for Multi-level price determination.

  • In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    I attached a .doc file to the message and it appeared as an icon, so I did not have to convert it. I attached a .jpg image — it appeared as a full image, but when I Command+clicked the image, the view as icon window did not appear on the screen. Likewise, I again checked the Mail Menu Bar, and did see 'View as icon.' Side note: I routinely use Mavericks Mail in Classic Mode, so I decided to try both modes. Same results in both modes. I checked my Mail Preferences, but couldn't find anything there, either. I'll continue to look around, but this has me stumped. Thanks for your assistance.  

Maybe you are looking for

  • Bapi for vendor payment with details of tunover and blocked payment

    Dear all I want to know whether any BAPI available for the details of vendor payment made and the open item with  blocked payment (with the reason for the blocked payment) and the turnover of the vendor for a particular fiscal year...................

  • Soap message with Attachment

    Hi All, I have a requirement wherin I have to send an attachment(image) along with the soap payload.i.e. the soap message contains the payload and an attachment.For eg. the soap message is as shown below: <?xml version="1.0" encoding="UTF-8" ?> <SOAP

  • BAPI to change Specification in EH&S

    Hi Andreas I want to know is there any difference in using C1F2_SUBSTANCES_READ_WITH_REF to read out property data and BAPI_BUS1077_GETDETAIL Also I came across the following 2 Bapi's an alternative for C1F2_SUBSTANCE_UPDATE BAPI_BUS1077_CREATE : To

  • Illustrator crashing solution unclear (CC 2014, Mac OSX Mavericks, start-up crash, plug-ins confusion)

    Illustrator CC 2014 crashing on launch. Troubleshooting solution suggests moving third-party plug-ins, but how do I distinguish third-party plug-ins from those that should stay in situ, AND in any case, how do I actually move them, as any attempt to

  • Identifying application name using Portal API

    Hi I have a Web Dynpro Java component that is being used in two different applications. I'm just wondering if there's a way to programmatically tell which application it was that called the component when a user enter certain input? Regards, Revathi