[topicmapmail] xml:base and #foo URIs
Lars Marius Garshol
larsga@garshol.priv.no
23 Apr 2003 00:58:36 +0200
(Moving this to a separate thread. This is SAM issue xtm-same-doc-refs.)
* Murray Altheim
|
| I think you're misinterpreting fragment identifiers. If you read the
| xml:base spec, fragment identifiers are resolved relative to the
| base established by the URI reference in the xml:base attribute.
XML Base doesn't mention the word "fragment identifiers" at any point
in the text, so reading that specification doesn't yield any definite
conclusions on that score. If you can point to any part of it that in
your view is conclusive with regards to this particular case I'm all
ears.
| Point is, if I put an xml:base attribute in the PSI set, the
| document is portable in the sense that resolution of fragment IDs
| (used to establish the PSIs) is always the same no matter where the
| document sits.
That's your opinion. Whether the standard agrees remains to be seen.
| Your misunderstanding of Paul should not lead you to think that
| xml:base doesn't work. Your example merely was in error, and he
| answered accordingly. Paul is a stickler for details. E.g., if your
| xml:base had included a document reference there'd be a resource to
| use. He says this, if you read it again.
He does seem to say something like that, but that doesn't affect the
issue of what fragment identifiers are resolved against.
| Like it or not, the can of worms is already open, as xml:base is
| already used in XTM. xml:base conforms to RFC 2396 by using the
| concept of allowing a base URI to be embedded in a document:
|
| http://www.w3.org/TR/xmlbase/#rfc2396
No disagreement on this.
| If this is still unclear, check the examples at
|
| http://www.w3.org/TR/xmlbase/#syntax
They don't have any examples of same-document references like "#foo"
so that doesn't help.
| When it comes to fragment identifiers, Paul's answer about the "bare
| name" form of XPointer is simply his way of stating what I've been
| saying, that you append a "#" and the ID reference to the document
| reference, the same way as almost every link on the web is done.
You said "document reference" now, not "base URI". XML Base only
affects the "base URI". Does this mean you think fragment identifiers
resolve relative to the document reference rather than relative to the
base URI?
| In his paragraph beginning "The document infoitem's [base URI]
| property..." you'll see where xml:base operates, by redefining
| the base URI.
I know that. What I'm saying is that as far as I can tell,
same-document references are not resolved relative to the base URI,
but relative to the document URI. If you have reason to think
differently, could you tell me why? I'm not 100% convinced either way
here, but I would like to be.
--
Lars Marius Garshol, Ontopian <URL: http://www.ontopia.net >
GSM: +47 98 21 55 50 <URL: http://www.garshol.priv.no >