I rarely have to create an XSLT from scratch in my current position at my company but I have run into a case where I am unable to find an example to replicate.
In my XML I have a value that is derived from a drop-down list. Its a simple list that asks if you have a military spouse and the values in the drop down list are simply Yes or No for the user to select. The "Yes" value is associated with a code of "Military_Spouse" and the "No" value is associated with a simple code of "No".
If the user says Yes to having a Military Spouse I want the code to be mapped via an XSLT to a checkbox in another system that has a matching code/value. The issue I have encountered is mapping a drop down list to a checkbox.
The XML would look similar to this:
But I am unsure of what I should use in the XSLT. Should I do an xsl:if because I only want the checkbox in the corresponding system to be checked if the value being passed is Military_Spouse. Or do I use an xsl:when statement.
I hope this is enough information and I don't sound too stupid