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

Re: CDATA headache

  • From: Mukul Gandhi <gandhi.mukul@gmail.com>
  • To: michael odling-smee <mike.odlingsmee@gmail.com>
  • Date: Thu, 10 Sep 2009 14:33:19 +0530

Re:  CDATA headache
On Wed, Sep 9, 2009 at 4:54 PM, michael odling-smee
<mike.odlingsmee@gmail.com> wrote:
>  about 5% of the elements in the source
> document are <value/> elements not all of which contain CDATA. If we added
> new CDATA sections to the output this would probably not satisfy the
> customer either.

Just to add another point. If some of input <value /> elements,
contain CDATA markers, then it means to me, that your application
design has thought, that CDATA was necessary on <value /> elements.
Some of <value /> elements in your input XML don't have CDATA markers,
and this I think, is the problem of the process, which created this
input.

But leaving the problem aside, of incompletely specified CDATA markers
in your input, you can fix this problem completely, entirely within
your stylesheet. You can put cdata-section-elements="value" in your
XSLT stylesheet, and this will generate CDATA markers in all the
<value /> elements, in the output. And this is what your application
design thought, in the first place. So this to me, is what should be
done.

As an additional work, and if you want, you can work to improve the
process, which is producing your input XML, so that it put's CDATA
markers in all the <value /> elements.


-- 
Regards,
Mukul Gandhi


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.