I'm writing a tool to build a binary bit pattern for transmission in a UDP packet to another node. Can I use XML to define the protocol in a GUI? Basically, the user should be presented with a standard set of text boxes and drop downs. Based on one or more of those selections, the user should be presented with another set of text boxes and drop downs. That set can change depending on the type of command previously selected.

My command set is growing daily, so I don't want to hard code the command structures in code. Can I use XSLT to generate HTML like above? Some fields are range checked numbers. Some are enumerations.