On Thu, 02 Dec 2004 17:58:57 +0000, Patrick H. Lauke <[EMAIL PROTECTED]> wrote: > Chris Kennon wrote: > > In the following why is it appropriate to classify the import rule as > > CDATA? > > <style type="text/css" media="screen"> > > /* <![CDATA[ */ > > @import url(c/core.css); > > /* ]]> */ > > </style> > > You use CDATA to tell an XML aware parser to ignore something > (where "ignore" can either be interpreted by the parser as "don't process, > but leave it in" or "completely remove", depending on implementation).
this isn't strictly true really. CDATA in XML is actually slightly more complex than that. In the example <sometag>This is text or something</sometag> "This is text of something" is actually PCDATA (Parsed CDATA). The CDATA tag as above tells the parser not to parse the contained CDATA, so that the parser dosn't choke on any of the tags (or what might appear to be the start / end of tags) inside the selection. Of course how browsers handle that is a whole nother can of worms. Excellent point on that if it is only that @import statment, the CDATA declaration is pretty much unessasary. ~j -- Jonathan T. Sage Theatrical Lighting / Set Designer Professional Web Design [HTTP://www.JTSage.com] [HTTP://design.JTSage.com] [EMAIL PROTECTED] ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
