[xsl] Handling elements which is inside CDATA in input XML
Subject: [xsl] Handling elements which is inside CDATA in input XML|
From: "Ramkumar.V" <ramkumar.v@xxxxxxxxx>
Date: Mon, 01 Nov 2010 17:54:43 +0530
I need to remove the span tag which is inside the CDATA in input XML. Could anyone suggest me how to handle CDATA in XSLT Transform for the below?
<?xml version="1.0" encoding="utf-8"?>
<question><![CDATA[<span class="question">1. Biochemistry is based on the chemistry of which element?</span>]]></question>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
Current HTML Output
<p><span class="question">1. Biochemistry is based on the chemistry of which element?</span></p>
Expected HTML Output:
<p>1. Biochemistry is based on the chemistry of which element?</p>
Ram Kumar V.
This email, and any attachments ("this email"), is confidential. If you are not the addressee please tell the sender immediately, and destroy this email without using, sending or storing it. Any opinions, express or implied, in this email, are those of the sender, and are not necessarily approved by the company. Except as expressly stated, this e-mail should not be regarded as an offer, solicitation, recommendation or agreement to buy or sell products or services, or to enter into any contract. E-mail transmissions are not secure and may suffer errors, viruses, delay, interception and amendment. The company does not accept liability for damage caused by any of the foregoing.
ALL INCOMING AND OUTGOING MAILS MAY BE MONITORED BY THE COMPANY.