XSLT issue: copy-of

Hi friends,
I'm now having an issue when using copy-of in XSLT:
I have a top node called PutXMLDocument, a second level node XMLString, and 3 level nodes in my xml. With a XSLT mapping, I'd like to move all contents of 3 level nodes into 2nd level node "XMLString". I know I should use copy-of command, but what select statement I shall use for this problem?
Or more simply: What's the XPATH expression for all descendant nodes of current node?
Any hints is highly appreciated.
Thanks
Luis

Hi,
<xsl:copy-of>Creates a copy of the current node (with child nodes and attributes)
Check this eg-
http://www.w3schools.com/xsl/el_copy-of.asp
Regards,
Moorthy

Similar Messages

  • Issue copying only Non-Empty element via XSLT Transformation

    Below transformation is copying even empty tag :( ...... I want only those tag with value copied.
    <xsl:template match="/">
    <ns56:ValidateProductForReactivationResponse>
    <xsl:if test="$ValidateProductForReactivationResponse.payload/ns56:ValidateProductForReactivationResponse/internetService:InternetService">
    <internetService:InternetService>
    <internetService:CustomerUserName>
    <xsl:value-of select="$ValidateProductForReactivationResponse.payload/ns56:ValidateProductForReactivationResponse/internetService:InternetService/internetService:CustomerUserName"/>
    </internetService:CustomerUserName>
    <internetService:Login>
    <xsl:value-of select="$ValidateProductForReactivationResponse.payload/ns56:ValidateProductForReactivationResponse/internetService:InternetService/internetService:Login"/>
    </internetService:Login>
    </xsl:if>
    </ns56:ValidateProductForReactivationResponse>
    </xsl:template>
    Please Help.
    Regards,
    En

    Enceladus wrote:
    I want something ..some pattern to put in match.. so that is covers whole xslt.Unfortunately, there's no such a thing... Document is quite clear on that point...
    +" When mapping an optional source node to an optional target node, it is important to surround the mapping with an xsl:if statement that tests for the existence of the source node. If this is not done and the source node does not exist in the input document, an empty node is created in the target document. "+
    http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/bp_xslt_mpr.htm#CFAHAHHA

  • XSLT Issue : Without the target file mapping is happening

    Hi,
    In one of my composite, which is a provider abcs transforms source to target, where in the transformation file, source and target are mentioned as usual, both are pointing to MDS locations.
    Source file is physically present in the MDS, but the target file is not present but still the transformation happening.
    The flow is like below.
    ProviderABCS -> Adapter service which will write the file.
    Some time the file is created with data and some time only the file is created without data.
    My question is how come there is no exception caught ? If i keep the target schema or wsdl file in MDS will this issue get resolved ?
    Thanks,
    Vijay

    When i try to open the xslt file with designer view its complaining that the target file is missing, but when i deploy, iam able to deploy and run with some instances.
    Still investigating.. wll update you.. soon. In the mean time if any body have any other idea.. plz update the thread.
    Thanks,
    Vijay

  • XSLT issue

    Hi,
    In my project I have used same schema for service A and B. A calls B service (both the services have different namespace). A is a mediator and B is BPEL. Now A transform the incoming message before calling B. But A mediator service XSLT transformation is not transforming one node (of type ANY). Its a business event schema. In the output xml file, this node which is of Type ANY is coming as empty. I then used another schema in for this node for both the services. This new schema has a different namespace. This time also this node coming as empty. Please help me.

    Use like this to match anyType before mapping/copying nodes
    <xsl:template match="anyType[@xsi:type = '<Business Event Schema>']" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  • Problem with XSLT: xsl:copy

    xsl:copy let us copy a node from the source to the result of a XSLT transformation.
    My problem is that each element is copied without its attributes !
    For example a template:
    <xsl:template match="myelement">
    <xsl:copy>
    <xsl:apply-templates/>
    </xsl:copy>
    </xsl:template>
    on a element:
    <myelement myattribute="value">text</myelement>
    will transform this element in the new element <myelement>text</myelement>. The attribute has desappeared.
    How Can I do copy my element exactly as it is, with all its attributes ?
    thank's.

    Yes, but copy-of copies child elements too. And I don't want to do so. What I want is for example that my template generate an element
    <myelement myattribute="value">
    <myaddedelement>
    </myelement>
    with an element
    <myelement myattribute="value"/>
    in the source.

  • Disable-output-escaping xslt issue in Oracle 10.1.3.0

    we are using DBMS XSLT processor for transformin xml to html in oracle 10.1.3.0.
    When we use disable_output_escaping in the xslt, not working in oracle 10.1.3.0 . But when we use the same xslt in java xslt processor disable_output_escaping is working fine.
    Is there any solution for disable_output_escaping bug in oracle 10.1.3.0.

    There is no Oracle version numbered 10.1.3.0.
    Perhaps you have 10.1.0.3 in which case you've quite a few patches you could and should install. Check the metalink docs and see if the issue is addressed.

  • Urgent Issue - Copy DTP and Process Chains in New Client Instance

    We have created new client Instance ( CLNT 510 ) based on our present client ( CLNT 500 ).
    We have all the process changes, application components from source system CLNT 500 and data ( both for master and transaction data ) in place for the CLNT 500.
    Now we need to use the CLNT 510 for our futher development. RFC connection has been established.
    Just want to know, do we need to create all the Application component trasfer , Transformation, DTP , Infopackages , Process chains again for the CLNT 510 data.
    please help.
    Thanks and Kind Regards,
    Pratap Gade.

    Hello Jr Roberto,
    Hello Jr Roberto,
    We have company implementing mutiple SAP Implementations in different countries.
    Client for BW Dev is 400.
    Source system for Client BWD :
    ECC Client ERP Dev - 500 ( for Holland Implementation )
    ECC Client EPR Dev - 510 ( for German Implementation  - Instance of ECC 500)
    We are completed with the Client 500 implementation.
    We are starting the german implementation and they have created a intance of Holland ECC Dev client 500 for german implementation with german data.
    Now they have setup 2 rfc connection in BWD 400.
    Also finally when they move to QAS client they are going to integrate the data of the both countries into one client.
    Presenlty I need to use ECC client 510 client for our german development.
    We have around 40 SAP BI reports in our first implementation. and around 10 in our second implementation.
    Just want to know, what are issues to be considered in loading master data ( will it overwrite the master data from the client 500, if i extract the master data from client 510 )...and all the other issues like can I copy all the process chains...etc  from client ECC 500 to ECC 510, without creating all transformation, DTP , Infopackages to load all the master from client 510 again.
    I need a broad understand on how to go about the development ...starting with Application Components transfer from source system Client 510 ....to report development. ( if possible using the already created objects....infopackages , DTP etc..)
    your help would be really appricated Mr Roberto.
    Thanks and Kind Regards,
    Shekar.

  • Issues copying more than 47 folders to Zen MicroPhoto via Media Explo

    I have had my Zen MicroPhoto for a few weeks now and not had any issues with it until now. This is really strange and may be a little confusing to understand. And yes, I do have the latest Firmware version...
    I have included an image to show the organization of my music. Instead of dumping all the individual tracks into the main directory, I keep them all sorted by Artist, Album, and then the Tracks themselves.
    As you can see, I have 47 folders in the root "Music" folder on my Zen MicroPhoto, but if I try copying any more into the "Music" folder, it randomly places them inside any one of the folders <EM>inside</EM>the "Music" folder. For instance: I dragged all my music I own by The Beatles onto the Zen, but it placed The Beatles' folder in Bowling For Soup's (?). At first, when the artists were no longer showing up in the main Music folder, I thought that they were just for some reason being hidden or something... but they do infact play on my Zen MicroPhoto without any trouble. Then I was looking through my folders to sort some music and there it was: "The Beatles", sitting in my "Bowling For Soup" folder.
    I do have quite a bit of knowledge about Operating Systems -- and computers in general -- but this issue has really got me... anyone else experiencing this?
    <IMG src="http://img33.imageshack.us/img33/889/zenmediaexplorer3ct.jpg">
    P.S. I <EM>have not</EM> tried reformatting my Zen yet, but I will if I can't find a solution here.

    I just Formatted All and Reloaded Firmware... seems to have fixed it for now. I will update if it occurs again.

  • Issue: Copying page from one appln to another appln in same workspace

    Hi All,
    I am using APEX 4.0.2 version.
    I tried to copy a page from one application (2001) to another application (1000) in same workspace using the option 'New Page as a Copy'. The page is copied correctly. But sometime I am getting some issues in copied page in application 1000 like button id (button id of the button used in 2001) is updated instead of button name in some processes which are using the condition as button name in 'When Button Pressed' option and Sometimes LOV's are also changed when we give copy in the wizard .But the copied page in application 1000 is working fine in that workspace. The same page exported and imported in application 1000 on different instance (consider it's a production instance). In production, The process is not working when the button is pressed.
    My questions are,
    1) Buttons are not sharable, Why the copied page in application 1000 working correctly and the process is called when the button is pressed??
    2) Why it’s not updating the button name in 'When Button Pressed' option?
    Is it a bug?? How can we resolve these type of issues??
    Thanks
    Lakshmi

    Hi Lakshmi,
    Given that your environment is running 4.0.2, would you mind carrying out a similar test on our hosted instance, apex.oracle.com, to verify whether the issue you hit has been resolved with our latest release?  If it hasn't been resolved, please outline the steps to reproduce the issue.
    Also just to address some comments made by Howard:
    "But for items and button names in processes, computations, conditions and ... this updating may NOT occur.  (I don't have a list of what gets updated and what not.)  APEX is not assuming that item PX_SAL in a CONDITION is to be update to PY_SAL on the new page.  You may know that's what you wanted but from what I've seen, APEX does not assume a 1-1 correspondence in these other cases."
    You are correct in stating that sometimes references to page item names are not renamed during the copy page process.  However, that is a bug.  The copy process should be renaming page item references, updating the name to reference the new page ID in place of the original page ID.  For example, when copying page 1 to a new page, 2, then any page items from page 1 should be renamed during the copy process to reference the new page number, i.e. P1_NAME should be renamed to P2_NAME, and references to that original item name should also be updated.  Only this morning, a customer raised a 4.2.2 bug (17054144) for an issue in the copy page process, where page items referenced in the "Conditional Display" settings of an Interactive Report column were not being renamed.  While verifying that issue, I also noticed a similar problem which impacts Classic Report columns, and Flash chart series queries.  These issues will be resolved in a future release, but please do update this thread if you have identified any other occurrences that you believe should be handled during the copy page process.
    Regards,
    Hilary

  • Crashing issue+ copy/ paste issue

    Dear all, I am facing two serious bug issues:
    1) on many www pages I am facing serious issue (e.g. www.makezine.com , but also on almost all others I was browsing). After approx 20 sec to several minutes firefox browser close itself and home android page appear. There is no error message at all
    2) once I copy any text outside firefox browser, then I not end it to any text field on Web page opened under firefox browser, there is no way to paste it
    Can you please fix these bugs? My smartphone is samsung galaxy s5, android v 4.2 (kitkat)
    Thanks.

    Hi olsi:
    * 2. steps to reproduce crash problem as per your screenshots
    ** i) highlight text "display the word 'paste'..."
    ** ii) copy the text
    ** iii) long press on 'Aaa' and then 'Aaa" is selected
    ** iv) tap on combined clipboard copy/paste icon and '''the text 'Aaa' is copied instead the desired behaviour which is to paste "display the word 'paste'..."'''
    * 3. to fix this, the workaround I believe is to do the following instead of 2 iv):
    ** iv) tap on the checkmark icon first to make sure 'Aaa' is not selected and then long press and use the combined clipboard copy/paste icon to paste (or on some devices a Paste icon instead of the combined clipboard copy/paste icon will be shown and you can use this Paste icon). I found this workaround here: https://bugzilla.mozilla.org/show_bug.cgi?id=1086933#c7:
    <blockquote>
    "The "Paste" popup is finicky in the URLBar. Because you had a selection already, we show the ActionBar. If you would have cleared the URLBar selection and then long-pressed, you would have seen the "Paste" popup."
    </blockquote>
    '''Again olsi thanks for your patience and please let us know if the workaround 3 iv) works'''

  • FireFox issue copying text in span with content editable true

    I found magic in firefox..!!!. When i copy some content (like any text) from Microsoft word file into span which is editable contenteditable="true" in Firefox it convert into twice.
    Demo : http://jsfiddle.net/LPNYZ/
    Note: I am using Microsoft 2013 office and Firefox 24

    I don't understand the issue you are having that you need help with. Can you explain it better?
    If you just want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://input.mozilla.org/feedback this link]. (You'll need to be on the latest version of Firefox to submit feedback). Your feedback gets collected at http://input.mozilla.org/, where a team of people read it and gather data about the most common issues

  • Issue copying account assignment from SO to PR

    I have one issue : The SO has Internal order and Profit center information. When a PR is created for the SO it only copies PC but not IO for some SO types.
    Our client uses a Z transaction which releases the requirement + automatically updates the PR information in SO schedule lines. I feel that the requirements release is done using the standard user exit but updation of PR information in sales order is developed in the program.
    Is there any standard customization at SO type or some other place where we define which account assignments get copied from SO to PR ?
    Thank you
    Raghu

    Thanks sir, but I still can't get the point. Our problem is when we copy the document from Sales order to delivery, the discount column which can be found below the 'total before discount' of the SO document has an amount, let say 2% and I expect that if I use the copy to Delivery dcument functionality, the same information must appear to the target document. The problem is after it was copied to DR, the discount has been lost.
    Thanks,
    DY

  • Good issue copy to good receipt

    dear friends,
    i am using SAP B1 2007 A, tell me can i copy the data of good issue note to a good receipt note.
    please tell me, i hope your answer.
    saman
    Edited by: saman_wm on Aug 10, 2011 6:59 PM

    Hi,
    The Goods Receipt function enables you to increase the inventory level in situations that are not a direct result of a marketing document entry.
    The goods issue function enables you to reduce the inventory level in situations that are not direct results of a marketing document entry.
    Since both the window are not related to the marketing documents, the linking of base or target document is not possible from the system.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Security issue copying from local USB harddrives to local laptop.

    This is strange. My boss has a new laptop and is running Windows 8.1 x64 as a Standard user. I copied a bunch of data from my PC(windows 8.1 x64) to a USB harddrive. I put the USB harddrive on her PC and tried to copy it to her Pictures
    folder. I got an error that I don't have permissions...? This stumped me.  If I share the USB harddrive from my PC, she can access it and copy the files to her laptop fine.
    Today, I coped 2 files from my PC to a USB flash drive.  I logged into my bosses laptop as Domain Admin.  After inserting the USB flash drive, I couldn't copy the 2 file from the USB flash drive to the laptop C:\ or even to
    the Documents folders.  Permissions error.
    What am I missing here...?  even different USB HDs...
    Thanks,  Tom...
    Tom Karpowski...

    This is strange. My boss has a new laptop and is running Windows 8.1 x64 as a Standard user. I copied a bunch of data from my PC(windows 8.1 x64) to a USB harddrive. I put the USB harddrive on her PC and tried to copy it to her Pictures
    folder. I got an error that I don't have permissions...? This stumped me.  If I share the USB harddrive from my PC, she can access it and copy the files to her laptop fine.
    Today, I coped 2 files from my PC to a USB flash drive.  I logged into my bosses laptop as Domain Admin.  After inserting the USB flash drive, I couldn't copy the 2 file from the USB flash drive to the laptop C:\ or even to
    the Documents folders.  Permissions error.
    What am I missing here...?  even different USB HDs...
    Thanks,  Tom...
    Tom Karpowski...
    if you format the USB stick with exFAT it should be less problematic compared to NTFS
    its clearly a permissions issue
    Corsair Carbide 300R with TX850V2
    Asus M5A99FX PRO R2.0 CFX/SLI
    AMD Phenom II 965 C3 Black Edition @ 4.0 GHz
    G.SKILL RipjawsX DDR3-2133 8 GB
    EVGA GTX 660 Ti FTW Signature 2 (GK104 Kepler)
    Asus PA238QR IPS LED HDMI DP 1080p
    ST2000DM001 & Windows 8.1 Professional x64
    Microsoft Wireless Desktop 2000 & Wacom Bamboo CHT470M
    Place your rig specifics into your signature like I have, makes it 100x easier to understand!
    Hardcore Games Legendary is the Only Way to Play!

  • XSLT issues

    I have following queries regarding XSLT process...
    1. In my Empty BPEL process I am receiving data through db partnerlink (through polling) and I am converting it through Transform activity. This time I am only validating my xslt through GUI only. At runtime what xml will be generated, how I can see it? Is there any way to output/log it?
    2. I want one more help from you. In xslt code, I need to put some transformation logic eg. if-else according to the specific value, check for null, blank values etc. Somewhere I read that I can do all this validation in java code also. What will be comfortable?
    3. Through TRANSFORM activity, the resultant tags are prefixed with namespace 'ns0'. How I can remove it. Is that possible in the same transform process?
    Please reply for my all queries.

    Hi,
    Below are the answers you need:
    1. For validating the xml against the schema, add a validate activity in the BPEL process after the transform activity. This will validate the xml at runtime. XML can be viewed in BPEL Console instance. You can also view in the opmn logs if the debug level is set to Debug.
    2. Transformation logic can be done by user defined extension functions in java. Ideally java should be used if the logic is generic. The choice totally depends on the requirement.
    3. In xslt, default target namespace prefix will be ns0 if xslt is created using JDev. You can modify the namespace from xmlns:ns0=... to xmlns=... and remove ns0 prefix from the tags. You will see errors if you try to open this in Design mode. However, it works perfectly on the server.
    Regards,
    Deepak Suri

