Need help in the XSLT file

Hello

Need help to come up with a construction xsl. Am using SOA 11.1.1.5. I have the underside of the input samples

< root element >

< location >

< Location_id > Location_ID10 < / location_id >

< Location_Code > Location_Code11 < / Location_Code >

State12 < of State > < / State >

< / location >

< location >

< Location_id > Location_ID13 < / location_id >

< Location_Code > Location_Code14 < / Location_Code >

State12 < of State > < / State >

< / location >

< location >

< Location_id > Location_ID16 < / location_id >

< Location_Code > Location_Code17 < / Location_Code >

State18 < of State > < / State >

< / location >

< location >

< Location_id > Location_ID91 < / location_id >

< Location_Code > Location_Code91 < / Location_Code >

State19 < of State > < / State >

< / location >

< location >

< Location_id > Location_ID92 < / location_id >

< Location_Code > Location_Code92 < / Location_Code >

State19 < of State > < / State >

< / location >

< / root >

Here is what I tried for expected output

< ns0:root >

< ns0:Categories >

< ns0:Category >

< ns0:CategoryValue >

< ns0:CategoryValue >

< ns0:Name > visits12 < / ns0:Name >

< ns0:Code > visits12 < / ns0:Code >

< ns0:CategoryValue >

< ns0:Name > Location_ID10 < / ns0:Name >

< ns0:Code > Location_Code11 < / ns0:Code >

< / ns0:CategoryValue >

< ns0:CategoryValue >

< ns0:Name > Location_ID13 < / ns0:Name >

< ns0:Code > Location_Code14 < / ns0:Code >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< ns0:CategoryValue >

State18 < ns0:Name > < / ns0:Name >

State18 < ns0:Code > < / ns0:Code >

< ns0:CategoryValue >

< ns0:Name > Location_ID16 < / ns0:Name >

< ns0:Code > Location_Code17 < / ns0:Code >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< ns0:CategoryValue >

< ns0:Name > State19 < / ns0:Name >

< ns0:Code > State19 < / ns0:Code >

< ns0:CategoryValue >

< ns0:Name > Location_ID91 < / ns0:Name >

< ns0:Code > Location_Code92 < / ns0:Code >

< / ns0:CategoryValue >

< ns0:CategoryValue >

< ns0:Name > Location_ID91 < / ns0:Name >

< ns0:Code > Location_Code92 < / ns0:Code >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< / ns0:Category >

< / ns0:Categories >

< / ns0:root >

But here's what I mean I know there is a problem with xslt, but I'm hard to fix if need help

< ns0:root >

< ns0:Categories >

< ns0:Category >

< ns0:CategoryValue >

< ns0:CategoryValue >

< ns0:Name > visits12 < / ns0:Name >

< ns0:Code > visits12 < / ns0:Code >

< ns0:CategoryValue >

< ns0:Name > Location_ID10 < / ns0:Name >

< ns0:Code > Location_Code11 < / ns0:Code >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< ns0:CategoryValue >

State18 < ns0:Name > < / ns0:Name >

State18 < ns0:Code > < / ns0:Code >

< ns0:CategoryValue >

< ns0:Name > Location_ID16 < / ns0:Name >

< ns0:Code > Location_Code17 < / ns0:Code >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< ns0:CategoryValue >

< ns0:Name > State19 < / ns0:Name >

< ns0:Code > State19 < / ns0:Code >

< ns0:CategoryValue >

< ns0:Name > Location_ID91 < / ns0:Name >

< ns0:Code > Location_Code91 < / ns0:Code >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< / ns0:Category >

< / ns0:Categories >

< / ns0:root >

It is ignored if the previous value same as current as if the previous value even running as I want to nest under the same node, as shown above in the expected results.

Here's xslt I have so far

................

...........................

......

< xsl: template match = "/" >

< ns0:root >

< ns0:Categories >

< ns0:Category >

< ns0:CategoryValue >

< xsl: for-each select = "/ tns:Root - element / tns:Location [not (previous - sibling:tns:Location / tns: State = tns: State)]" >

< ns0:CategoryValue >

< ns0:Name >

< xsl: value-of select = "tns: State" / >

< / ns0:Name >

< ns0:Code >

< xsl: value-of select = "tns: State" / >

< / ns0:Code >

< ns0:CategoryValue >

< ns0:Name >

< xsl: value-of select = "tns:Location_ID" / >

< / ns0:Name >

< ns0:Code >

< xsl: value-of select = "tns:Location_Code" / >

