xslt to generate dynamic drop down list

  • Thread starter timothy ma and constance lee
  • Start date
T

timothy ma and constance lee

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top