Maybe you are looking for

  • Material Confirmation date in future though the material is in stock

    Dear Gurus, Please tell me why the system is giving the material confirmation date in future though the matl is  available in stock. System creating two schedule lines one for 15/10 (15 oct) and the second one with the confirmation of quantity on 22/

  • ERROR IN TO_DATE FORMAT

    Hi everyone, As you know exists an error: ORA-01855 AM/A.M. or PM/P.M This error gets when you try to execute some query like this: SELECT TO_DATE('01-01-2009 8:01:09 P.M.','DD-MM-YYYY HH:MI:SS PM') FROM DUAL In this query the value of varchar is "01

  • Question about "bluetooth PDA-syn" option?

    HI there, I would just like to ask under system preferences, under bluetooth, under advance, there is an option called "bluetooth pda-sync", in its box, should I check or uncheck this option? what is the option "bluetooth pda-sync" for? what is its u

  • Strange Problem: MenuItem icon is displayed twice

    I have a simplest menu with icons. The problem is that when menu item is  clicked, the icon gets displayed twice(one on top of the other). i.e: The SubMenuItem A1 icon is displayed twice( along the top and left  side) Any ideas about how to prevent t

  • PLEASE PHOTOSHOP HELP

    would someone please be kind enough to help me with a photoshop question.. i am trying to draw a shape...square, rectangle, ellipse...whatever in photoshop when i drag out the shape, it DOES NOT create the shape, it just makes the outline of it, no f