Mapping 2 layers to 3 layers

Is it possible to map a 2 layers XML to 3 layers XML ?
The purpose is merge the "option" into "order_detail" (the relation key is "order_detail_id")
<b>Source:</b>
<order_header>
    <order_detail>
        <order_detail_id>order_detail_1</order_detail_id>
        <order_detail_name>order_detail_1</order_detail_name>
    </order_detail>
    <order_detail>
        <order_detail_id>order_detail_2</order_detail_id>
        <order_detail_name>order_detail_2</order_detail_name>
    </order_detail>
    <option>
        <order_detail_id>order_detail_1</order_detail_id>
        <optA>opt1A</optA>
        <optB>opt1B</optB>
    </option>
    <option>
        <order_detail_id>order_detail_2</order_detail_id>
        <optA>opt2A</optA>
        <optB>opt2B</optB>
    </option>
</order_header>
<b>Target:</b>
<order_header>
    <order_detail>
        <order_detail_id>order_detail_1</order_detail_id>
        <order_detail_name>order_detail_1</order_detail_name>
        <option>
            <optA>opt1A</optA>
            <optB>opt1B</optB>
        </option>
    </order_detail>
    <order_detail>
        <order_detail_id>order_detail_2</order_detail_id>
        <order_detail_name>order_detail_2</order_detail_name>
        <option>
            <optA>opt2A</optA>
            <optB>opt2B</optB>
        </option>
    </order_detail>
</order_header>

Thanks all replies. But it still doesn't work.
I checked <a href="/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool:///people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool,
but it's "split", I need "split+merge" (merge the option into order_detail)
And I also use this mapping
OrderDetail -
> OrderDetail
option ---> splitByValue ---> options(target side)
optA -
> splitByValue -
> optA
optB --> splitByValue --> optB
But when I have many "order_detail" elements, optA and optB only appear in first "order_detail"
Sorry, the structure in my first post is not very correct, I put it here again, could you help   to check it ? thanks.
<b>Source:</b>
<order_header>
    <order_detail>
      <item>
        <order_detail_id>order_detail_1</order_detail_id>
        <order_detail_name>order_detail_1</order_detail_name>
      </item>
      <item>
        <order_detail_id>order_detail_2</order_detail_id>
        <order_detail_name>order_detail_2</order_detail_name>
      </item>
    </order_detail>
    <option1>
      <item>
        <order_detail_id>order_detail_1</order_detail_id>
        <optA>opt1AA</optA>
        <optB>opt1BA</optB>
      </item>
      <item>
        <order_detail_id>order_detail_1</order_detail_id>
        <optA>opt1AB</optA>
        <optB>opt1BB</optB>
      </item>
      <item>
        <order_detail_id>order_detail_2</order_detail_id>
        <optA>opt2A</optA>
        <optB>opt2B</optB>
      </item>
    </option1>
    <option2>
      ... (the schema is almost the same as option1)
    </option2>
</order_header>
<b>Target:</b>
<order_header>
    <order_detail>
      <item>
        <order_detail_id>order_detail_1</order_detail_id>
        <order_detail_name>order_detail_1</order_detail_name>
        <option1>
          <item>
            <optA>opt1AA</optA>
            <optB>opt1BA</optB>
          </item>
          <item>
            <optA>opt1AB</optA>
            <optB>opt1BB</optB>
          </item>
        </option1>
        <option2>
        </option2>
      </item>
      <item>
        <order_detail_id>order_detail_2</order_detail_id>
        <order_detail_name>order_detail_2</order_detail_name>
        <option1>
          <item>
            <optA>opt2A</optA>
            <optB>opt2B</optB>
          </item>
        </option1>
        <option2>
          ... (the schema is almost the same as option1)
        </option2>
      </item>
    </order_detail>
</order_header>

