Any function like While in XSLT

Hi All,
Do we have any function in XSLT which works like while..
I mean when some condition is violated it should come out of the loop..
Regards
PavanKumar.M

Hi Shanmu,
Thanks for the reply..
I am not trying to do the generation but i am trying to do transformation based on a condition.
Below one is my requirement..
we have an XML like below
<Stops>
<Stop>
<RequestStartDTTM>2009-12-09T05:02:02.000Z</RequestStartDTTM>
<RequestEndDTTM>2009-12-15</RequestEndDTTM>
</Stops>
</Stop>
<Stops>
<Stop>
<RequestStartDTTM>2008-12-09T05:02:02.000Z</RequestStartDTTM>
<RequestEndDTTM>2008-09-13</RequestEndDTTM>
</Stops>
</Stop>
<Stops>
<Stop>
<RequestStartDTTM>2007-12-09T05:02:02.000Z</RequestStartDTTM>
<RequestEndDTTM>2007-09-05</RequestEndDTTM>
</Stops>
</Stop>
<Stops>
<Stop>
<RequestStartDTTM>2006-05-08</RequestStartDTTM>
<RequestEndDTTM>2006-07-23</RequestEndDTTM>
</Stops>
</Stop>
Here the condition is, the first Stop RequestStartDTTM should be less than next stop RequestStartDTTM, if it violates this condition we have to adjust second stop RequestStartDTTM such dat it shd be 1 min grater than first stop RequestStartDTTM.
So i am checking second stop RequestStartDTTM with first stop RequestStartDTTM... and i am adding 1 min to RequestStartDTTM and assigning that value to RequestStartDTTM.
Now while checking third stop RequestStartDTTM i have to check with second stop RequestStartDTTM .. but here we have changed second stop RequestStartDTTM (i think which is not possible to get that value which we have changed). How can i compare the third stop RequestStartDTTM with the changed second stop RequestStartDTTM.
Here we should not use sort because the customer is sending the data in this manner and we have to manipulate and do the transform..
If i am wrong plz corret me..
Regadrs
PavanKumar.M

