Thomas DeWeese wrote:
Chris Lilley wrote:
On Friday, September 16, 2005, 8:02:36 PM, Thomas wrote:
TD> The namespace is already by the DTD if it references the SVG 1.0
TD> doctype.
Its a #FIXED declaration in the DTD. That means, if the attribute value
is supplied, it has to be the correct value. So that, if someone uses
the DTD for validation, and they mistype the URI of the SVG namespace,
they get a validation error.
Its not there as a default attribute.
The I must be misreading something:
http://www.w3.org/TR/REC-xml/#sec-attr-defaults
Says:
[Definition: If the declaration is neither #REQUIRED nor
#IMPLIED, then the AttValue value contains the declared default
value; the #FIXED keyword states that the attribute MUST always
have the default value. When an XML processor encounters an
element without a specification for an attribute for which it
has read a default value declaration, it MUST report the
attribute with the declared default value to the application.]
Put this all together and It looks to me like the SVG 1.1
DTD is defining the 'default value' for 'xmlns' on the 'svg' element
which must be reported to the application.
It *used* to be, in SVG 1.0 up to
Last Call or CR... checks ... We changed that due to CR feedback. We
previously allowed validating, or non-validating but external DTD subset
fetching, processors to infer it from the DTD. However, fetching the
external DTD subset is optional, and content should not make assumptions
about what the processor does there.
Sure content shouldn't make assumption about this, but I would
argue strongly with the contention that an SVG implementation that does
apply the SVG DTD to content is non-conforming!
In all cases, for compliance with the "Namespaces in XML"
Recommendation [XML-NS], an SVG namespace declaration must be provided
so that all SVG elements are identified as belonging to the SVG
namespace.
But the SVG DTD does provide just such a namespace declaration.
So it seems to me that in trying to use DTDs to require namespace
declarations *and* validate that those declaration's contain the correct
values (something DTDs appear incapable of doing), the SVG WG has
actually made it unnecessary to declare the SVG and XLink namespaces
when a doctype declaration is present. Would this be an unfair or
inaccurate assessment of the situation?
-Jonathan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]