[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[XSLT 1.0] How to remove CDATA sections?

Subject: [XSLT 1.0] How to remove CDATA sections?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Wed, 30 Jun 2010 13:56:33 -0400
 [XSLT 1.0] How to remove CDATA sections?
Hi Folks,

Consider this XML document containing a CDATA section:

<?xml version="1.0" encoding="US-ASCII"?>
<Weather xmlns="http://www.weather.org">

    <Source>Agent Dick Tracy</Source>
    <Location>Atlantistan</Location>
    <Date>2009-09-30T12:26:00</Date>
    <Temperature units="degrees F">91</Temperature>

    <![CDATA[
	<% String eid = request.getParameter("eid"); %>

        Employee ID: <%= eid %>
    ]]>

</Weather>


Using XSLT 1.0, I would like to remove the CDATA section:

<?xml version="1.0" encoding="US-ASCII"?>
<Weather xmlns="http://www.weather.org">

    <Source>Agent Dick Tracy</Source>
    <Location>Atlantistan</Location>
    <Date>2009-09-30T12:26:00</Date>
    <Temperature units="degrees F">91</Temperature>


</Weather>


This is just one example. I would like the XSLT program to remove all CDATA
sections in any XML document. Is there a way to do it?

/Roger

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.