Using a variable outside of the block it has been incremented

Hello everyone,
I came across a scenario where in I am having to use a variable (for summing up), outside of the block within which it has been incremented. Its something like below:
-------------- Header section of MS Word RTF (repeats for every page) -----------------------
For Each Header
<?xdoxslt:set_variable($_XDOCTX, 'TotalTax', 0)?>
-------------- Body section of MS Word RTF -----------------------
<?start:body?>
Lines Group
Increment TotalTax for each loop
End Lines Group
<?end body?>
-------------- Footer section of MS Word RTF (repeats for every page)-----------------------
<?xdoxslt:get_variable($_XDOCTX, 'TotalTax')?>
End For Each Group
---------------------------- End of template ----------------------------
The varaible 'TotalTax' is being declared in the header, incremented within the Body and is being used in the footer section. For the above mentioned syntax, the value being displayed for TotalTax is '0', i.e the value for which it has been defaulted while declaration.
Can someone please help me in getting it fixed such that TotalTax would display the value it was assigned in the Body rather than '0'.
Thanks,

Hello and thank you for responding.  I checked out the link you provided; however, my problem is not reviwed there.
I am setting a variable inside a <?start:body?>.  Inside the body are several loops - which is fine.  But it ends with <?end body?>.  If I reference my variable BEFORE <?end body?> it retains it's value from the calculations within the program.  But if I try to use the variable AFTER the <?end body?>, it give me an error "NULL" value or similar.
Any thoughts?
Rob

