XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] CDATA Section from JSP/ATG Dynamo

At 2007-09-05 10:05 -0400, frank wrote:
>I'm trying to serve an RSS feed from Websphere and the ATG suite of 
>web server apps. Since I have the kind of users that can and do put 
>Windows-1252 characters into UTF-8 documents, I really need to wrap 
>the output in CDATA sections.
>I can find nothing in either the Websphere or ATG docs that even 
>mentions CDATA. The one or two throwaway mentions I've found in 
>general JSP documentation say that the literal '<![CDATA[' should 
>just plain work.
>Actually it vanishes without a trace. There are no errors, just no 
>CDATA section. I'm very reluctant to put effort into a SAX or DOM 
>implementation without knowing why a simple string doesn't work.

The sequence of characters "<![CDATA[" and its compatriot sequence 
"]]>" are not in any way "simple strings".  These sequences are 
markup, not data.  There are strict rules for using both of these sequences.

>Can anyone provide either enlightenment or a workaround?

Around what?  What exactly do you need done?

An XML processor delivers the content of a CDATA section to the 
application ... the XML Information Set does not distinguish content 
found within a CDATA section and content found outside of a CDATA 
section.  For example, when using XSLT, you'll never see this markup 
because the XML processor inside of the XSLT processor consumes the 
markup and delivers the marked up content.

So, what functionality are you looking for?  Then more precise 
guidance could be given.

I hope this helps.

. . . . . . . . . . Ken


--
Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Jul'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal



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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS