Re: [css-d] CDATA?

2006-12-22 Thread Brian Gottier
This is very interesting. I installed a Google map into my site last
weekend, and it used CDATA. I wondered what it was for, but didn't
investigate. It also had some proprietary code for microsoft, but I deleted
it and it still seems to work fine. The Google code seems to have validation
errors whenever it sees a closing tag in one of the map's point's text
balloons, but I wasn't going to worry about it.

Merry Christmas,
R.B. Gottier
Temecula, CA








Hi All, I have a question regarding this bit of syntax I see several
people using:


/*  */


The only time I've used CDATA is creating a DTD. What is it's
usefulness/purpose here?

THanks


chrispallé
blueflamecreative*
http://blueflamecreative.com
http://www.linkedin.com/in/chrispalle
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CDATA?

2006-12-22 Thread David Dorward
On 22/12/06, Chris Pallé <[EMAIL PROTECTED]> wrote:
> The only time I've used CDATA is creating a DTD. What is it's
> usefulness/purpose here?

XML DTDs don't allow elements to be specified as containing CDATA, so
you have to be explicit in the document that the content is CDATA or
use entities to represent any & or < characters in the stylesheet.

If you are serving the XHTML document as text/html then things get
rather more complicated.

Its easier to use link elements with external stylesheets instead (and
to use HTML 4.01).

-- 
David Dorward 
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] CDATA?

2006-12-22 Thread Sasha Gerrand
On 23/12/06, Chris Pallé <[EMAIL PROTECTED]> wrote:
> Hi All, I have a question regarding this bit of syntax I see several
> people using:
>
>
> /*  */
>
>
> The only time I've used CDATA is creating a DTD. What is it's
> usefulness/purpose here?

You need to use CDATA containers to allow inline CSS/JavaScript
content to validate when checking XHTML documents[1].

[1] http://www.w3.org/TR/xhtml1/#h-4.8
-- 
Cheers,
Sasha
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/