< / ns0:Code >

< / ns0:CategoryValue >

< / ns0:CategoryValue >

< / xsl: foreach >

< / ns0:CategoryValue >

< / ns0:Category >

< / ns0:Categories >

< / ns0:root >

< / xsl: template >

< / xsl: stylesheet >

Thank you.

You use xslt-style in this kind of case of grouping:

Try just below xslt:

http://www.w3.org/1999/XSL/transform.

xmlns:ns0 = "France" >

'State' >

Please answer if it works for you.

Tags: Fusion Middleware

Similar Questions

  • Need help with the batch file command - move all files/folders

    I need help creating a simple batch file that performs the following operations:

    Move all files AND folders in a source folder to a target folder. The source folder will be mklinked with the target folder and an infinite loop can be possible, not sure if any order would be necessary here to avoid this? Executed once A thing, or a thing to stop?

    It comes to free up space on an SSD by iTunes forced location for backups and apps to be physically on another HARD drive, but available as if it were in default location.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Need help updated the VMX file on several Virtual Machine

    All,

    Can anyone help with a problem I'm having?  Here is a brief explanation of what is happening and what we need to solve.

    Recently we found out that we need to add a line in the file VMX of several virtual machines.  In the past, I was able to do this, but would have cold start the virtual machine for the changes to take effect.  Starts cold won't be a problem, because we can program it.

    However, no one knows a way to add this line in the file VMX virtual machines in a cluster.

    Here's the line I need added:

    Devices.hotplug = "false".

    Here is a script that was used earlier (esx 3.0 days) to keep the VM tools updated on reboot.  At this point, if the virtual machine has been turned on, this change could not do through the UI.  However, this script worked to update the .vmx file and then we have cold reboots for the changes to take effect.

    Get-viserver - < Server > - < user > - < password >

    $viview = get-Cluster-name NOMCLUSTER | Get - VM | foreach-object {get-view ($_.ID)}
    $viview | {foreach-object
    $vmConfigSpec = new-Object VMware.Vim.VirtualMachineConfigSpec
    $vmConfigSpec.Tools = new-Object VMware.Vim.ToolsConfigInfo
    $vmConfigSpec.Tools.afterPowerOn = 'True '.
    $vmConfigSpec.Tools.afterResume = 'True '.
    $vmConfigSpec.Tools.beforeGuestStandby = 'True '.
    $vmConfigSpec.Tools.beforeGuestShutdown = 'True '.
    $vmConfigSpec.Tools.ToolsUpgradePolicy = "UpgradeAtPowerCycle".
    $_. ReconfigVM ($vmConfigSpec)
    }

    The exact script can be found in Disable HotPlug

  • need help: enter the flash file in Dreamweaver site with dark background

    Hello
    I entered a SWF in a site dreamweaver with a dark blue background. When you view the site in a browser, there is a white square (the size of the flash file) which flashes for one second before the file begins to load. It is rather ugly and I was wondering if anyone knew how to avoid this white square of flashing to the top.
    I tried already to make the bottom of dark blue table and adding a dark blue square as a background image, but that didn't make a difference.
    If you do not want to see what he does, it is a link to a page: www.billmather.co.uk/portraits.htm
    Thank you in advance for any help or advice you can give me!


    Hey Horus,
    It worked! Thank you very much. Really appreciate your help.
    Have a good weekend,

    Famke222

  • Need help with the advanced file Type changes

    Somehow all my folders of changed files option.  Instead of the folder when you click it, it opens the search.

    I know where and what to change, just do not know how.  Under Tools > folder options > file types, I select "files" and click "Advanced".  Of course, it says 'find '.  I click on 'new' under 'action', I type 'open', but what should I put under "Application used to perform action:"?  It won't let me not leave the field empty.  When I looked to see how it was done in 'file', 'edit' is gray.  I tried to look on other computers, but everyone has Vista, Vista doesn't even have a tab "file type" under folder options and I couldn't find it anywhere else.

    Even if you don't know the answer, if you could look to see what it says on your computer and let me know.  Like I said could not find on Vista, I am running XP.

    Yes, I know that I can do a right click on the folder and open it, and that's what I do.  It really happened to be a pain in the you-know-what.

    Any help would be greatly appreciated.

    I've reposted under the topic "Pls! I just need someone to look at their own computer! »

    If you are interested in the solution is there.

  • Need help placing the Flash file in Captivate...

    I have a few short animations in Flash, I want to put it in Adobe Captivate. They place well and play very well. But I wanted to know if it is possible to have the last image of the animated program for the rest of the captivate slide. I use 6 Captivate and Flash Pro CS6. Thank you!

    http://flashexplained.com/ActionScript/controlling-the-timeline-with-ActionScript/

  • Speed/performance of my mac mini (mid-2010) is very slow. Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.

    My mac mini (mid-2010) speed/performance is very slow - think of it as a result of letting my kids do "whatever" about it in recent years.  Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.  You will also need to get data out of old PowerBook G4.

    < object edited by host >

    We are users like you.  Search locally by using something like Yelp or similar

    http://www.Yelp.com/search?find_desc=Apple+repair & find_loc = Chicago, + IT & start = 0 & ortby = rating s

    or read a few links which may be relevant on this forum about the slow mac mini

    http://BFY.tw/5C63

  • How to find the number of days between 2 date elements in the XSLT file

    Hello

    I need to calculate the number of days between 2 date elements (type xs: date). Can you please direct me as to how I can do the same thing.

    I work in 11g and using XSLT 1.0. I tried several options but yet to get a solution for this. I think that this can be done also using XSLT 2.0, but who has not worked for me.

    Can someone please help with this problem, thanks in advance!

    Thank you
    Anju

    Hello

    Have you seen this message?
    Re: Get the Date difference between 2 values of date in days

    You can do in the XSLT file since the dates are in ISO 8601 format.
    http://www.w3.org/TR/NOTE-datetime

    Here is a sample XSLT...

    
    
    
    
    
    
    
    

    The XSLT above will result in * 4 * for the next entry...

    
    2012-01-11T00:00:00.000-05:00
    2012-01-15T00:00:00.000-05:00
    
    

    You can test this example here...
    http://xslttest.appspot.com/

    I hope this helps...

    See you soon,.
    Vlad

    It is considered good etiquette to the answerers rewards with points (as "useful" - 5 pts - or 'correct' - 10pts)
    https://forums.Oracle.com/forums/Ann.jspa?annID=893

  • I need help to the new photo of my photos from iphoto on El Capitan. Any help would be appreciated.

    I need help to the new photo of my photos from iphoto on El Capitan. Any help would be appreciated.

    To migrate your iPhoto library to Photos for Mac, drag it in the Photos icon in the Dock.  Photos will read the iPhoto library and create a new library of pictures of him.

    Is your photo library in iPhoto on an external drive? The migration will work that if the external hard drive Mac OS extended (journaled) file system.  If the library is on a disk with a different file system, Ministry of the environment of the library of a correctly formatted disk.

  • Need help with the blue screen issue "NAVEXI5. SYS, PAGE_FAULT_IN_NONPAGED_AREA ".

    Original title: need help with the blue screen issue
    My computer turns saying a blue screen: a problem has been detected and windows were shut down to prevent damage. The problem seems to be caused by the following file: NAVEXI5. SYS PAGE_FAULT_IN_NONPAGED_AREA he seems to have a different error whenever he turns to a blue screen. Can someone help me please.

    Hello

    1. Since when are you facing this problem?
    2. you remember to make changes to the system?
    3. do you get an error with this error code?

    I suggest to unplug external devices such as printer, scanner, etc. that are plugged into the system, and then restart the system and check if the problem persists.

    Method 1.
    I suggest you to do a check disk from the recovery console and check if the problem is resolved. Follow the steps mentioned below.
    a. start into the recovery console using the XP CD. Follow the steps mentioned in the article below.
    Description of the Windows XP Recovery Console for advanced users
    http://support.Microsoft.com/kb/314058
    b. perform a disk check.
    How to perform disk error checking in Windows XP
    http://support.Microsoft.com/kb/315265

    Method 2.
    I suggest you to start with the XP CD and then do a system restore. Follow the steps mentioned in the article below.
    How do I recover from a corrupted registry that prevents Windows XP startup
    http://support.Microsoft.com/kb/307545

    I hope this helps.

  • When I connect to Photoshop CC I still can't go to the program - I need to change the host file?

    When I connect to Photoshop CC I still can't go to the program - I need to change the host file?

    Please follow it mentioned below as follows:

    1 complete the process / Task Manager tasks in the same order, as mentioned below the Manager tasks. See, Open the Task Manager

    • Creative cloud
    • Basic timing & sync to basic support
    • CC library & process CCX
    • Adobe Common Desktop
    • Adobe update daemon
    • Broker CIB Adobe
    • After that, everything that said adobe on it do a force quit for her

    2 - C:\Users\\AppData\Local\Adobe\ MAA UPDATER and two OOBE (App data & Program Data is hidden folder please see, Show files and folders hidden in Windows 7, 8.x, 10, or Vista)

    3 reset the hosts - IP addresses redirected file may prevent you to complete the authorization process.

    4 - CUT any security software installed with firewall system, also if your having any browser Add On installed for blocking advertising that turn off too.

    These changes are temporary you can restore these changes back to normal once your creative cloud app is running *.

    5 - raise the cloud creative app and connect

    Let us know if that helps.

  • Hello need help with the opacity mask.

    Hello need help with the opacity mask. I hope someone out there can help

    I inherited a logo that appears to use a Logo of OM has a shape with a grad. This grad at first sight is not used in the Grad scheme and there is not editable.  Looking at the transparency palette I find an OM (pic1) output option. If I choose what the grad on separates it from the page of the form, that is from there I can change/remove as required (Note2).

    However, sometimes (he did no change), I'll be back to the same original form and output option is grayed out and is no longer available. Or I go to the similar shape that has the same treatment and I can't go out OM (pic3)

    The only difference is the thumbnail in the transparency palette, which is strong in pic1 and rated on pic3. What Miss me?    I'm not clear what the advantage is simply OM using the Grad palette to apply a grad in my form, but until I can get rid of OM who is there, I can't comfortably apply to the grad I want.

    The white gradient LHS I have no problem with. I choose fortunately only and each time get the possibility of release of OM.

    Screen Shot 2015-08-06 at 12.26.48.pngScreen Shot 2015-08-06 at 12.00.10.pngScreen Shot 2015-08-06 at 12.01.16.png

    The other thing weird. When I select the white gradient. Sometimes, the exit option is in the palette without going through the drop-down list (Fig 4).

    Other times seems not that OM has already been applied, because the palette gives me the ability to mask rather than liberation (5 photos). Until I go to the drop down and then I find Release is an option after all.

    What is the difference here?   Not much of a problem, because either way I can release OM to be able to change the grad.

    The file is passed through several hands and play anywhere to try to resolve issues, and many stops and save slot, so something along the line was of course done a logo and not the other because of the difference, but I can't for the life of me see what that.

    Screen Shot 2015-08-06 at 12.44.21.pngScreen Shot 2015-08-06 at 12.44.36.png

    I hope someone can help. Very appreciated


    See you soon

    Dave

    Dave,

    I've (mis) understanding the issues, you can account for the box to the right in the main palette transparency (called thumbnail) here.

    Illustrator help | Transparency and blending modes

    represents the masking objects.

    Some of your screenshots show no object mask, so it only is not really a mask even if do the opacity mask has been clicked and there seems to be one in the layers palette, wherever you look.

    I think that it is perhaps the issue.

  • I need help you rename a file using regular expressions in Bridge.

    Hello

    I work at a University, and we are working through files for our theses and Dissertations. We were renamed to make them more coherent. I wonder if there is a regular expression that could help in this process?

    Examples come from current file names;

    • THESIS H343G 1981
    • Thesis of 1981 g996e
    • THESIS-1981-A543G

    I just need to change the actual file names. how they are formatted.

    Where appropriate on the thesis.

    Hyphens (-) in all white space.

    First letter, last letter is lower case on appeal no (H343g)

    If the list above should look like;

    • Thesis-1981-H343g
    • Thesis-1981-G996e
    • Thesis-1981-A543g

    I've seen people do some pretty cool things with regular expressions! Any help would be greatly appreciated. Thank you!

    You would be better to use a script to do this as an example because I don't think it would be possible in the new name of bridge.

    Using ExtendScript Toolkit or a text editor to copy the code in any event and save it to sub Filename.jsx

    This must be recorded in the appropriate folder. It is located by going to preferences in Bridge, select Startup Scripts, this will open the folder where the script should be saved.

    Once this is done close and restart Bridge.

    Usage: Goto the Tools Menu and select Rename PDF files

    Be sure to only test the code with some files copied to a separate first folder to make sure it's what you want.

    The script will make all PDF files in the selected folder.

    #target bridge
    if( BridgeTalk.appName == "bridge" ) {
    renamePDFs = MenuElement.create("command", "Rename PDFs", "at the end of Tools");
    }
    renamePDFs.onSelect = function () {
    app.document.deselectAll();
    var thumbs = app.document.getSelection("pdf");
    for( var z in thumbs){
    var Name = decodeURI(thumbs[z].spec.name);
    var parts = Name.toLowerCase().replace(/\s/g,'-').match(/(.*)(-)(.*)(-)(.*)(\.pdf)/);
    var NewName = parts[1].replace(/^[a-z]/, function(s){ return s.toUpperCase() });
    NewName += parts[2]+parts[3]+parts[4]+parts[5].toUpperCase().replace(/[A-Z]$/, function(s){ return s.toLowerCase() });
    NewName += parts[6];
    thumbs[z].spec.rename(NewName);
        }
    };
    
  • I need help on the colors in first pro.

    I need help on the color in general information.

    http://www.YouTube.com/watch?v=vLEGtzyZ0Fs

    I made this video in AfterEffects and exported in color 16-bit png sequence.

    I then imported in first pro and added audio and some titles at the end.

    Now, I want to do is have a perfect version that I could watch on my pc.

    I used Mp4 h 264 to compress the video and it is on youtube.

    I think that this compressor support only 8-bit color because there are bands in the sky.

    Now, I have to make a version which is of very high quality that I can watch on my pc... I tried several codecs and it does not work.

    The problem is so long that there something on top of the png sequence in premirere pro as an image or something, it's like

    the displacement of the image in 8-bit color mode.

    It's using Avi Lagarith lossless codec

    Before there is a picture on top...

    ImageA.png

    Just after that, the image appears... As you can the there are a few bands on this image.

    I know it's subtle, but I want to know why this is happening.

    ImageB.png

    Is there something I'm missing... I took much too long to try to fix this.

    I ended up using the Quicktime animation codec for my video. The problem does not occur with this one, and I can't see any decline in the quality of the image.

    Now, I have a file compressed at low cost for online viewing and a huge file that I can watch on my computer.

    On a side note, can you guess how many hours it took for my computer make the png of this video sequence... 12 HOURS!

    Should I get a new computer...

    Thanks for the reply!

  • Making the ear of corn and need help with the ball.

    I do some corn on the COB for an illustration and I need help with the texture of the ball. I've been slowly making progress with gradient for kernels mesh, but I can't seem to recreate the look of the ball at all. I tried to recreate it in a rectangle by using the option in the menu object (1 row, 50 columns) gradient mesh and I'm trying with the fusion in object mode, but not lucky yet. Can someone help to put me on the right track to make the texture:

    http://images.clipartof.com/sweet-corn-on-the-cob-with-husk-royalty-free-vegetable-stock-photo-by-kennygadams-4501068853.jpg

    http://image.shutterstock.com/display_pic_with_logo/660550/660550,1298544740,8/stock-photo-ripe-corn-vector-illustration-on-white-background-71847955.jpg

    http://static5.depositphotos.com/1012047/533/v/950/depositphotos_5336961-Corn-oil.-Stylized-drop-of-oil-and-corn-cob..jpg

    I've been slowly making progress with gradient for kernels mesh, but I can't seem to recreate the look of the ball at all.

    Tank,

    You have published three images stylistically very different. The first is photographic and call probably (but not necessarily) for graduates of mesh. The other two are graphical treatments (and frankly, they're both rather flat; lack of depth).

    Illustration style extends the range of cartoonish in sketchy photo-realism and all the rest. The problem is you didn't show your own attempt so that anyone can have an idea of what you're trying to achieve the stylistic point of view.

    I just need to put in place so that the final step does not appear the whole box. The problem now is trying to make the style of the good brush to reproduce the effect...

    You seem to think you have to build a kind of linear construction and then find a way to reshape the shape of each part of the leaf. Yes, you pouvez approach it this way, but Illustrator users has often tend to be what aunt Molly would call "too clever by half."

    Not everything must be something semi intelligent auto or complex and tedious consruct involving brushes, envelopes, masks, etc, etc. Much can be accomplished by thinking that he just thanks to measure you draw directly economic paths and constructions, which take no more time (often less) and result in very tidy, simple files. Again, a lot depends on what you are trying to achieve the stylistic point of view. But here's an example that only took a few minutes to draw:

    If the above consists of:

    Three roads closed, 8 points each, with ordinary linear degrees

    Three mixtures of open path with three anchor points for each key path

    Six paths closed for shadows / highlights, with 19 points in total

    Mixtures being directly from the paths drawn comic forms, the spacing of the veins 'automatically' and intuitively follows the width from point of view of the worksheet.

    Rather than to build a boilerplate brush, colouring and the weight of each of the three main paths of the vein mixtures can be set individually at any time, simply directly by selecting the key path.

    JET

Maybe you are looking for