How to use an IF ELSE statement and the xdoxslt: get_variable together?

First of all, I'm a big fan of this forum and I would like to thank the community for helping to make better the world BI Publisher.

I'm trying to populate a table with a value of years of data with column = PRODUCT and row = month to DATE. Here's the catch, not every month will be given. Then here's where is my problem, I am not able to use an IF ELSE statement with an expression XDOXSLT:GET_VARIABLE so that if there is no given for this month the default value will be 0.

Can someone help me find a solution to one of the attempts below or a method entirely new? Thank you!

BP4 = numeric value of months with a DATE (more code to extract only the month DATE not included here)
JAN1 = PRICE if there is data, 0 otherwise

(1) I tried and it did not work:
<? If: xdoxslt:get_variable($_XDOCTX,'BP4'), 01 xdoxslt:set_variable($_XDOCTX,_'JAN1',PRICE) then another end if xdoxslt:set_variable($_XDOCTX,_'JAN1',0)? >
<? xdoxslt:get_variable($_XDOCTX,'JAN1')? >
<? end if? >

(2) I tried and it did not work:
<? xdoxslt:IfElse (xdoxslt:get_variable($_XDOCTX,'BP4') = '01', xdoxslt:set_variable($_XDOCTX,_'JAN1',PRICE), xdoxslt:set_variable($_XDOCTX,_'JAN1',0))? >
<? xdoxslt:get_variable($_XDOCTX,'JAN1')? >
<? end if? >

(3) I tried and it did not work:
<? xdofx:If xdoxslt:get_variable($_XDOCTX,'BP4') = '01' xdoxslt:set_variable($_XDOCTX,_'JAN1',PRICE) then another end if xdoxslt:set_variable($_XDOCTX,_'JAN1',0)? >
<? xdoxslt:get_variable($_XDOCTX,'JAN1')? >
<? end if? >

example of XML data:
< ROW >
< name > Craig Hernandez < / NAME >
< DATE > 2013 - 01-01 T 00: 00:00.000 + 08:00 < / DATE >
< PRICE > 31 < / PRICE >
BPD of < PRODUCT > < / PRODUCT >
< / ROW >


-TRD

Published by: 990965 on February 28, 2013 08:27

>
(1) I tried and it did not work:


(2) I tried and it did not work:


(3) I tried and it did not work:


>
so



works for me, it's

Tags: Business Intelligence

