Doctype, namespace etc.

Hello,

I'm a bit confused, When using a

<DOCTYPE....

inside an xml document, it points to the url of a dtd, so it's easy to load
generic xml documents, but mixing xml from different namespaces is
impossible this way? (am I correct).. some xml documents only contain
namespace declaration like

<html xmlns="...." >,

then you know the namespace, but you don't know where the dtd is (or
schema), or you can have

<html xsi:schemaLocation="...", then you know the schema location...

While some documents only contain something like

<html...

So many possibilities, so I'm wondering.

Can an xsi:schemaLocation point to a dtd as well as a schema?

If you only have a namespace, does a program have to hardcode the url to the
dtd or schema (or have it stored on the harddisk)?

In the case of embedded mathml/svg inside xhtml, how can you validate that
document against the xhtml dtd? (without getting errors)

thanks,

--
Sigurd Lerstad

Received on Thursday, 9 May 2002 19:15:53 UTC