xsl: decision value from element to attribute

secretsound

New Member
I want to use XSL to convert XML to another XMLThe input xml contains the following element\[code\]<ViewSideIndicator>0</ViewSideIndicator>\[/code\]which need to be converted to the following\[code\]<ImageViewDetail ViewSideIndicator="Front"/>\[/code\]in the input file, if the value is "0", then it should be "Front" in the outputand if the value is "1", then it should be "Back" in the outputI know that we can use \[code\]<xsl:choose>\[/code\] to make the value based on a decision, but i'm not sure how to do it for this case.
 
Top