Drop down in XSL

Can any one please let me know how to create a drop down menu in XSL this is
all I came up with so far.
What I need is when user selects one option then the page should automatically
go to the next corresponding page. I can't use another submit button to
submit the option.
<select name="submit" value = "Exception">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>

Finally I got it, I wanted something like this.
<SELECT ONCHANGE="location = this.options[this.selectedIndex].value;">
<OPTION VALUE="home.html">departments </OPTION>
<OPTION VALUE="history.html">History</OPTION>
<OPTION VALUE="Hobbies.html">Hobbies</OPTION>
<OPTION VALUE="math.html">math/OPTION>thanks,

Similar Messages

  • Multiple drop down filter for xml

    Hi,
    I've had a look through previous posts, but I think I need
    the very basics explained to me.
    Here's an example of some XML that I want to use:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <company>
    <department name="Research &amp; Development">
    <employee>
    <name>John Doe</name>
    <job>Software Analyst</job>
    <salary>2000</salary>
    </employee>
    <employee>
    <name>Jane Fletcher</name>
    <job>Designer</job>
    <salary>2500</salary>
    </employee>
    <employee>
    <name>Chris Benton</name>
    <job>Programmer</job>
    <salary>3100</salary>
    </employee>
    <employee>
    <name>Ben Walker</name>
    <job>Programmer</job>
    <salary>2800</salary>
    </employee>
    </department>
    <department name="Marketing">
    <employee>
    <name>George Palmer</name>
    <job>Copywriter</job>
    <salary>2530</salary>
    </employee>
    <employee>
    <name>Tony Norberto</name>
    <job>Content Editor</job>
    <salary>1900</salary>
    </employee>
    <employee>
    <name>Adrian Segata</name>
    <job>Marketing Manager</job>
    <salary>5000</salary>
    </employee>
    </department>
    </company>
    I'd like to have two drop down menus (Job and Salary).
    Default output table should display all of the names of the
    employees. When a user selects a drop down menu, the output table
    should filter so that only employees with that job are displayed.
    It should also have a reset button (or blank on each drop down
    menu) to reset the table to its default.
    Currently thinking that the drop down menus should be
    Spry:repeats as a menu.
    As you can probably see, I'm very new to this, but if anybody
    can suggest some code to do this it would be really helpful. I've
    had a few attempts with Spry, but my programming is really limited.
    So far I'm OK with displaying the drop down menus and the original
    table, but can't implement the filters. I've just spent a while
    trying to do it in XSLT to no avail :(.
    Anyway, thanks in advance for any help on this.

    Hi again,
    Here's my current code:
    <?xml version="1.0" encoding="utf-8"?><!--
    DWXMLSource="company.xml" --><!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp "&#160;">
    <!ENTITY copy "&#169;">
    <!ENTITY reg "&#174;">
    <!ENTITY trade "&#8482;">
    <!ENTITY mdash "&#8212;">
    <!ENTITY ldquo "&#8220;">
    <!ENTITY rdquo "&#8221;">
    <!ENTITY pound "&#163;">
    <!ENTITY yen "&#165;">
    <!ENTITY euro "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8"
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
    doctype-system="
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
    <xsl:template match="/">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8"/>
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <xsl:text disable-output-escaping="yes">
    <![CDATA[
    var name = new Spry.Data.XMLDataSet("company.xml",
    "company/department/employee/name",{distinctOnLoad:true});
    var job = new Spry.Data.XMLDataSet("company.xml",
    "company/department/employee/job",{distinctOnLoad:true});
    var salary = new Spry.Data.XMLDataSet("company.xml",
    "company/department/employee/salary",{distinctOnLoad:true});
    var employee = new Spry.Data.XMLDataSet("company.xml",
    "company/department/employee",{distinctOnLoad:true});
    ]]>
    </xsl:text>
    </script>
    </head>
    <body>
    <div spry:region="name">
    <select name="select" spry:repeatchildren="name">
    <option value="{name}">{name}</option>
    </select>
    </div>
    <div spry:region="job">
    <p>
    <select name="select2" spry:repeatchildren="job">
    <option value="{job}">{job}</option>
    </select>
    </p>
    </div>
    <div spry:region="salary">
    <p>
    <select name="select3" spry:repeatchildren="salary">
    <option value="{salary}">{salary}</option>
    </select>
    </p>
    </div>
    <div spry:region="employee">
    <table>
    <tr>
    <th>Name</th>
    <th>Job</th>
    <th>Salary</th>
    </tr>
    <tr spry:repeat="employee">
    <td>{name}</td>
    <td>{job}</td>
    <td>{salary}</td>
    </tr>
    </table>
    </div>
    <p> </p>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    So, I've got 3 drop down menus, and an output table.
    How do I go about making the drop down menus filter the table
    (e.g. choose a salary and the table only displays employees with
    that salary)?
    I'm guessing it's something along the lines of Spry:if
    "employee/salary" = "salary", but I've no idea how to implement it.
    Thanks again for any help with this.

  • Drop down text options

    I'm looking for feedback on other options for displaying drop
    down text. I'm getting feedback from my users that they don't
    understand that green italic text (or what ever format is used)
    assumes drop down text. Most people are now used to seeing collapse
    and expand icons to represent drop down information. I have used
    the twisties in some of my projects but in this specific case, i am
    using the Show/Hide All script and there appears to be a conflict
    with the 2 scripts.
    I'm just curious if there are other methods used to represent
    or display that an item on the page is a drop down link, other than
    expand or collapse icons.

    Are you talking about the twisty / show hide methods on my
    site? If so please see the introductory topic that refers to a
    script that does allow both to work together.

  • How to get ALL values as default for  a drop down box in JSF

    Hi,
    I have a drop down box in JSF page which retrieves values from LOVCache.java. I have values like Company, Client, User, ALL in the drop down box.
    By default blank value is selected for the drop down box. I want to make ALL(which retrieves data for all the values) as default value for the drop down box.
    Could any body help me? Any help must be appreciated.
    Thanks,
    Aseet

    Thanks Nikhil. But I am fetching the values from the LOVCache.java.
    I am using <af:selectManyChoice>. Is there any way I can use LOVCache.java value for selecting default values instead of hard coding?
    I mean to say can I write
    unselectedLabel="#{LOVCache.entityTypeSelectionList.anyValue}"
    where LOVCache.entityTypeSelectionList is used to populate the drop down box.
    Regards,
    Aseet

  • How do I use one drop down list to refresh the list in another drop down?

    I am using a drop down list full of years (i.e. 2008, 2009..etc). When I make my selection from this drop down list (say for instance I select 2009) I want it to update the available data in the second drop down list. I have the query statement set up within the JSP page but it needs to be a dynamic SQL statement based off the value I selected in the first drop down.
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    The variable "year" is the value I need to figure out how to assign. Now this variable is a Java variable (attribute) and Im unsure how to get the value from the previous drop down and assign it to that. Basically I need the JavaScript value from the first drop down assigned to the Java attribute "year".
    Anyone able to help me with this???
    Thanks,
    Jed

    Here are my two drop down lists. As you can see I build the second list dynamically based off the value of the year. I want to be able to assign my year to the value I select in this first drop down. How do I do that?? I only want to show games for the year I select. I currently have the year hardcoded to "2009" as you see below. How can i change that to be assigned to the JavaScript value i extract from the first select box?
    <select name="season">
    <option value='2009' selected>2009</option>
    <option value='2008'>2008</option>
    </select>
    <select name="gameselect">
    <%
    try
    String year = "2009";
    String connectionURL = "jdbc:mysql://localhost:3306/ElmwoodExpos";
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection(connectionURL, "root", "thejedster");
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    Statement s = con.createStatement();
    s.executeQuery(sql);
    ResultSet rs = s.getResultSet();
    while(rs.next())
    %>
    <option value="1"><% out.print(rs.getString("GameDescription"));%></option>
    <%
    catch(Exception e)
    %>
    </select>
    Thanks,
    Jed

  • Is there a way to create a drop down menu with an automatic answer dependent on what is chosen?

    Is there a way to create a drop down menu with an automatic answer dependent on what is chosen? An if-then statement perhaps?  I am looking to add over 100 drop down options and would like to have a message automatically pop up depending one which option they chose.  Thank you.

    Hi,
    You would use the skip logic to conditionally show form items based on the selection within the drop-down menu. Here's a link to a description of the feature in our help documentation:
    http://help.adobe.com/en_US/formscentral/using/WSd789abd336388b1642c7fce012da94afe4f-8000. html#WS0faeceb8c23f5d60-774f03e3131ddc76d7d-8000
    Regards,
    Brian

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • Is there a way to expand all drop-down text in a single topic in the editor?

    I'm going through all the topics in a large RH10 project manually checking various things. A lot of topics contain drop-down text and to view the contents, I'm having to right click on each one and select 'Drop-down text properties'. Which is taking FOREVER. So:
    a) is there an option to expand all drop-down text in the current topic? I'm sure I remember this from a previous version but can't find it now.
    b) is there a keyboard shortcut to open drop-down text?
    Please say yes.

    a] Yes.
    b] No.
    There is nothing in Rh but there is a method on my site and on htttp://wvanweelden.eu The same scripts, just different explanations.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • A custom view in the Edit drop-down

    Hi,
    How could I create a custom view and add it to the Edit List Item drop-down in SharePoint 2013? This screenshot shows what I mean in SharePoint 2010:
    I'd like to have a menu item Custom View below Edit Properties in the drop-down list. When the user clicks the item I'd like to redirect to my layout page.
    Thanks,
    Leszek
    Wiki: wbswiki.com

    Hi ata6502:
    Adding a user custom action for list items
    using System;
    using Microsoft.SharePoint.Client;
    namespace Microsoft.SDK.SharePointServices.Samples
    class CreateUserCustomActionList
    static void Main()
    string urlWebsite = "http://MyServer/sites/MySiteCollection";
    ClientContext clientContext = new ClientContext(urlWebsite);
    Web oWebsite = clientContext.Web;
    List oList = oWebsite.Lists.GetByTitle("My List");
    UserCustomActionCollection collUserCustomAction = oList.UserCustomActions;
    UserCustomAction oUserCustomAction = collUserCustomAction.Add();
    oUserCustomAction.Location = "EditControlBlock";
    oUserCustomAction.Sequence = 100;
    oUserCustomAction.Title = "My First User Custom Action";
    oUserCustomAction.Url = urlWebsite + @"/_layouts/MyPage.aspx";
    oUserCustomAction.Update();
    clientContext.Load(oList,
    list => list.UserCustomActions);
    clientContext.ExecuteQuery();
    Modifying a user custom action
    using System;
    using Microsoft.SharePoint.Client;
    namespace Microsoft.SDK.SharePointServices.Samples
    class ModifyUserCustomAction
    static void Main()
    string urlWebsite = "http://MyServer/sites/SiteCollection";
    ClientContext clientContext = new ClientContext(urlWebsite);
    Web oWebsite = clientContext.Web;
    List oList = oWebsite.Lists.GetByTitle("My List");
    UserCustomActionCollection collUserCustomAction = oList.UserCustomActions;
    clientContext.Load(collUserCustomAction,
    userCustomActions => userCustomActions.Include(
    userCustomAction => userCustomAction.Title));
    clientContext.ExecuteQuery();
    foreach (UserCustomAction oUserCustomAction in collUserCustomAction)
    if (oUserCustomAction.Title == "My First User Custom Action")
    oUserCustomAction.ImageUrl = "http://MyServer/_layouts/images/MyIcon.png";
    oUserCustomAction.Update();
    clientContext.ExecuteQuery();

  • Using a variable/drop down list in header of planning layout

    Dear all,
    I have created a simple BPS application for purely GL planning (No CO related objects like cost centre involved). I have the following characteristics in the header of the manuel planning layout.
    Business area
    Chart of accounts
    Company code
    Currency
    Currency Type
    Fiscal year
    Fiscal Year Variant
    Fiscal year/period
    Value type
    Version
    I have created variables for Business area, Fiscal Year, Fiscal Year Period, Posting Period and Version. The client wants either a variable or a drop down list for these characteristics in the header in the web application. When I assign a variable and put the characteristic in header, I get the error message in the web application saying header characteristic can only have a fixed value. Can someone tell me if it is possible and if so than how? I'll be very grateful for any inputs. Thanks a lot.
    Regards,
    Sumit

    Hi,
    When you create a variable, assign some values to the variable. These then become available in the drop down box. Ths first time a Web interface is called, these variable values are initial.As a result, u get the error messages. Select the variable values and then the error message should go away.
    Thanks,
    -NS

  • I installed a new printer and Acrobat Pro is not listing it as an option in the drop down box. Other apps are working. Printer is networked, platform is Windows.

    sorry, other apps are working fine and finding the new printer. HP Officejet 8620.

    I've rebooted numerous times, reloaded the software twice, spent 4 hrs on the phone with HP and 2 with Adobe. No luck. It simply doesn't show the new printer in the drop down menu for Pro or Reader and yet shows time in all in Office, Paint, Web options. Any suggestions would be greatly appreciated! Thanks!

  • I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down eliminate

    I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • In the new Pages 5.0, what is the page break shortcut key. I cannot find the key as indicated on the drop down menu.

    in the new Pages 5.0, what is the page break shortcut key (it used to be the Fn + enter). I cannot find the (new) key as indicated on the drop down menu. Please help.

    Hi Bruce and fruhulda,
    ok, I found the keyboard viewer, it only shows the traditional symbol 'return'.  something like a sideway u-turn continued with the arrow under.  This is the Canadian or US keyboard. 
    btw thanks for your suggestion.

  • I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. How can I fix this?

    I have created a PDF form with multiple drop downs, all with the same drop down values. When I select a value from 1 of the drop down fields, it replicates in all of the others - which I do not want. Can I fix this?

    I'm fairly new to this, but I think it has to do with the way you have the drop downs named. Did you copy one then keep pasting it in each field? If so, that is the problem. You should rename each one with a different number: Dropdown1, Dropdown2, etc. I think that might solve the issue.

  • Trying to create a drop down menu in numbers...please help

    Hi
    Can anyone indicate how to go about creating a drop-down menu.
    Thanks in advance

    Hi Meela,
    Welcome to Apple Discussions and the Numbers 08 forum.
    Check page 66 of the Numbers User Guide supplied with your copy of iWork. The guide refers to them as "pop-up" menus, so a search using "pop-up" will be more successful than one using "drop down".
    Essentially the process is:
    Click on the cell to select it.
    Open the Inspector and choose Cell Format (icon is a cell containing 42)
    Click the Cell Format menu and select Pop-up Menu from the bottom of the list.
    Double click an item in the list to edit it. Click the + button to add an item, the - button to delete the selected item.
    Done.
    Regards,
    Barry

Maybe you are looking for

  • I want to change the country of my itunes account but I do not have a credit card of the country

    I had my account registered in the itunes store and has changed the store from Japan to UK. I also had some apps downloaded in the Japan itunes store and I am not able to update these apps. I want to change my account back to the Japan store since I

  • HELP in Sql Queri... Urgent..

    Hi All, Can anyone lemme know using this will effet to our performance ?? And the sys is throwing ' ( ' syntax error... If u have any alternative for this queri plz lemme know.... SELECT A~VBELN          A~WADAT          A~WADAT_IST          A~LFART

  • Query in Tabke Maintanance Generator

    Hi, My requirement is : I am creating table maintanance generator for a table. In this table i have space id is the primary key other few fiedls are non primary keys. Now my requirement is when user enters non primary key fields in SM30 transaction i

  • How capture output of DBCC command in new table?

    The dbcc sqlperf(logspace) statement returns the "Log Size (MB)" column indicating the physical size on disk of the transaction log for a given database.   How can I capture that Log Size field into in my own table where I can manipulate it? TIA, edm

  • How to disable the User directory in Shared Services?

    Hello, We need to disable (Not Delete) the User Directory in Hyperion Shared Services. We are using the Hyperion version 9.3.1. Is there a way we can do this? Thanks S