On Monday, September 19, 2005, 11:38:44 PM, Jonathan wrote:

JW> So it seems to me that in trying to use DTDs to require namespace 
JW> declarations *and* validate that those declaration's contain the correct
JW> values (something DTDs appear incapable of doing), the SVG WG has 
JW> actually made it unnecessary to declare the SVG and XLink namespaces 
JW> when a doctype declaration is present. Would this be an unfair or 
JW> inaccurate assessment of the situation?

Its inaccurate.

If SVG content that has a 1.0/1.1 DOCTYPE happens to be processed by a
DTD validating parser then those declarations in the DTD will be
reported, yes. Since content cannot tell whether it will meet a
validating parser and since there is no way in the content to request
validation, the SVG spec requires that the instance also contain the
namespace declarations.

Content that has the DOCTYPE and does not have namespace declarations in
the instance is conformant to the XML 1.0 spec.
http://www.w3.org/TR/REC-xml/#dt-default

It is not conformant to the SVG 1.0 or 1.1 specs; for interoperability,
we impose an additional constraint.

And as "Namespaces in XML" notes

"Thus, unless the use of a validating processor has been specified,
there can be no assurance that the contents of attribute values have
been checked for conformance to this specification."

If we are talking about a programming API where a validating processor
can be and has been specified, then the assurance is there. If we are
talking about documents loaded off the Web or from local disk, there is
no way to specify that a validating parser must be used.

Note in addition that applying a DTD which has notbeen specified in a
DOCTYPE and using a validating DTD parser will report false negatives
(invalid documents which are in fact conformant to Namespaces in XML)
for example

<abc:svg xmlns:abc="http://www.w3.org/2000/svg";
 viewBox="0 0 15 6">
  <xyz:text xmlns:xyz="http://www.w3.org/2000/svg";
  x="1" y="5" font-size="2.2">
  I'm a conformant document!
  </xyz:text>
</abc:svg>

-- 
 Chris Lilley                    mailto:[EMAIL PROTECTED]
 Chair, W3C SVG Working Group
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to