kalls
kalls

Reputation: 2865

How to design a XSLT dropdown

How to design a dropdown on XSLT? I need a dropdown with four values option 1 option 2 option 3 option 4

I have the following on the XSLT

<div>
 <select>
  <option value="option1">Option 1</option>
  <option value="option2">Option 2</option>
  <option value="option3">Option 3</option>
  <option value="option4">Option 4</option>
 </select> 
</div>

I wanted to pass the selected value from the dropdown to the asp.net

Upvotes: 0

Views: 507

Answers (2)

LarsH
LarsH

Reputation: 28004

  1. First design the output, in other words, decide specifically what HTML you want to produce.
  2. Then determine the input XML and figure out what parts of it need to be reflected in the output dropdown.

If you can show us those two things, we can help you figure out what sort of XSLT to use.

FYI there is an example here of an XSLT template for generating an OPTION/SELECT. You could try that and let us know if you need help figuring out how to use it.

Upvotes: 0

Jim Garrison
Jim Garrison

Reputation: 86774

XSLT has nothing to do with "designing a dropdown". It is an XML-based language to transform an input XML tree into some other form of output. XSLT has no concept of a "dropdown", that would be in whatever web or UI system you're using.

Upvotes: 1

Related Questions