Radiobuttons in XML / XSL
Posted: Fri Apr 04, 2014 2:37 pm
First: Sorry, my english is not the best, but I try to write as good as possible.
My Path in .XML file:
If in .XML file in
is a "yes", then the result should be:
yes (radiobutton=checked) (radiobutton) no
If in .XML in
is a "no", then the result should be:
yes (radiobutton) (radiobutton=checked) no
In my .XSL file it looks like this as far:
I don't know how I get the radiobuttons to the correct place. I tried different solutions of Google, but they also don't work.
Maybe somebody can help me! Thank you very much!
Greetings, Mario
My Path in .XML file:
Code: Select all
<ClinicalDocument>
<recordTarget>
<patientRole>
<rezeptgebuehrenbefreiung>ja</rezeptgebuehrenbefreiung>
Code: Select all
<rezeptgebuehrenbefreiung>
yes (radiobutton=checked) (radiobutton) no
If in .XML in
Code: Select all
<rezeptgebuehrenbefreiung>
yes (radiobutton) (radiobutton=checked) no
In my .XSL file it looks like this as far:
Code: Select all
...
<xsl:variable name="rezeptgebbefr">
<xsl:choose>
<xsl:when test="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:rezeptgebuehrenbefreiung">
<xsl:value-of select="/n1:ClinicalDocument/n1:recordTarget/n1:patientRole/n1:rezeptgebuehrenbefreiung"/>
</xsl:when>
<xsl:otherwise>unspecified</xsl:otherwise>
</xsl:choose>
</xsl:variable>
...
Maybe somebody can help me! Thank you very much!
Greetings, Mario