Similar Questions

  • How have use ACS supported wireless users and the VPN user?

    I'm new to ACS and configure the following requirement:

    (1) ACS to authenticate users wireless with window AD.

    (2) once connected successfully to the radio, the user must use VPN for remote access with the ASA.

    (3) the end-user will have only 1 common username but different password.

    for example:

    username: password: cisco: cisco wireless.

    username: cisco password: 1234 for VPN.

    ACS support can this, if yes how can we do? Do I need 2 sets of ACS?

    Yes, acs should work properly according to your need.

    ACS, we have a feature called NAP "network access profile" where we can define the condition based on ip source or attributes which allow to say if the request comes from wireless device acs will forward to AD and if the request is of the acs VPN will forward to this diff of database.

    Basically, we need to use two acs database.

    http://www.Cisco.com/en/us/docs/net_mgmt/cisco_secure_access_control_server_for_windows/4.1/user/NAPs.html

    Kind regards

    ~ JG

    Note the useful messages

  • Im trying to open the tutorial of 23 minutes on how to use different tools in photoshop and it continues to come with unable to resolve the DNS servers worked fine yesterday? Ive had creative cloud on my laptop for a week and still have not been able t

    Im trying to open the tutorial of 23 minutes on how to use different tools in photoshop and it continues to come with unable to resolve the DNS servers worked fine yesterday? Ive had creative cloud on my laptop for a week and not yet able to get past the basics make me very frustrated.

    I guess you meant the links when you open photoshop CC. I tested all four videos of the 23 min tutorial and they all played fine. If something between you and adobe does not work correctly.

    • Check that your firewall is blocking the net. Try to access youtube videos and see if they play very well
    • Go to the adobe tv site and try to play one of the videos here. Adobe TV
    • If youtube plays very well and adobe tv does not work, next is to check if you have flash installed. Some videos require flash, others are html 5. Sorry that I could not confirm what player has been used for this tutorial. I think that html 5 but not sure.
    • Next is to look at the properties of your browser and check multimedia settings are not disabled if it y in a. (this is totally dependent on the browser)

    If none of this helps, let us know.

  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • I have 5 html pages that share a common header, footer and sidebar. How to use my navigation bar to change the content of the body without duplicating a lot of code?

    I have 5 html pages that share a common header, footer and sidebar. How to use my navigation bar to change the content of the body without duplicating a lot of code? Thank you!

    Read the help section of DW on models.

    Using Dreamweaver | Creating a Dreamweaver template

    Or use Server-Side Includes

    Nancy O.

  • ESXi host goes to the State and the virtual machine does not restart on other host does not

    Hi all

    I'm looking for a solution, in which case the host goes to the State and the virtual machine on it does not restart on a different host (they'll just gray) does not not what could be the problem here and how to fix it

    later when the failed host returns upward machines either go to motor off the coast of the State, or they show that under tension

    While the host is down or not responding do not I am able to ping the host ESXi (5.5) and able to ping the default gateway and the DNS servers of the host itself

    Yes AF, the answer to all these questions is Yes, it is a HA and DRS cluster active, I tried restarting mgmt service, we use a shared storage (storage iSCSI HP 3PAR and left hand)

  • I need to learn how to remove trojan my computer files and the registry.

    Original title: cleaning your pc

    I need to learn how to remove trojan my computer files and the registry. There is a financial has now attached ittibu or something. and how to remove the event source errors and all that is connected to this.

    If you make financial transactions online and feel your system has been compromised, the more experienced people will recommend wipe you your HARD drive and reinstall your XP from scratch, but that is not always possible and of course is up to you depending on how you feel about this (you need to feel good about it).

    If you still think your system may be achieved a malware, I would do these things before you start any troubleshooting effort:

    Download, install, update and do a full scan with these free malware detection programs at:

    Malwarebytes (MMFA): http://malwarebytes.org/
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    They can be uninstalled later if you wish.

    Download and run Hitman Pro here and during installation to be 100% sure to refuse the installation of toolbars, decline any e-mail options, nothing to do with Bing or MSN, perform a scan time, accept no e-mail and activate the free license:

    http://www.SurfRight.nl/en/downloads/ (make sure you get the free version)

    Download and run TDSSKiller from Kaspersky:
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    The scans by operating clean, then to solve any problems.

    If you still think that you have any questions, then proceed as follows:

    Since the Microsoft Answers forum does not have any kind of information system request when a new question is asked, we know absolutely nothing about your system.  Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Thank you MS Answers, allowing the resolution of simple problems as frustrating and a lot of time as possible.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    What is your Internet browser and version?

    Your system's disks IDE or SATA drives?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a genuine XP installation CD bootable, which is the same Service as your installed Service Pack (this is not the same as any recovery CD provided with your system)?

    Do you see that you think not you should see and when you see it?

    What do not you think that you should see?

    If the system works, what do you think might have changed since the last time it did not work properly?

    If you need help interpreting your logs in Event Viewer, follow these steps:

    Here is a method to display specific information about individual events.

    To view the logs in Event Viewer, click Start, settings, Control Panel, administrative tools, event viewer.

    A shortcut to the event viewer is to click on start, run and enter in the box:

    %SystemRoot%\system32\eventvwr.msc

    Click OK to launch the event viewer.

    The most interesting newspapers are usually the system and Application logs.

    Some newspapers such as security and Internet Explorer may be completely empty or have just a few items.  The default settings for XP wants do not connect all this activity, unless you need to solve a problem in these areas.  If you enable logging for them the papers fill up quickly and could adversely affect the performance of your system with all the extras (often unnecessary) activity.

    If you have Microsoft Office installed, it has its own newspapers, and they can be empty or occasional boring activity very little or, if there is no problem with your desktop applications.  It's normal.

    Not every event is a problem, some are informational messages that things work very well, and some are warnings.

    However, no event should defy reasonable explanation.

    Each event is sorted by Date and time.  Errors will be red Xs, warnings will have yellow! s.
    Informational messages have white is.  Not every error or warning event means that there is a serious question.

    Some are excusable at boot time when Windows starts.  Try to find only the events to the date and time around your problem.

    If you double-click on an event, it will open a window of properties with more information.  On the right are black up and down arrow keys to scroll through the open events. The third button that looks like two overlapping pages is used to copy the details of the event in your Windows Clipboard.

    When you find an interesting event that occurred at the time of your question, click on the third button at the top and arrows to copy the details and then you can paste the details (right click, paste or CTRL-V) the text in detail here for analysis.  Remove all personal information from your information after you paste If you are forced to do so.

    If you paste an event, it will look something like this annoying system startup event:

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7035
    Date: 14/07/2010
    Time: 17:54:18
    User: Jose
    Computer: computer

    Description:
    The Remote Access Connection Manager service was sent successfully a starting control.

    To get a fresh start on any log of the event viewer, you can choose to clear the log (the log backup is available), and then reproduce your problem, then just look at the events around your show and troubleshoot events that are happening when you have your question.

  • notification area: How can I get my internet connection and the life of the battery and its return in the notification area

    How can I get my internet connection and the life of the battery and its return in the notification area

    on the bottom right of my screen?

    I tried the properties and to add notifications but it net let me add them...

    Hello

    1 Please reboot nothing so interfere with this process.

    Click with the right button on Taskbar - Properties - tab Notification area - check box Volume - if it is grayed out
    Then, use this link. (The battery is the same method.)

    How to enable or disable the system tray in Vista icons (there are several methods
    and you can to use them all).
    http://www.Vistax64.com/tutorials/106787-notification-area-system-icons.html

    If necessary: a Mr Fixit

    System icons do not appear in the notification area in Windows Vista or in Windows 7 until you
    Restart the computer
    http://support.Microsoft.com/default.aspx/KB/945011

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How can I delete a desktop application and the file?

    I download an application which went to the bureau.  Target is "C\Users\===\desktop\===.exe" no shortcut key. I click with the right button to delete the file and got a sign of caution: action cannot be compleded because the file is open in = executable.  Close the file and try again.  I have liquidated everything returned to do the samething and got the same answer.  How can I close a file?  How can I get this unwanted application and the deleted file?  Thanks :=)

    Hello

    The program has an open handle. Use the Task Manager process tab to locate and kill him. Alternatively, restart the system and delete once recharged. Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • How to use reveal all this without losing the work of culture?

    My workflow is to editing and cropping of images. I need the flexibility to perform any order.

    When I use the crop tool, I continue to delete the cropped Pixels unchecked. When I edit the images I want to edit the complete picture, not cropped image.

    If I use reveal all to make alterations on the full image after cropping, I lose my job of cropping. Is there a solution?

    How to use reveal all this without losing the work of culture?

    How to take a bath without getting wet?

    Enter drollery side you could use a path of access to store the current size before calling "Reveal everything", then later on the path as a selection of load, switch to the crop tool and hit.

    Or convert to smart object before you crop, then do the editing in the SO (it could be a potentially significant increase in file size, however).

  • My iTunes does not detect my iPad.  I use Windows 10, Norton 360 and the latest version of iTunes.  All software are up to date, and each says it works correctly.

    My iTunes does not detect my iPad.  I use Windows 10, Norton 360 and the latest version of iTunes.  All software are up to date, and each says it works correctly.

    Turn off or get rid of Norton.   I really don't see why you need it.

  • How to install logitec mouse wireless receiver and the software driver CD?

    How to install logitec mouse wireless receiver and the software driver CD?

    http://www.Logitech.com/index.cfm/support_downloads/&CL=us, fr.

    There is a link on the site above to contact Support Logitech technique.

    See you soon. Mick Murphy - Microsoft partner

  • When using my computer, all applications and the windows are closed at the same time, got disconnected and the computer turns off as if someone stops manually.

    Original title: it's a virus that's causing this?

    It happened a few times now. While I use my computer, all applications and the windows are closed at the same time, I am disconnected and the computer is off, as if someone manually stops the computer. I turn on the computer and log in and everything seems to be okay. No data deleted, not that I could find and detect anyway. One day when I turned on the computer, it run chkdsk before doing the usual startup. I use the computer for 2 years and this is the first time, she never did a chkdsk on its own. I used Microsoft Essentials and no viruses were found.

    Should I worry?

    Hello

    You can read the following article and try to download the Microsoft Safety Scanner and perform a full scan on your computer and check.

    Microsoft safety scanner

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Check if there are logs of events related to the issue in the event viewer which may help us to solve the problem of the:

    What are the information contained in the logs of the event (Event Viewer)?

  • How can I ride me Windows Visa and the rank of a XP operating system?

    How can I ride me Windows Visa and the rank of a XP operating system?

    On Mon, 27 Sep 2010 15:26:17 + 0000, Krista Northcott wrote:
     
    > How can I ride of Windows Visa and the rank of a XP operating system?
     
     
     
    You can not downgrade. For XP, you must install XP properly.
     
    When you perform a clean install, it will begin by formatting the
    by car, then you can get rid of everything, including Vista.
     
     
    --
    Ken Blake
     

    Ken Blake (MS-MVP)

  • I have a site published under a recent URL, I used for a personal site and the site displayed the URl needs to be removed, but I can't take it down because I do not know the account info that it is under please help! Thank you!

    I have a site published under a recent URL, I used for a personal site and the site displayed the URl needs to be removed, but I can't take it down because I do not know the account info that it is under please help! Thank you!

    If it is hosted with Adobe Business Catalyst Adobe Support can help you.

    If it is hosted elsewhere the only people who can help you with that is where it is hosted.

Maybe you are looking for