I have the following student xml doc. Is it possible to replace the value true with value DELETED in the output?
xml doc code
<Student>
<Deleted>true</Deleted>
</Student>
xslt code
<Student>
<xsl:choose>
<xsl:when test="Deleted='true'">
<xsl:value-of select="Deleted"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="PRESENT"/>
</xsl:otherwise>
</xsl:choose>
</Student>
I would like output to be
<Student>
<StudentDeleted>DELETED</StudentDeleted>
</Student>
The following is what I am getting as output which is not what I want
<Student>
<StudentDeleted>true</StudentDeleted>
</Student>