Similar Messages

  • I have a Windows copy of Photoshop Elements 11, but the serial number has been lost. I didn't buy the product and I am unable to find the box. As far as I know, it's never been used so has not been registered. Does anyone know how the serial number can be

    I have a Windows copy of Photoshop Elements 11, but the serial number has been lost. I didn't buy the product and I am unable to find the box. As far as I know, it's never been used so has not been registered. Does anyone know how the serial number can be recovered under these circumstances?

    If you never bought the product then you cannot get the serial number.

  • I bought pages ages ago using an iTunes account that no longer works as the email address has been closed down. How can I now update my Pages app, if it asks me to sign in using this now defunct email address?

    I bought Pages ages ago using an iTunes account that no longer works as the email address has been closed down. How can I now update my Pages app, if it asks me to sign in using this now defunct email address?

    All apps are always tied to the account from whaich they were purchased and will always have to be updated using that account.
    Just because the e-mail account is shut down, has nothing to do with the itunes account. Why did you create a new account?  Why not just change the e-mail associated with the old account?

  • HT1981 I will use my 110V MacBook in the Philippines which has 220V sockets. Will the World Travel Adapter Kit help me?

    I will use my 110V MacBook in the Philippines which has 220V sockets. Will the World Travel Adapter Kit help me?

    Assuming you're in North America now, you probably won't need any sort of plug adaptor there; most sockets in the Philippines are the same as those in North America. In case you do, it doesn't contain the correct adaptor.
    Voltage conversion is handled by the MacBook without any additional components.
    (66079)

  • My iPhone is about 6 months old now and I would say I don't use it that much. Yet for the last month or so the battery life has been going down and today after having charged it to 100% this morning, it was at 5% at 4 pm this aft. help!!

    my iPhone is about 6 months old now and I would say I don't use it that much. Yet for the last month or so the battery life has been going down and today after having charged it to 100% this morning, it was at 5% at 4 pm this aft. help!!

    Ok Fellas, let me give you a clue:  Games, particularly those that make heavy use of graphics and sound are notoriously power hungry.  In fact, when I was in the Navy many years ago, the folks working on the NTDS (Navy Tactical Data System)  computers used a version of Space Invaders to load test the AN/UYK-43 computers.
    I have also noticed that all of my laptops (I have a brand new Toshiba dual core, an older Toshiba single core, plus 2 Dell dual core machines) have significantly shorter battery life when I play Company of Heroes than when I am just reading e-mail or surfing the 'Net.  I have also noticed the same behavior when I play games on my 4th gen Touch and my iPhone 4.
    The fact is, iOS 5 did make some major improvements as well as adding some nice functionality like iMessage, wireless synch, and such, but the down side is that depending on how you use the device battery life can be shorter that what you may have experienced with pervious versions of iOS.  Its just the nature of the beast...
    We now return you to our regularly scheduled programming.....
    Oh John....  Oh Marsha.....

  • I have photoshop elements 11 installed on my desktop pc, I want to install it on my laptop as well, I read that it can be installed on two systems, but I get a message taht the redemption code has been used by another ID, please help

    I have photoshop elements 11 installed on my desktop pc, I want to install it on my laptop as well, I read that it can be installed on two systems, but I get a message taht the redemption code has been used by another ID, please help

    A redemption code can only be redeemed once.  It is used to acquire a serial number. The serial number is what you need to activate the installed software.  If you did not keep the serial number when you first installed, you might still be able to find it in your Adobe account online if you registered the software.

  • How the sContainerLocation parameter has been set and used?

    Hi,
    I'm confused with the following 2 methods in IContainerProvider Interface (Java EDK5.0):(1) public IContainer attachToContainer(String sContainerLocation, ChildRequestHint oHint, String Locale);(2).public ChildContainer[] getChildContainers();
    I'm not sure how the sContainerLocation parameter has been set correctly for the top lever container and the sub level (child containers). What i intended to do is crawl all documents (all have a unique ID) into Plumtree portal. I plan to set the parent folder ObjectID as a datasource parameter. Can anyone please tell me how to use the "parent folder ObjectID" in those 2 methods.
    Thanks in advance,

    Mihir,
    For the top-level container, set parent folder Object ID equal to CrawlerConstants.TAG_PATH. I've only configured this via a custom SCI page in the Crawler admin object, so I'm not sure if it will work as a setting in the Data Source as you wish to do. You can try it in the data source and if it doesn't work, then try it in the Crawler. When set correctly, the portal will automatically call attachToContainer with sContainerLocation equal to whatever value you have for TAG_PATH.
    For child containers, just set the sLocation in the ChildContainer equal to the folder ObjectID and the portal will use that as the value for sContainerLocation on its subsequent attachToContainer calls.
    -Dave
    I've set this in the crawler UI, and I'm not sure if it will work in the data source.

  • I am using the iPad 3 64 and am an avid photographer . I have been using iPhoto as my editor when I download my pic to my iPad . I have upgraded to IOS 6.  Please tell me why has the delete option has been removed iPhoto?

    I am using the iPad 3 64 and am an avid photographer . I have been using iPhoto as my editor when I download my pic to my iPad . I have upgraded to IOS 6.  Please tell me why has the delete option has been removed iPhoto?

    That was the first thing I check, my X no longer exist, the app still works fine and does everything it did in the past, the the x (delete) option is no longer there.  I have deleted and redownloaded the app and did a complete reset, X still not there as an option.  Is anyone else experiencing this problem? 

  • I am visually impared and use the voice over feature. Somehow the screen curtain" has been turned ON and I cannot find out how to disable it withouut turning voice over OFF. I'm really in the dark now.

    I am visually impared and use the voice over feature. Somehow the screen curtain" has been turned ON and I cannot find out how to disable it withouut turning voice over OFF. I'm really in the dark now.
    Thanks in advance for any helpposted.

    How to reset iPod
    iPod Troubleshooting Assistant
    Finding the "Five Rs" of iPod troubleshooting
    iPod troubleshooting basics and service FAQ

  • "The task sequence has been suspended" when using a conditional task sequence

    I'm getting the dreaded "The task sequence has been suspended. LiteTouch has encountered and Environment Error (Boot into WinPE!)" when using a conditional task sequence. 
    I've created a "Install Application" task  right before the "Restart Computer" in the postinstall phase. The task installs a Dell Bios update.  I've added two WMI conditions on the task, to match it with the correct model and to check that the
    bios not current.  This works very well, except for a strange issue.  When the computer reboots into WinPE, I get the error above.  The message stays for about 30 second and then disappears.  After that the computer reboots into Windows
    7, runs the Bios Update and throws up a similar message but with the addition of Use the desktop shortcut to resume.  (however there is no shortcut).  The message disappears after a while and the process stops there. If I reboot
    manually, the installation will continue and finish without any error. It's as if a LTIsuspend.wsf was inserted.
    Does anyone have any clue what's happening?

    Thanks for the answers, but I finally figured it out.  The problem was due to where I had inserted it during the deployment sequence.  The bios update task sequence was attempting to run in WinPE.  I moved the sequence to the state restore
    section and now it's working perfectly.  I was trying to run the update earlier during the installation sequence, as was recommened by Dell, but that doesn't appear to be feasible.  This will have to do.

  • I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up

    I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and lock up my computer and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up again...and please don't tell me to check for software updates:)

    I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and lock up my computer and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up again...and please don't tell me to check for software updates:)

  • I want to reset my security question and it said check the email , but the email i didnt use for a long time so now it has been deleted so what should i do ?

    i want to reset my security question and it said check the email , but the email i didnt use for a long time so now it has been deleted so what should i do ?

    Hello minhluhoc,
    It sounds like you are unable to reset your security questions but do not have access to your rescue email address. According to the following article you will need to contact the iTunes Store support team:
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/ht5312
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so. 
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Trying to burn my project to a DVD using iDVD, but keep getting "Error during rendering/encoding of the menus/slideshows. The burning process has been canceled." How do I fix this?

    Just mad a movie and trying to burn it to a DVD but keep getting an error message.  It reads:
    "Error during rendering/encoding. There was an erro during rendering/encoding of the menus/slideshows. The burning process has been canceled."

    Enable Show TV Safe  Bengt Wärleby  lists items to consider about encoding issues in this topic:  Multiplexing Error: Apple Support Communities
    OT

  • Have been given a LR5 DVD. How can I check if the serial number has been used before? (Was: Lightroom)

    I Have a Lightroom been given 5 DVD,
    and they want to sell, how can I test if the serial number has been entered before

    If you never bought the product then you cannot get the serial number.

  • Safari downloads: The network connection has been lost

    I 'm downloading office 365 and the network connection is fine, but all the time the downloads folder tells me : " The network connection has been lost"
    What 's going on?

    Suna,
    Based upon what you describe, I would assume that your program, while it is running, is initially small enough for the memory (RAM) in the FP-20XX but during the running of the program, it keeps consuming more memory until it runs out and crashes the module. With RT targets, you have to be very memory efficient; do not allow arrays to be built with unchecked size boundaries. The solution is to use good coding techniques, avoid unneccessarily large and complicated data types. Avoid unneccessary uses of read local variables or read global variables.
    Alternatively, if you are using the Watchdog VI's. You may be failing to whack the watchdog often enough causing the module to reset itself.
    Regards,
    Aaron