Similar Messages

  • My photos are not showing up as layers in the layers panel, only as one layer, so I can't make any changes to the layers.  Does anyone know why this is happening?  Am I downloading them from my camera wrong?

    My photos are not showing up as layers in the layers panel, only as one layer, so I am not able to make changes to the layers.  Does anyone know why this is happening?   Am I downloading them from my camera wrong?  I have watched the video and the photos don't open that way on my layers panel. Any help would be appreciated, I would like to edit out the background and turn it a different color.

    barba87623950 a écrit:
    My photos are not showing up as layers in the layers panel, only as one layer, so I am not able to make changes to the layers.  Does anyone know why this is happening?   Am I downloading them from my camera wrong?  I have watched the video and the photos don't open that way on my layers panel. Any help would be appreciated, I would like to edit out the background and turn it a different color.
    Photos from cameras or scans have only one layer (the 'background' layer).
    You can start with that 'background' layer and duplicate it or add other layers in the editing process. For instance you can make a selection of a subject and put it on another layer; a common use is to desaturate the 'background' and to keep the color in the selected subject in your newly created layer.

  • Is there a way to color layers and sub layers in Fireworks?

    Hello all,
    I'm trying to find a way to colorize the layers and sub layers in the layer panel in Fireworks CS5.5, like you can in Photoshop. I work in a small web design company doing GUI design and when I pass the files on to the developers they are asking for easier ways to sort the content of various layers and sublayers at a glance. In Photoshop you can apply a color to a layer or group in the layrs panel and that works great for an internal labeling scheme. Is there anything like this built into Fireworks or are there any add-ons from a 3rd party etc. that would allow this? It wold save a lot of trouble and time for us. I can't find anything anywhere about it, but it may be that my search terminology is poor. I'm not sure how you would word a search for this kind of feature. I keep getting information about applying colors to shapes etc rather than colorzing the labeling of layers panel itself.
    Thanks in advance for any help or information!

    Thanks for the information,
    I was relatively certain there wasn't a native way to do this. I was hoping maybe someone had created a plug-in but as you say, I could see where it would be very difficult to modify the internal workings of the software like that.
    I went ahead and put in a feature request per the link you provided... maybe someday that will do some good haha! I use sublayers and pages currently and have on a few occasions used states. I have a few options that are open to me if it were just me doing the work but I work with a couple developers and they know how to get around in Fireworks enough to make a slice and select needed objetcs (as long as I group complex shapes and mult-tier effects) but that is about all they do and are willing to know about "design" software lol! They like the sublayers because I think it's similar in behavior to the database and coding software they use. I have convinced them of the beauty of pages for alternate colors and versions of the same site but that is about as far as they are willing to go right now.
    They want to mainly be able to quickly turn off specific text and certain effect layers as needed so they can sort slicing faster and see where the desired objects and layers are at a glance. We've been using sub layers to break things up between these components but they aren't as happy with that because it still means often having to read the names on the layers palette and when you have an extensive project with many items in the layers panel, it gets hard to read at times. It also addes even more folders to sort through becuase of the high level of specicifity. It's not a deal breaker, just a way to speed up the workflow and keep tension down haha! The onion method sounds interesting but I'll have to demo it first and see how easy it is to fool with hiding various combinations... you know how "coders" can be sometimes
    Thanks for the input! Here's to hoping Adobe thinks this feature is worth it in the future! Can't see where it would be terribly difficult to add!

  • How to Apply adjustment layers to multiple layers that have different blending modes ...

    How to Apply adjustment layers to multiple layers that have different blending modes  and keep the colours the same as the adjusment done?
    I work in Animation painting Backgrounds.  My files are sometimes upwards to 200+ layers.
    I will use adjustment layers to quickly balance colours and constrast on top of those many many layers.
    The only way that I know of how to apply adjustment layers it to every single layer  ( by applying I mean I need to get rid of the adjustment layers because we cant use them in production but i need the new colours be applied to all layers underneath ) in a psd is to manually do it By duplicating the adjusment layer 200+ times and  then merging each layer to one of those adjustment layers so that that layer can take the adjustment layers effect permanently.
    The issue is that Within Those 200 layers I have some layers set to Multiply or OVERLAY.    IT obviously wont apply the adjustment layer properly to those layers because those layer blend mode affect the layers under them. The colour wont be the same anymore in the spots that had the multiply blended mode.
    HEres an example of a simple File.  to show what i mean.
    https://dl.dropboxusercontent.com/u/3408266/ball%20layers.jpg
    https://dl.dropboxusercontent.com/u/3408266/ball.psd
    I have 2 adjustment layers up top.  I need to get rid of them by applying them to each layer! I cannot merge any of the layers. We need all those layers for production.
    I can apply the adjustment layers manually and this works GREAT for all Layers set to normal.  THey take on the colour change just FINE.
    However, The issue is that layer 6 and layer 4 are both set to mutiply and this screws up the colour once i apply the adjustment layers to each layer manually...
    How can i apply my adjustment layers to a file like this with some layers being set to multiply while keeping the layers exactly the same configuration  and The new colour taking efffect exactly how i looks before i apply the adjustment layers?
    Now the simple solution is to merge the multiply layers to the layer that it affects HOWEVER I NEED those multiply layers to be seperate! 
    I'm assuming what I want to do is impossible? Hope this isnt confusing.  As far as i know its impossible to do what I want it to do.  but just wanted to ask and see.
    I would REALLY REALLY love to talk to a adobe programmer/ technician/pro working at adobe about this.  Theres just no way to get in touch with anyone... =(
    any thoughts ?

    Sure... if you want to put it that way. Either way its not the desirable outcome. 
    its just frustrating that theres no way to apply adjustment layers to hundreds of layers while keeping them in the same configuration ( blendmodes,  layer order ,  without merging)  while keeping the same end result.
    works great if all your layers are set to normal though..    But I really need to keep shadow layers seperately and be able to adjust on the fly aswell as apply those adjusment to all my layers.
    I suppose that just isnt possible.   I understand the math required for this would be tremendous/ complicated if something like this would ever be implemented.  Would be nice if adobe could come up with some solution to this.  Its really a huge issue in my work flow and theres no alternatives.    How else can I adjust colours to 100+ layers  with a few clicks that lets me play around the the adjustment until im happy with the outcome.    Really wish i could adjust and the quickly apply that adjustment to all my layers regardless of blend mode.   LIke If the Layers with blendmode could somehow take the properties of the adjustment layer and keep adjusting those layers undereathe on top of that blended mode that its doing...   

  • Apply adjustment to affect all layers when xport layers to files

    Hi.
    Have a set of sequence images opened with Bridge and placed in photoshop as individual layers. I´ve croped the image and
    applyed som adjusments eg. curves etc. Now i want to save the layers as files from the file-scripts having the layer adjustments affecting
    my layers before saving.
    /Tedski

    Well, you don’t need it anymore, but I still gave a Script that saves the pixel-layers as separate files with the Adjustment Layers flattened in a try; only for psd, though, so no format-selection.
    If you want to give it a try …
    // create psd-copies of  all pixel-layers with adjustment layers applied to them;
    // thanks to xbytor for the regexp;
    // 2010, use at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
      var thedoc = app.activeDocument;
    var docName = thedoc.name;
    var basename = docName.match(/(.*)\.[^\.]+$/)[1];
    // get path;
      try {var docPath = thedoc.path}
      catch (e) {var docPath = "~/Desktop"};
    // duplicate;
      var myDocument = thedoc.duplicate ("thecopy", false);
      var theLayers = hideAndCollectPixelLayers(myDocument);
      var theArtLayers = new Array
      if (theLayers.length > 1) {
    // show one layer and save psd;
        for (var m = 0; m < theLayers.length; m++) {
          var aLayer = theLayers[m];
          aLayer.visible = true;
          savePsd (myDocument, aLayer.name, docPath, basename);
          aLayer.visible = false;
    // close duplicate;
      myDocument.close(SaveOptions.DONOTSAVECHANGES)
    ////// function to collect all pixel-layers and hide them //////
    function hideAndCollectPixelLayers (theParent) {
    if (!allLayers) {
    var allLayers = new Array}
    else {};
    for (var m = theParent.layers.length - 1; m >= 0;m--) {
    var theLayer = theParent.layers[m];
    // apply the function to layersets;
        if (theLayer.typename == "ArtLayer") {
    // process pixel-layers;
          if (theLayer.kind == "LayerKind.GRADIENTFILL" || theLayer.kind == "LayerKind.LAYER3D" || theLayer.kind == "LayerKind.NORMAL" ||
          theLayer.kind == "LayerKind.PATTERNFILL" || theLayer.kind == "LayerKind.SMARTOBJECT" || theLayer.kind == "LayerKind.SOLIDFILL" ||
          theLayer.kind == "LayerKind.TEXT" || theLayer.kind == "LayerKind.VIDEO") {
            theLayer.visible = false;
            allLayers.push(theLayer)
        else {
    allLayers = allLayers.concat(hideAndCollectPixelLayers(theLayer))
    // this line includes the layer groups;
    // allLayers.push(theLayer);
      return allLayers
    ////// function to save psds //////
    function savePsd (myDocument, layerName, docPath, basename) {
    // this clause changes the name if a file of that name exists in that location;
      while (File(docPath+'/'+basename+"_"+layerName+".psd").exists == true) {
        layerName = layerName+"_"+"1"
      var thecopy = myDocument.duplicate (thecopy, true);
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = false;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    thecopy.saveAs((new File(docPath+'/'+basename+"_"+layerName+".psd")),psdOpts,true);
    thecopy.close(SaveOptions.DONOTSAVECHANGES)

  • Illustrator CS6 Exporting ai layers to Photoshop layers

    I have some artowrk that I need to convert from .ai layered file to a Photoshop layered Psd file. I tried a few differnt ways unsuccessfully, any help?
    R

    Let me explain a bit more, the ai document is a map with a layer of pins and a layer of pins with a rectangle area which has text.
    My plan was to convert to Photoshop so each would be on a layer.
    when I click on each area I get a bounding box around the area and I'm ablre to move it so I know its on its own layer.
    What do you mean about a no fill / area?
    I troed to export the layers one a t a time as well but I only get the layer and white background on one layer
    R

  • Photoshop Layers to Fireworks Layers

    So I just downloaded Fireworks CS6. I have not used Fireworks in a few years, but I was hoping integration with Photoshop was much smoother by now.
    I have a PSD with a background and about 50 text layers that I want to open in Fireworks so that I can export each layer individually along with the background and use save for web compression. Sadly, Photoshop does not allow either of those things in its export layers to files script.
    However, when I open my PSD in Fireworks, the layers do not come in as layers, they come in as SUBlayers. This is quite baffling to me. Why on earth would Adobe program such nonsense? If I open a PSD in Fireworks why would I want Photoshop layer to EVER be brought in as sublayers unless I actually put them in a layer group in Photoshop?
    So then I looked for an option in Fireworks to make all sublayers into individual layers, but I could see no way of doing this. Can anyone please help me figure this out.

    I can understand your missing ImageReady; that seems to be a thread that pops up with some regularity.
    But I've got a tip for you: Be sure that everything in your original Photoshop file is grouped. Period. If anything is not in a group, then assign it to one. If you do this, the file will open in Fireworks as a series of layers instead of as a series of sublayers.
    Keep in mind a few key differences between Photoshop and Fireworks. Photoshop uses a "layer" model where "groups" (i.e., folders) are optional; Fireworks uses an "object" model where "layers" (i.e., folders) are required. If you have no groups in your Photoshop document, it'll import into a single default layer in Fireworks. Add a few groups to your Photoshop document, but leave a few things ungrouped, and Fireworks will still require a layer to contain those ungrouped items, hence the introduction of sublayers to accomodate the existing groups.

  • Is there a way to clip adjustment layers to multiple layers??

    When you click on the "Clip to layer" button in the Adjustments panel it will only clip the adjustment layer to the layer directly below the selected adjustment layer.
    I'm wanting to have an adjustment layer 'affect' (clip to) a couple of layers below it, but not ALL layers below it. Is there a way to do this??

    Yes.
    Group the layers together (select them, then Layer - Group Layers or Ctrl-G), then change the mixing mode of the group from "Pass Through" to "Normal".
    Now clip an adjustment layer to the topmost layer in the group and it will affect all the layers in the group.
    -Noel

  • Merging layers with adjusment layers

    I need to merge 2 adjustment layers with 2 image layers. When I do, the look changes. Are there ways to do this without changing the look? I have attached a screen capture of the layers affected. Additionally the "Stars" layer has a "Screen" blend mode. This is on a Mac.
    Thanks in advance for any help.

    (grr... wish I could edit posts using my iPad)
    To view at 100% just double-click on the Zoom Tool or go View>Actual Pixels (100%). That way every pixel in your image will be represented by a monitor pixel.

  • Layers (pdf layers to illustrator layers)

    I currently am using Acrobat 7.0 Professional and Illustrator CS2, the pdf has 3 layers and I'm trying to open the file in Illustrator and retain the layers, but when I open the file it converts to one layer.  Do you know how to retain the layers when importing into Illustrator CS2?
    Vicky

    Unless the PDF was saved with Illustrator Editing Capabilities turned on, it is not possible for you to recover the layers. In Acrobat the layers are called something else (Optional Content Groups-although they correspond to AI layers) and are not readable in AI. You will probably have reconstruct the layers.

  • How to merge adjustment layers to several layers and export layers to files

    Hi!
    I have now exactly the same problem as below with over 1000 images, I have saved them in .psd that has over 100 layers each. On top of those there is curves and levels layer that affects every layer below. I want to save all images to .jpg for videoedit with those curves at least. I don't want to merge same curves 100 times. Is there a solution in phothoshop cs5 or cs6 available? Would save alot of working hours. All I have got by this far is blank white images of adjustment layers and non adjusted jpg-files.
    This discussion was opened in 2010 and I quess this is same problem:
    How to merge adjustment layers to hundreds of layers?
    Jul 28, 2010 10:38 AM
    Say I have a photoshop File with 100 layers.  And say I created 3 adjustment layers on top of those 100 layers to get the adjustments that i want for those layers.   I'm happy with the adjustments but Then I NEED to merge those 3 adjustment layers to ALL those 100 layers.   Is there a way to easily permanently apply the adjustments to each of those layers without having to do it manually?     I absolutely need to merge the adjustments to the seperate layers because of how the layers are being used in a seperate 3d program.   
    So far what I've been doing is duplicating the adjustment layers for each layer and merging them to said layers separately.. Anyone have a better way? I wish I could just right click the adjustment layer and Tell it to merge to everylayer it affects  or apply to every layer underneath it!
    Anyone?
    Thanks!
    Thanks alot if u solve this!
    -Anne

    first
    doing action on one photo only with any effects or filtters .
    second
    doing Droplet  = File > Automate > Create Droplet.
    for more details with pictures here
    http://www.absba.org/showthread.php?t=1172143

  • PDF Layers to Illustrator layers

    Hi,
    Is it possible to open a PDF file with layers in AI and preserve the PDF layers as layers in AI?
    Is it possible to do the other way round too?
    Export an AI file with layers as PDF and preserve the layer structure?
    Thanks,
    Priya

    Because Illustrator is not a pdf editor you won't be able to open a pdf with his layers preserved without a extra plugin, Esko has a plugin that supports this and more.
    Is you save a pdf as at least a 1.5 out off Illustrator, the Illustrator layers will be in the pdf.

  • Layered InDesign to Layered Illustrator? Photoshop? (CS4)

    Howdy!
    Is there any (relatively) simple way to get a layered InDesign file into a layered Illustrator or Photoshop file?
    I'm hoping for something better than copy/paste each layer.
    Thanks in advance!
    -Ted

    You MIGHT have luck with exporting a Layered PDF and opening that in Illustrator, but don't expect miracles, or flowing type, or even everything where it belongs. Illustrator is not a general purpose PDF editor and will only give really good results if the PDF started life in Illustrator.
    As far as I know there is no way to get a layered file into Photoshop in layers, or in any sort of editable condition, for that matter.
    Peter

  • PSE7 Newbie - Cropping in layers affecting all layers.

    OK,
    I am going to have several questions regarding this project, which is to select several photos in the Organizer, move them to the editor, crop and resize the photos and arrange them on a page, then add some text to create a page in a photo album.  I don't want to use the Photo Album offered by Adobe, I want to learn by doing it myself.  (Actually this is my wife's project and I am trying to show her how to do it -- and as usual, she asks me more questions than I have answers for).
    I haven't gotten any responses from my earlier post asking for advice on Moving Photos from Organizer to the Editor, and a I was hoping that someone would clue me in on what I was doing -- like whether what I was doing was right or wrong -- and maybe that would have an effect on my next question.
    Which is, when setting up layers for my photo album page, when I crop a photo on one of the layers, it reduces all of the layers to the size of the cropped image -- and I lose everything so to speak.
    Am I doing something wrong or is it not possible to crop on a layer without affecting the whole image.  Should I be handling this another way, like doing all of my cropping before I create the layer or is there some secret I haven't discovered yet.
    Ron in Round Rock

    Terri, thanks for the response.
    Yes, I do know that I can get pictures directly from the Editor.
    But no, actually my question was that I was trying to understand the Organizer / Editor interaction.  I have read that if you pass pictures to the Editor via the Organizer, they are automatically backed up or copied (somehow) -- so if you mess up in the Editor, you won't be accidentally destroying the original.  This sounded like a pretty safe thing to do.
    I am just trying to figure out how that works.  When I get to the Editor via the Organizer, the bunch of pictures I selected in the Organizer appeaqr in the Pictures from Organizer Bin.  I think I understand that -- and these are the pictures I want to use in different layers in my Editor session.
    However, all of the pictures I selected in the Organizer are also Opened as separate edit sessions in the Editor (I am still trying to figure out what these Editor sessions are called; i.e. how do I refer to them).  I am unsure if this is a good deal because it is not what I wanted to happen (at least I wish I was given an option on this).
    So if I want a 2nd photo on a layer, do I drag the photo up to the in-process Editor session from the Pictures from Organizer Bin or from the Open Files Bin.  Both seem to work, but I am sure one or the other is the more correct way to do this.  I would like to understand the differences between the two actions.

  • Hidden Layers vs Guide Layers

    I often have things on a layer that I don't want to see while
    I'm working on another layer and frequently testing and tweaking
    and I used to just have those hidden in the timeline and they would
    publish. And if I didn't want a layer to publish, I'd make it a
    guide. In CS3 it seems that those hidden layers won't publish
    (though at times I've had them publish for me in certain files, but
    I don't know why).
    Is there a setting I can choose to make hidden fields publish
    like they did prior to CS3?

    In the publish settings you can select "export hidden layers"
    ,,, I catch myself doing the same thing you are used to...lol. Id
    hide layers and forget that I selected not to export hidden layers
    and think I broke something.

Maybe you are looking for

  • Statspack Problem(Please Help)

    Hi, I got the below error from Statspack report run. It runs after every one hour and the database version is 9.2.0.8. Please help how to resolve it. ERROR: Database/Instance does not exist in STATS$DATABASE_INSTANCE ERROR: Begin Snapshot Id specifie

  • "Save as" Option in Notepad

    I am opening a file in Notepad by .. Runtime.getRuntime().exec("Notepad.exe "+logPath); this opens the specified file.. but when i edit the file and try to choose "Save as " option it gives Common Dialog error(0x3002). could any please help me solve

  • Email Moderation Error

    Hi, I am having this issue as a moderator. when someone wants to send a message to a certain group in my company, the email comes to me first, i then decide whether to approve the message or not. when i click on accept i receive the following error;

  • Email thru Reports 3.0

    Pls tell me how to email the reports from Reports 3.0 Thanks in advance Regards Akshey

  • USB hotplug not working.

    I realised today that on both my Arch boxes USB storage doesn't hotplug.  One box is a laptop with a new fresh, un-played-about-with, Gnome 3 installation.  The other is my main workhorse that has had Arch on it forever, but I often boot into Mint or