Re: [Fwd: [Moderator Action] Style Element Data]

Chris,
You're the expert on these issues. I'll take a stab at it and you can 
correct as necessary.

This isn't just an SVG issue. It is a generic XML issue for any language 
which might want to allow internal CSS stylesheets. For example, XHTML has 
the same issue.

The CDATA around an internal CSS stylesheet is not always necessary but is 
highly recommended. Many CSS stylesheets do not use any special XML 
characters such as ">", but because the CSS language offers the possibility 
of conflicts (such as ">"), it is highly recommended that all internal CSS 
stylesheets be embedded within a CDATA construct.

Implementations should accept internal CSS stylesheets that are either 
inside of a CDATA node or within a text node. It seems to me that all W3C 
specifications that have a <style> element (e.g., SVG and XHTML) should 
state this explicitly. I will propose that the SVG spec explicitly mention 
that internal style sheets should be processed in either of two scenarios: 
(a) when embedded within CDATA or (b) not embedded in CDATA.

Jon Ferraiolo
SVG Editor
Adobe Systems Incorporated


At 11:13 PM 11/27/00 +0100, Chris Lilley wrote:
>  Return-Path: <www-svg-request@w3.org>
>Received: from www19.w3.org (www19.w3.org [18.29.0.19])
>         by tux.w3.org (8.9.3/8.9.3) with ESMTP id QAA32282
>         for <chris@w3.org>; Mon, 27 Nov 2000 16:19:40 -0500
>Received: by www19.w3.org (8.9.0/8.9.0) id QAA17040
>         for chris@w3.org; Mon, 27 Nov 2000 16:19:39 -0500 (EST)
>Date: Mon, 27 Nov 2000 16:19:39 -0500 (EST)
>X-Envelope-From: www-svg-request@tux.w3.org  Mon Nov 27 16:19:28 2000
>Received: from tux.w3.org (tux.w3.org [18.29.0.27])
>         by www19.w3.org (8.9.0/8.9.0) with ESMTP id QAA17019
>         for <www-svg@www19.w3.org>; Mon, 27 Nov 2000 16:19:27 -0500 (EST)
>Received: from mail.savagesoftware.com (outside-73.tantalus.com 
>[209.52.120.73])
>         by tux.w3.org (8.9.3/8.9.3) with ESMTP id QAA32278
>         for <www-svg@w3.org>; Mon, 27 Nov 2000 16:19:26 -0500
>Message-id: <fc.0085846d0001b43c0085846d0001b43c.1b443@savagesoftware.com>
>Old-Date: Mon, 27 Nov 2000 13:19:02 -0800
>To: www-svg@w3.org
>From: sdickson@savagesoftware.com (Steve Dickson)
>MIME-Version: 1.0
>Content-type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Diagnostic: Not on the accept list
>Subject: [Moderator Action] Style Element Data
>X-Diagnostic: Mail coming from a daemon, ignored
>X-Envelope-To: www-svg
>X-Mozilla-Status2: 00000000
>
>In some of the SVGTestSuite examples (for example, animation-href-BE-02),
>the text data for a SVGStyleElement is a simple Text node.  However, in
>the examples given in the CR of 20001102, the text data is always wrapped
>in a CDATASection.   According to section 6.7 of the SVG spec,  the style
>data is required to be placed in a CDATASection.  "...Note how the CSS
>style sheet is placed within a CDATA construct (i.e., <![CDATA[ ... ]]>),
>which is necessary since CSS style sheets are not expressed in XML..."
>Are the SVGTestSuite examples that don't use CDATASections incorrect or am
>I misreading the spec?
>
>----
>Steven Dickson, Software Developer,
>Savage Software

Received on Monday, 27 November 2000 20:51:16 UTC