10pm on a friday and I want to go home. HELP!!

I'm being driven crazy by what I'm sure is a simple syntax issue. I have a Servlet that writes out an XML Report and have an attribute in this report called SelectByParticipant which has a value either 0 or 1 depending on whether I want the radio button checked when the screen loads.
Here is the XML report header:
<?xml version="1.0" encoding="windows-1251"?>
<?xml-stylesheet type="text/xsl" href="/tr/atmr/queryATMstatus.xsl"?>
<queryATMstatus SelectByParticipant="0">
Can someone tell me what's wrong with this picture?
<input type="radio" name="QueryBy" value="ByParticipant" onclick ="return FillParticipants()"> By Participants:
                              <xsl:if test=".[/@SelectByParticipant] = 1">
                                   <xsl:attribute name="checked">
                                        <xsl:value-of select="checked"></xsl:value-of>
                                   </xsl:attribute>
                              </xsl:if>
                              </input>
I'm 99% positive that the problem lies here:
<xsl:if test=".[/@SelectByParticipant] = 1">
Because, here is the error message I get:
Expected token 'eof' found '='. .[/@SelectByParticipant] -->=<-- 1
It seems by the error message that it doesn't recognize the '=' symbol. What going on? What am I doing wrong. If I comment out the <xsl:if> everything works fine.

I must say that //@SelectByParticipant is a pretty useless predicate. If you want to ask if there's any SelectByParticipant attribute anywhere in the XML that has the value 1, then you don't need any predicate at all. Try something more like this:
<xsl:if test="//@SelectByParticipant = 1">
If that's not right, then don't blame us. We are Java types here, there are XML and XSLT forums where you would probably get a better and quicker answer.

