xslt to generate dynamic drop down list

Discussion in 'XML' started by timothy ma and constance lee, Oct 10, 2004.

  1. sir

    I need to have an xslt to generate the dynmaic drop down list. The size is
    detetmined by the a para in xml. Inside the drop list, when the index is
    onclick, it
    will have java script to redirect the url: http:\name\?param=docId etc.

    Is it possible


    <message>
    <docList>
    <docSet>1</docSet>
    <docTp>A1/docTp>
    <docTotPage>10/docTotPage>
    <docId>A1Id/docId>

    <docSet>1</docSet>
    <docTp>B1</docTp>
    <docTotPage>2/docTotPage>
    <docId>B1Id/docId>

    <docSet>2</docSet>
    <docTp>A2</docTp>
    <docSet>1</docSet>
    <docTotPage>3/docTotPage>
    <docId>A2Id/docId>

    <docTp>C1</docTp>
    <docSet>2</docSet>
    <docTp>B2</docTp>
    <docTotPage>40</docTotPage>
    <docId>B2Id/docId>

    </docList>
    </message>

    I need to generate somehting list

    DocSet 1
    Doc Tp = A1 dropdown list with index 1,2,-------docTotPage, ofr each
    index, it has the javascript to redirect the docID by
    http://servername/?param=docA1 001

    Doct Tp = B1 dropdown lisr with index 1,2,..........docTotpage
    Doc Tp = C1 dropdown lisr with index 1,2,..........docTotpage


    DocSet2
    DocTp = A2 dropdown lisr with index 1,2,..........docTotpage

    ......

    Please suggest
    </docList>
     
    timothy ma and constance lee, Oct 10, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SirPoonga
    Replies:
    2
    Views:
    799
    Ben Strackany
    Jan 7, 2005
  2. weiwei
    Replies:
    0
    Views:
    1,047
    weiwei
    Jan 5, 2007
  3. msimmons
    Replies:
    0
    Views:
    514
    msimmons
    Jul 16, 2009
  4. Replies:
    5
    Views:
    295
  5. Replies:
    3
    Views:
    312
Loading...

Share This Page