Loop a definied number of times

is i use this expression
loopOut("cycle") the loop is infinite
if i try loopOut("cycle",3) i suppose it will repeat the loop 3 times but it doesn't
what is the expression to determinate how much time the program must loop?

Set the CTI to the time you want to split the layer. Select the layer. Split the layer by pressing Ctrl/Cmnd + Shift + D or by going to Edit>Split Layer (Keyboard Shortcuts are on the right).
This will duplicate your set an out point on the existing layer and an in point on the new one.

Similar Messages

  • Loop though foreach a set number of times

    Hi Guys
    I want to know how I can loop though a foreach loop a set number of times ? I know in a for loop you can set the max number of loops but I don't know how to do it when comes to a foreach loop. Below is the structure of my foreach loop:
    for(Letter letter : letters) {
      //I want to loop though only 50 objects max at a time
    }

    List<Letter> prefix = (letters.size() <= limit) ? letters : letters.subList(0, limit);
    for(Letter letter : prefix) {
    }

  • Looping a movie clip a specific number of times in Flash

    Does anyone know how to get a movie clip to loop a specific number of times in Flash? I know how to stop a movie clip from looping by using the this.stop (); command by placing the command in a separate Action Script layer, in a keyframe, inside of the movie clip's timeline. This allows the movie clip to play through once and then stop. But I need for the movie clip to loop more than once, maybe 2 or 3 times, and then go back to the main timeline. Does anyone know the code for this?
    Also, is it possible to place a pause (I'm guessing, maybe by using a timer of some type?) between the loops, so that the movie will pause a couple of seconds before it loops again and then stop? Please note I do not need the movie clip to stop when there's an event like a rollover or anything. I just need it to play a couple of times, pause between plays and then stop and go back to the main timeline. Please let me know if anyone can help.
    Thanks,
    Sarah
    P.S. Is there a good, easy to use, reference book anyone can recommend for creating specific things in Flash using Action Script? Do you guys have a favorite for beginners like me?

    You can use a variable to keep count of how many times you loop, and until it exceeds a particulr value (2 or 3) you execute a setTimeout() call that waits for however long you want to delay and then tells the movieclip to gotoAndPlay(1).
    So in the first frame you would establish the counting variable...
    var count;
    if(count == undefined){ // only set it to 0 once
    count = 0;
    and in the last frame you would do your incrementing and control....
    stop();
    count += 1;
    if(count < 3){
    setTimeout(waitABit, 2000); // call function in 2 secs
    function waitABit(){
    gotoAndPlay(1);

  • How to loop an swf a set number of times?

    I need to loop a banner animation a set number of times, then
    get it to gotoandstop on a final frame. I know in the past I could
    use:
    counter++; if (counter<5) { gotoAndPlay (1); }
    At least for the looping part (don't even know yet about the
    stop pon a particular frame part).
    but now in Flash 8 I can't get my test swf to do that using
    this statement. Am I missing something? (Of course, obviously I am
    or I wouldn't be here!)

    This works for me as well, but i don't want it to jump to the
    final still frame. i need mine to loop three times, then plan
    through to the frame i want, stopping there. the frame i want is
    not the final frame in the swf. it is somewhere in the middle.
    does that make sense?

  • Adding a counter that keeps track of the total number of times a loop has run, even if LabVIEW has been restarted.

    Hi all,
    I am writing a VI for measuring data and inserting it into a database. The measurements are controlled by a loop that runs once every minute. I want to give each measurement a unique id number and store this too in the database.
    To do this, I want to add a counter to this loop so that I can count the number of times the loop has executed in total. This is, even if the VI, LabVIEW or even th PC is restarted, I want the counter to keep track of the number of executions. If say, the loope executes two times and then the VI is stopped and restarted, I want the following number on the counter to be three.
    Does anyone have an idea about how to do this? I am gratefule for any help!
    Clara
    Message Edited by Clara G on 05-11-2010 08:21 AM
    Solved!
    Go to Solution.

    Not allowed to give away code but I can describe one of my "Totalizers" used to keep track of how much stuff has passed through a fliter so we know when to change it.
    THe Total izer is implemented as an Action Engine.
    It has three actions (methods)
    1) Init - Opens an ini file and reads the last values read and cahces these in shift registers. It also inits a timer so we now how long since the last file I/O.
    2) Update - Uses the data passed by the caller to update the totals. It also checks how long since the last save and if more than one minute it writes to the ini file (forced write).
    3) Read - returns the totals for display and evealuating if a an alarm should be triggered to change the filter.
    Note:
    THe pre-LV 8.6 version of the ini file exposed methods to allow writing to the file. The new ini functions do not expose that functionality and require closing the file.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Number of times an animation loops

    I have an animation looping in Edge using a label and a trigger. How can I specify the number of times the animation loops? Currently it cycles endlessly.

    Darrell,
    Thanks for your patience. Here's a couple a screen captures in my Edge project. It stil loops endlessly. Any thoughts on what I'm missing?

  • Execute case structure a certain number of times within a while loop

    Hi guys,
    I was wondering if it was possible to execute a case structure a specified number of times within a while loop. Basically I'm running a camera where each iteration of the outer while loop displays a frame of a live video feed and I'd like to capture the next x amount of frames (specified by the user) each time the 'Start Capture' button is clicked. The block diagram within the case structure captures and saves an image frame. As the program is written right now, frames will continue to be captured until the 'Start Capture' button is clicked again. Instead of having to click the button again to stop the case structure from executing for each iteration of the while loop, I'd like it to only execute for the next x iterations of the while loop. Any help would be appreciated. Thanks.

    Hello Uxorious,
    A while loop has a iteration counter that gives an integer value of how many times the loop has iterated. You can utilise this to count the number of frames captured. I assume that the program could be running for any amount of time before clicking start capture, if that is the case then you will need to be able to detect when you have clicked the button and add the desired number of frames you wish to capture to the current loop iteration.
    If you use a shift register on the outer loop with the start capture button connected to it (inside the loop) you will be able to compare its current value to its previous value. If it changes from false to true then you can add the desired number of frames to it to give you the loop iteration value where you need to stop.
    Then you can compare the current loop iteration value to that number and once reached, you can use a property node to change the value of your start capture button back to false.
    One final thing, don't forget to initialise the shift register I suggested to false so that you don't run the risk of missing the first time you press the button.
    I hope that makes sense.
    Alistair
    Best regards,
    Ali Bailey
    National Instruments
    Don't forget to Kudos useful posts!

  • Running a java program a set number of times

    This is a general question. Is it possible to make a java program run only 5 times for the sake of arguement.
    Basically I want to write a program that will give the user some flexibility when it will actually run another Java program, but I only want them to be able to say "not now' for a set number of times. When the last time comes the other program will launch. I was initially thinking of the Do Whilw loop, but this needs to work when the program is restarted.
    Program starts, it has 5 times it will run before it does something else(doesn't really matter now I think). User takes option "Not Now" and the program ends, but warns the user this will run 4 more times before you will need to do something.
    This process will repeat until the user takes the option "Ok install now" or the time limit expires and the install occurs anyway. Can someone point me in the right direction.

    ok I see so it's like one those programs that you download for free on the internet and they give you a set amount times to use it before you have to pay for it. but in this case when the number of times you use it equals 5 (or when the user clicks ok) a different java app will open automatically.
    My first thought would be to Write a Serialized object to disk using objectOutputStream that stores the number of times the application has been opened. and each time the program runs it checks for the serialized object and then you can do something like what I posted before. of course if were worried about security the user could always look for the object and erase it, if so then I guess we would have to come up with another plan of attack
    Hope this helps

  • Apple Remote Desktop Requiring Serial Number Each Time....

    Apple Remote Desktop Admin has suddenly started asking for the serial number every time it is launched. I tried uninstalling and reinstalling - same thing. Last time this happened it required a full reimage of my Mac to get it to work again. This is getting a bit ridiculous. I am running ARA 3.2.2 and Mac OS X 10.5.6. FYI my uninstall was by the book as per Apple's documentation:
    rm -rf /var/db/RemoteManagement
    rm /Library/Preferences/com.apple.RemoteDesktop.plist
    rm ~/Library/Preferences/com.apple.RemoteDesktop.plist
    rm -r /Library/Application Support/Apple/Remote Desktop/
    rm -r ~/Library/Application Support/Remote Desktop/
    rm -rf /Applications/Remote\ Desktop.app
    Has anyone else had such a problem with the current version of ARD?
    Thanks.
    Macbook Pro 2.8 Ghz 4GB RAM 10.5.6

    hd/Library/Preferences folder had read only privs for Amin user..
    followed these instructions for my audiable.com issue, and it resolved my ARD problem!
    http://audible.custhelp.com/cgi-bin/audible.cfg/php/enduser/popupadp.php?p_sid=undefined&p_lva=undefined&p_li=undefined&p_faqid=2962&p_created=11 30971116&psp=undefined#osmac
    search Audible Activation Loop at audible.com

  • Count number of times a specific element occurs in ArrayList

    I need to count the number of times a specific element occurs in an ArrayList. For example, if an ArrayList 'overflow' consists of the following elements:
    1,3,4,1,1,8,14,7,3,7,8,0.
    I need to count the number of times 4 occurs in the list.
    ArrayList overflow = new ArrayList();
    if(overflow.contains(4))
    }I know that contains returns true if 4 exists in the ArrayList, but how do I count the number of times 4 occurs? Any help will be appreciated. Thank you.

    There is the Collections.frequency method in j2se 1.5
    Or you could loop through the values in the ArrayList and count the number of times it occurs.

  • How many number of times a particular report was executed

    Hi..My requirement is to find how many number of times a report/tcode was executed in a particular period of time.I tried using STAD,STAT AND ST03 ..but i am not able to find how many number of times the particular report was executed ..is there any other tcode or table or FM ..that would solve this problem..its bti urgent..wud reward points for all useful answers could u let me know under what name or field int eh out put this particular info that i am looking for wud be displayed?

    Hi,
    The following code i found from this forum, may this will help you.
    * internal tables for use counter
    data: begin of list occurs 5.
            include structure sapwlserv.
    data: end of list.
    data: begin of applicat occurs 0.
            include structure sapwlustcx.
    data: end of applicat.
    data: begin of applica_ occurs 0.
            include structure sapwlustcx.
    data: end of applica_.
    data: begin of applicau occurs 0,
            entry_id like sapwlustcx-entry_id,
            account  like sapwlustcx-account,
            count    like sapwlustcx-count,
        : end of applicau.
    data: wa_applicau like applicau.
    *&      Form  MONI
    form moni.
      data: l_host like  sapwlserv-hostshort.
      m_start = p_usedt.
    *** get server
      call function 'SAPWL_SERVLIST_GET_LIST'
           tables
                list = list.
      do.
        loop at list.
    *** loop on server
          check not list-instshort is initial.
          l_host = list-instshort.
    *** get statistics per month and server
          perform workload using m_start l_host.
        endloop.
        add 31 to m_start.
        if m_start > sy-datum.
          exit.
        endif.
      enddo.
      sort applica_ by entry_id.
      sort applicau by entry_id count descending.
    endform.                               " MONI
    *&      Form  WORKLOAD
    form workload using    p_start like sy-datum
                             p_host  like  sapwlserv-hostshort.
      refresh: applica_.
    *** read application statistic from MONI
      call function 'SAPWL_WORKLOAD_GET_STATISTIC'
           exporting
                periodtype                 = 'M'
                hostid                     = p_host
                startdate                  = p_start
                only_application_statistic = 'X'
           tables
                application_statistic      = applica_
           exceptions
                unknown_periodtype         = 1
                no_data_found              = 2
                others                     = 3.
      sort applica_ by entry_id account.
      loop at applica_  where entry_id(1) ge 'Y'.             "#EC PORTABLE
        clear wa_applicau-entry_id.
        wa_applicau-entry_id(25) = applica_-entry_id.
        wa_applicau-account      = applica_-account.
        wa_applicau-count        = applica_-count.
        collect wa_applicau into applicau.
      endloop.
      sort applicau by entry_id count descending.
      applica_-ttype    = space.
      applica_-account  = space.
      modify applica_ transporting ttype account
             where ttype ne space.
    *** collect only enhancements statistic
      if p_temp = 'X'.
        loop at applica_.
          applica_-entry_id+25(48) = space.
          collect applica_ into applicat.
        endloop.
      else.
        loop at applica_ where entry_id(1) ge 'Y'.            "#EC PORTABLE
          applica_-entry_id+25(48) = space.
          collect applica_ into applicat.
        endloop.
      endif.
    endform.                               " WORKLOAD
    aRs
    Points are always welcome

  • Running a class a particular number of times

    hey
    can some pls tell me how to run this class a specific number of times. maybe by using a for loop?.
    i am making a game called memory game where u match the cards which are thw same. i want to make this a multiplayer game rather than a single player game. Thus in order to do this i need to be able to run the class (shown below) a specific number of times.
    i have an array called "players" which is a length of 5. and if the user enter the names into all five elements or there are 5 players then i need the program to run 5 times. else if the user only entered a name in two elements then i need the class "MemoryMatch" to run twice .
    i know how to determine whether the user entered 5 names or a single by using if statements. but i dont kno how to make the class "MemoryGame" run a specific number of times.
    .. .and for the game i calculate the score of the user by finding the amount of time it takes the user to finish the game and then subtract the time they took from a base value of 500points. i then put the time difference into an array called "timez" i also want the class to add the time to array "timez" at the end after the one of the players has finished the game or the class is run.
    here is the code for the "MemoryMatch" class which i need to run a specific number of times.
    class MyButton extends JButton
            long startTime = System.currentTimeMillis ();
            int index;
            ImageIcon icon;
            public MyButton (ImageIcon img, int i)
                icon = img;
                index = i;
                setPreferredSize (new Dimension (100, 100));
                addActionListener (new ActionListener ()
                    public void actionPerformed (ActionEvent actionEvent)
                        // 1
                        /* Create and add a prompt and then a text field */
                        if (getIcon () == null)
                            setIcon (icon);
                            if (buttonShowingIndex > -1)
                                if (icon != button [buttonShowingIndex].getIcon ())
                                    final int bsi = buttonShowingIndex;
                                    ActionListener al = new ActionListener ()
                                        public void actionPerformed (ActionEvent actionEvent)
                                            MyButton.this.setIcon (null);
                                            button [bsi].setIcon (null);
                                    javax.swing.Timer timer = new javax.swing.Timer (450, al);
                                    timer.setRepeats (false);
                                    timer.start ();
                                buttonShowingIndex = -1;
                            else
                                buttonShowingIndex = index;
                            //time calculation
                            long endTime = System.currentTimeMillis ();
                            long difference = ((endTime - startTime) / 1000) + 2;
                            timez [0] = difference;
        }so ...basically the two things i would like to get are
    1. make the class "MemoryMatch" run a specific number of times
    2. Put the time difference(time it takes user to finish game) into the array "timez" (but i think i got that handled but still if u knew a more efficient way... that would be nice =) )
    thanks alot

    hey man,
    thanks for taking the trouble for helping me.
    i have put the whole part of my program below. what u mentioned earlier was part right. the "MyButton" class flips over the two cards which were clicked by the user and then if they are right it leaves the cards on the table with the pics. and if they are wrong then the pics dissppear and the user has to choose two more cards again.
    the "players" array is an array which contains the names of the people who are playing the game. i get those values from another class called "Score" and then i transfer the array to the "MemoryMatch" class.
    ..and for the points i was thinking that i would find the time required by the user to finish the game and subtract the time in seconds from a base value of 500.
    hope this helps.
    thanks
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    class MemoryMatch extends JFrame
        MyButton[] button = new MyButton [36];
        ImageIcon[] icons = new ImageIcon [button.length];
        int buttonShowingIndex = -1;
        int time = 0;
        long startTime, endTime;
        static int gamesRun;
        static boolean runs;
        JPanel contentPanel;
        JPanel mainPanel;
        JLabel text;
        JTextField grade1;
        long[] timez = new long [5];
        static String[] players = {"", "", "", "", ""};
        //delay method
        public static void delay (int num)
            try
                Thread.sleep (num);
            catch (InterruptedException e)
        public MemoryMatch ()
            icons [0] = new ImageIcon (getClass ().getResource ("image1.gif"));
            icons [1] = new ImageIcon (getClass ().getResource ("image2.gif"));
            icons [2] = new ImageIcon (getClass ().getResource ("image3.gif"));
            icons [3] = new ImageIcon (getClass ().getResource ("image4.gif"));
            icons [4] = new ImageIcon (getClass ().getResource ("image5.gif"));
            icons [5] = new ImageIcon (getClass ().getResource ("image6.gif"));
            icons [6] = new ImageIcon (getClass ().getResource ("image7.gif"));
            icons [7] = new ImageIcon (getClass ().getResource ("image8.gif"));
            icons [8] = new ImageIcon (getClass ().getResource ("image9.gif"));
            icons [9] = new ImageIcon (getClass ().getResource ("image10.gif"));
            icons [10] = new ImageIcon (getClass ().getResource ("image11.gif"));
            icons [11] = new ImageIcon (getClass ().getResource ("image12.gif"));
            icons [12] = new ImageIcon (getClass ().getResource ("image13.gif"));
            icons [13] = new ImageIcon (getClass ().getResource ("image14.gif"));
            icons [14] = new ImageIcon (getClass ().getResource ("image15.gif"));
            icons [15] = new ImageIcon (getClass ().getResource ("image16.gif"));
            icons [16] = new ImageIcon (getClass ().getResource ("image17.gif"));
            icons [17] = new ImageIcon (getClass ().getResource ("image18.gif"));
            icons [18] = icons [0];
            icons [19] = icons [1];
            icons [20] = icons [2];
            icons [21] = icons [3];
            icons [22] = icons [4];
            icons [23] = icons [5];
            icons [24] = icons [6];
            icons [25] = icons [7];
            icons [26] = icons [8];
            icons [27] = icons [9];
            icons [28] = icons [10];
            icons [29] = icons [11];
            icons [30] = icons [12];
            icons [31] = icons [13];
            icons [32] = icons [14];
            icons [33] = icons [15];
            icons [34] = icons [16];
            icons [35] = icons [17];
                    Collections.shuffle (Arrays.asList (icons));
            setDefaultCloseOperation (EXIT_ON_CLOSE);
            contentPanel = new JPanel ();
            contentPanel.setBorder (BorderFactory.createEmptyBorder (500, 500, 10, 10));
            mainPanel = new JPanel ();
            mainPanel.setBorder (BorderFactory.createEmptyBorder (500, 500, 10, 10));
            mainPanel.setBackground (Color.white);
            mainPanel.setLayout (new GridLayout (6, 6));
            for (int x = 0 ; x < button.length ; x++)
                button [x] = new MyButton (icons [x], x);
                mainPanel.add (button [x]);
            getContentPane ().add (mainPanel);
            pack ();
        public static int pushPlayers (String[] p)
            players = p;
            int game = 5;
            if (players [0].equals (""))
                game = game - 1;
            if (players [1].equals (""))
                game = game - 1;
            if (players [2].equals (""))
                game = game - 1;
            if (players [3].equals (""))
                game = game - 1;
            if (players [4].equals (""))
                game = game - 1;
            System.out.println (game);
            gamesRun = game;
            return game;
        class MyButton extends JButton
            long startTime = System.currentTimeMillis ();
            int index;
            ImageIcon icon;
            // for (int i = 0 ; i < gamesRun ; i++)
            public MyButton (ImageIcon img, int i)
                icon = img;
                index = i;
                setPreferredSize (new Dimension (100, 100));
                addActionListener (new ActionListener ()
                    public void actionPerformed (ActionEvent actionEvent)
                        // 1
                        /* Create and add a prompt and then a text field */
                        if (getIcon () == null)
                            setIcon (icon);
                            if (buttonShowingIndex > -1)
                                if (icon != button [buttonShowingIndex].getIcon ())
                                    final int bsi = buttonShowingIndex;
                                    ActionListener al = new ActionListener ()
                                        public void actionPerformed (ActionEvent actionEvent)
                                            MyButton.this.setIcon (null);
                                            button [bsi].setIcon (null);
                                    javax.swing.Timer timer = new javax.swing.Timer (450, al);
                                    timer.setRepeats (false);
                                    timer.start ();
                                buttonShowingIndex = -1;
                            else
                                buttonShowingIndex = index;
                            //time calculation
                            long endTime = System.currentTimeMillis ();
                            long difference = ((endTime - startTime) / 1000);
                            timez [0] = difference;
        public static void main (String[] args)
            // JFrame.setDefaultLookAndFeelDecorated (true);
            // Score myGrades = new Score (myMemoryMatch);
            // //Score
            delay (5000);
            MemoryMatch myMemoryMatch = new MemoryMatch ();
            //running of main game
            myMemoryMatch.setVisible (true);
            //transferring to the array
            for (int i = 0 ; i < myMemoryMatch.players.length ; i++)
                // show that the variable has been updated here
                players = myMemoryMatch.players [i];
    for (int i = 0 ; i < myMemoryMatch.players.length ; i++)
    // show that the variable has been updated here
    System.out.println (players [i]);

  • How to find the number of times method being called.....

    hi,
    can any one pls tell me how to find the number of times the method being called......herez the example....
    Refrence ref = new Refrence();
    for(int i = 0;i < arr.length; i++){
    if(somecondition){
    ref.getMethod();
    here i want to know how many times the getMethod() is calling...Is there any method to do this.. i have seen StrackTraceElement class..but not sure about that....pls tell me the solution....

    can any one pls tell me how to find the number of times the method being called......
    herez the example.... http://www.catb.org/~esr/faqs/smart-questions.html#writewell
    How To Ask Questions The Smart Way
    Eric Steven Raymond
    Rick Moen
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ? in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.

  • How do you transfer voice memos to your pc?  I have synced my phone a number of times and everything updates with the exception of voice memos?

    How do you transfer voice memos to your pc?  I have synced my phone a number of times and everything updates with the exception of voice memos? Also, my voice memos are checked to be synced everytime my phone is synced. 

    Voice memos, once correctly synced, will appear under your Music Library.  Can you go through your music library to check?

  • Generate numbers in incremental order, the number of times condition met?

    I have tried explaining my problem here also.
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=31&t=007531&p=1
    But trying to put in other words now.
    I have a NO tag which appears many times in xml. and alwyas have some random numbers displaying.
    output looks something similar to this
    something......<NO>1</NO>
    something......<NO>1</NO>
    something......<NO>2</NO>
    something......<NO>1</NO>
    something......<NO>3</NO>
    something......<NO>1</NO>
    something......<NO>5</NO>
    something......<NO>1</NO>
    something......<NO>1</NO>
    something...... & so on.
    Now instead of these numbers coming in this order i prefer to display in final output file as
    1 2 3 4 5 .................... n
    Is it possible in any ways using xslt.
    DO we need to ignore the values given in input file and then generate output values for same.
    it can be like the number of times NO tag appears in xml, it should start from 1 and keep increasing value by 1, until NO tag finishes appearance.
    But next time when other xml transforms it again should be able to start from 1 till n.
    is there a possibility of using java code for this situation or xslt is capaable enough to handle this.
    Thanks
    VJ

    I'm guessing you are looking for something like this. I used a pull approach but it could be done with a push (xsl:for-each).
    Sample XML
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <NO>1</NO>
         <NO>1</NO>
         <NO>2</NO>
         <NO>1</NO>
         <NO>3</NO>
         <NO>1</NO>
         <NO>5</NO>
         <NO>1</NO>
         <NO>1</NO>
    </root>
    Sample XSLT
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" version="1.0" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/>
         <xsl:template match="root">
              <output>
                   <xsl:apply-templates select="NO"/>
              </output>
         </xsl:template>
         <xsl:template match="NO">
              <row>
                   <xsl:value-of select="position()"/>
              </row>
         </xsl:template>
    </xsl:stylesheet>
    Sample Output
    <output>
         <row>1</row>
         <row>2</row>
         <row>3</row>
         <row>4</row>
         <row>5</row>
         <row>6</row>
         <row>7</row>
         <row>8</row>
         <row>9</row>
    </output>

Maybe you are looking for

  • Creating Entitybeans from Database-Views with Sun Applicationserver 8.1

    Hello, I�m implementing a databaseapplication with J2EE and Sun AppServer 8.1. Now I actually don�t want to use the database-tables directly. Instead I want to use views, because then the structure of the underlying table doesn�t matter. Only the vie

  • How to rollback from export

    Hi Team, I am doing export of particular tables. Now client requested me "Roll Back From export". How to do this. please suggest any one. Regards,

  • Upgrade or Upgrade?

    This is two times now. During auto search download upgrades to org. pgm's i.e. P.S. 2 and now my ORG. Acrobat, your downloads have curcumvented my ability to use MY ORG. Progams in favor of your NEW COSTLY progams. i.e. Some of us OLD SENIOR'S get by

  • XI Objects IMport

    Hi, I am trying to import XI Objects into Integration Directory but I am getting the following error. "Business system AB_ABC_INTEGRATION_SERVER is not assigned to a business system group with the ID (XISystemGroup)" Note: AB_ABC_INTEGRATION_SERVER i

  • 8520-unable to get email settings in the set up folder

    I have only had this for 2days and I am unable to get the emails working, in the set up tables the email setting icon is not there and when I try to set up the email in the set up wizard, email set up only gives 1 option ' I want to use a work email