ietf-xml-mime
[Top] [All Lists]

Re: Media typs and XPointer, XLink, XPath, and XSLT

1999-07-13 09:40:42
At 12:37 PM 7/13/99 -0400, John Cowan wrote:
Paul Grosso wrote:

If the resource is XML, the fragment identifier is to be interpreted
as an XPointer.

Yes, but what does it mean to "be XML"?  Does that simply mean
"be a well-formed XML document", or is it also required that
the media-type be "application/xml" or "text/xml"?  If the
media-type is "application/vnd.foo-systems.bar", but the format
happens to be well-formed XML, is the fragment ID necessarily
to be interpreted as an XPointer?

How can you possibly know, in this case, whether the resource is WF
XML?  The situation seems clear to me:  If it's application/xml
or text/xml, what comes after the # is an xpointer.  If it's
anything-else/anything-else, look in the RFC for anything-else/anything-else
to see how fragment identifiers work.  That RFC might say that the 
media type happens to be XML and it might (or might not, even if it
happens to be XML) say that fragment identifiers are xpointers.

 -Tim