开发者

How to design a XSLT dropdown

开发者 https://www.devze.com 2023-01-23 12:22 出处:网络
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

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 开发者_如何学Go


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.


  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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号