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

RE: CDATA strangeness


tidy cdata
Heh. We actually do a *lot* of that sort of thing already (and in Visual-C++ (:-)

But every time we do that, it slows things down a notch more and the code becomes more unreadable and in the words of Bugs Bunny, frah-jee-lee. I guess it's a matter of where you want your point of pain.

Cheers,
Ramin

> -----Original Message-----
> From: Dare Obasanjo [mailto:dareo@m...]
> Sent: Tuesday, August 06, 2002 9:51 AM
> To: Ramin Firoozye; xml-dev@l...
> Subject: RE:  CDATA strangeness
> 
> 
> Instead of tweaking tidy or Xerces-C why not just perform a 
> simple search and replace by hand or programmatically (*cough* 
> Perl *cough*). 
> 
> 	-----Original Message----- 
> 	From: Ramin Firoozye [mailto:ramin@w...] 
> 	Sent: Tue 8/6/2002 9:44 AM 
> 	To: xml-dev@l... 
> 	Cc: 
> 	Subject: RE:  CDATA strangeness
> 	
> 	
> 
> 	This comes from an HTML-only site. They don't claim it's 
> XML, but we're
> 	trying to load it in as an XML tree. The problem is when 
> you pass the
> 	snippet through Tidy and Xerces-C, it barfs royally, saying 
> there's a
> 	missing CDATA where it sees the '<![if' string.
> 	
> 	Very strange. I thought I'd pose it out here to see if 
> anyone else had seen
> 	similar things, or if I had misread the spec. So far, I've heard 3-4
> 	conflicting opinions on whether this is legal XML or not.
> 	
> 	S'ok. Looks like we're going to tweak tidy and/or Xalan-C. 
> We can't really
> 	have breakage on stuff like this and asking the site to 
> change is like
> 	asking an elephant to quit hogging the dance floor.
> 	
> 	Others using the Tidy/Xalan-C combo might want to keep an 
> eye out for it.
> 	
> 	Best,
> 	Ramin
> 	
> 	>
> 	> At 2:45 PM -0700 8/5/02, Ramin Firoozye wrote:
> 	>
> 	> >There's a fairly well-known web-site that returns:
> 	> >
> 	> ><!--[if IE]><script 
> language=javascript>ie5=1;</script><![endif]-->
> 	> ><![if !IE]><script language=javascript>ie5=0;</script><![endif]>
> 	> >...
> 	>
> 	> This is not well-formed XML, not even close. The problem is the <!
> 	> outside the comment. If the site claims this is XML, then 
> the site is
> 	> wrong. However, possibly the site is only serving HTML, not XML or
> 	> XHTML.
> 	> --
> 	>
> 	
> 	
> 	-----------------------------------------------------------------
> 	The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> 	initiative of OASIS <http://www.oasis-open.org>
> 	
> 	The list archives are at http://lists.xml.org/archives/xml-dev/
> 	
> 	To subscribe or unsubscribe from this list use the subscription
> 	manager: <http://lists.xml.org/ob/adm.pl>
> 	
> 	
> 
> 


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.