Similar Messages

  • Is there any function like malloc and free in labview?

    Im writing a vi that will handle my memory request.
    Im doing a very high speed video record sessions , and the frames cant be saves on hardisk in realtime), so im saving the frames on memory, and i want to use memory as
    much as i can(~2GB) and to save the maximum frames that i can save (and it depends on bit depth, height, width, total memory).
    VI Operations={
    Allocate Memory (frame width, frame height,TotalMemorySize) ,
    Add Frame(index) ,
    Get Frame (index),
    Free Memory
    In each record session, there will be a different FrameWidth and Height, so the maximum frame that i can save in memory may be different and equal to
    IndexMax=TotalMemorySize/(FrameWidth*FrameHeight)
    Im doing this by allocating a 3D array [FrameIndex , row , column]
    The fact that the width and height change in different sessions indicate  that i need an ability to free the previous allocated 3D array memory and allocate a new one.
    (lets say that i have 2GB total memory..)

    This request really takes the system and the programmer to the limits....
    First of all:
    LabVIEW does not have any functions like malloc and free. LV wants to prevent the user to have to think about stuff like this. On the other hand, the memory management in LV is therefore hard to do or even impossible, at least to such an extend as you request.
    Some thoughts about your application:
    1. If you want to have about 2GB of framedata in RAM during runtime, you will need the large memory awareness active. Otherwise, a 32 bit OS will give you "out of memory" messages. Refer to the LV help "VI memory usage".
    2. Storing the data in an array could be a difficult task. Arrays have to be in memory without any gap. Therefore, you'd encounter "out of memory" messages even if your RAM totals enough free memory (theoretical).
    3. The idea of linked-lists does not compy in LV since you cannot store pointers to structs (since those are abstracted from the user).
    4. Maybe you should take a look into vision. 
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • If any function like greatest or least for addition,subtraction and multi?

    if any function like greatest or least for addition,subtraction and multi?
    there are two columns 'a' and 'b'...i have to add the values in column wise
    a b add
    10 30 -->40
    20 40 -->60
    IS there any function?

    Hi,
    794244 wrote:
    if any function like greatest or least for addition,subtraction and multi?
    there are two columns 'a' and 'b'...i have to add the values in column wise
    a b add
    10 30 -->40
    20 40 -->60
    IS there any function?Do you mean something like
    FUNCTION_X (a, b, c, d, ...)that would return the sum of all those numbers?
    No, not that I know of. If there were, it would be harder to use than
    a + b + c + d + ...The first is a comma-delimited list of columns, with a function name and parentheses.
    The second is a +-sign delimited list, with nothing else needed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Any function like 'SEARCH', 'SEARCH NEXT' available in tree element?

    As we know, the tree control in EnjoySAP Controls provides the functions 'Search' and 'Search Next'. Are these functions available in a tree UI element in WebDynpro?

    Hi
    According to my information i dont think functions like 'Search' and 'Search Next' are available for a tree UI element in WebDynpro.
    If you want to check any value follow the below instructions:
    1.      In the test script editor, open the command interface.
           2.      Expand the tree in the left side of the structure editor to display the relevant element.
           3.      From the context menu, choose Insert Check. The element is copied to the GETS_AND CHECKS node.
           4.      Under the GETS_AND CHECKS node, double-click the element to display it for editing in the right-hand pane.
           5.      Parameterize the CheckAction field and ExpectedValue field as required. Optionally, parameterize the Value field to perform a GET as well.
    For further clarifications please go through the link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/84/ef2a41b108f523e10000000a155106/frameset.htm
    Rergards
    Elizabeth

  • Is there any function like...?

    Hi, I am new to Oracle and got a problem, may someone help me thanks in advance:
    Is there any built-in function in Oracle like:
    functionname(predication?action1,action2)
    that means, if the predication is true, then do action1 else action2?
    Thanks.

    In PL/SQL, there is a BOOLEAN datatype you can use.
    SQL> set serveroutput on
    SQL> declare
      2      v_var boolean:=true;
      3      v_out varchar2(1);
      4  begin
      5      v_out:=case when v_var then 'Y' else 'N' end;
      6      dbms_output.put_line(v_out);
      7  end;
      8  /
    Y
    PL/SQL procedure successfully completed.Be aware, DECODE is only allowed inside a SQL statement, dislike the CASE as it has been showed here above.
    Nicolas.

  • Any function like WM_CONCATE  in webi 4.0?

    Hi ,
    I am trying to have different values coming from the same column in DB , to accumulate in one cell and also wanna concatenate it
    For Example ,
    Country
    Projects
    USA
    111
    USA
    1222
    USA
    3333
    want to show the above as in one cell
    USA          111,1222,3333
    I know it can be done at DB level by WM_CONCATE but how to do it in Webi 4.0?

    Hello Usman,
    PFB a useful link where a similar requirement has been explained well.
    http://bi.srivatsakr.com/2011/08/converting-rows-into-single-cell-comma.html
    Hope it helps
    Regards,
    Nikhil Joy

  • Any RunningApplications-like function for non-windowed processes?

    Am I missing any RunningApplications-like function for non-windowed processes like Unix executables? To start with I'd settle for processes in user-space but would ultimately like to list processes like Activity Monitor does. Even comparing RunningApplications results to user space Activity Monitor results will show the difference.
    As far as I can tell you need to go all the way down to kauth and kernel space to watch for non-windowed processes being launched. Is there somethig in-between I'm missing? A notification device about launching apps would be perfect if it cover all processes.
    Thanks,
    =Tod

    I think kqueue may be able to do what you want. Look at the EVFILT_PROC filter. You may have to watch a number of processes - perhaps all of them. But that would tell you any time you get a fork and whenever a process is reaped.
    I looked at kqueue at it does what I want but you need to register it on a by process/file basis which is great for a very specific set of things but not for overall system watching. (I also looked at fsevents but it is designed as a post-event notification system.) While NSWorkspace has the usual Cocoa model notifcation willlaunchApp, didlaunchApp, etc it seems that you need to get the kernel to watch the launch lifecycle of non-windowed functions.
    I actually did manage to get a comprehensive list of running apps out of parsing sysctl output with much less trouble than I expected. So far I have managed to get the pid, uid and abbreviated processname and the list seems to match the Activity Monitor list - at least at this testing printf stage. Getting the username from uid should be trivial and the full file name is doable it just requires some struct length and offset math. I'd like the launch path information but I can live without it for monitoring purposes if I can't figure out how to get it.
    This means that the monitoring part of the running system seems relatively straight forward - wrapping the call in an NSTimer and watching for changes in the returned results. But the watching of the actual starting and stopping of all processes remains some deeper work.
    Thanks for all the suggestions,
    =Tod

  • Is there any functionality for AVERAGE in ALV, like do_sum, subtot?

    Hi Experts,
    In my_alv report, am doing sub/totals for prices, by using do_sum, subtot functions.........fine. But, I need to do/display the AVERAGE value for Discount % column?
    Is there any functionality for AVERAGE in ALV, like do_sum, subtot?
    thanq

    hi
    check these links out
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    regards
    vijay
    reward points if helpful

  • Firefox crashes whenever i want to install any addon or download any file. Some times i am receiving error while downloading any file like "could not be saved, because you cannot change the contents of that folder"

    I am the user of latest firefox 3.6.6 browser. I am getting problems of frequent crashes whenever i tries to install any addon. The crashes also occures whenever i want to download any file.
    I am also receiving errors while downloading any file like:
    "C:\Users\****\AppData\Local\Temp\******.001.part could not be saved, because you cannot change the contents of that folder.
    Change the folder properties and try again, or try saving in a different location. I already changed it many many times but still the same problem."
    Adobe flash palyer is also giving problems of not responding. I am using updated version of it already. Java is also updated.
    I already uninstalled firefox compeletly and re installed it many many times but still the same problem. I also scanned my computer with avira and malware bytes' Anti malware and got no dection. Please ractify this problem ASAP lest my profession will suffer.
    == Crash ID(s) ==
    b7f518f2-8d86-41ca-8bab-aee632100709; 1d790e10-d8eb-4904-98c9-94bc62100708; f042d319-b9f8-42ed-a8cb-57c7d2100708

    Please help.
    It is getting worse
    Adobe flash player is crashing. I already uninstalled and re installed the latest ver. Also it is hanging randomly.
    Please help.

  • I have recently upgraded to ios 7 on my iphone. I am currently at 7.0.2 which i installed yesterday. Now i notice that the keypad doesnt appear in any function under Phone. Keypad doesnt show up in contact search, or while adding new contacts or editing.

    I have recently upgraded to ios 7 on my iphone. I am currently at 7.0.2 which i installed yesterday. Now i notice that the keypad doesnt appear in any function under Phone. Keypad doesnt show up in contact search, or while adding new contacts or editing the existing. This is irritting.

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • My notification center (windows 7 64 bit) disappear from time to time, any idea? (When it disappears, I cannot use the special keyboard functions like sound...

    My notification center (windows 7 64 bit) disappear from time to time, any idea?
    When it disappears, I cannot use the special keyboard functions like sound,brightness...
    Thanks!

    How is Acrobat 8 not fully Windows 7 compatible?  I see discussions on this Adobe Community saying how Acrobat 8 does work on Windows 7 and with 64-bit.  It appears that if Acrobat 8 is updated to the latest version, then this should fix AA8-Win7 issues.  And I am at the latest AA8 version, 8.3.1. 
    And how are Acrobat 8 and Reader XI are not compatible?  I have always had Acrobat and Reader installed on the same PC, without ever having any issues.  And Adobe allows the installation of one after the other.  So apparently Adobe allows them both to exist together.  If they are incompatible, then why would Adobe allow them to exist together? 
    Anyway, I did uninstall the FileOpen Plug-in and the Reader XI, then reinstalled the FileOpen Plug-in.  So now Reader is not installed and only Acrobat 8 is installed.  I then tried to load the PDF file, but I still get the Acrobat 8 error described above. 

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

  • Is there any functions to work like Excel's sumproduct function?

    Dear Guru,
    Is it possible to run a BPC's function like Excel's sumproduct function?
    Thanks,
    Suphawat

    Hi,
    If your template is static, you can write the excel function anywhere in the template. If the template is dynamic, then you can write the function after the expansion ( at the end of the expansion).
    Hope this helps.

  • How to use an external start button for 6024E w/ sc-2345, I would like it to function like a start button in LabView but I don't know how to connect the external button to the sc-2345's connector block

    I am confused as to how to connect my external start botton. I would like it to function like a start button on a front panel of a VI. I would like to use the +5V on pin 14 but I really don't know where to go from here. Any guidence for a novice would be most appreciated.

    phod,
    This is the LabVIEW Real-Time forum, so I suggest that in the future that you post this type of question to the Multifunction DAQ forum.
    For the simplest solution you will have to connect your button to a digital line of your board, consult the sc-2345 user manual for a diagram of where these lines are exposed. You will have to connect your start button in series with a line that is high, such as your 5V pin or another digital line. Then connect this to a digital line that will be your start trigger.
    Your program can poll the digital line that is connected to your button in a while loop and when it goes high, it lets the rest of the program execute. For the programming, I suggest you take a look at the shipping examples that come with LabVIEW. If yo
    u have LabVIEW 7.0 go to Help>>Find Examples. Open Hardware Input Output>>Traditional DAQ>>Digital Input and Output>>E Series for some examples of digital I/O programming with E-series boards.
    Hope that gets you started.
    Gerardo

  • Any function in jdeveloper to decode the message

    Hi,
    I am working on BPEL.I am sending a xml message as input which is getting encoded. Is there any function in bpel which will decode the message and assign to the output.
    please help me out of this problem
    Regards,
    mohamed

    Hi,
    there is a special BPEL forum for questions like this. In general, XML messages can be decoded with XSLT - however, I am not sure if this is needed in your case. Make sure you provide more details when posting this question to the BPEL forum
    BPEL
    Frank

Maybe you are looking for

  • Attaching dynamic movie clips in a static moviclip

    I have a problem regarding attahing these movieclips(images) to a label (movieclip) on the stage and when i will move label the all images shoild move with label which attched to that label , i have tried lot through hit test but not working because

  • Play MPG in iphoto slideshows

    -Im using iPhoto09 -I have movie files off my video camera, they were .mod files, i renamed them to .mpg so they work with quicktime. -But for some reason they wont play in iphoto slideshows, and just show the first still frame of movie how do i get

  • Imovie 10.0.3 shuts down unexpectedly

    Please help.  For some reason imovie shuts down unexpectedly when working on a project.

  • Solaris 11.1 NFS RDMA symlinks not working?

    Dear list, We are encountering strange issues with symlinks in NFS-over-RDMA exported (ZFS backed) filesystems. We are using an Solaris 11.1 storage server to provide NFS-services to a number of CentOS6.4 clients. They are connected through Infiniban

  • How to format to show pounds (lbs) and stone, for UK weight?

    As the title suggests, I want to have a weight loss table, to show the date in one column, and my weight in another. I know there is already a template available in Numbers '09, but it does not display the weight in the format I am used to- ie pounds