Re: [SVGMobile12] Missing namespace puts document in error

On Tuesday, October 25, 2005, 10:10:44 PM, Ian wrote:

IH> On Tue, 25 Oct 2005, Andrew Shellshear wrote:
>> 
>> On Fri, 20 May 2005 13:32:15 +0000 (UTC), Ian wrote:
>> > According to section C.4:
>> > 
>> > # The outermost <svg> element must be defined in the SVG namespace (e.g.,
>> > # <svg xmlns="http://www.w3.org/2000/svg">); otherwise the document is 
>> > # in error.
>> > 
>> > This seems like a bogus requirement. If the outermost <svg> element 
>> > _isn't_ in the SVG namespace, then it isn't an <svg> element, and is 
>> > out of the scope of this specification, surely.
>> 
>> Because of the history, the SVG WG feels it is necessary to explicitly 
>> say that the namespace declaration must be provided. If it were not for 
>> this history, we would not include the sentence you dislike.

IH> I agree with the sentiment, but I feel the current text is just as 
IH> misleading, because it is technically incorrect ("bogus", as I said 
IH> earlier). Could you rephrase it to something like:

IH>    User agents must only consider elements explicitly placed in the 
IH>    SVG namespace by XML Namespace declarations in the document (e.g.,
IH>    <svg xmlns="http://www.w3.org/2000/svg">) as being SVG elements.

That would work. What we were anxious to avoid was saying something like

  all svg elements must be in the SVG namespace

because that would then impact the Saphenous Venous Grants ML and
St.Vincent and the Grenadines  markup language etc.

IH> The current text is wrong on many counts:

IH>    * The document might not be in error, it might be another language,
IH>      unrelated to SVG.

And we don't want to preclude that case or to constrain it in any way.

IH>    * All the SVG elements must be in the SVG namespace, not just the
IH>      outermost element.

Yes.

IH>    * The <svg> element must be defined to be in the SVG namespace to
IH>      be treated as SVG even if it isn't the root element, e.g. in
IH>      compound documents.

Yes.

IH> (I am not satisfied by the WG's current response.)

I think your suggested wording is good. I assume you would be satisfied
if we used it?



-- 
 Chris Lilley                    mailto:chris@w3.org
 Chair, W3C SVG Working Group
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG

Received on Wednesday, 26 October 2005 09:24:42 UTC