Similar Messages

  • A few of my built in apps disappeared and I want them back, please help, a few of my built in apps disappeared and I want them back, please help

    a few of my built in apps disappeared and I want them back, please help, a few of my built in apps disappeared and I want them back, please help.  It just happened and I didn't do anything. 
    The camera app
    the I-tunes store
    the App Store
    and Safari all vanished. 

    Check Settings>General>Restrictions to be sure Camera, Safari and Installing Apps are set to On.  If they are check all your screens and inside all your folders.  If you still can't find it go to Settings>General>Reset>Reset Home Screen Layout.  This will restore the home screen to its original configuration but may move other apps around to do so.

  • HT4859 What if I pass the restoring option at the beginning by mistake and I want to restore? Help me please.

    What if I pass the restoring option at the beginning by mistake and I want to restore? Help me please.

    Welcome to the Apple Support Communities
    In that case, you have to set up the iPhone again. Open Settings > General > Reset > Erase All Content and Settings, and set up the iPhone again, so you will see the option to restore your iPhone from the iCloud backup

  • I have two iCloud accounts and I want to delete one, help!

    I have two icloud accounts and I want to delete one and have the one across all my devices, however, I have tried a number of times, I have deauthorised all my computers on the old icloud/apple account, yet every time I log back onto my main compputer, the old account comes up. I have tried everything, any help would be appreciated....
    Cheers

    You can't delete an iCloud account.  You can, however, sign out of that account and just stop using it.  Then sign in to your second account on all devices account. 
    OT

  • 7110 OMG, CIF and NFS permission woes. I'm tired and I want to go home.

    OK, here's the dealio...
    I have share exported via CIFS and NFS from our 7110 array running 2010.02.09.2.1,1-1.18
    I have AD configured for CIFS Authentication.
    I have a UNIX desktop so I am using SMB authenticate via AD and talk to the CIF share on the array.
    I have the NFS share mounted using vers 3 on Solaris 10.
    Now, the problem..........
    PERMISSIONS!!!
    Here’s what I want to do,
    Create a file or folder on the CIF and preserve the username on NFS.
    Example, I login as myself via AD, bam I’m on the array.
    Create a file.
    Check the ownership of the file on the NFS mount and it’s suddenly become a series of numbers. Of which I assume are taken from my Windows SID. As Solaris can’t relate my SID to a UNIX username I’m left out in the dark.
    So, I then tried to set up some rule based identity mapping so my Windows login would be converted to my UNIX username, no luck still a series of numbers for me listed against my files.
    I could work around this if I could chown but I can’t even do that as it says chown: filename: Not owner
    What gives? How do I keep my username from CIFS to NFS? HELP!!!!

    Did you have any joy with this?
    I have never been able to determine a consistent configuration for NFS/CIFS sharing on a 7310. Ended up opening access to all on the NFS side (v4) and the CIFS just worked out of the box.
    I am using ID Mapping, with IDMU first, then rule based mapping next. The box picks up the correct UID/GID from AD but doesn't always inherit the user & group for the NFS side.
    Chris

  • Is there a reason why safari isn't working for windows anymore?? It's saying there's a problem and just wants to close. Help guys!

    So i've been using safari for windows for a couple of year with no issues. A couple of days ago i tried to open safari and a pop came up saying that it isnt working properly. I checked for any updates and there wasnt any, i then uninstalled safari and installed it again. The same thing is happening.
    Has anyone got any idea what is going on?? or is anyone having the same issues??
    I've now installed chrome as my browser. I did like safari though

    Yeaaaaa that's a matter of opinion and I don't share it.
    It's margianlly better than firefox and it burns CPU and ram like no tomorrow.

  • HT2688 ihave purchased an apple tv box, and now want to activate home sharing on my computer, and as i am not computer sauvy, i  am  having trouble  activating  the home share .

    i need help activating the home sharing, i went to i tunes and it talked about the product butnowhere what to do to activate it.

    Hello!
    I have come across the same issue and chose your response to reply to since it seems to be the most recent- First, the set up at the house:
    MacBook Pro mid-2010
    AppleTV Gen2
    Belkin router
    Two iPhones- 4s
    iPad 3- Retina / WiFi only (set up with a different apple id- wife's iPad)
    So- I have the same apple ID set up on the laptop, apple TV and my phone.  Home Sharing is set to the same account on all these devices and the AppleTV does not recognize any of them.  I do not see the Apple TV, nor the laptop, in the remote app on my phone.
    I have the network set with a password in WPA/WPA2 mode and no firewall set up on with the router or the laptop...
    Help?
    I've read through many comments about ipV6- but that seemed to be based on windows machines, I've read that a mid 2010 MacBook Pro doesn't have the guts to handle homesharing, I have restarted and restored the appleTV as well as logged everything out and back in again...
    Not sure where to go from here- thanks for any guidance.

  • How to count the number of Fridays and Saturdays between two dates

    Hi every one ... If we want to count the number of Fridays and Saturdays between two dates, how would we do that ? !
    Dates are ( 11-Feb-2010) to (19-May-2010)
    how to do it in SQL
    Edited by: khalidoracleit on Jul 28, 2010 5:51 AM

    some nice coding here, I'm still amazed with what some people can do with "connect by". But I agree with some statements here that this can take "time", and to be honest, it's funny to see it working, but if you do not have a computer, just a calendar and some paper, would you go for "counting" so there must be a better solution?
    The best working math in here is done by Aketi Jyuuzou, who writes so good English that I wonder why he still insists that he doesn't ;-)
    Anyhow I "translated" that code to English, and I really like that math. Math is math and data is data.
    ALTER SESSION SET NLS_DATE_LANGUAGE='ENGLISH';
    WITH my_dates AS (
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100519','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100214','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100213','yyyymmdd') end_date FROM DUAL
    UNION ALL
    SELECT to_date('20100211','yyyymmdd') start_date,to_date('20100212','yyyymmdd') end_date FROM DUAL
    SELECT to_char(start_date,'DD.MM.YYYY') start_date,to_char(end_date,'DD.MM.YYYY') end_date,
           to_char(start_date,'DAY') start_weekday,to_char(end_date,'DAY') end_weekday,
           end_date-start_date day_difference,
           (next_day(end_date,'FRIDAY')-7
           -next_day(start_date -1,'FRIDAY'))/7+1
           +(next_day(end_date,'SATURDAY')-7
           -next_day(start_date -1,'SATURDAY'))/7+1 as count_of_fr_and_sat
    FROM my_dates;
    START_DATE END_DATE   START_WEEKDAY                        END_WEEKDAY                          DAY_DIFFERENCE         COUNT_OF_FR_AND_SAT   
    11.02.2010 19.05.2010 THURSDAY                             WEDNESDAY                            97                     28                    
    11.02.2010 14.02.2010 THURSDAY                             SUNDAY                               3                      2                     
    11.02.2010 13.02.2010 THURSDAY                             SATURDAY                             2                      2                     
    11.02.2010 12.02.2010 THURSDAY                             FRIDAY                               1                      1                      -- andy

  • My iPhone is skipping back to the start of a song every time I unlock it, especially when I am replying to a text message, this is very frustrating and just want to know if it is a simple bug that will be dealt with in the next update?

    My iPhone is skipping back to the start of a song every time I unlock it, especially when I am replying to a text message, this is very frustrating and just want to know if it is a simple bug that will be dealt with in the next update?

    Assuming the phone isn't jailbroken, the basic steps (as needed) are:
    Restart phone (you already did this)
    Reset phone
    Restore phone in iTunes using a backup
    Restore in iTunes as new, without using a backup
    See appendix B of the User Guide for details
    http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf
    If your phone is jailbroken, this is the most frequent cause of the problems you described.  Restoring could permanently brick the phone.
    Note that your iOS is old and the current version is 4.2.8.  It's odd that it wasn't updated when your activated your phone in iTunes, being that you got it last Friday.

  • Ive lost my apple ID for my ipod, now i have an iphone and i want to use the same apple ID for both can someone tell me how to do this

    I have lost my apple ID for my ipod, now ive got a new iphone and i want to use the same ID for both, can anyone one tell me how to do this? ( i no my ID for the iphone)

    Just use the same ID.
    These may alos help:
    How to use multiple iPods, iPads, or iPhones with one computer
    What is the best way to manage multiple...: Apple Support Communities

  • I have a game but it only for one apple id and one divece but someone i dont know id play that game and using my apple id and i want to know if u can block them from using ur apple id and also erase all the games they downlode with the apple id

    I have a game but it only for one apple id and one divece but someone i dont know id play that game and using my apple id and i want to know if u can block them from using ur apple id and also erase all the games they downlode with the apple id

    There probably is, but it requires that you be able to use punctuation and write in sentences so that we can understand exactly what you want.
    You can block others from using your Apple ID by changing your password.  There is no way to erase what was already downloaded on to someone else's device, for obvious reasons,

  • I had to install a new hard drive because my old hard drives boot files became corrupted, and i want to get all of my music files off the old hard drive and regain all my play counts/ratings/playlists

    Greetings everyone
    as the title says, ive had to install a new hard drive  and i want to transfer my old itunes library onto the new drive, maintaining all playlists/play counts/ratings etc, album artwork if possible. The old hard drive is installed as a slave drive and is completely acessible, but due to the boot files being corrupted i cannot use it as the main drive and therefore operate my old itunes. Also, my ipod no longer contains my music library as itunes synced without my permission and wiped it.
    The only thing i have tried is copying all of my old music files from the old drive by selecting 'add folder to library' and then the old drive, then replacing the new itunes library.itl file with the one from my old itunes. This restores all my playlists and playcounts but when i try to play any of the songs it says that the files could not be found, and i dont fancy locating  8500 music files individually!
    Thankyou for taking the time to read my post, any help will be greatly appreciated.

    Ah, my reply was based on the assumption that you had a default installation of iTunes.
    i.e you had all your music in the iTunes media folder inside your iTunes folder.
    If your iTunes folder is so small compared to the amount of music you have, you must have a different arrangement.
    This complicates you situation considerably.
    iTunes can cope with moving around as long as all the music is in the iTunes media folder, not not if it isn't.
    Your first step should be to get iTunes working on the old drive. This will involve editing the xml library file so that the drive letter is correct and then rebuilding the library from the xml file.
    Then you will need to consolidate your library which moves everything into the iTunes media fodler. After that you will be able to use my first suggestion.
    Step 1
    Find the iTunes folder on the old drive and copy the two library files somewhere else so you can find them again. That's iTunes Library.itl and iTunes Library.xml.
    Now open the copy of iTunes Library.xml with WordPad.
    Look for lines starting:
    Location
    These contain the paths to tracks.
    You will need to use a find/replace to change the drive letter so that it is correct.
    Make sure that you include enough in the "find" so that you only change the right thing.
    Maybe /c:/ and replace with /d:/ or whatever.
    After that, tell iTunes to use the library on the old drive with a shift key start.
    Hold down the shift key and start iTunes, keep holding the shift key until you are prompted to choose a library. Navigate to the iTunes folder on the old drive and choose iTunes Library.itl.
    Then use the method in the following article to rebuild your library;
    http://support.apple.com/kb/HT1451
    Unfortunately the date added will be today for all tracks.
    If iTunes works correctly after this, consolidate your library
    File>>Library>>Organize>>consolidate
    This copies all tracks into to iTunes media folder and could create a problem if you do not have disk space so don't do it if you are unsure about free disk space.
    Check that iTunes works OK and then use the first method.
    Message was edited by: polydorus

  • I have a private Adobe ID and I have a Lightroom Testversion running there! Now my university gave me access to Creative Cloud for Teams and I want to use my Lightroom catalogues with this ID! How can I do this?

    I have a private Adobe ID and I have a Lightroom Testversion running there! Now my university gave me access to Creative Cloud for Teams and I want to use my Lightroom catalogues with this ID! How can I do this?

    Hi,
    thank you, it’s done! The Chat helped me! Now I cannot go into this forum anymore with my old password, but that’s not a big problem.
    Best wishes,
    Christian
    Von: JimHess <[email protected]<mailto:[email protected]>>
    Antworten an: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Datum: Montag, 20. April 2015 18:38
    An: Christian Kogler <[email protected]<mailto:[email protected]>>
    Betreff:  I have a private Adobe ID and I have a Lightroom Testversion running there! Now my university gave me access to Creative Cloud for Teams and I want to use my Lightroom catalogues with this ID! How can I do this?
    I have a private Adobe ID and I have a Lightroom Testversion running there! Now my university gave me access to Creative Cloud for Teams and I want to use my Lightroom catalogues with this ID! How can I do this?
    created by JimHess<https://forums.adobe.com/people/JimHess> in Photoshop Lightroom - View the full discussion<https://forums.adobe.com/message/7454915#7454915>

  • If i reset my ipad can i install paye games for free if i sign back into my apple ID. Please i need help because i need to update my games but i need to put in this billing thing and i want to get rid of it so then i cant buy games with my credit card

    If i reset my ipad can i install paye games for free if i sign back into my apple ID. Please i need help because i need to update my games but i need to put in this billing thing and i want to get rid of it so then i cant buy games with my credit card

    Hello,
    As frustrating as it seems, your best to post any frustrations about the iPhone in the  iPhone discussion here:
    https://discussions.apple.com/community/iphone/using_iphone
    As this discussion is for iBook laptops.
    Best of Luck.

  • Hey, I have $2350-2400 and I want some proper guidance for the macbook pro

    HEY!!!
    Guys I will try to make this as easy as possible!
    First let me tell you I am 15, I love graphics, music and literature and I have no credit card, my iTunes account has no money, I'm using an account that doesn't require credit cards! So (ugh) I buy all the free apps
    Anyway
    Dad gave me $2400 to buy a macbook pro and keep the change but since I live in Italy, I have to convert them to Euros.
    $2400-1821 EUR
    So I came up with 2 conclusions and I just want some opinions on which is the smarter decision.
    Well apparently there are 4 types of laptops I can get right now from the macs.....
    to make this as simple and as easy as possible (and to show off my ICT skills ) I made a table which includes
    1) the laptop mentioned
    2) the price in dollars (which I got directly from the apple store in the US)
    3) the price in euros (which I got directly from the apple store in Europe)
    Macbook Pro Kind
    Price in dollars
    Price in EUR
    13-inch: 2.5GHz
    $1119.00
    1249.00 EUR
    13-inch: 2.9GHz
    $1499.00
    1549.00 EUR
    13-inch: 2.5GHz with Retina Display
    $1499.00
    1549.00 EUR
    13-inch: 2.6GHz with Retina Display
    $1699.00
    1749.00 EUR
    But you can install somethings on to your laptop right there in the shop and I wanted two things,
    1) pages: I thought would help with my writing because I write poems, novels, stories, etc
    2) numbers: this program just deals with spreadsheets and charts and just the mathematical area and thought that this would help when doing A levels and GCSE math
    3)keynote: This is basically like power point and it just makes presentations.
    each of these programs are 18 EUR
    One more thing, since I am planning on using this laptop for several years, I change  changing countries often and so the laptop can come with an adapter that works in both European and American countries
    But thats 80 EUR
    The laptop (the edition i want) is 1749 EUR
    that means with all these additional stuff
    I calculated it on the apple store
    1749.00 EUR + 18 EUR + 18 EUR+ 18 EUR 80 EUR = 1883.01 EUR
    If we were in america then according to the website's store
    $1699 + $19.99 + $19.99 + $19.99 + $79.00=  $1847.96
    I'd be buying the SAME amount of things in the States for $1847.96 and I'd have 552 dollars change but in Italy everything would cost 1883.01 EUR which is the equivalent of $2481.61 which is more expensive than the US!
    BUT
    You have to consider the fact that this is with all the additional costs
    The additional things I thought I'd need
    If I said "no just buy the laptop"
    then the correct price in dollars is $1699
    the correct price in euros would be 1749 EUR
    the laptop only. No extra features.
    1749 EUR in Dollars would be $2305!
    Exactly $2305!
    That means I would only have had 95 dollars difference.
    Anyway the bottom line is all these additional things that I was talking about, the softwares and everything, they're going to help me in the near future, not RIGHT now.
    So what I can do is just buy the laptop and then as I progress in to year eleven, slowly by slowly, I can start buying the softwares.
    I'm sorry I'm unburdening ALL these different information on you, but I just wanted to approach this from as many angles and be as aware of all the variables as possible.
    SOOOOOOOOOOOOOOOOOOOOO
    (THIS IS THE CONCLUSION)
    OPTION ONE
    Buy the 13-inch: 2.6GHz with Retina Display Macbook Pro for 1749.00 EUR including all the additional features (the three softwares and the adapter which together have the total value of 134 EUR)
    Therefore the total amount of money we'd be spending is
    1883.01 EUR
    That means the total cost of everything would be $2481.62 and I'd get no difference
    OPTION TWO
    Buy the 13-inch: 2.6GHz with Retina Display Macbook Pro for 1749.00 EUR and then when I am 16 or 18 I buy these softwares with a credit card and apply them for my A levels later.
    That means the total amount we'll be spending is
    1749.00 EUR
    Which is $2305
    I will have $95 (72 EUR) pocket money.
    (BY THE WAY, MY PARENTS WORK FOR THE UNITED NATIONS AND DON'T PAY VAT OR SOMETHING AND SO WE KIND OF SOMEHOW GET A 20% DISCOUNT SO THE PRICES WILL BE A BIT OFF AND CHEAPER.... I JUST CAN'T BE BOTHERED TO DO ALL OF THE CALCULATIONS BUT YEAH.....................)
    Thanks for reading
    Please reply ASAP I'm buying the mac extremley soon.....

    Never heard of .MOD format, but generally VLC player will play most any format.
    It's free, open source so no harm in trying:
    http://www.videolan.org/vlc/

Maybe you are looking for

  • My ipad2 mic is not working. Can someone please help me?

    I Recently discovered that the mic on my iPad 2 with iOS version 8.2 is not working. Please what can I do to get it working?

  • Shared photo streams in iPhoto and Apple TV

    Why is this proving so difficult for Apple to get right? All I want to do is create private albums that I can share with family and have them sync back to my Mac so that all I need to do is organise my photos ONCE (i.e. on iPhone or iPad) and see the

  • Lightroom,Nik plugins and color spaces

    I'm having an issue and not sure who is holding the smoking gun.  I have the Nik ultimate collection installed which covers Lightroom and Photoshop CS5 extended. I work primarily in Lightroom and apply most corrections globally but occasionally i nee

  • Movement Types - how to change determined Movement Types in Delivery Creati

    hi, Is there any way "material movement type" can be changed once its been determined in the delivery, or durin delivery creation (after creating the sales order) is it possible to override the material movement type creation, (apart from the control

  • Quicktime finder preview

    I may just be overlooking something, but in older OS X versions, the finder would allow you to preview in quicktime. movie and audio files, you could jump forward and skip around to make sure you had the right file. leopard seems to have taken this a