My requirement is -using XSLT- to show a dropdown list with the US states and print ‘selected’ on one specific that is declared in the XML which will use my style sheet.
I was thinking on declare an array with the states and iterate it but I don’t know how to do it.
NOTE: More ideas are welcome 😉
One way to do this is to embed the state data into the stylesheet itself, and access the stylesheet document using
document(''), as follows:Let me know if you have any questions.