Maybe you are looking for

  • A STORED PROCEDURE PERFORMES SLOWER WHEN EXECUTED IN HMTLDB THE IN SQLPLUS

    We executed a stored procedure in HTMLDB. At the beginning and the end of this stored procedure a timestamp inserted in a logtable. First we executed the procedure in HTMLDB's SQL workshop (version 2.0.0.00.49 for MacOSX) under the owners schema . Ex

  • Role approver removed from role in GRC

    Hello Experts, I am a fresher to SAP GRC. Please help me on the below issue. In SAP GRC 5.3,  for some roles role approver has been removed and some roles automatically uploaded to GRC. The role that are uploaded to GRC should not be and while checki

  • PSE8 File Names in Organizer

    I have duplicate file names of different images taken with different cameras and stored in different directories.  Can I set a switch in Organizer to allow import of files with the same name into Organizer?  As it works now it will only import the fi

  • Flash background animation

    i've been looking for a way to make my flash website include a background animation whicjh runs independantly, meaning it will be uneffected by scene switching. my main flash movie has been published to run in the center of the browser, leaving large

  • Trouble with line spacing and text flow in Indesign 6

    Hello everyone. I'm a graphic artist working with magazine layout new to Indesign. I've used Quark for years and recently came across this problem... Within a paragraph we'll usually use a soft return to bump certain words to the next line. However,